I TRY N TRY N TRY BUT ALWAYS END UP WITH A PARSE EROR CAN ANYONE TELL ME HOW TO FIX IT??
Parse error: parse error, unexpected '{' in /home/www/***************/popus.php on line 59
<?php
include("config.php");
include("core.php");
if($mime== WEB)
{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
}else{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
}
$bcon = connectdb();
if (!$bcon)
{
if($mime== WEB)
{
echo dberror($mime);
}else{
echo dberror($mime);
}
}
$getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
$uth = $getuthm[0];
if(!$uth=="")
{
$uthm = "$uth";
}else{
$uthm = "default.css";
}
$action = $_GET['action'];
$ses = $_GET['ses'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if((islogged($ses)==false)||($uid==0))
{
if($mime== WEB)
{
echo notlogged($mime);
}else{
echo notlogged($mime);
}
}
if(isipbanned($uip,$ubr))
{
if(!isshield(getuid_ses($ses))
{
if($mime== WEB)
{
echo useripbanned($mime,$uip,$ubr);
}else{
echo useripbanned($mime,$uip,$ubr);
}
}
}
//echo isbanned($uid);
if(isbanned($uid))
{
if($mime== WEB)
{
echo userbanned($mime,$uid);
}else{
echo userbanned($mime,$uid);
}
}
else if($action=="send")
{
addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
if($mime== WEB)
{
echo webhead($uthm,$stitle);
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
$tm = time();
$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."',
byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&ses=$ses\">Home</a>";
echo "</p>";
echo webfoot();
exit();
}else{
echo waphead($stitle);
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
$tm = time();
$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&ses=$ses\">Home</a>";
echo "</p>";
echo wapfoot();
exit();
}
else if($action=="sendto")
{
$who = $_get['who'];
addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
if($mime== WEB)
{
echo webhead($uthm,$stitle);
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "SEND<go href=\"popus.php?action=send&who=$who&ses= $ses\"
method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go>
";
echo "
-
<a href=\"index.php?action=main&ses=$ses\">Home</a>
";
}
echo "</p>";
echo webfoot();
}else{
echo waphead($stitle);
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<anchor>SEND<go href=\"popus.php?action=send&who=$who&ses= $ses\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&ses=$ses\">Home</a>
";
}
echo "</p>";
echo wapfoot();
}
}
?>
Parse error: parse error, unexpected '{' in /home/www/***************/popus.php on line 59
<?php
include("config.php");
include("core.php");
if($mime== WEB)
{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
}else{
echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
}
$bcon = connectdb();
if (!$bcon)
{
if($mime== WEB)
{
echo dberror($mime);
}else{
echo dberror($mime);
}
}
$getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
$uth = $getuthm[0];
if(!$uth=="")
{
$uthm = "$uth";
}else{
$uthm = "default.css";
}
$action = $_GET['action'];
$ses = $_GET['ses'];
$page = $_GET['page'];
$who = $_GET['who'];
$pmid = $_GET['pmid'];
if((islogged($ses)==false)||($uid==0))
{
if($mime== WEB)
{
echo notlogged($mime);
}else{
echo notlogged($mime);
}
}
if(isipbanned($uip,$ubr))
{
if(!isshield(getuid_ses($ses))
{
if($mime== WEB)
{
echo useripbanned($mime,$uip,$ubr);
}else{
echo useripbanned($mime,$uip,$ubr);
}
}
}
//echo isbanned($uid);
if(isbanned($uid))
{
if($mime== WEB)
{
echo userbanned($mime,$uid);
}else{
echo userbanned($mime,$uid);
}
}
else if($action=="send")
{
addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
if($mime== WEB)
{
echo webhead($uthm,$stitle);
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
$tm = time();
$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."',
byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&ses=$ses\">Home</a>";
echo "</p>";
echo webfoot();
exit();
}else{
echo waphead($stitle);
echo "<p align=\"center\">";
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
$tm = time();
$res = mysql_query("INSERT INTO fun_pops SET text='".$msg."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
echo "<img src=\"images/sent.gif\" alt=\"O\"/>
";
echo "Popup Message Sent to $whonick!
";
echo "
---
<a href=\"index.php?action=main&ses=$ses\">Home</a>";
echo "</p>";
echo wapfoot();
exit();
}
else if($action=="sendto")
{
$who = $_get['who'];
addonline(getuid_ses($ses),"Sending PoP-Up MSG","");
if($mime== WEB)
{
echo webhead($uthm,$stitle);
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "SEND<go href=\"popus.php?action=send&who=$who&ses= $ses\"
method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go>
";
echo "
-
<a href=\"index.php?action=main&ses=$ses\">Home</a>
";
}
echo "</p>";
echo webfoot();
}else{
echo waphead($stitle);
echo "<p align=\"center\">";
echo "$getbuttons
";
$who = $_get['who'];
$whonick = getnick_uid($who);
$byuid = getuid_ses($ses);
echo "<input name=\"msg\" maxlength=\"150\"/>
";
echo "<anchor>SEND<go href=\"popus.php?action=send&who=$who&ses= $ses\" method=\"post\">";
echo "<postfield name=\"msg\" value=\"$(msg)\"/>";
echo "</go></anchor>
";
echo "
-
<a href=\"index.php?action=main&ses=$ses\">Home</a>
";
}
echo "</p>";
echo wapfoot();
}
}
?>
Comment