Parse error: syntax error, unexpected T_LNUMBER in D:\PortableAppsMenu\Documentos\server2go\WWW\livrodevisitas\Index.php on line 381
olhe o script e diga qual o erro
<html> <head> <TITLE><? echo "WS Editions - Livro de Visitas" ?></TITLE> <STYLE> .ddgb_wrapper { font-family: Arial, Helvetica, sans-serif; padding: 20px; font-size: 90%; } .ddgb_wrapper a img { border: none; } .ddgb_wrapper a { color: #005abe; } .ddgb_wrapper a:hover { color: #CC3366; } .ddgb_entry { background: #F8F8F8; border: 1px solid #BBBBBB; margin: 0 0 15px 0; padding: 8px 10px 8px 10px; text-align: left; } .mod { background: #005abe; color: #FFFFFF; display: inline; padding: 1px 10px 1px 10px; margin-right: 10px; } .mod a { color: #FFFFFF; } .mod a:hover { color: #CCCCCC; } .entry p { margin: 0 0 8px 0;; padding: 0; line-height: 130%; color: #444444; } .entry h1 { margin: 3px 0 0 0; padding: 0; font-size: 100%; color: #555555; letter-spacing: 1px; font-weight: bold; } .info { font-size: 90%; color: #555555; float: right; margin: 0 0 5px 10px; text-align: right; line-height: 140%; } .admin { font-size: 85%; color: #555555; text-align: right; padding: 3px 8px 3px 8px; border: 1px solid #BBBBBB; background: #E0E0E0; } .h { font-weight: bold; } .entrybox { text-align: left; } .entrybox h1 { margin: 0; padding: 0; font-size: 140%; color: #777777; letter-spacing: 1px; } .entrybox h2 { margin: 0; padding: 0; font-size: 140%; color: #FF4444; letter-spacing: 1px; } .entrybox input { background: #F8F8F8; border: 1px solid #BBBBBB; } .entrybox textarea { background: #F8F8F8; border: 1px solid #BBBBBB; } .entrybox table { font-size: 90%; color: #666666; } .entrybox li { margin: 0 0 5px 0; } .nav { text-align: left; } .smiles { font-weight: bold; font: 110% 'Courier New', Courier, Fixed; color: #505050; margin-bottom: 10px; } .smiles img { margin: 2px 8px 0 0; } FONT,body,td,table {font-family : Arial;font-size : 11px;} b { font-family : Arial; font-weight : bold; } a,a:hover,.link{font-family: arial;font-size: 8pt;font-color: 66666;} input, option { border-color:#3C3C3C; border-width:1; font-family:tahoma,verdana, Helvetica; font-size:11; background-color:#eeeeee; color:#3C3C3C; } select { border-color:#3C3C3C; border-width:1; font-family:Arial, Helvetica; font-size:12px; color:#3C3C3C; background-color:#FFFFFF; } textarea { border-color:#3C3C3C; border-width:1; overflow:hidden; font-family:tahoma,Arial, Helvetica; font-size:12; color:#000000; background-color:#eeeeee; } input.submit { background-color: #e0e0e0; font-weight: bold; border-bottom: 1; border-color: #3c3c3c; background: #e0e0e0; color: 3C3C3C; display: compact; } A{ color : #0066CC; text-decoration : none; } A:visited { color : Gray; } A:hover { color : #0099FF; } </STYLE> </head> <body bgcolor="#FFFFFF" leftmargin="0" topmargin="30" marginwidth="0" marginheight="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td bgcolor="#005599"> <CENTER> <FONT color="#000000" face=Verdana> <B>Assine nosso livro de visitas.</B> </FONT> </CENTER></td> </tr> <tr> <td height="50"></td> </tr> <tr> <td><form action="<?PHP_SELF?>" method="post"> <table width="498" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td>Nome</td> <td> <input name="name" size=30 value=""> </td> </tr> <tr> <td height="24">Avatar</td> <td><input name="img" type="file" class="nav" id="img" style="submit" title="Procurar" size="45"></td> </tr> <tr> <td>E-Mail</td> <td> <input name="email" size=30 value=""> </td> </tr> <tr> <td rowspan="2" valign="top">Mensagem:</td> <td height="23">::-) =<img src="http://localhost/livrodevisitas/smile.gif"> :-( =<img src="http://localhost/livrodevisitas/notsmile.gif"> :-o =<img src="http://localhost/livrodevisitas/osmile.gif"> :-P =<img src="http://localhost/livrodevisitas/tongue.gif">;-) =<img src="http://localhost/livrodevisitas/zwinker.gif"> :-x =<img src="http://localhost/livrodevisitas/xsmile.gif"></td> </tr> <tr> <td><textarea name="message" cols=50 rows=10 wrap=soft></textarea></td> </tr> <tr> <td valign="top"> <input type="hidden" value="ok" name="send_status"> </td> <td> <input type="submit" value="Assinar Guestbook" name="submit"> <input type="submit" value="Ler Guestbook" name="view_guestbook"> </td> </tr> </table> </form> </td> </tr> <tr> <td> <center> <? /******************************************************************/ if ($name == "" || $email == "" || $message == "") { echo "Veja as assinaturas"; for ($i=0; $i<3; $i++) { echo "."; sleep(1); flush(); } $filesize = filesize("BD.dat"); $file = fopen("BD.dat","r"); $buffer = fread($file,$filesize); /********************** SMILE PARSING **(beta)********************/ $smile_parse1 = str_replace(":-)","<IMG SRC=smile.gif border=\"0\">",$buffer); $smile_parse2 = str_replace(":-P","<IMG SRC=tongue.gif border=\"0\">",$smile_parse1); $smile_parse3 = str_replace(":-p","<IMG SRC=tongue.gif border=\"0\">",$smile_parse2); $smile_parse4 = str_replace(":P","<IMG SRC=tongue.gif border=\"0\">",$smile_parse3); $smile_parse5 = str_replace(":)","<IMG SRC=smile.gif border=\"0\">",$smile_parse4); $smile_parse6 = str_replace(":-(","<IMG SRC=notsmile.gif border=\"0\">",$smile_parse5); $smile_parse7 = str_replace(":(","<IMG SRC=notsmile.gif border=\"0\">",$smile_parse6); $smile_parse8 = str_replace(":-o","<IMG SRC=osmile.gif border=\"0\">",$smile_parse7); $smile_parse9 = str_replace(";-)","<IMG SRC=zwinker.gif border=\"0\">",$smile_parse8); $smile_parse10 = str_replace(";)","<IMG SRC=zwinker.gif border=\"0\">",$smile_parse9); /********************** CENSURES **************************/ $smile_parse11 = str_replace("xxxxxx","<IMG SRC=censured.gif border=\"0\">",$smile_parse10); $smile_parse12 = str_replace("xxxxxx","<IMG SRC=censured.gif border=\"0\">",$smile_parse11); $smile_parse13 = str_replace("xxxxxx","<IMG SRC=censured.gif border=\"0\">",$smile_parse12); $smile_parse14 = str_replace("xxxxxx","<IMG SRC=censured.gif border=\"0\">",$smile_parse13); $smile_parse15 = str_replace("xxxxxx","<IMG SRC=censured.gif border=\"0\">",$smile_parse14); $smile_parse16 = str_replace("bicha","<IMG SRC=censured.gif border=\"0\">",$smile_parse15); $buffer_parsed = str_replace(":-x","<IMG SRC=xsmile.gif border=\"0\">",$smile_parse16); echo "$buffer_parsed"; $pedacos = explode("/",$form_url); $num_pedacos = count($pedacos)-3; for ($i=0;$i<$num_pedacos;$i++) { $endereco = "$endereco$pedacos[$i]/"; } copy($form_imagem,"img/".date("YmdHis").".jpg"); echo "<script>opener.txtFileName.value='".$endereco."img/".date("YmdHis").".jpg';</script>"; fclose($file); } else if ($send_status == "ok") { /********* GET VARIABLE **********/ $filesize = filesize("BD.dat"); $file = fopen("BD.dat","r"); $buffer = fread($file,$filesize); $buffer_parsed = str_replace(":-)","<IMG SRC=smile.gif border=0",$buffer); fclose($file); $data = getdate(); $newdata = "$data[mday]/$data[mon]/$data[year]"; /******* WRITING MESSAGE TO FILE ****/ $file = fopen("BD.dat","w"); $parsed_message = strip_tags($message,"<a>,<i>"); $parsed_message_br = str_replace("\n","<br>",$parsed_message); $today = date( "Ymd", time() ); $message_table ="<TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" bgcolor=EEEEEE width="500"> <tr> <td height="40" colspan="2"><img src="\"top.gif\"" width="\"100%\"" height="\"5\"" border="\"0\"" /><br /> </td> <td width="272" align="right" valign="bottom"><i>$today</i></td> </tr> <tr> <td width="126" rowspan="3"><img src='".$endereco."img/".date("YmdHis").".jpg' alt='$nome' width='48' height='48' /></td> <td width="96"><b>Nome:</b></td> <td>$name</td> </tr> <tr> <td width="96"><b>E-Mail:</b></td> <td><a href="\"mailto:$email\"">$email</a></td> </tr> <tr> <td width="96"><b>Mensagem:</b></td> <td>$parsed_message_br</td> </tr> <tr> <td><img src="\"bottom.gif\"" width="\"100%\"" height="\"13\"" border="\"0\"" /></td> <td colspan="2"> </td> </tr> </TABLE>"; fputs($file,"$message_table \n $buffer"); fclose($file); } else if ($view_guestbook == "View Guestbook"){ /************ READING OUT **************/ $filesize = filesize("BD.dat"); $file = fopen("BD.dat","r"); $buffer = fread($file,$filesize); $buffer_parsed = str_replace(":-)","<IMG SRC=smile.gif border=0",$buffer); echo "$buffer_parsed"; fclose($file); /************************************/ } $copyright = " <span class=\"link\">WS Editions, Copyright by <A HREF=\"http://localhost\" target=\"_blank\">Wyllid S.</A>"; ?></center> </td> </tr> </tr> <tr> <td height="50"></td> </tr> <tr> <td bgcolor="#005599"> <CENTER> <FONT color="#000000"><?echo"$copyright"?></FONT> </CENTER></td> </tr> </table> <p> </p> </body> </html>
Edição feita por: Wyllid S., 16/07/2009, 23:28.