Salve ho uno script php di login e quando inserisco un bannere di altervista mi da questo errore:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /membri/publitek/login/login.php on line 218
vi posto tutto il codice:
il file si chiama login.php
Codice PHP:
<?php
include "config.php";
include "funzioni.php";
$DB = new DB();
session_start();
unset($_SESSION['login']);
unset($_SESSION['psw']);
// Si connette
$DB->connect();
$login = trim(addslashes($_POST[login]));
$pass = trim(addslashes($_POST[psw]));
if ($login=='' or $pass==''){
echo'<title>Publitek - Forum</title>
<style>
#divtabella {width:850;margin:auto auto auto auto;}
#left {width:100;text-align:left;}
#leftside *{margin:0 5 5 5;}
#leftside {height:900;}
#leftside h1{font-size:18;margin:0 auto 7 auto;border-bottom:#000 solid 1px;}
#leftside h2{font-size:14;margin:3 auto 6 auto;border-bottom:#000 solid 1px;}
#leftside h3{font-size:12;margin:3 auto 5 auto;border-bottom:#000 solid 1px;}
#leftside h4{font-size:11;margin:3 auto 4 auto;border-bottom:#000 solid 1px;}
#leftside a:visited{text-decoration:none;color:#000;}
#leftside a:link{text-decoration:none;color:#000;}
#leftside a{text-decoration:none;color:#000;}
#leftside a:hover{text-decoration:none;color:#0000FF;}
#right {width:100;text-align:left;}
#rightside *{margin:0 5 5 5;}
#rightside #datiutente a{margin:0}
#rightside {height:900;}
#rightside h1{font-size:18;margin:0 auto 7 auto;border-bottom:#000 solid 1px;}
#rightside h2{font-size:14;margin:3 auto 6 auto;border-bottom:#000 solid 1px;}
#rightside h3{font-size:12;margin:3 auto 5 auto;border-bottom:#000 solid 1px;}
#rightside h4{font-size:11;margin:3 auto 4 auto;border-bottom:#000 solid 1px;}
#rightside a:visited{text-decoration:none;color:#000;}
#rightside a:link{text-decoration:none;color:#FF0000;}
#rightside a{text-decoration:none;color:#000;}
#rightside a:hover{text-decoration:none;color:#FFF;}
#sponsortop{text-align:center;}
#pagina {width:530px;margin:0;height:900;}
*{text-align:center;font-family:verdana,sans-serif;font-size:12px;}
body{text-align:center;background:#FFF url(sfondo1.gif) left top repeat-x;}
ul{list-style-image: url(list.gif);}
li{margin:5;}
#pagina #contenuto {border:#000 solid 1px;padding:10}
#pagina #contenuto h2{font-size:22;margin:12 auto 14 10;}
#pagina #contenuto h3{font-size:18;margin:11 auto 12 20;}
#pagina #contenuto h4{font-size:16;margin:10 auto 10 30;}
#pagina #titolo{
font-size:46px;
background:#000;
padding:10 10 10 10;
background-color: #FFFFFF;
text-align: center;
}
#pagina #contenuto a:visited{text-decoration:none;color:#F00;}
#pagina #contenuto a:link{text-decoration:none;color:#F00;}
#pagina #contenuto a{text-decoration:none;color:#F00;}
#pagina #contenuto a:hover{text-decoration:none;color:#000;}
#pagina #fondo{text-align:right;font-style:oblique;font-size:10px;}
#pagina #navbar {text-align:center;font-size:15;}
#pagina #navbar a:visited{text-decoration:none;color:#FFF;background:#000;padding:5;}
#pagina #navbar a:link{text-decoration:none;color:#FFF;background:#000;padding:5;}
#pagina #navbar a{text-decoration:none;color:#FFF;background:#000;padding:5;}
#pagina #navbar a:hover{text-decoration:none;color:#000;background:#FFF;padding:5;}
#pagina #ultimiprogrammi {background:#EEE;border:#000 solid 1px;padding:4;}
#pagina #ultimerecensioni {background:#EEE;border:#000 solid 1px;padding:4;}
input{background:#000;color:#FFF;}
select{background:#000;color:#FFF;}
textarea{background:#000;color:#FFF;}
#chat {text-align:center;margin:10;}
#sponsorbottom {text-align:center;margin:7;}
#mailus {padding:5;border:#000 solid 1px;margin:7;}
#utenti {margin:10;padding:5;text-align:center;font-size:14;}
#utenti table{border:#000 solid 1px;border-collapse:collapse;}
#utenti td{border:#000 solid 1px;border-collapse:collapse;}
#utenti table *{padding:5;}
#elencoprog table{border:#000 solid 1px;border-collapse:collapse;}
#elencoprog td {border:#000 solid 1px;border-collapse:collapse;}
#elencoprog table *{padding:5;}
#cercaprog {border:#000 solid 1px; padding:5;}
#accountinfo table{border:#000 solid 1px;border-collapse:collapse;}
#accountinfo td {border:#000 solid 1px;border-collapse:collapse;}
#accountinfo table *{padding:5;}
#affiliati table{border:#000 solid 1px;border-collapse:collapse;}
#affiliati td {border:#000 solid 1px;border-collapse:collapse;}
#affiliati table *{padding:5;}
.Stile1 {color: #FF0000}
.Stile5 {
font-size: 10px;
color: #000033;
}
.Stile6 {
font-size: 16px;
color: #000066;
}
.Stile7 {font-size: 9px}
.Stile8 {font-size: 14px; }
.Stile9 {font-size: 14px; font-weight: bold; }
</style> </head>
<body>
<div id="sponsortop">
<script type="text/javascript">
//<![CDATA[
document.write(<s+cript type=text/javascript src=http://eu.ad.altervista.org/js.ad/size=728X90/r=+new Date().getTime()+><\/s+cript>);
//]]>
</script>
</div>
<hr>
<div id="divtabella">
<table id="tabella">
<td width="100" height="912" bordercolor="#FFFFFF" id="left">
<div id="leftside">
<h1 align="center" class="Stile1">Menu:</h1>
<a href="http://publitek.altervista.org/">Homepage</a><br>
<a href="http://publitek.altervista.org/credits.html">Credits</a><br>
<a href="http://publitek.altervista.org/forum.html">Forum</a><br>
<a href="http://publitek.altervista.org/chat.html">Chat</a><br>
<a href="mailto:publitek@altervista.org">Contattaci</a><br>
<a href="http://publitek.altervista.org/palinsesto.html">Programmi TV</a><br>
<a href="/">Meteo</a><br>
<a href="http://ad.zanox.com/ppc/?5826957C2139241479T">Shop</a><br>
<br>
<hr>
<br>
<div id="sponsorleft">
<script type="text/javascript">
//<![CDATA[
[COLOR=DarkSlateBlue]document.write(<s+cript type="text/javascript src=http://eu.ad.altervista.org/js.ad/size=120X600/r=+new Date().getTime()+></s+cript>);[/COLOR]//]]>
</script>
</div>
</div> </td>
<td width="580" align="center" id="centertd">
<div id="pagina">
<div id="titolo">
<div align="center">
<p><img src="LOGO.jpg" alt="logo" height="57" /></p>
<p>
<marquee>
Benvenuti in <span class="Stile1">publitek.altervista.org</span> - Il Portale più cool del web!!
</marquee>
</p>
<p align="center"> </p>
</div></div>
<div id="navbar">
<a href="http://progsumisura.altervista.org/"></a><a href="http://progsumisura.altervista.org/programmi/"></a></div>
<div id="contenuto">
<p class="Stile5">ISCRIVITI ALLA NEWSLETTER E SARAI SEMPRE AGGIORNATO *
<script type="text/javascript" src="http://www.altervista.org/js_tags/newsletter.js"></script>
</p>
<div id="ultimiprogrammi">
<p class="Stile6"><h2 class="Stile1">Login:</h2>
<div id="login">
<form action="http://publitek.altervista.org" method="post">
Username:<br>
<input type="text" name="username"><br>
Password:<br>
<input type="password" name="password"><br>
<input type="submit" name="submit" value="Login">
</form>
<a href="">Registrati!</a><br>
<a href="">Password dimenticata?</a><br>
<br>
</div></p>
</div>
<br>
<div id="ultimerecensioni">
<br>
<a href="http://www.telelavorando.it/autosurf/register.php?referer=1" target="_blank"><img src="http://www.telelavorando.it/banners/Abanner01.gif" width="468" height="60" border="0"></a>
<br>
</div>
<div id="sponsorbottom">
</div>
</div>
<div id="fondo">Sito web by <a href="mailto:publitek@altervista.org">SCweb</a></div>
</div>
<script type="text/javascript">
var counter_style = 0;
</script>
</td>
<td width="150">
<div id="rightside">
<!-- spazio per la div login -->
<script type="text/javascript">
//<![CDATA[
document.write("<s"+"cript type="text/javascript" src="http://eu.ad.altervista.org/js.ad/size="125X125/r="+"new Date().getTime()"+""><\/s"+"cript>");
//]]>
</script>
<h2 align="center" class="Stile1">Votaci:</h2>
<div id="voto">
<script type="text/javascript" src="http://www.altervista.org/js_tags/top100.js"></script></div>
<hr>
<script type="text/javascript">
document.write('<s'+'cript type="text/javascript" src="http://eu.ad.altervista.org/js.ad/size=120X600/r='+new Date().getTime()+'"><\/s'+'cript>');
</script>
</div> </td>
</table>
</div>
</body>
</html>';}
else
{
$psw_per_db = criptpass($pass);
$verifico_user = mysql_query("SELECT *
FROM `utenti`
WHERE `nick` ='$login'
AND `pass` = '$psw_per_db' and `stato` = '1'
LIMIT 0 , 1");
$ok_login = mysql_num_rows($verifico_user);
if($ok_login=="1")
{
$_SESSION[login] = $login;
$_SESSION[psw]= $psw_per_db;
Echo "<meta http-equiv=\"Refresh\" content=\"3; URL=set.php\">Login effettuato correttamente . <a href=set.php>Clicca qui per entrare</a>";
}
else
{
Echo "<meta http-equiv=\"Refresh\" content=\"3; URL=login.php\">Login incorretto o utente che non ha ancora completato il processo di registrazione. In questo caso controlla la tua email<a href=login.php>Premi qui per riprovare</a>";
}
}
vi prego di aiutarmi.
grazie