Ir para conteúdo
Fórum Script Brasil

byzk8

Membros
  • Total de itens

    7
  • Registro em

  • Última visita

Tudo que byzk8 postou

  1. byzk8

    Ssh + Php

    Oi gente beleza??/ Queria saber se é possivel atraves do PHP pegar informações do terminal do ssh e enviar por e-mail... to beem perdido e não sei por onde começar .... se alguém me der uma luz, pode ate não ser por php... vlw gente brigado!!
  2. byzk8

    Na Internet não Roda

    Sim.. já Dei permissão total pra todos usuarios só lembrando na minha maquina esta normal o problema é quando esta no servidor
  3. byzk8

    Na Internet não Roda

    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
  4. byzk8

    Na Internet não Roda

    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:
  5. byzk8

    T9 For Windows

    bOm alguém poderia remover esse aqui já tenho as respostas que eu preciso muito obrigado
  6. byzk8

    Case Incorreto

    OPAAAAA hehehe Deu Certoooo!! Vlw fercosmig, brigadaum cara!!!
  7. byzk8

    Case Incorreto

    O meu codigo é esse aqui ó <%Server.ScriptTimeOut = 3 Dados = "DRIVER={Microsoft Access Driver (*.mdb)}; " & "DBQ=" & server.mappath("BD.mdb") set conexao=Server.CreateObject("ADODB.Connection") conexao.Open "DBQ=D:\www\cal\BD.mdb;Driver={Microsoft Access Driver (*.mdb)}"%> <title> - Agenda </title> </style> <body bgcolor="#FFFFFF"> <div align="left"> <% Dim conexao,str,rs str="SELECT * from evento order by data ASC" set rs=conexao.execute(str) mês = request.form("mês") ano = request.form("ano") If mês = "" then mês = month(now) End If If ano = "" then ano = year(now) End If while not rs.EOF%> <%datames = cstr(month(rs("data"))) dataano = cstr(year(rs("data")))%> <%if datames = mês and dataano = ano then mesex = cstr(month(rs("data"))) select case mesnome case mesex = 1 Response.write("Janeiro") case mesex = 2 Response.write("Fevereiro") case mesex = 3 Response.write("Março") case mesex = 4 Response.write("Abril") case mesex = 5 Response.write("Maio") case mesex = 6 Response.write("Junho") case mesex = 7 Response.write("Julho") case mesex = 8 Response.write("Agosto") case mesex = 9 Response.write("Setembro") case mesex = 10 Response.write("Outubro") case mesex = 11 Response.write("Novembro") case mesex = 12 Response.write("Dezembro") end select mesex = datames %> <table width="300" border="2" style="border-bottom-width:medium"> <tr> <td> <%=rs("data")%> </td> </tr> <tr> <td> <%=rs("Titulo")%> </td> </tr> <tr> <td> <%=rs("Detalhe")%> </td> </tr> </table> <BR> <%end if%> <% rs.movenext()%> <%wend%> <form name="form" method="post" action="Cal_Novo.Asp"> <select name="mês" size="1" > <option value="1" selected>Jan</option> <option value="2">Fev</option> <option value="3">Mar</option> <option value="4">Abr</option> <option value="5">Mai</option> <option value="6">Jun</option> <option value="7">Jul</option> <option value="8">Ago</option> <option value="9">Set</option> <option value="10">Out</option> <option value="11">Nov</option> <option value="12">Dez</option> </select> <select name="ano" size="1"> <option selected> <%=year(now())%> </option> <% do while y <= 6%> <option> <%=year(now())+y%> </option> <%y = y + 1 loop%> </select> <input type="submit" name="Submit" value="Ver!"> </form> <a href="Login.asp">Novo Evento</a> O case não retorna certo... quando o mês é igual a 1 ele retorna "fevereiro" quando e diferente de um ele retorna "janeiro"??? alguém poderia me dizer o que está acontecendo??? não estou entendendo o porque disso?? valewwwww
×
×
  • Criar Novo...