Please fix this error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Please fix this error

    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."&amp;f=png& amp;w=150";
    $banner="banner_".$image_name;
    if(mobile())$banner="banner_".$image_name."&amp;f= png&amp;w=128";
    $ver="<marquee loop=\"800\" bgcolor=\"red\" direction=\"left\">$sitename</marquee>";
    $copyright="&#169; ".sitename()." ".gmdate("Y");
    $emailaddress=email(site);
    $max_buds=100;
    ?> whats wr0ng on my c0de?, that is wapdesire script. Tnx a l0t

    #2
    Put the database . .
    .info

    And plz dont post this catagory . . This for script adding catagory

    Comment


      #3
      Sory man busy

      Comment


        #4
        @slcash, how to do that?tnx..im newbie

        Added after 2 minutes:

        This is my database u842009906_str8wap ..
        Last edited by mjferrer; 08.03.12, 14:09.

        Comment


          #5
          Originally posted by slcash View Post
          Put the database . .
          .info

          And plz dont post this catagory . . This for script adding catagory
          maybe he should put his control panel username and password in aswell ?

          Added after 4 minutes:

          line 28 is:
          PHP Code:
          $key0="accesskey=\"0\""
          now nothing looks wrong to this line at all
          however i did experience problems with numbers in strings on one server before....

          you could try changing it to:
          PHP Code:
          $keyzero="accesskey=\"0\""
          to see if that helps
          Last edited by something else; 08.03.12, 14:41.

          Comment


            #6
            Originally posted by mjferrer View Post
            @slcash, how to do that?tnx..im newbie

            Added after 2 minutes:

            This is my database u842009906_str8wap ..
            It is easy bro. .
            . .
            $detabasehost=localhost
            $detabaseuser=type your phpmyadmin user name
            $detabasePass=your phpmyadmin password
            $databasename= u842009906_str8wap , . . . .

            Comment

            Working...
            X