Can Some help Me to Get This to Work

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

    Can Some help Me to Get This to Work

    i really itto word tis to pwd to enter ownercpevery time i go to the page markin Parse error: syntax error, unexpected '}' in /home/www/yoursite.com/ownerct.php on line 78

    Added after 3 minutes:
    PHP Code:
    <?php
    header
    ("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    //header('Content-type: application/vnd.wap.xhtml+xml'); 
    echo "<?xml version=\"1.0\"?>";
    echo 
    "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
    <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
    </head>
    <?php
    include("config.php");
    include(
    "core.php");
    connectdb();
    $action $_GET["action"];
    $sid $_GET["sid"];
    $uid getuid_sid($sid);
    $theme mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
    $sitename mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
    $sitename $sitename[0];

    if(!
    isowner(getuid_sid($sid)))
      {
          echo 
    "<head>";
          echo 
    "<title>Error!!!</title>";
          echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          echo 
    "</head>";
          echo 
    "<body>";
          echo 
    "<p align=\"center\">";
          echo 
    "<b>Permission Denied!</b><br/>";
          echo 
    "<br/>Only owner can use this page...<br/>";
          echo 
    "<a href=\"index.php\">Home</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
         }
    if(
    islogged($sid)==false)
        {
          echo 
    "<head>";
          echo 
    "<title>Error!!!</title>";
          echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
          echo 
    "</head>";
          echo 
    "<body>";
          echo 
    "<p align=\"center\">";
          echo 
    "You are not logged in<br/>";
          echo 
    "Or Your session has been expired<br/><br/>";
          echo 
    "<a href=\"index.php\">Login</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }

    addonline(getuid_sid($sid),"Owner Tools","");
      if(!
    isowner($uid)){
      echo 
    "<center><b>Please Authenticate Yourself.<br/>Enter Password Below: </b>";
      echo 
    "<p><form action=\"ownerct.php?action=ownerct&amp;sid=$sid\" method=\"post\"><br/><input id=\"inputText\" type=\"password\" name=\"apwd\" format=\"*x\" maxlength=\"35\"/><input id=\"inputButton\" type=\"submit\" value=\"Enter\"/>";
      echo 
    "</form></p></center>";}
      else{
        
    $brws explode(" ",$HTTP_USER_AGENT);
    $ubr $brws[0];
    $uip getip();
    $time time() + (17 60 60);
      
    $newtime date("H:i",$time);
      
    $date strtotime('+17 hours');
    $newdate date('D jS M y',$date);

    mysql_query("INSERT INTO ibwf_mlog SET action='Hack Attempt On Owner Tools', details='<br/><u><b>".$uid."</b></u><br/> <b>Browser:</b> $ubr<br/> <b>IP:</b> $uip<br/>', actdt='".time()."'");
        echo 
    "This Attempt Has Been Logged..";

    echo 
    "<i><b>You are not an owner! Are You?<br/> So Get The Hell Out Of Here!</b></i>";
      }
      echo 
    "</p>";
    getfooter($sid);
    }
    else if(
    $action=="ownerct")

    {

        
    addonline(getuid_sid($sid),"Owner Control Panel","");

        
    $apwd $_POST["apwd"];

        
    $uid getuid_sid($sid);

        
    $apass "passwort"// ownerpass change here

        
    if(isowner($uid))

        {

          if((
    $apwd)==($apass))

              { 


      echo 
    "<head>";
      echo 
    "<title>Owner Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      echo 
    "<b>Owner Tools</b>";
      echo 
    "</p>";
      echo 
    "<p align=\"center\">";
      
    $noi mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='1' OR penalty='2'"));
      echo 
    "<a href=\"lists.php?action=banned&amp;sid=$sid\">Banned($noi[0])</a><br/>";
      
    $noi mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='0'"));
      echo 
    "<a href=\"lists.php?action=trashed&amp;sid=$sid\">Trashed($noi[0])</a><br/>";
      
    $noi mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='2'"));
      echo 
    "<a href=\"lists.php?action=ipban&amp;sid=$sid\">Banned IPs($noi[0])</a><br/>";
      
    $noi mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE validated='0'"));
      echo 
    "<a href=\"ownercp.php?action=validatelist&amp;sid=$sid\">Validate List($noi[0])</a><br/>";
      echo 
    "<a href=\"soulznet_logs/soulznet_web_login.txt\">User Logins</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=general&amp;sid=$sid\">General Settings</a><br/>";
      echo 
    "<a href=\"admincp.php?action=fcats&amp;sid=$sid\">Forum Categories</a><br/>";
      echo 
    "<a href=\"admincp.php?action=forums&amp;sid=$sid\">Forums</a><br/>";
      echo 
    "<a href=\"admincp.php?action=ugroups&amp;sid=$sid\">User groups</a><br/>";
      
    //echo "<a href=\"ownercp.php?action=manmods&amp;sid=$sid\">Manage Moderators</a><br/>";
      
    echo "<a href=\"ownercp.php?action=addperm&amp;sid=$sid\">Add permissions</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=chuinfo&amp;sid=$sid\">Change user info</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=manrss&amp;sid=$sid\">Manage RSS Sources</a><br/>";
      echo 
    "<a href=\"../users/themes.php?sid=$sid\">Add Wapsite Theme</a><br/>";
      echo 
    "<a href=\"../smilies/index.php?action=smilies&amp;sid=$sid&amp;script=xhtml\">add/del smilies</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=addavt&amp;sid=$sid\">Add Avatar</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=blocksites&amp;sid=$sid\">Edit Blocked Sites</a><br/>";
      echo 
    "<a href=\"admincp.php?action=chrooms&amp;sid=$sid\">Chatrooms</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=clrdta&amp;sid=$sid\">Clear Data</a><br/>";
      echo 
    "</p>";
      echo 
    "<p align=\"center\">";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
      echo 
    "</body>";
    }
    //////////////////////////general settings//////////////////////////

    else if($action=="general")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        
    $xtm getsxtm();
        
    $paf getpmaf();
        
    $fvw getfview();
        
    $fmsg htmlspecialchars(getfmsg());
        
    $sitename mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'"));
        
    $sitename $sitename[0];
        if(
    canreg())
        {
          
    $arv "e";
        }else{
          
    $arv"d";
        }
        if(
    validation())
        {
          
    $vldtn "e";
        }else{
          
    $vldtn "d";
        }
      echo 
    "<p align=\"center\">";
      echo 
    "<b>General Settings</b><br/>";
      echo 
    "</p>";
      echo 
    "<p>";
      echo 
    "Site Name:";
      echo 
    "<form action=\"ownrproc.php?action=general&amp;sid=$sid\" method=\"post\">";
      echo 
    "<input name=\"sitename\" value=\"$sitename\" maxlength=\"255\"/>";
      echo 
    "<br/>Session Period: <input name=\"sesp\" value=\"$xtm\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>";
      echo 
    "<br/>PM Antiflood<input name=\"pmaf\" value=\"$paf\" style=\"-wap-input-format: '*N'\" maxlength=\"3\" size=\"3\"/>";
      echo 
    "<br/>Forum Message: <input name=\"fmsg\"  value=\"$fmsg\" maxlength=\"255\" />";
    if(!
    canreg()){$selected=" selected=\"selected\"";}
      echo 
    "<br/>Registration: <select name=\"areg\" value=\"$arv\">";
      echo 
    "<option value=\"e\">Enabled</option>";
      echo 
    "<option value=\"d\"$selected>Disabled</option>";
      echo 
    "</select><br/>";
      echo 
    "View: <select name=\"fvw\" value=\"$fvw\">";
    if(
    getfview()==0){$selected=" selected=\"selected\"";}else{$selected="";}
      echo 
    "<option value=\"0\"$selected>Forums Page</option>";
    if(
    getfview()==1){$selected=" selected=\"selected\"";}else{$selected="";}
      echo 
    "<option value=\"1\"$selected>Forums</option>";
    if(
    getfview()==2){$selected=" selected=\"selected\"";}else{$selected="";}
      echo 
    "<option value=\"2\"$selected>Categories</option>";
    if(
    getfview()==3){$selected=" selected=\"selected\"";}else{$selected="";}
      echo 
    "<option value=\"3\"$selected>Drop List</option>";
      echo 
    "</select>";
    if(!
    validation()){$selected=" selected=\"selected\"";}
      echo 
    "<br/>Validation: <select name=\"vldtn\" value=\"$vldtn\">";
      echo 
    "<option value=\"e\">Enabled</option>";
      echo 
    "<option value=\"d\"$selected>Disabled</option>";
      echo 
    "</select><br/>";
      echo 
    "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Submit\"></form>";
      echo 
    "</p>";
      echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";
    }
    //////////////////////////mod a user//////////////////////////

    else if($action=="user")
    {
      
    $who $_GET["who"];
      echo 
    "<head>";
      echo 
    "<title>Owner Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      
    $unick getnick_uid($who);
      echo 
    "<b>Moderating $unick</b>";
      echo 
    "</p>";
      echo 
    "<p align=\"center\">";
      echo 
    "<a href=\"admincp.php?action=plsopt&amp;sid=$sid&amp;who=$who\">Plusses</a><br/>";
      
    $noi mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE validated='0' AND id='".$who."'"));
      if(
    $noi[0]==1)
      {
      echo 
    "<a href=\"ownrproc.php?action=validate&amp;sid=$sid&amp;who=$who\">Validate</a><br/>";
      }
      echo 
    "<a href=\"ownrproc.php?action=boot&amp;sid=$sid&amp;who=$who\">Boot</a><br/>";

      if(!
    istrashed($who))
      {
      echo 
    "<a href=\"ownercp.php?action=trash&amp;sid=$sid&amp;who=$who\">Trash</a><br/>";
      }else{
      echo 
    "<a href=\"ownrproc.php?action=untr&amp;sid=$sid&amp;who=$who\">Untrash</a><br/>";
      }
      if(!
    isbanned($who))
      {
      echo 
    "<a href=\"ownercp.php?action=ban&amp;sid=$sid&amp;who=$who\">Ban</a><br/>";
      echo 
    "<a href=\"ownercp.php?action=ipban&amp;sid=$sid&amp;who=$who\">Ip-ban</a><br/>";
      }else{
      echo 
    "<a href=\"ownrproc.php?action=unbn&amp;sid=$sid&amp;who=$who\">Unban</a><br/>";
      }
      if(!
    isshield($who))
      {
      echo 
    "<a href=\"ownrproc.php?action=shld&amp;sid=$sid&amp;who=$who\">Shield</a><br/>";
      }else{
      echo 
    "<a href=\"ownrproc.php?action=ushld&amp;sid=$sid&amp;who=$who\">Unshield</a><br/>";
      }
      echo 
    "<a href=\"ownrproc.php?action=delu&amp;sid=$sid&amp;who=$who\">Delete</a><br/>";
      echo 
    "<a href=\"lists.php?action=readmsgs&amp;sid=$sid&amp;who=$who\">Read Sent Inboxes</a><br/>";
      echo 
    "<a href=\"lists.php?action=readpops&amp;sid=$sid&amp;who=$who\">Read Sent Popups</a><br/>";
      echo 
    "<form action=\"ownercp.php?action=acui&amp;sid=$sid\" method=\"post\">";
      echo 
    "<input type=\"hidden\" name=\"unick\" value=\"$unick\"/>";
      echo 
    "<input type=\"Submit\" value=\"Edit User\" Name=\"Submit\"/></form>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";
    }
    //////////////////////////////////Validation List

    else if($action=="validatelist")
    {
        
    addonline(getuid_sid($sid),"Owner Tools","");
        echo 
    "<head>";
        echo 
    "<title>Validate List</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        
    //////ALL LISTS SCRIPT <<
        
    if($page=="" || $page<=0)$page=1;
        
    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE validated='0'"));
        
    $num_items $noi[0]; //changable
        
    $items_per_page10;
        
    $num_pages ceil($num_items/$items_per_page);
        if((
    $page>$num_pages)&&$page!=1)$page$num_pages;
        
    $limit_start = ($page-1)*$items_per_page;

        
    //changable sql
        
            
    $sql "SELECT id, name FROM ibwf_users WHERE validated='0' ORDER BY name  LIMIT $limit_start$items_per_page";
        

        echo 
    "<p>";
        
    $items mysql_query($sql);

        if(
    mysql_num_rows($items)>0)
        {
        while (
    $item mysql_fetch_array($items))
        {

        
    $nopl mysql_fetch_array(mysql_query("SELECT sex, birthday, location FROM ibwf_users WHERE id='".$item[0]."'"));
        
    $uage getage($nopl[1]);
        if(
    $nopl[0]=='M')
        {
    $usex "Male";}else
        if(
    $nopl[0]=='F'){$usex "Female";}
        else{
    $usex "Argh! No Profile!";}
        
    $nopl[2] = htmlspecialchars($nopl[2]);

        
    $lnk "<a href=\"index.php?action=viewuser&amp;who=$item[0]&amp;sid=$sid\">$item[1]($uage/$usex/$nopl[2])</a>";
        echo 
    "$lnk<br/>";
        }
        }
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
        if(
    $page>1)
        {
          
    $ppage $page-1;
          echo 
    "<a href=\"ownercp.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;who=$who\">«Prev</a> ";
        }
        if(
    $page<$num_pages)
        {
          
    $npage $page+1;
          echo 
    "<a href=\"ownercp.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;who=$who\">Next»</a>";
        }
        echo 
    "<br/>$page/$num_pages<br/>";
        if(
    $num_pages>2)
        {
            echo 
    $rets;
            
    $rets "<form action=\"ownercp.php\" method=\"get\">";
            
    $rets .= "<input name=\"page\" style=\"-wap-input-format: '*N'\" size=\"2\"/>";
            
    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
            
    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
            
    $rets .= "<input type=\"submit\" value=\"Go To Page\"/>";
            
    $rets .= "</form>";

            echo 
    $rets;
        }
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";

      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    //////////////////////////trash user//////////////////////////

    else if($action=="trash")
    {
      
    $who $_GET["who"];
      echo 
    "<head>";
      echo 
    "<title>Admin Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      
    $unick getnick_uid($who);
      echo 
    "Trashing $unick<br/>";
      echo 
    "<form action=\"ownrproc.php?action=trash&amp;sid=$sid\" method=\"post\">";
      echo 
    "Reason: <input name=\"pres\" maxlength=\"100\"/><br/>";
      echo 
    "Days: <input name=\"pds\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/><br/>";
      echo 
    "Hours: <input name=\"phr\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/><br/>";
      echo 
    "Minutes: <input name=\"pmn\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/><br/>";
      echo 
    "Seconds: <input name=\"psc\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/><br/>";
      echo 
    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
      echo 
    "<input type=\"Submit\" value=\"Trash\" Name=\"Submit\"/></form>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";
    }
    //////////////////////////ban user//////////////////////////

    else if($action=="ban")
    {
      
    $who $_GET["who"];
      echo 
    "<head>";
      echo 
    "<title>Admin Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      
    $unick getnick_uid($who);
      echo 
    "Banning $unick<br/>";
      echo 
    "<form action=\"ownrproc.php?action=ban&amp;sid=$sid\" method=\"post\">";
      echo 
    "Reason: <input name=\"pres\" maxlength=\"100\"/><br/>";
      echo 
    "Days: <input name=\"pds\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/><br/>";
      echo 
    "Hours: <input name=\"phr\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/><br/>";
      echo 
    "Minutes: <input name=\"pmn\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/><br/>";
      echo 
    "Seconds: <input name=\"psc\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/><br/>";
      echo 
    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
      echo 
    "<input type=\"Submit\" value=\"Ban\" Name=\"Submit\"/></form>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";
    }
    //////////////////////////ipban user//////////////////////////

    else if($action=="ipban")
    {
      
    $who $_GET["who"];
      echo 
    "<head>";
      echo 
    "<title>Admin Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      
    $unick getnick_uid($who);
      echo 
    "ip-banning $unick<br/>";
      echo 
    "<form action=\"ownrproc.php?action=ipban&amp;sid=$sid\" method=\"post\">";
      echo 
    "Reason: <input name=\"pres\" maxlength=\"100\"/><br/>";
      echo 
    "Days: <input name=\"pds\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/><br/>";
      echo 
    "Hours: <input name=\"phr\" style=\"-wap-input-format: '*N'\" maxlength=\"4\"/><br/>";
      echo 
    "Minutes: <input name=\"pmn\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/><br/>";
      echo 
    "Seconds: <input name=\"psc\" style=\"-wap-input-format: '*N'\" maxlength=\"2\"/><br/>";
      echo 
    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
      echo 
    "<input type=\"Submit\" value=\"ip-ban\" Name=\"Submit\"/></form>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";
    }
    //////////////////////////add permissions//////////////////////////

    else if($action=="addperm")
    {
      echo 
    "<head>";
      echo 
    "<title>Owner Tools</title>";
      echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
      echo 
    "</head>";
      echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>Add permission</b>";
        
    $forums mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name");
        echo 
    "<form action=\"ownrproc.php?action=addperm&amp;sid=$sid\" method=\"post\">";
        echo 
    "<br/><br/>Forum: <select name=\"fid\">";
        while (
    $forum=mysql_fetch_array($forums))
        {
            echo 
    "<option value=\"$forum[0]\">$forum[1]</option>";
        }
        echo 
    "</select>";
        
    $forums mysql_query("SELECT id, name FROM ibwf_groups ORDER BY  name, id");
        echo 
    "<br/>UGroups: <select name=\"gid\">";
        while (
    $forum=mysql_fetch_array($forums))
        {
            echo 
    "<option value=\"$forum[0]\">$forum[1]</option>";
        }
        echo 
    "</select>";
        echo 
    "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Submit\"></form>";

      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    //////////////////////////////////////Manage Mods

    else if($action=="manmods")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "NOTE: Some features will be added later to this page<br/><br/>";
        
    $mods mysql_query("SELECT id, name FROM ibwf_users WHERE perm='1'");
        echo 
    "<form action=\"ownrproc.php?action=addfmod&amp;sid=$sid\" method=\"post\">";
        echo 
    "Mod: <select name=\"mid\">";
        while(
    $mod=mysql_fetch_array($mods))
        {
          echo 
    "<option value=\"$mod[0]\">$mod[1]</option>";
        }
        echo 
    "</select><br/>";
        
    $forums mysql_query("SELECT id, name FROM ibwf_forums");
        echo 
    "Forum: <select name=\"fid\">";
        while(
    $forum=mysql_fetch_array($forums))
        {
          echo 
    "<option value=\"$forum[0]\">$forum[1]</option>";
        }
        echo 
    "</select><br/>";
        echo 
    "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form><br/>";
        echo 
    "<form action=\"ownrproc.php?action=delfmod&amp;sid=$sid\" method=\"post\">";
        
    $mods mysql_query("SELECT id, name FROM ibwf_users WHERE perm='1'");
        echo 
    "<form action=\"ownrproc.php?action=addfmod&amp;sid=$sid\" method=\"post\">";
        echo 
    "Mod: <select name=\"mid\">";
        while(
    $mod=mysql_fetch_array($mods))
        {
          echo 
    "<option value=\"$mod[0]\">$mod[1]</option>";
        }
        echo 
    "</select><br/>";
        echo 
    "<input type=\"hidden\" name=\"fid\" value=\"*\"/>";
        echo 
    "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Delete All Forums\"></form><br/>";
        
    //echo "<br/><br/>";
      
    echo "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="addlink")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "Please Enter The Address Of the Site To Add<br/>";
        echo 
    "<form action=\"ownrproc.php?action=addlink&amp;sid=$sid\" method=\"post\">";
        echo 
    "<b>logo</b><br/>";
        echo 
    "<input name=\"logo\"/><br/>";
        echo 
    "<b>url</b><br/>";
        echo 
    "<input name=\"url\"/><br/>";
        echo 
    "<b>sitetitle</b><br/>";
        echo 
    "<input name=\"title\"/><br/>";
        echo 
    "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Add Link\"></form>";
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>8 </b><a accesskey=\"8\" href=\"linksites.php?sid=$sid\">Links</a><br/>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="blocksites")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>1 </b><a accesskey=\"1\" href=\"ownercp.php?action=addsite&amp;sid=$sid\">Add Site</a><br/>";
        echo 
    "<b>2 </b><a accesskey=\"2\" href=\"ownercp.php?action=viewsite&amp;sid=$sid\">View Sites</a><br/>";
        
    //echo "<b>3 </b><a accesskey=\"3\" href=\"ownercp.php?action=delsite&amp;sid=$sid\">Delete Site</a><br/>";
        
    echo "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="addsite")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "Please Enter The Address Of the Site To Block<br/>";
        echo 
    "<form action=\"ownrproc.php?action=addsite&amp;sid=$sid\" method=\"post\">";
        echo 
    "<input name=\"site\"/>";
        echo 
    "<br/><input type=\"Submit\" Name=\"Submit\" Value=\"Block\"></form>";
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="viewsite")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "Currently Blocked Sites Are Listed Below";
        echo 
    "</p><p>";
          
    $res mysql_query("SELECT * FROM ibwf_blockedsite");
    while (
    $row mysql_fetch_array($res)) 
    {
       echo 
    $row[1];
       echo 
    " <a href=\"ownrproc.php?action=delsite&amp;sid=$sid&amp;id=$row[0]\">[X]</a>";
       echo 
    "<br/>";
    }
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="delsite")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>1 </b><a accesskey=\"1\" href=\"ownercp.php?action=addsite&amp;sid=$sid\">Add Site</a><br/>";
        echo 
    "<b>2 </b><a accesskey=\"2\" href=\"ownercp.php?action=viewsite&amp;sid=$sid\">View Sites</a><br/>";
        echo 
    "<b>3 </b><a accesskey=\"3\" href=\"ownercp.php?action=delsite&amp;sid=$sid\">Delete Site</a><br/>";
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }    
    else if(
    $action=="manrss")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>1 </b><a accesskey=\"1\" href=\"ownercp.php?action=addrss&amp;sid=$sid\">Add Source</a><br/>";
        echo 
    "<form action=\"ownercp.php?action=edtrss&amp;sid=$sid\" method=\"post\">";
        
    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rss"));
        if(
    $noi[0]>0)
        {
            
    $rss mysql_query("SELECT title, id FROM ibwf_rss");
            echo 
    "<br/><select name=\"rssid\">";
            while(
    $rs=mysql_fetch_array($rss))
            {
                echo 
    "<option value=\"$rs[1]\">$rs[0]</option>";
            }
          echo 
    "</select><br/>";
          }
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Edit Source\"></form><br/><br/>";

        echo 
    "<form action=\"ownrproc.php?action=delrss&amp;sid=$sid\" method=\"post\">";
        
    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rss"));
        if(
    $noi[0]>0)
        {
            
    $rss mysql_query("SELECT title, id FROM ibwf_rss");
            echo 
    "<br/><select name=\"rssid\">";
            while(
    $rs=mysql_fetch_array($rss))
            {
                echo 
    "<option value=\"$rs[1]\">$rs[0]</option>";
            }
          echo 
    "</select><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Del Source\"></form>";

        }
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="clrdta")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>1 </b><a accesskey=\"1\" href=\"ownrproc.php?action=delpms&amp;sid=$sid\">»Delete Inboxes</a><br/>";
        echo 
    "<b>1 </b><a accesskey=\"1\" href=\"ownrproc.php?action=delpops&amp;sid=$sid\">»Delete Popups</a><br/>";
        echo 
    "<b>2 </b><a accesskey=\"2\" href=\"ownrproc.php?action=clrmlog&amp;sid=$sid\">»Clear ModLog</a><br/>";
        echo 
    "<b>3 </b><a accesskey=\"3\" href=\"ownrproc.php?action=delsht&amp;sid=$sid\">»Delete Old Shouts</a><br/>";
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="addsml")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>Add Smilies</b><br/><br/>";
        echo 
    "<form action=\"ownrproc.php?action=addsml&amp;sid=$sid\" method=\"post\">";
        echo 
    "Code:<input name=\"smlcde\" maxlength=\"30\"/><br/>";
        echo 
    "Image Source:<input name=\"smlsrc\" value=\"../smilies/\" maxlength=\"200\"/><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="addgal")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>Add Gallery Pic</b><br/><br/>";
        echo 
    "<form action=\"ownrproc.php?action=addgal&amp;sid=$sid\" method=\"post\">";
        echo 
    "Code:<input name=\"galcde\" maxlength=\"30\"/><br/>";
        echo 
    "Image Source:<input name=\"galsrc\" maxlength=\"200\"/><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="addavt")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>Add Smilies</b><br/><br/>";
        echo 
    "<go href=\"ownrproc.php?action=addavt&amp;sid=$sid\" method=\"post\">";
        echo 
    "Source:<input name=\"avtsrc\" maxlength=\"30\"/><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }

    else if(
    $action=="addrss")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>Add RSS</b><br/><br/>";
        echo 
    "<form action=\"ownrproc.php?action=addrss&amp;sid=$sid\" method=\"post\">";
        echo 
    "Name:<input name=\"rssnm\" maxlength=\"50\"/><br/>";
        echo 
    "Source:<input name=\"rsslnk\" maxlength=\"255\"/><br/>";
        echo 
    "Image:<input name=\"rssimg\" maxlength=\"255\"/><br/>";
        echo 
    "Description:<input name=\"rssdsc\"  maxlength=\"255\"/><br/>";
        
    $forums mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name");
        echo 
    "Forum: <select name=\"fid\">";
        echo 
    "<option value=\"0\">NO FORUM</option>";
        while (
    $forum=mysql_fetch_array($forums))
        {
            echo 
    "<option value=\"$forum[0]\">$forum[1]</option>";
        }
        echo 
    "</select><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Add\"></form>";
        echo 
    "<br/><br/><b>8</b><a accesskey=\"8\" href=\"ownercp.php?action=manrss&amp;sid=$sid\"><img src=\"../images/rss.gif\" alt=\"rss\"/>Manage RSS</a><br/>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    else if(
    $action=="edtrss")
    {
      
      
    $rssid $_POST["rssid"];
      
    $rsinfo mysql_fetch_array(mysql_query("SELECT title, link, imgsrc, fid, dscr FROM ibwf_rss WHERE id='".$rssid."'"));
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>Edit RSS</b><br/><br/>";
        echo 
    "<form action=\"ownrproc.php?action=edtrss&amp;sid=$sid\" method=\"post\">";
        echo 
    "Name:<input name=\"rssnm\" value=\"$rsinfo[0]\" maxlength=\"50\"/><br/>";
        echo 
    "Source:<input name=\"rsslnk\" value=\"$rsinfo[1]\" maxlength=\"255\"/><br/>";
        echo 
    "Image:<input name=\"rssimg\" value=\"$rsinfo[2]\" maxlength=\"255\"/><br/>";
        echo 
    "Description:<input name=\"rssdsc\" value=\"$rsinfo[4]\" maxlength=\"255\"/><br/>";
        
    $forums mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name");
        echo 
    "Forum: <select name=\"fid\" value=\"$rsinfo[3]\">";
        echo 
    "<option value=\"0\">NO FORUM</option>";
        while (
    $forum=mysql_fetch_array($forums))
        {
            echo 
    "<option value=\"$forum[0]\">$forum[1]</option>";
        }
        echo 
    "</select><br/>";
        echo 
    "<input type=\"hidden\" name=\"rssid\" value=\"$rssid\"/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Edit\"></form>";
        echo 
    "<br/><br/><b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=manrss&amp;sid=$sid\"><img src=\"../images/rss.gif\" alt=\"rss\"/>Manage RSS</a><br/>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    /////////////////////////////////user info

    else if($action=="chuinfo")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        echo 
    "Type user nickname<br/><br/>";
        echo 
    "<form action=\"ownercp.php?action=acui&amp;sid=$sid\" method=\"post\">";
        echo 
    "User: <input name=\"unick\" style=\"-wap-input-format: '*x'\" maxlength=\"15\"/><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Find\"></form>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }

    else if(
    $action=="acui")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        echo 
    "<p align=\"center\">";
        
    $unick $_POST["unick"];
        
    $tid getuid_nick($unick);
        if(
    $tid==0)
        {
          echo 
    "<img src=\"../images/notok.gif\" alt=\"x\"/>User Does Not exist<br/>";
        }else{
          echo 
    "</p>";
          if(
    $unick=="ori"){
            echo 
    "<p align=\"center\">";
            echo 
    "<strong>YOU ARE EDITING A CRITICAL STAFF MEMBERS PROFILE. <br/>";
            echo 
    "PLEASE BE AWARE IF THIS USER IS RE-MOVED FROM OWNER STATUS OR DELETED YOUR SITE WILL BE AUTOMATICLY DISABLED INSTANTLY</strong>";
            echo 
    "</p>";
        }
            echo 
    "<p align=\"center\">";
          echo 
    "<b>1 </b><a accesskey=\"1\" href=\"ownercp.php?action=chubi&amp;sid=$sid&amp;who=$tid\">$unick's Profile</a><br/>";
          
    $judg mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".$tid."'"));
          if(
    $judg[0]>0)
          {
          echo 
    "<b>2 </b><a accesskey=\"2\" href=\"ownrproc.php?action=deljdg&amp;sid=$sid&amp;who=$tid\">Remove $unick From Judges List</a><br/>";
          }else{
            echo 
    "<b>2 </b><a accesskey=\"2\" href=\"ownrproc.php?action=addjdg&amp;sid=$sid&amp;who=$tid\">Make $unick judge</a><br/>";
          }
          echo 
    "<b>3 </b><a accesskey=\"3\" href=\"ownercp.php?action=addtog&amp;sid=$sid&amp;who=$tid\">Add  $unick to a group</a><br/>";
          echo 
    "<b>4 </b><a accesskey=\"4\" href=\"ownercp.php?action=umset&amp;sid=$sid&amp;who=$tid\">$unick's Mod. Settings</a><br/>";
        echo 
    "<b>5 </b><a accesskey=\"5\" href=\"ownrproc.php?action=delxp&amp;sid=$sid&amp;who=$tid\">Delete $unick's posts</a><br/>";
          echo 
    "<b>6 </b><a accesskey=\"6\" href=\"ownrproc.php?action=delu&amp;sid=$sid&amp;who=$tid\">Delete $unick</a>";
          echo 
    "</p>";
          echo 
    "<p align=\"center\">";
        }
        echo 
    "<b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=chuinfo&amp;sid=$sid\">Users Info</a><br/>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }

    ////////////////////////////////////////////

    else if($action=="chubi")
    {
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
        
    $who $_GET["who"];
        
    $unick getnick_uid($who);
        
    $avat getavatar($who);
        
    $email mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'"));
        
    $bdy mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$who."'"));
        
    $uloc mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$who."'"));
        
    $usig mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'"));
        
    $sx mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$who."'"));
        
    $perm mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$who."'"));

          if(
    $unick=="admin"){
            echo 
    "<p align=\"center\">";
            echo 
    "<strong>YOU ARE EDITING A CRITICAL STAFF MEMBERS PROFILE. <br/>";
            echo 
    "PLEASE BE AWARE IF THIS USER IS RE-MOVED FROM OWNER STATUS YOUR SITE WILL BE AUTOMATICLY DISABLED INSTANTLY</strong>";
            echo 
    "</p>";
        }
        echo 
    "<p align=\"center\">";
        echo 
    "<form action=\"ownrproc.php?action=uprof&amp;sid=$sid&amp;who=$who\" method=\"post\">";
        echo 
    "Nickname: <input name=\"unick\" value=\"$unick\" maxlength=\"15\"/><br/>";
        echo 
    "Profile Pic: <input name=\"savat\" value=\"$avat\" maxlength=\"100\"/><br/>";
        echo 
    "E-Mail: <input name=\"semail\" value=\"$email[0]\" maxlength=\"100\"/><br/>";
        echo 
    "Birthday<small>(YYYY-MM-DD)</small>: <input name=\"ubday\" value=\"$bdy[0]\" maxlength=\"50\"/><br/>";
        echo 
    "Location: <input name=\"uloc\" value=\"$uloc[0]\" maxlength=\"50\"/><br/>";
        echo 
    "Info: <input name=\"usig\" value=\"$usig[0]\" maxlength=\"100\"/><br/>";
        echo 
    "Sex: <select name=\"usex\" value=\"$sx[0]\">";
        echo 
    "<option value=\"M\">Male</option>";
    if(
    $sx[0]=="F"){$selected=" selected=\"selected\"";}else{$selected="";}
        echo 
    "<option value=\"F\"$selected>Female</option>";
        echo 
    "</select><br/>";
        echo 
    "Privileges: <select name=\"perm\" value=\"$perm[0]\">";
        echo 
    "<option value=\"0\">Normal</option>";
    if(
    $perm[0]=="1"){$selected=" selected=\"selected\"";}else{$selected="";}
        echo 
    "<option value=\"1\"$selected>Moderator</option>";
    if(
    $perm[0]=="2"){$selected=" selected=\"selected\"";}else{$selected="";}
        echo 
    "<option value=\"2\"$selected>Admin</option>";
    if(
    $perm[0]=="3"){$selected=" selected=\"selected\"";}else{$selected="";}
        echo 
    "<option value=\"3\"$selected>Head Admin</option>";
    if(
    $perm[0]=="4"){$selected=" selected=\"selected\"";}else{$selected="";}
        echo 
    "<option value=\"4\"$selected>Owner</option>";

        echo 
    "</select><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Update\"></form>";
        echo 
    "<br/><br/>";
        echo 
    "<form action=\"ownrproc.php?action=upwd&amp;sid=$sid&amp;who=$who\" method=\"post\">";
        echo 
    "Password: <input name=\"npwd\" style=\"-wap-input-format: '*x'\" maxlength=\"15\"/><br/>";
        echo 
    "<input type=\"Submit\" Name=\"Submit\" Value=\"Change\"></form>";
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
        echo 
    "<b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=chuinfo&amp;sid=$sid\">Users Info</a><br/>";
      echo 
    "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&amp;sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
        
    }
    else{
        echo 
    "<head>";
        echo 
    "<title>Owner Tools</title>";
        echo 
    "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        echo 
    "</head>";
        echo 
    "<body>";
      echo 
    "<p align=\"center\">";
      echo 
    "I don't know how did you get into here, but there's nothing to show<br/><br/>";
      echo 
    "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo 
    "</p></body>";
    }
    ?>
    </html>
    Last edited by metulj; 30.12.10, 07:50. Reason: use [ php ] tag [ / php ] for posting php code, specially for longer code

    #2
    you have put extra } at some line. Looks like at 75th line.
    Follow me @ksg91 | My Blog: http://ksg91.com | Nokia Blog: http://NokiaTips.in

    Comment


      #3
      theres one closing curly bracket( } ) to many... in line 78 right after
      PHP Code:
      getfooter($sid); 
      also under
      PHP Code:
      else if($action=="ownerct"
      you've got three opening curly brackets( { ), but only one closing...
      so at the end of action, after
      PHP Code:
      echo "</body>"
      you should add two closing curly brackets( } )
      It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
      ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
      ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
      キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

      Comment


        #4
        thanks guy i will try it now

        thanks guys i will try it now

        Added after 54 minutes:

        I try it but the same thing@hidden ill try metluj own
        Last edited by berty14; 02.01.11, 07:33.

        Comment

        Working...
        X