Ir para conteúdo
Fórum Script Brasil
  • 0

Na Internet não Roda


byzk8

Pergunta

Bom dia Gente

estou com um problema no códgo abaixo e não sei porque..

No localhost ele funciona nOrmalmente mas quando teno on-line não funciona

já liberei todas as permissões do servidor e ainda nada

<!--#include file="conexao.asp"-->
<%  call abre_conexao
%>
<%    if Session("Status")="" or Session("Status") = False then
Response.redirect("index.html")
else if  Session("Status") <> "" then %>
<% id = request.querystring("id")
 %>

<% 
Dim conexao,str,rs
id = request.QueryString("id")
sql = "SELECT * FROM blog where id = "&id
set rs= conexao.execute(sql)
%>

<html>
<head>
<link rel="shortcut icon" href="ico.ico" type="image/x-icon" /><title><%=TS%></title>
<link rel="stylesheet" type="text/css" href="estilo.css">
<style>
input {border: 2 solid #000000}
body {
    background-image: url(../Imagens/fundo.gif);
}
</style>





<script language="Javascript1.2"><!-- // load htmlarea
_editor_url = "";                     // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac')        >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera')      >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
  document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
  document.write(' language="Javascript1.2"></scr' + 'ipt>');  
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>



</head>
<script language="javascript" type="text/javascript">
<!--
function EnviarTam(){
window.parent.mudarTamanho(document.getElementById("Conteudo").offsetHeight);
}
//-->
</script>



<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<body bgcolor="" text="#000000">

<form id=form method="POST" action="edit_post.asp?IP=<%=id%>">
    <center>
      
    <table border="1" cellpadding="3" cellspacing="0" width="450" bordercolor="#000000" bgcolor="#C0C0C0">
      <tr>
        <td align="center" bgcolor="#CCCCCC"><b>Editar Post </b></td>
      </tr>
      <tr> 
        <td align="center" bgcolor="#FFFFFF"> 
          <table border="0" cellpadding="0" cellspacing="0" width="448" bordercolor="#000000" bgcolor="#C0C0C0">
            <tr> 
              <td width="100%" align="left" bgcolor="#FFFFFF" valign="middle"><b>T&iacute;tulo.:</b></td>
              <td width="100%" align="left" bgcolor="#FFFFFF"> 
                <input type="text" name="name1" value="<%=rs("titulo")%>" size="62">
              </td>
            </tr>
            <tr> 
              <td width="100%" align="left" bgcolor="#FFFFFF" height="168" valign="top"><b><br>
                <br>
                Post.:</b></td>
              <td width="100%" align="left" bgcolor="#FFFFFF" height="168"><font size="2" face="Verdana"> 
                 <textarea name="yourFieldNameHere" style="width:50; height:50">
<%=rs("post")%></textarea>
                </font> </td>
            </tr>
            <tr> 
              <td width="100%" align="left" bgcolor="#FFFFFF" valign="middle"><b>Data.:</b></td>
              <td width="100%" align="left" bgcolor="#FFFFFF"> 
                <input type="text" name="date1" value="<%=rs("Data")%>" size="13">
                &nbsp;&nbsp;&nbsp;</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>      
    <table border="1" cellpadding="3" cellspacing="0" width="450" bordercolor="#000000" bgcolor="#C0C0C0">
      <tr></tr>
    </table>
    <br>    
    <input type="submit" value="ENVIAR NOT&Iacute;CIA PARA O SITE" name="B1"></center>
    
    <script language="javascript1.2">editor_generate('yourFieldNameHere');
</script>
<p>
<script language="javascript1.2">
var config = new Object();    // create new config object

config.width = "90%";
config.height = "200px";
config.bodyStyle = 'background-color: white; font-family: "Verdana"; font-size: x-small;';
config.debug = 0;

// NOTE:  You can remove any of these blocks and use the default config!

config.toolbar = [
    ['fontname'],
    ['fontsize'],
    ['fontstyle'],
    ['linebreak'],
    ['bold','italic','underline','separator'],
//  ['strikethrough','subscript','superscript','separator'],
    ['justifyleft','justifycenter','justifyright','separator'],
    ['OrderedList','UnOrderedList','Outdent','Indent','separator'],
    ['forecolor','backcolor','separator'],
    ['HorizontalRule','Createlink','InsertImage','htmlmode','separator'],
    ['about','help','popupeditor'],
];

config.fontnames = {
    "Arial":           "arial, helvetica, sans-serif",
    "Courier New":     "courier new, courier, mono",
    "Georgia":         "Georgia, Times New Roman, Times, Serif",
    "Tahoma":          "Tahoma, Arial, Helvetica, sans-serif",
    "Times New Roman": "times new roman, times, serif",
    "Verdana":         "Verdana, Arial, Helvetica, sans-serif",
    "impact":          "impact",
    "WingDings":       "WingDings"
};
config.fontsizes = {
    "1 (8 pt)":  "1",
    "2 (10 pt)": "2",
    "3 (12 pt)": "3",
    "4 (14 pt)": "4",
    "5 (18 pt)": "5",
    "6 (24 pt)": "6",
    "7 (36 pt)": "7"
  };

//config.stylesheet = "http://www.domain.com/sample.css";
  
config.fontstyles = [   // make sure classNames are defined in the page the content is being display as well in or they won't work!
  { name: "headline",     className: "headline",  classStyle: "font-family: arial black, arial; font-size: 28px; letter-spacing: -2px;" },
  { name: "arial red",    className: "headline2", classStyle: "font-family: arial black, arial; font-size: 12px; letter-spacing: -2px; color:red" },
  { name: "verdana blue", className: "headline4", classStyle: "font-family: verdana; font-size: 18px; letter-spacing: -2px; color:blue" }

// leave classStyle blank if it's defined in config.stylesheet (above), like this:
//  { name: "verdana blue", className: "headline4", classStyle: "" }  
];

editor_generate('yourFieldNameHere2',config);
</script>

</form>

</body>
</html>



<% else
data = request.form("date1")
If data = "" Then data = date()
dia = DatePart("d", data)
If dia < 10 Then dia = "0"&dia
mês = DatePart("m", data)
If mês < 10 Then mês = "0"&mês
ano = DatePart("yyyy", data)
data = dia & "/" & mês & "/" & ano

titulo = request.form("name1")
titulo = Replace(request.form("name1"), "'", "''")
titulo = Replace(Request.Form("name1"), Chr(13), "<br>")

yourFieldNameHere = request.form("yourFieldNameHere")
yourFieldNameHere = Replace(Request.Form("yourFieldNameHere"), "'", "''")
yourFieldNameHere = Replace(Request.Form("yourFieldNameHere"), Chr(13), "<br>")

id =request.querystring("IP")

SQLstmt = "UPDATE blog SET titulo = '"& titulo &"', data = '"& data &"',    post = '"&yourfieldnamehere &"'  where id="&id
                         
'SQLstmt = "delete * from blog where id = "&id 

Set RS = conexao.execute(SQLstmt)
      
    'SQLstmt = "INSERT INTO blog (titulo,data,post)"
    'SQLstmt = SQLstmt & " VALUES (" 
    'SQLstmt = SQLstmt & "'" & titulo & "',"
    'SQLstmt = SQLstmt & "'" & data & "',"
    'SQLstmt = SQLstmt & "'" & yourFieldNameHere & "'"
    'SQLstmt = SQLstmt & ")"

    'Set RS = conexao.execute(SQLstmt)
    
    response.redirect "../envia_post_img_edit.asp?id="&id
%>


<%end if%>
<%end if%>
só lembrando no Localhost Fundiona Normalmente... procurei no Log de erros do Servidor e aparece isso
2006-11-28 13:05:21 W3SVC18122 SUN 72.36.208.19 GET /iframes/dados/Blog/htmlarea/edit_post.asp id=94|6|ASP_0175_:_80004005|Disallowed_Path_Characters 80 - 201.15.211.171 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+HbTools+4.8.2) ASPSESSIONIDQQRARDCT=FFGPKPACGMOCBNANEAAOGIOD;+ASPSESSIONIDSSRCRBCT=AGOBNFBCIKHNEDKFLOHDPMEA http://www.andrenogaroto.com.br/iframes/dados/Blog/editar_post.asp www.andrenogaroto.com.br 500 0 0 1595 609 265 

se alguém puder me ajudar desde já agradeço.. esse codigo está me dexando loco... :wacko:

Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Web Server at andrenogaroto.com.br 

ah desculpa

é esse erro que está dando

Link para o comentário
Compartilhar em outros sites

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...