creating a page to turn links off

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

    creating a page to turn links off

    can some one tell me where i gone wrong on this please

    Code:
    <?php
    define('WCS',true);
    include('../core/main.inc');
    header_type();
    cleardata();
    if(ipbanned(ip(),browser())){
    if(!shield(getuid_sid($sid))){
    echo head_tag("Ip Blocked!!!",0,0);
    echo ipbanned_msg();
    echo foot_tag();
    exit();
    }
    }
    if(!islogged($sid)){
    echo head_tag("Error!!!",0,0);
    echo session_expired();
    echo foot_tag();
    exit();
    }
    if(banned(getuid_sid($sid))){
    echo head_tag("Error!!!",1,getnick_sid($sid));
    echo banned_msg($sid);
    echo foot_tag();
    exit();
    }
    mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");
    
    /////////////////////////SITE SETTINGS/////////////////////////
    
    if($update==1)
    {
    addonline(getuid_sid($sid),"Updating Link Settings","");
    echo head_tag(getnick_sid($sid)."@Updating Link Settings",1,getnick_sid($sid));
    $title="<b>Updating Site Settings</b>";
    $main="<p align=".align().">";
    if($onlinee=="e"){$onlinee="1";}
    else{$onlinee="0";}
    if($comp=="e"){$comp="1";}
    else{$comp="0";}
    if($buddiess=="e"){$buddiess="1";}
    else{$buddiess="0";}
    if($foru=="e"){$foru="1";}
    else{$foru="0";}
    if($cha=="e"){$cha="1";}
    else{$cha="0";}
    if($clu=="e"){$clu="1";}
    else{$clu="0";}
    if($gal=="e"){$gal="1";}
    else{$gal="0";}
    if($down=="e"){$down="1";}
    else{$down="0";}
    if($guestb=="e"){$guestb="1";}
    else{$guestb="0";}
    if($foot=="e"){$foot="1";}
    else{$foot="0";}
    $res=mysql_query("Update users SET value='".$onlinee."' WHERE name='onlinee'");
    $res2=mysql_query("Update users SET value='".$comp."' WHERE name='comp'");
    $res3=mysql_query("Update users SET value='".$buddiess."' WHERE name='buddiess'");
    $res4=mysql_query("Update users SET value='".$foru."' WHERE name='foru'");
    $res5=mysql_query("Update users SET value='".$cha."' WHERE name='chat'");
    $res6=mysql_query("Update users SET value='".$gal."' WHERE name='gal'");
    $res7=mysql_query("Update users SET value='".$down."' WHERE name='down'");
    $res8=mysql_query("Update users SET value='".$guestb."' WHERE name='guestb'");
    $res9=mysql_query("Update users SET value='".$foot."' WHERE name='foot'");
    if($res&&$res2&&$res3&&$res4&&$res5&&$res6&&$res7&&$res8&&$res9){
    $main.="<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Site Links Updated Successfully\n";
    }else{
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Updating Site Links!\n";
    }
    }else{
    addonline(getuid_sid($sid),"In The Forbidden Zone!","");
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!\n";
    }
    $main.="</p>\n";
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    exit;
    [COLOR="#FF0000"][B]}[/B][/COLOR]
    
    
    addonline(getuid_sid($sid),"Editing Links settings","");
    echo head_tag(getnick_sid($sid)."@Edit Link Settings",1,getnick_sid($sid));
    $title="<b>Edit Site Settings</b>";
    if($onlinee=="e"){$onlinee="1";}
    else{$onlinee="0";}
    if($comp=="e"){$comp="1";}
    else{$comp="0";}
    if($buddiess=="e"){$buddiess="1";}
    else{$buddiess="0";}
    if($foru=="e"){$foru="1";}
    else{$foru="0";}
    if($cha=="e"){$cha="1";}
    else{$cha="0";}
    if($clu=="e"){$clu="1";}
    else{$clu="0";}
    if($gal=="e"){$gal="1";}
    else{$gal="0";}
    if($down=="e"){$down="1";}
    else{$down="0";}
    if($guestb=="e"){$guestb="1";}
    else{$guestb="0";}
    if($foot=="e"){$foot="1";}
    else{$foot="0";}
    $main="<div class=".align().">
    <form action=\"./settings2.php?update=1&amp;sid=$sid\" method=\"post\">
    if(!onlinee()){$selected=" selected=\"selected\"";}
    $main.="<b>Online List:</b><br/>
    <select name=\"onlinee\" value=\"$onlinee\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!comp()){$selected=" selected=\"selected\"";}
    $main.="<b>Competition Winners:</b><br/>
    <select name=\"comp\" value=\"$comp\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!buddiess()){$selected=" selected=\"selected\"";}
    $main.="<b>Buddies:</b><br/>
    <select name=\"buddiess\" value=\"$buddiess\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!foru()){$selected=" selected=\"selected\"";}
    $main.="<b>Forums:</b><br/>
    <select name=\"foru\" value=\"$foru\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!cha()){$selected=" selected=\"selected\"";}
    $main.="<b>Chat Rooms:</b><br/>
    <select name=\"cha\" value=\"$cha\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!gal()){$selected=" selected=\"selected\"";}
    $main.="<b>Gallery:</b><br/>
    <select name=\"gal\" value=\"$gal\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!down()){$selected=" selected=\"selected\"";}
    $main.="<b>Downloads:</b><br/>
    <select name=\"down\" value=\"$down\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!guestb()){$selected=" selected=\"selected\"";}
    $main.="<b>Site GuestBook:</b><br/>
    <select name=\"guestb\" value=\"$guestb\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    if(!foot()){$selected=" selected=\"selected\"";}
    $main.="<b>Football Scores:</b><br/>
    <select name=\"foot\" value=\"$foot\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"$selected>Disabled</option>
    </select><br/>\n";
    }else{
    addonline(getuid_sid($sid),"In The Forbidden Zone!","");
    $main.="<p align=".align().">
    <img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!
    </p>\n";
    }
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo foot_tag();
    ?>

    this is so members can turn there links off on the main page

    i keep getting error

    PHP Code:
    Parse errorsyntax errorunexpected '}' in /home/*******/public_html/settings/settings2.php on line 83 
    where the error is i put in red and bold
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    #2
    PHP Code:
    <?php
    define
    ('WCS',true);
    include(
    '../core/main.inc');
    header_type();
    cleardata();
    if(
    ipbanned(ip(),browser())){
    if(!
    shield(getuid_sid($sid))){
    echo 
    head_tag("Ip Blocked!!!",0,0);
    echo 
    ipbanned_msg();
    echo 
    foot_tag();
    exit();
    }
    }
    if(!
    islogged($sid)){
    echo 
    head_tag("Error!!!",0,0);
    echo 
    session_expired();
    echo 
    foot_tag();
    exit();
    }
    if(
    banned(getuid_sid($sid))){
    echo 
    head_tag("Error!!!",1,getnick_sid($sid));
    echo 
    banned_msg($sid);
    echo 
    foot_tag();
    exit();
    }
    mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

    /////////////////////////SITE SETTINGS/////////////////////////

    if($update==1)
    {
    addonline(getuid_sid($sid),"Updating Link Settings","");
    echo 
    head_tag(getnick_sid($sid)."@Updating Link Settings",1,getnick_sid($sid));
    $title="<b>Updating Site Settings</b>";
    $main="<p align=".align().">";
    if(
    $onlinee=="e"){$onlinee="1";}
    else{
    $onlinee="0";}
    if(
    $comp=="e"){$comp="1";}
    else{
    $comp="0";}
    if(
    $buddiess=="e"){$buddiess="1";}
    else{
    $buddiess="0";}
    if(
    $foru=="e"){$foru="1";}
    else{
    $foru="0";}
    if(
    $cha=="e"){$cha="1";}
    else{
    $cha="0";}
    if(
    $clu=="e"){$clu="1";}
    else{
    $clu="0";}
    if(
    $gal=="e"){$gal="1";}
    else{
    $gal="0";}
    if(
    $down=="e"){$down="1";}
    else{
    $down="0";}
    if(
    $guestb=="e"){$guestb="1";}
    else{
    $guestb="0";}
    if(
    $foot=="e"){$foot="1";}
    else{
    $foot="0";}
    $res=mysql_query("Update users SET value='".$onlinee."' WHERE name='onlinee'");
    $res2=mysql_query("Update users SET value='".$comp."' WHERE name='comp'");
    $res3=mysql_query("Update users SET value='".$buddiess."' WHERE name='buddiess'");
    $res4=mysql_query("Update users SET value='".$foru."' WHERE name='foru'");
    $res5=mysql_query("Update users SET value='".$cha."' WHERE name='chat'");
    $res6=mysql_query("Update users SET value='".$gal."' WHERE name='gal'");
    $res7=mysql_query("Update users SET value='".$down."' WHERE name='down'");
    $res8=mysql_query("Update users SET value='".$guestb."' WHERE name='guestb'");
    $res9=mysql_query("Update users SET value='".$foot."' WHERE name='foot'");
    if(
    $res&&$res2&&$res3&&$res4&&$res5&&$res6&&$res7&&$res8&&$res9){
    $main.="<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Site Links Updated Successfully\n";
    }else{
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Updating Site Links!\n";
    }
    }else{
    addonline(getuid_sid($sid),"In The Forbidden Zone!","");
    $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!\n";
    }
    $main.="</p>\n";
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo 
    xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo 
    foot_tag();
    exit;
    {
    }


    addonline(getuid_sid($sid),"Editing Links settings","");
    echo 
    head_tag(getnick_sid($sid)."@Edit Link Settings",1,getnick_sid($sid));
    $title="<b>Edit Site Settings</b>";
    if(
    $onlinee=="e"){$onlinee="1";}
    else{
    $onlinee="0";}
    if(
    $comp=="e"){$comp="1";}
    else{
    $comp="0";}
    if(
    $buddiess=="e"){$buddiess="1";}
    else{
    $buddiess="0";}
    if(
    $foru=="e"){$foru="1";}
    else{
    $foru="0";}
    if(
    $cha=="e"){$cha="1";}
    else{
    $cha="0";}
    if(
    $clu=="e"){$clu="1";}
    else{
    $clu="0";}
    if(
    $gal=="e"){$gal="1";}
    else{
    $gal="0";}
    if(
    $down=="e"){$down="1";}
    else{
    $down="0";}
    if(
    $guestb=="e"){$guestb="1";}
    else{
    $guestb="0";}
    if(
    $foot=="e"){$foot="1";}
    else{
    $foot="0";}
    $main="<div class=".align().">
    <form action=\"./settings2.php?update=1&amp;sid=
    $sid\" method=\"post\">
    if(!onlinee())
    {$selected=" selected=\"selected\"";}
    $main.="<b>Online List:</b><br/>
    <
    select name=\"onlinee\" value=\"$onlinee\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    comp()){$selected=" selected=\"selected\"";}
    $main.="<b>Competition Winners:</b><br/>
    <select name=\"comp\" value=\"
    $comp\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    buddiess()){$selected=" selected=\"selected\"";}
    $main.="<b>Buddies:</b><br/>
    <select name=\"buddiess\" value=\"
    $buddiess\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    foru()){$selected=" selected=\"selected\"";}
    $main.="<b>Forums:</b><br/>
    <select name=\"foru\" value=\"
    $foru\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    cha()){$selected=" selected=\"selected\"";}
    $main.="<b>Chat Rooms:</b><br/>
    <select name=\"cha\" value=\"
    $cha\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    gal()){$selected=" selected=\"selected\"";}
    $main.="<b>Gallery:</b><br/>
    <select name=\"gal\" value=\"
    $gal\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    down()){$selected=" selected=\"selected\"";}
    $main.="<b>Downloads:</b><br/>
    <select name=\"down\" value=\"
    $down\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    guestb()){$selected=" selected=\"selected\"";}
    $main.="<b>Site GuestBook:</b><br/>
    <select name=\"guestb\" value=\"
    $guestb\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    if(!
    foot()){$selected=" selected=\"selected\"";}
    $main.="<b>Football Scores:</b><br/>
    <select name=\"foot\" value=\"
    $foot\">
    <option value=\"e\">Enabled</option>
    <option value=\"d\"
    $selected>Disabled</option>
    </select><br/>\n"
    ;
    }else{
    addonline(getuid_sid($sid),"In The Forbidden Zone!","");
    $main.="<p align=".align().">
    <img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!
    </p>\n"
    ;
    }
    $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
    $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
    $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
    $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
    $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
    echo 
    xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
    echo 
    foot_tag();
    ?>
    All i done is added { before }

    This will now load but some parts will have errors well this coding is not really good as well done site.
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      Originally posted by subzero View Post
      PHP Code:
      <?php
      define
      ('WCS',true);
      include(
      '../core/main.inc');
      header_type();
      cleardata();
      if(
      ipbanned(ip(),browser())){
      if(!
      shield(getuid_sid($sid))){
      echo 
      head_tag("Ip Blocked!!!",0,0);
      echo 
      ipbanned_msg();
      echo 
      foot_tag();
      exit();
      }
      }
      if(!
      islogged($sid)){
      echo 
      head_tag("Error!!!",0,0);
      echo 
      session_expired();
      echo 
      foot_tag();
      exit();
      }
      if(
      banned(getuid_sid($sid))){
      echo 
      head_tag("Error!!!",1,getnick_sid($sid));
      echo 
      banned_msg($sid);
      echo 
      foot_tag();
      exit();
      }
      mysql_query("UPDATE users SET browser='".browser()."', ipaddress='".ip()."', host='".subno()."' WHERE id='".getuid_sid($sid)."'");

      /////////////////////////SITE SETTINGS/////////////////////////

      if($update==1)
      {
      addonline(getuid_sid($sid),"Updating Link Settings","");
      echo 
      head_tag(getnick_sid($sid)."@Updating Link Settings",1,getnick_sid($sid));
      $title="<b>Updating Site Settings</b>";
      $main="<p align=".align().">";
      if(
      $onlinee=="e"){$onlinee="1";}
      else{
      $onlinee="0";}
      if(
      $comp=="e"){$comp="1";}
      else{
      $comp="0";}
      if(
      $buddiess=="e"){$buddiess="1";}
      else{
      $buddiess="0";}
      if(
      $foru=="e"){$foru="1";}
      else{
      $foru="0";}
      if(
      $cha=="e"){$cha="1";}
      else{
      $cha="0";}
      if(
      $clu=="e"){$clu="1";}
      else{
      $clu="0";}
      if(
      $gal=="e"){$gal="1";}
      else{
      $gal="0";}
      if(
      $down=="e"){$down="1";}
      else{
      $down="0";}
      if(
      $guestb=="e"){$guestb="1";}
      else{
      $guestb="0";}
      if(
      $foot=="e"){$foot="1";}
      else{
      $foot="0";}
      $res=mysql_query("Update users SET value='".$onlinee."' WHERE name='onlinee'");
      $res2=mysql_query("Update users SET value='".$comp."' WHERE name='comp'");
      $res3=mysql_query("Update users SET value='".$buddiess."' WHERE name='buddiess'");
      $res4=mysql_query("Update users SET value='".$foru."' WHERE name='foru'");
      $res5=mysql_query("Update users SET value='".$cha."' WHERE name='chat'");
      $res6=mysql_query("Update users SET value='".$gal."' WHERE name='gal'");
      $res7=mysql_query("Update users SET value='".$down."' WHERE name='down'");
      $res8=mysql_query("Update users SET value='".$guestb."' WHERE name='guestb'");
      $res9=mysql_query("Update users SET value='".$foot."' WHERE name='foot'");
      if(
      $res&&$res2&&$res3&&$res4&&$res5&&$res6&&$res7&&$res8&&$res9){
      $main.="<img src=\"../images/ok.gif\" alt=\"o\"/><br/>Site Links Updated Successfully\n";
      }else{
      $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Error Updating Site Links!\n";
      }
      }else{
      addonline(getuid_sid($sid),"In The Forbidden Zone!","");
      $main.="<img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!\n";
      }
      $main.="</p>\n";
      $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
      $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
      $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
      $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
      $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
      echo 
      xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
      echo 
      foot_tag();
      exit;
      {
      }


      addonline(getuid_sid($sid),"Editing Links settings","");
      echo 
      head_tag(getnick_sid($sid)."@Edit Link Settings",1,getnick_sid($sid));
      $title="<b>Edit Site Settings</b>";
      if(
      $onlinee=="e"){$onlinee="1";}
      else{
      $onlinee="0";}
      if(
      $comp=="e"){$comp="1";}
      else{
      $comp="0";}
      if(
      $buddiess=="e"){$buddiess="1";}
      else{
      $buddiess="0";}
      if(
      $foru=="e"){$foru="1";}
      else{
      $foru="0";}
      if(
      $cha=="e"){$cha="1";}
      else{
      $cha="0";}
      if(
      $clu=="e"){$clu="1";}
      else{
      $clu="0";}
      if(
      $gal=="e"){$gal="1";}
      else{
      $gal="0";}
      if(
      $down=="e"){$down="1";}
      else{
      $down="0";}
      if(
      $guestb=="e"){$guestb="1";}
      else{
      $guestb="0";}
      if(
      $foot=="e"){$foot="1";}
      else{
      $foot="0";}
      $main="<div class=".align().">
      <form action=\"./settings2.php?update=1&sid=
      $sid\" method=\"post\">
      if(!onlinee())
      {$selected=" selected=\"selected\"";}
      $main.="<b>Online List:</b><br/>
      <
      select name=\"onlinee\" value=\"$onlinee\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      comp()){$selected=" selected=\"selected\"";}
      $main.="<b>Competition Winners:</b><br/>
      <select name=\"comp\" value=\"
      $comp\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      buddiess()){$selected=" selected=\"selected\"";}
      $main.="<b>Buddies:</b><br/>
      <select name=\"buddiess\" value=\"
      $buddiess\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      foru()){$selected=" selected=\"selected\"";}
      $main.="<b>Forums:</b><br/>
      <select name=\"foru\" value=\"
      $foru\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      cha()){$selected=" selected=\"selected\"";}
      $main.="<b>Chat Rooms:</b><br/>
      <select name=\"cha\" value=\"
      $cha\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      gal()){$selected=" selected=\"selected\"";}
      $main.="<b>Gallery:</b><br/>
      <select name=\"gal\" value=\"
      $gal\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      down()){$selected=" selected=\"selected\"";}
      $main.="<b>Downloads:</b><br/>
      <select name=\"down\" value=\"
      $down\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      guestb()){$selected=" selected=\"selected\"";}
      $main.="<b>Site GuestBook:</b><br/>
      <select name=\"guestb\" value=\"
      $guestb\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      if(!
      foot()){$selected=" selected=\"selected\"";}
      $main.="<b>Football Scores:</b><br/>
      <select name=\"foot\" value=\"
      $foot\">
      <option value=\"e\">Enabled</option>
      <option value=\"d\"
      $selected>Disabled</option>
      </select><br/>\n"
      ;
      }else{
      addonline(getuid_sid($sid),"In The Forbidden Zone!","");
      $main.="<p align=".align().">
      <img src=\"../images/error.gif\" alt=\"x\"/><br/>Permission Denied!
      </p>\n"
      ;
      }
      $L1="$sixkey<a $key6 href=\"../inbox/inbox.php?sid=$sid\">Inbox</a>";
      $L2="$sevenkey<a $key7 href=\"../buds/buds.php?sid=$sid\">BuddyList</a>";
      $L3="$eightkey<a $key8 href=\"../chat/public.php?sid=$sid\">Chat</a>";
      $L4="$ninekey<a $key9 href=\"../forums/forums.php?sid=$sid\">Forums</a>";
      $L5="$zerokey<a $key0 href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
      echo 
      xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,0,0,0,$main);
      echo 
      foot_tag();
      ?>
      All i done is added { before }

      This will now load but some parts will have errors well this coding is not really good as well done site.
      thanks sub for ya help
      HELP THEM WHO HELPS YOU



      i only work on wapdesire v_2 coding only

      Comment

      Working...
      X