Every time i go to my index or other links it shows Parse error : syntax error, unexpected T_LNUMBER in /home/u842009906/public_html/core/main.inc on line 28 .. Heres my code on main.inc <?php
function incfile($file,$d="")
{
while(!is_file($d.$file)){$d.="../";}
require($d.$file);
}
incfile('./core/register.inc');
incfile('./core/functions.inc');
incfile('./core/xhtml.inc');
incfile('./core/admin.inc');
incfile('./core/userinfo.inc');
incfile('./core/header.inc');
$databasehost="localhost";
$databaseuser="root";
$databasepass="rootpwd";
$databasename="mydatabase";
mysql_connect($databasehost, $databaseuser, $databasepass) or
die("Could not connect to the database");
mysql_select_db($databasename);
putenv("TZ=".timezone());
//if($username=="")$username="guest";
$key0="accesskey=\"0\"";
$zerokey="<b>0 </b>";
$key1="accesskey=\"1\"";
$onekey="<b>1 </b>";
$key2="accesskey=\"2\"";
$twokey="<b>2 </b>";
$key3="accesskey=\"3\"";
$threekey="<b>3 </b>";
$key4="accesskey=\"4\"";
$fourkey="<b>4 </b>";
$key5="accesskey=\"5\"";
$fivekey="<b>5 </b>";
$key6="accesskey=\"6\"";
$sixkey="<b>6 </b>";
$key7="accesskey=\"7\"";
$sevenkey="<b>7 </b>";
$key8="accesskey=\"8\"";
$eightkey="<b>8 </b>";
$key9="accesskey=\"9\"";
$ninekey="<b>9 </b>";
$keyS="accesskey=\"*\"";
$Skey="<b>* </b>";
$keN="accesskey=\"#\"";
$Nkey="<b># </b>";
$row_users=mysql_fetch_array(mysql_query("select * from users where username='".getnick_sid($sid)."'"));
$row_profiles=mysql_fetch_array(mysql_query("selec t * from profiles where uid='".getuid_sid($sid)."'"));
$row_quiz=mysql_fetch_array(mysql_query("select * from quiz"));
$count_popup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM popups WHERE unread='1' AND toid='".getuid_sid($sid)."'"));
$query="select * from settings";
$result=mysql_query($query);
$num_rows=mysql_num_rows($result);
$row=mysql_fetch_array($result);
$sitename=sitename();
$align=align();
$vars=$_GET;
function isreq($str)
{
$req="a.p.b.g";
$pos=strpos($req, $str);
if($pos===false){return false;}
return true;
}
foreach($vars as $var=>$val){
if(!isreq($var)){
$uname=$var;
break;
}
}
if(end(explode("/",$_SERVER['SCRIPT_FILENAME']))=="index.php"&&isuser(getuid_nick($uname))){
header("location: ./wapsites/wapsite.php?$uname");
exit;
}
$total="3";
$file_type=".png";
$start="1";
$random=mt_rand($start, $total);
$image_name=$random . $file_type;
$logo="logo_".$image_name;
if(mobile())$logo="logo_".$image_name."&f=png& amp;w=150";
$banner="banner_".$image_name;
if(mobile())$banner="banner_".$image_name."&f= png&w=128";
$ver="<marquee loop=\"800\" bgcolor=\"red\" direction=\"left\">$sitename</marquee>";
$copyright="© ".sitename()." ".gmdate("Y");
$emailaddress=email(site);
$max_buds=100;
?> whats wr0ng on my c0de?, that is wapdesire script. Tnx a l0t
function incfile($file,$d="")
{
while(!is_file($d.$file)){$d.="../";}
require($d.$file);
}
incfile('./core/register.inc');
incfile('./core/functions.inc');
incfile('./core/xhtml.inc');
incfile('./core/admin.inc');
incfile('./core/userinfo.inc');
incfile('./core/header.inc');
$databasehost="localhost";
$databaseuser="root";
$databasepass="rootpwd";
$databasename="mydatabase";
mysql_connect($databasehost, $databaseuser, $databasepass) or
die("Could not connect to the database");
mysql_select_db($databasename);
putenv("TZ=".timezone());
//if($username=="")$username="guest";
$key0="accesskey=\"0\"";
$zerokey="<b>0 </b>";
$key1="accesskey=\"1\"";
$onekey="<b>1 </b>";
$key2="accesskey=\"2\"";
$twokey="<b>2 </b>";
$key3="accesskey=\"3\"";
$threekey="<b>3 </b>";
$key4="accesskey=\"4\"";
$fourkey="<b>4 </b>";
$key5="accesskey=\"5\"";
$fivekey="<b>5 </b>";
$key6="accesskey=\"6\"";
$sixkey="<b>6 </b>";
$key7="accesskey=\"7\"";
$sevenkey="<b>7 </b>";
$key8="accesskey=\"8\"";
$eightkey="<b>8 </b>";
$key9="accesskey=\"9\"";
$ninekey="<b>9 </b>";
$keyS="accesskey=\"*\"";
$Skey="<b>* </b>";
$keN="accesskey=\"#\"";
$Nkey="<b># </b>";
$row_users=mysql_fetch_array(mysql_query("select * from users where username='".getnick_sid($sid)."'"));
$row_profiles=mysql_fetch_array(mysql_query("selec t * from profiles where uid='".getuid_sid($sid)."'"));
$row_quiz=mysql_fetch_array(mysql_query("select * from quiz"));
$count_popup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM popups WHERE unread='1' AND toid='".getuid_sid($sid)."'"));
$query="select * from settings";
$result=mysql_query($query);
$num_rows=mysql_num_rows($result);
$row=mysql_fetch_array($result);
$sitename=sitename();
$align=align();
$vars=$_GET;
function isreq($str)
{
$req="a.p.b.g";
$pos=strpos($req, $str);
if($pos===false){return false;}
return true;
}
foreach($vars as $var=>$val){
if(!isreq($var)){
$uname=$var;
break;
}
}
if(end(explode("/",$_SERVER['SCRIPT_FILENAME']))=="index.php"&&isuser(getuid_nick($uname))){
header("location: ./wapsites/wapsite.php?$uname");
exit;
}
$total="3";
$file_type=".png";
$start="1";
$random=mt_rand($start, $total);
$image_name=$random . $file_type;
$logo="logo_".$image_name;
if(mobile())$logo="logo_".$image_name."&f=png& amp;w=150";
$banner="banner_".$image_name;
if(mobile())$banner="banner_".$image_name."&f= png&w=128";
$ver="<marquee loop=\"800\" bgcolor=\"red\" direction=\"left\">$sitename</marquee>";
$copyright="© ".sitename()." ".gmdate("Y");
$emailaddress=email(site);
$max_buds=100;
?> whats wr0ng on my c0de?, that is wapdesire script. Tnx a l0t
Comment