As far as im aware there is more phones that dont suport COOKIES then there is that dont support SESSION :P
Cant visit your site as i dont know the address? :P
					Cant visit your site as i dont know the address? :P
";       echo "";       echo "You are not logged in
";       echo "Or Your session has been expired
";       echo "Login";       echo "
";       echo "";       echo "";       exit();     } } if(isbanned($uid))     {       echo "";       echo "Error!!!";       echo "";       echo "";       echo "";       echo "";       echo "[IMG]http://yuhjiwap.co.cc/%5C%22../images/notok.gif%5C%22[/IMG]
";       echo "You are Banned
";  $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $remain = $banto[0]- time(); $rmsg = gettimemsg($remain); echo "Time Left: $rmsg
";       $nick = getnick_uid($banto[2]);     echo "By: $nick
";     echo "Reason: $banto[1]";       //echo "Login";       echo "
";       echo "";       echo "";       exit();     }  //////////////////////////////////Members List  if($action=="members") {     addonline(getuid_sid($sid),"Viewing Members List","");     $view = $_GET["view"];     if($view=="")$view="date";     echo "";     echo "Members List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22../images/bdy.gif%5C%22[/IMG]
";     echo "Order By Name
";     echo "Order By Join Date
";     echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $num_items = regmemcount(); //changable     $items_per_page= 10;     $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     if($view=="name")     {         $sql = "SELECT id, name, regdate FROM ibwf_users ORDER BY name LIMIT $limit_start, $items_per_page";     }else{         $sql = "SELECT id, name, regdate FROM ibwf_users ORDER BY regdate DESC LIMIT $limit_start, $items_per_page";     }      echo "";     $items = mysql_query($sql);          if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       $jdt = date("d-m-y", $item[2]);       $lnk = "$item[1] joined: $jdt";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////List users by IP  if($action=="byip") {     addonline(getuid_sid($sid),"Mod CP","");     echo "";     echo "Ip List";     echo "";  echo ""; echo ""; //////ALL LISTS SCRIPT << $who = $_GET["who"]; $whoinfo = mysql_fetch_array(mysql_query("SELECT ipadd, browserm FROM ibwf_users WHERE id='".$who."'")); if(ismod(getuid_sid($sid))){ if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE ipadd='".$whoinfo[0]."' AND browserm='".$whoinfo[1]."'")); $num_items = $noi[0]; //changable $items_per_page= 10; $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 ipadd='".$whoinfo[0]."' AND browserm='".$whoinfo[1]."' ORDER BY name LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);      if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {              $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         echo $rets;         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";     }else{       echo "";       echo "You can't view this list";       echo "
";     }   ////// UNTILL HERE >>     echo "";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////Top Posters List  else if($action=="topp") {     addonline(getuid_sid($sid),"Top Forum Posters","");     echo "";     echo "Top Posters";     echo "";     echo "";     echo "";     echo "";     echo "Our Top Posters
Thank you all for keeping this site alive
";     $weekago = time();     $weekago -= 7*24*60*60;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ibwf_posts WHERE dtpost>'".$weekago."';"));     echo "This week($noi[0])
";     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid)  FROM ibwf_posts ;"));     echo "All the time($noi[0])
";     echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $num_items = regmemcount(); //changable     $items_per_page= 10;     $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, posts FROM ibwf_users ORDER BY posts DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1] Posts: $item[2]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Most online daily list  else if($action=="moto") {     addonline(getuid_sid($sid),"Most Online Daily Users","");     echo "";     echo "Most Online 2Day";     echo "";     echo "";     echo "";     echo "";     echo "Maximum number of users was online in the last 10 Days
";               echo "";     echo "
";     //////ALL LISTS SCRIPT <<                                //changable sql          $sql = "SELECT ddt, dtm, ppl FROM ibwf_mpot ORDER BY id DESC LIMIT 10";       echo "";     $items = mysql_query($sql);          if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[0]($item[1]) Members: $item[2]";       echo "$lnk
";     }     }     echo "
";             ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////Top Chatters  else if($action=="tchat") {     addonline(getuid_sid($sid),"Top Chatters","");     echo "";     echo "Top Chatters";     echo "";     echo "";     echo "";     echo "";     echo "Top Chatters";     echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $num_items = regmemcount(); //changable     $items_per_page= 10;     $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, chmsgs FROM ibwf_users ORDER BY chmsgs DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1] Chat Posts: $item[2]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Top Chatters  else if($action=="smc") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Smoochers List","");     echo "";     echo "Smoochers List";     echo "";     echo "";     echo "";     echo "";     echo "Members smooched by $wnick";     echo "
";     //////ALL LISTS SCRIPT <<          if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE uid='".$who."' AND action='smooch'")); //changable     $num_items = $noi[0];     $items_per_page= 10;     $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 a.target, b.name         FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.target = b.id         WHERE a.uid='".$who."' AND a.action='smooch'         ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page         ;";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  else if($action=="smd") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Smoochers List","");     echo "";     echo "Smoochers List";     echo "";     echo "";     echo "";     echo "";     echo "Members smooched $wnick";     echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE target='".$who."' AND action='smooch'")); //changable $num_items = $noi[0]; $items_per_page= 10; $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 a.uid, b.name FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.uid = b.id WHERE a.target='".$who."' AND a.action='smooch' ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page ;"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Top Chatters  else if($action=="kck") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Kickers List","");     echo "";     echo "Kickers List";     echo "";     echo "";     echo "";     echo "";     echo "Members Kicked by $wnick";     echo "
";     //////ALL LISTS SCRIPT <<          if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE uid='".$who."' AND action='kick'")); //changable     $num_items = $noi[0];     $items_per_page= 10;     $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 a.target, b.name         FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.target = b.id         WHERE a.uid='".$who."' AND a.action='kick'         ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page         ;";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  else if($action=="kcd") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Kickers List","");     echo "";     echo "Kickers List";     echo "";     echo "";     echo "";     echo "";     echo "Members Kicked $wnick";     echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE target='".$who."' AND action='kick'")); //changable $num_items = $noi[0]; $items_per_page= 10; $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 a.uid, b.name FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.uid = b.id WHERE a.target='".$who."' AND a.action='kick' ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page ;"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Top Chatters  else if($action=="pok") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Pokers List","");     echo "";     echo "Pokers List";     echo "";     echo "";     echo "";     echo "";     echo "Members Poked by $wnick";     echo "
";     //////ALL LISTS SCRIPT <<          if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE uid='".$who."' AND action='poke'")); //changable     $num_items = $noi[0];     $items_per_page= 10;     $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 a.target, b.name         FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.target = b.id         WHERE a.uid='".$who."' AND a.action='poke'         ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page         ;";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  else if($action=="pkd") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Pokers List","");     echo "";     echo "Pokers List";     echo "";     echo "";     echo "";     echo "";     echo "Members Poked $wnick";     echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE target='".$who."' AND action='poke'")); //changable $num_items = $noi[0]; $items_per_page= 10; $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 a.uid, b.name FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.uid = b.id WHERE a.target='".$who."' AND a.action='poke' ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page ;"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Top Chatters  else if($action=="hgs") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Huggers List","");     echo "";     echo "Huggers List";     echo "";     echo "";     echo "";     echo "";     echo "Members Hugged by $wnick";     echo "
";     //////ALL LISTS SCRIPT <<          if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE uid='".$who."' AND action='hug'")); //changable     $num_items = $noi[0];     $items_per_page= 10;     $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 a.target, b.name         FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.target = b.id         WHERE a.uid='".$who."' AND a.action='hug'         ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page         ;";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  else if($action=="hgd") {     $who = $_GET["who"];     $wnick = getnick_uid($who);     addonline(getuid_sid($sid),"Huggers List","");     echo "";     echo "Huggers List";     echo "";     echo "";     echo "";     echo "";     echo "Members hugged $wnick";     echo "
";     //////ALL LISTS SCRIPT <<          if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM ibwf_usfun WHERE target='".$who."' AND action='hug'")); //changable     $num_items = $noi[0];     $items_per_page= 10;     $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 a.uid, b.name         FROM ibwf_usfun a INNER JOIN ibwf_users b ON a.uid = b.id         WHERE a.target='".$who."' AND a.action='hug'         ORDER BY a.actime DESC LIMIT $limit_start, $items_per_page         ;";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1)     {     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////requists  else if($action=="reqs") {     addonline(getuid_sid($sid),"Buddy Requests List","");     echo "";     echo "Requests";     echo "";     echo "";     echo "";     echo "";     global $max_buds;     $uid = getuid_sid($sid);     echo "The following members want you to add them to your buddy list
";     $remp = $max_buds - getnbuds($uid);     echo "you have $remp Places left";     echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $nor = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_buddies WHERE tid='".$uid."' AND agreed='0'")); $num_items = $nor[0]; //changable $items_per_page= 10; $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 uid FROM ibwf_buddies WHERE tid='".$uid."' AND agreed='0' ORDER BY reqdt DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $rnick = getnick_uid($item[0]);       $lnk = "$rnick: Accept, Decline";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }     //////////////////////////////////shouts  else if($action=="shouts") {     addonline(getuid_sid($sid),"Viewing Shouts","");     echo "";     echo "Shouts";     echo "";  echo ""; echo ""; $who = $_GET["who"]; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; if($who=="") { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts")); }else{ $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_shouts WHERE shouter='".$who."'")); } $num_items = $noi[0]; //changable $items_per_page= 10; $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 if($who =="") { $sql = "SELECT id, shout, shouter, shtime FROM ibwf_shouts ORDER BY shtime DESC LIMIT $limit_start, $items_per_page"; }else{ $sql = "SELECT id, shout, shouter, shtime FROM ibwf_shouts WHERE shouter='".$who."'ORDER BY shtime DESC LIMIT $limit_start, $items_per_page"; } echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $shnick = getnick_uid($item[2]);         $sht2 = parsepm($item[1], $sid);         $shdt = date("d m y-H:i", $item[3]);       $lnk = "$shnick: $sht2
$shdt";       if(ismod(getuid_sid($sid)))       {       $dlsh = "[x]";       }else{         $dlsh = "";       }       echo "$lnk $dlsh
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////User Clubs  else if($action=="ucl") {     addonline(getuid_sid($sid),"User Clubs","");     echo "";     echo "User Clubs";     echo "";     echo "";     echo "";     $who = $_GET["who"];     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs WHERE owner='".$who."'"));          $num_items = $noi[0]; //changable     $items_per_page= 10;     $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  FROM ibwf_clubs  WHERE owner='".$who."' ORDER BY id LIMIT $limit_start, $items_per_page";       echo "";  $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $nom = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$item[0]."' AND accepted='1'")); $clinfo = mysql_fetch_array(mysql_query("SELECT name, description FROM ibwf_clubs WHERE id='".$item[0]."'")); $lnk = "".htmlspecialchars($clinfo[0])."($nom[0])
".htmlspecialchars($clinfo[1])."
";       echo $lnk;     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1){     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     $whonick = getnick_uid($who);     echo "$whonick's Profile
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////User Clubs  else if($action=="clm") {     addonline(getuid_sid($sid),"Viewing A Member's Club","");     echo "";     echo "Viewing Club";     echo "";  echo ""; echo ""; $who = $_GET["who"]; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE uid='".$who."' AND accepted='1'")); $num_items = $noi[0]; //changable $items_per_page= 10; $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 clid FROM ibwf_clubmembers WHERE uid='".$who."' AND accepted='1' ORDER BY joined DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $clnm = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_clubs WHERE id='".$item[0]."'"));       $lnk = "".htmlspecialchars($clnm[0])."
";       echo $lnk;     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1){     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     $whonick = getnick_uid($who);     echo "$whonick's Profile
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Popular clubs  else if($action=="pclb") {     addonline(getuid_sid($sid),"Viewing Most Popular Clubs","");     echo "";     echo "Popular Clubs";     echo "";  echo ""; echo ""; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); $num_items = $noi[0]; //changable $items_per_page= 5; $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 clid, COUNT(*) as notl FROM ibwf_clubmembers WHERE accepted='1' GROUP BY clid ORDER BY notl DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $clnm = mysql_fetch_array(mysql_query("SELECT name, description FROM ibwf_clubs WHERE id='".$item[0]."'"));        $lnk = "".htmlspecialchars($clnm[0])."($item[1])
".htmlspecialchars($clnm[1])."
";       echo $lnk;     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1){     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Clubs Menu
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Active clubs  else if($action=="aclb") {     addonline(getuid_sid($sid),"Viewing Most Active Clubs","");     echo "";     echo "Active Clubs";     echo "";  echo ""; echo ""; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubs")); $num_items = $noi[0]; //changable $items_per_page= 5; $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 COUNT(*) as notp, b.clubid FROM ibwf_topics a INNER JOIN ibwf_forums b ON a.fid = b.id WHERE b.clubid >'0' GROUP BY b.clubid ORDER BY notp DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $clnm = mysql_fetch_array(mysql_query("SELECT name, description FROM ibwf_clubs WHERE id='".$item[1]."'"));        $lnk = "".htmlspecialchars($clnm[0])."($item[0] Topics)
".htmlspecialchars($clnm[1])."
";       echo $lnk;     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     if($num_pages>1){     echo "
$page/$num_pages
";     }     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Clubs Menu
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Random clubs  else if($action=="rclb") {     addonline(getuid_sid($sid),"Viewing A Random Club","");     echo "";     echo "Random Club";     echo "";     echo "";     echo "";     //////ALL LISTS SCRIPT <<      $sql = "SELECT id, name, description FROM ibwf_clubs ORDER BY RAND()  LIMIT 5";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "".htmlspecialchars($item[1])."
".htmlspecialchars($item[2])."
";       echo $lnk;     }     }     echo "
";             ////// UNTILL HERE >>     echo "";     echo "Clubs Menu
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; } //////////////////////////////////shouts  else if($action=="annc") {     addonline(getuid_sid($sid),"looking At An Announcement","");     echo "";     echo "Announcements";     echo "";  echo ""; echo ""; $clid = $_GET["clid"]; //////ALL LISTS SCRIPT << $uid = getuid_sid($sid); if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_announcements WHERE clid='".$clid."'")); $num_items = $noi[0]; //changable $items_per_page= 5; $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, antext, antime FROM ibwf_announcements WHERE clid='".$clid."' ORDER BY antime DESC LIMIT $limit_start, $items_per_page"; $cow = mysql_fetch_array(mysql_query("SELECT owner FROM ibwf_clubs WHERE id='".$clid."'")); echo "";     $items = mysql_query($sql);     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       if($cow[0]==$uid)       {       $dlan = "[x]";       }else{         $dlan = "";       }       $annc = htmlspecialchars($item[1])."
".date("d/m/y (H:i)", $item[2]);       echo "$annc $dlan
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     if($cow[0]==$uid)       {       $dlan = "Announce!
";       echo $dlan;       }     echo "Back to club
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; } //////////////////////////////////clubs requests  else if($action=="clreq") {     addonline(getuid_sid($sid),"Viewing Club Requests","");     echo "";     echo "Club Requests";     echo "";  echo ""; echo ""; $clid = $_GET["clid"]; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner FROM ibwf_clubs WHERE id='".$clid."'")); //////ALL LISTS SCRIPT << if($cowner[0]==$uid) { if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='0'")); $num_items = $noi[0]; //changable $items_per_page= 10; $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 uid FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='0' ORDER BY joined DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $shnick = getnick_uid($item[0]);       $lnk = "$shnick: accept, deny
";       echo "$lnk";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "
Accept All, ";     echo "Deny All";     echo "";     }else{       echo "This club isnt yours
";     }   ////// UNTILL HERE >>     echo "";     echo "Back to club
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////clubs members  else if($action=="clmem") {     addonline(getuid_sid($sid),"Viewing Club Members","");     echo "";     echo "Club Members";     echo "";  echo ""; echo ""; $clid = $_GET["clid"]; $uid = getuid_sid($sid); $cowner = mysql_fetch_array(mysql_query("SELECT owner FROM ibwf_clubs WHERE id='".$clid."'")); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1'")); $num_items = $noi[0]; //changable $items_per_page= 10; $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 uid, joined, points FROM ibwf_clubmembers WHERE clid='".$clid."' AND accepted='1' ORDER BY joined DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       if($cowner[0]==$uid)       {         $oop = ": Options";       }else{         $oop = "";       }         $shnick = getnick_uid($item[0]);       $lnk = "$shnick$oop
";       $lnk .= "Joined: ".date("d/m/y", $item[1])." - Club Points: $item[2]";              echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";        ////// UNTILL HERE >>     echo "";     echo "Back to club
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////User topics  else if($action=="tbuid") {   $who = $_GET["who"];     addonline(getuid_sid($sid),"Viewing A Users Topic List","");     echo "";     echo "User Topics";     echo "";  echo ""; echo ""; //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE authorid='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 10; $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, crdate FROM ibwf_topics WHERE authorid='".$who."'ORDER BY crdate DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       if(canaccess(getuid_sid($sid),getfid_tid($item[0])))       {         echo "".htmlspecialchars($item[1])." ".date("d m y-H:i:s",$item[2])."
";         }else{           echo "Private Topic
";         }     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     $unick = getnick_uid($who);     echo "$unick's Profile
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////User topics  else if($action=="uposts") {   $who = $_GET["who"];     addonline(getuid_sid($sid),"Viewing Users Posts","");     echo "";     echo "User Posts";     echo "";     echo "";     echo "";      //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE uid='".$who."'"));     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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, dtpost  FROM ibwf_posts  WHERE uid='".$who."'ORDER BY dtpost DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       $tid = gettid_pid($item[0]);       $tname = gettname($tid);       if(canaccess(getuid_sid($sid),getfid_tid($tid)))       {         echo "".htmlspecialchars($tname)." ".date("d m y-H:i:s",$item[1])."
";         }else{           echo "Private Post
";         }     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>        echo "";     $unick = getnick_uid($who);     echo "$unick's Profile
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////User Inboxes(owner)  else if($action=="readmsgs") {   $who = $_GET["who"];     addonline(getuid_sid($sid),"Owner Tools",""); if(!isowner(getuid_sid($sid)))   {       echo "";       echo "Error!!!";       echo "";       echo "";       echo "";       echo "";       echo "You are not an owner
";       echo "
";       echo "Home";       echo "
";       echo "";     }else{     echo "";     echo "Users Sent Inboxes";     echo "";     echo "";     echo "";     $uid = getuid_sid($sid);     if($page=="" || $page<=0)$page=1;     $myid = getuid_sid($sid);     $pms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE byuid=$who ORDER BY timesent"));     echo mysql_error();     $num_items = $pms[0]; //changable     $items_per_page= 10;     $num_pages = ceil($num_items/$items_per_page);     if($page>$num_pages)$page= $num_pages;     $limit_start = ($page-1)*$items_per_page;     if($num_items>0)     {       echo "";  $pms = mysql_query("SELECT byuid, touid, text, timesent FROM ibwf_private WHERE byuid=$who ORDER BY timesent LIMIT $limit_start, $items_per_page"); while($pm=mysql_fetch_array($pms)) { if(isonline($pm[0])) { $onlby = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/onl.gif%5C%22[/IMG]";   }else{     $onlby = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/ofl.gif%5C%22[/IMG]";   }             if(isonline($pm[1]))   {     $onlto = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/onl.gif%5C%22[/IMG]";   }else{     $onlto = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/ofl.gif%5C%22[/IMG]";   }   $bylnk = "$onlby".getnick_uid($pm[0])."";   $tolnk = "$onlto".getnick_uid($pm[1])."";   echo "$bylnk [IMG]http://yuhjiwap.co.cc/%5C%22../moods/in.gif%5C%22[/IMG] $tolnk";   $tmopm = date("d m y - h:i:s",$pm[3]);   echo " $tmopm
";   echo parsepm($pm[2], $sid);   echo "
--------------
";       }       echo "
";       if($page>1)     {       $ppage = $page-1;       echo "«Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {     $rets = "
";       $rets .= "";       $rets .= "";       $rets .= "";       $rets .= "";       $rets .= "";       echo $rets;       }       }else{         echo "";         echo "NO DATA";       }       echo "
";     $unick = getnick_uid($who);     echo "$unick's Profile
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; } } //////////////////////////////////User Popups(owner)  else if($action=="readpops") {   $who = $_GET["who"];     addonline(getuid_sid($sid),"Owner Tools",""); if(!isowner(getuid_sid($sid)))   {       echo "";       echo "Error!!!";       echo "";       echo "";       echo "";       echo "";       echo "You are not an owner
";       echo "
";       echo "Home";       echo "
";       echo "";     }else{     echo "";     echo "Users Sent Popups";     echo "";     echo "";     echo "";   $uid = getuid_sid($sid);   if($page=="" || $page<=0)$page=1;     $myid = getuid_sid($sid);     $pms = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE byuid=$who ORDER BY timesent"));     echo mysql_error();     $num_items = $pms[0]; //changable     $items_per_page= 10;     $num_pages = ceil($num_items/$items_per_page);     if($page>$num_pages)$page= $num_pages;     $limit_start = ($page-1)*$items_per_page;     if($num_items>0)     {       echo "";  $pms = mysql_query("SELECT byuid, touid, text, timesent FROM ibwf_popups WHERE byuid=$who ORDER BY timesent LIMIT $limit_start, $items_per_page"); while($pm=mysql_fetch_array($pms)) { if(isonline($pm[0])) { $onlby = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/onl.gif%5C%22[/IMG]";   }else{     $onlby = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/ofl.gif%5C%22[/IMG]";   }             if(isonline($pm[1]))   {     $onlto = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/onl.gif%5C%22[/IMG]";   }else{     $onlto = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/ofl.gif%5C%22[/IMG]";   }   $bylnk = "$onlby".getnick_uid($pm[0])."";   $tolnk = "$onlto".getnick_uid($pm[1])."";   echo "$bylnk [IMG]http://yuhjiwap.co.cc/%5C%22../moods/in.gif%5C%22[/IMG] $tolnk";   $tmopm = date("d m y - h:i:s",$pm[3]);   echo " $tmopm
";   echo parsepm($pm[2], $sid);   echo "
--------------
";       }       echo "
";       if($page>1)     {       $ppage = $page-1;       echo "«Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {     $rets = "
";       $rets .= "";       $rets .= "";       $rets .= "";       $rets .= "";       $rets .= "";       echo $rets;       }       }else{         echo "";         echo "NO DATA";       }       echo "
";     $unick = getnick_uid($who);     echo "$unick's Profile
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; } } //////////////////////////////////Top Gamers  else if($action=="tgame") {     addonline(getuid_sid($sid),"Viewing Top Gamers List","");     echo "";     echo "Top Gamers";     echo "";     echo "";     echo "";     echo "";     echo "Top Gamers";     echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $num_items = regmemcount(); //changable     $items_per_page= 10;     $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, gplus FROM ibwf_users ORDER BY gplus DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1] Game Plusses: $item[2]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Top Gammers  else if($action=="topb") {     addonline(getuid_sid($sid),"Viewing Top Rap Battlers","");     echo "";     echo "Top Battlers";     echo "";     echo "";     echo "";     echo "";     echo "Top Battlers";     echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $num_items = regmemcount(); //changable     $items_per_page= 10;     $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, battlep FROM ibwf_users ORDER BY battlep DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1] Battle Points: $item[2]";       echo "$lnk
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }   //////////////////////////////////Banned  else if($action=="banned") {     addonline(getuid_sid($sid),"Viewing The Naughty Users List","");     echo "";     echo "Banned List";     echo "";     echo "";     echo "";     echo "";     echo "Banned List";     echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='1' OR penalty='2'")); $num_items = $noi[0]; //changable $items_per_page= 5; $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 uid, penalty, pnreas, exid FROM ibwf_penalties WHERE penalty='1' OR penalty='2' ORDER BY timeto LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "".getnick_uid($item[0])." (".htmlspecialchars($item[2]).")";       if($item[1]=="1")       {         $bt = "Normal Ban";       }else{         $bt = "IP Ban";       }       if(ismod(getuid_sid($sid)))       {         $bym = "By ".getnick_uid($item[3]);       }else{         $bym = "";       }       echo "$lnk $bt $bym
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Trashed  else if($action=="trashed") {     addonline(getuid_sid($sid),"Viewing The Trashed Users List","");     echo "";     echo "Trashed List";     echo "";     echo "";     echo "";     echo "";     echo "Trashed List";     echo "
";  //////ALL LISTS SCRIPT << if(ismod(getuid_sid($sid))) { if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='0'")); $num_items = $noi[0]; //changable $items_per_page= 5; $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 uid, penalty, pnreas, exid FROM ibwf_penalties WHERE penalty='0' ORDER BY timeto LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "".getnick_uid($item[0])." (".htmlspecialchars($item[2]).")";       if(ismod(getuid_sid($sid)))       {         $bym = "By ".getnick_uid($item[3]);       }else{         $bym = "";       }       echo "$lnk $bym
";     }   }   }else{     echo "You can't view this list";   }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Trashed  else if($action=="ipban") {     addonline(getuid_sid($sid),"Viewing Banned IPs List","");     echo "";     echo "Ip Ban List";     echo "";     echo "";     echo "";     echo "";     echo "Banned IP's List";     echo "
";  //////ALL LISTS SCRIPT << if(ismod(getuid_sid($sid))) { if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_penalties WHERE penalty='2'")); $num_items = $noi[0]; //changable $items_per_page= 5; $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 uid, penalty, pnreas, exid, ipadd FROM ibwf_penalties WHERE penalty='2' ORDER BY timeto LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "".getnick_uid($item[0])." (".htmlspecialchars($item[2]).")";       if(ismod(getuid_sid($sid)))       {         $bym = "By ".getnick_uid($item[3]);       }else{         $bym = "";       }       $ipl = "IP:$item[4]";       echo "$lnk $bym ($ipl)
";     }   }   }else{     echo "You can't view this list";   }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "9 [IMG]http://yuhjiwap.co.cc/%5C%22../images/stat.gif%5C%22[/IMG]Site Stats
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; } //////////////////////////////////Smilies :)  else if($action=="smilies") {     addonline(getuid_sid($sid),"Viewing The Smilies List","");     echo "";     echo "Smilies List";     echo "";     echo "";     echo "";          //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies"));     $num_items = $noi[0]; //changable     $items_per_page= 5;     $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, scode, imgsrc FROM ibwf_smilies ORDER BY id DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);          echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))    {         if(isadmin(getuid_sid($sid)))         {             $delsl = "[x]";         }else{             $delsl = "";         }         echo "$item[1] » ";         echo "[IMG]http://yuhjiwap.co.cc/%5C%22$item%5B2%5D%5C%22[/IMG] $delsl
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";       echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Moods :)  else if($action=="chmood") {     addonline(getuid_sid($sid),"Viewing The Moods List","");     echo "";     echo "Moods List";     echo "";     echo "";     echo "";      //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_moods"));     $num_items = $noi[0]; //changable     $items_per_page= 5;     $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 text, img, dscr, id FROM ibwf_moods ORDER BY id DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))    {         echo "$item[0] » ";         echo "[IMG]http://yuhjiwap.co.cc/%5C%22$item%5B1%5D%5C%22[/IMG] » $item[2] 
";     }     }     echo "
";     echo "";     echo "Disable Chatmood
";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Chat
";     echo "Settings
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Avatars  else if($action=="avatars") {     addonline(getuid_sid($sid),"Viwing The Avatars List","");     echo "";     echo "Avartars List";     echo "";     echo "";     echo "";      //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_avatars"));     $num_items = $noi[0]; //changable     $items_per_page= 2;     $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, avlink FROM ibwf_avatars ORDER BY id DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))    {         echo "[IMG]http://yuhjiwap.co.cc/%5C%22$item%5B1%5D%5C%22[/IMG]
";         echo "SELECT
";         echo "
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Settings
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////E-cards  else if($action=="ecards") {     addonline(getuid_sid($sid),"Viewing E-Cards List","");     echo "";     echo "E-Cards List";     echo "";     echo "";     echo "";      //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_cards"));     $num_items = $noi[0]; //changable     $items_per_page= 2;     $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, category FROM ibwf_cards ORDER BY id DESC LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))    {         $sl = strlen($item[0]);         $cid="";         if($sl<3)         {             for($i=$sl;$i<3;$i++)             {                 $cid .= "0";             }         }         $cid .= $item[0];         $msg = "Sample Text";         echo "[IMG]http://yuhjiwap.co.cc/%5C%22pmcard.php?cid=$cid&msg=$msg%5C%22[/IMG]
";         echo "[card=$cid]$msg"."[/card]";         echo "
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Settings
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Buddies  else if($action=="buds") {     addonline(getuid_sid($sid),"Viewing My Buddies List","lists.php?action=buds");     echo "";     echo "Buddy List";     echo "";     echo "";     echo "";     $uid = getuid_sid($sid);     $bmsg = parsemsg(getbudmsg($uid), $sid);     if($bmsg!="")     { echo "My Buddy Message:
$bmsg
"; }else  { echo ""; } echo popup($sid); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $num_items = getnbuds($uid); //changable $items_per_page= 10; $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 a.name, b.place, b.userid FROM ibwf_users a INNER JOIN ibwf_online b ON a.id = b.userid GROUP BY 1,2 LIMIT $limit_start, $items_per_page "; */ $sql = "SELECT a.lastact, a.name, a.id, b.uid, b.tid, b.reqdt FROM ibwf_users a INNER JOIN ibwf_buddies b ON (a.id = b.uid) OR (a.id=b.tid) WHERE (b.uid='".$uid."' OR b.tid='".$uid."') AND b.agreed='1' AND a.id!='".$uid."' GROUP BY 1,2 ORDER BY a.lastact DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(isonline($item[2])) { $iml = "(o)"; }else{ $iml = "(x)"; } $bmsg = parsemsg(getbudmsg($item[2]), $sid); if($bmsg!="") { $budmood=" - $bmsg"; }else{ $budmood=""; } $lnk = "$iml $item[1]$budmood";       echo "$lnk
";           }     }     echo "";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";   echo "Refresh
";   echo "Send Popup
";   echo "Popup Dialog
";   $popmsgs = mysql_fetch_array(mysql_query("SELECT popmsg FROM ibwf_users WHERE id='".$uid."'"));   if($popmsgs[0]==0){   echo "Enable Popups
";   }else{   echo "Disable Popups
";   }   echo "Change Buddy Msg
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Buddies  else if($action=="gbook") {     $who = $_GET["who"]; $wnick = getnick_uid($who); if($uid=="$who") {  addonline(getuid_sid($sid),"Viewing Own Testimonials","index.php?action=viewuser&who=$who");     echo "";     echo "View My Testimonials"; }else{  addonline(getuid_sid($sid),"Viewing Testimonials of $wnick","");     echo "";     echo "View Testimonials of $wnick"; }    echo "";  echo ""; echo ""; $uid = getuid_sid($sid); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_gbook WHERE gbowner='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 5; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT gbowner, gbsigner, gbmsg, dtime, id FROM ibwf_gbook WHERE gbowner='".$who."' ORDER BY dtime DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(isonline($item[1])) { $iml = "(o)"; }else{ $iml = "(x)"; } $snick = getnick_uid($item[1]); $lnk = "$iml $snick";       $bs = date("dMy - g:i:s a",$item[3]);       echo "$lnk
";       if(candelgb($uid, $item[4]))       {         $delnk = "[x]";       }else{         $delnk = "";       }       $text = parsepm($item[2], $sid);       echo "$bs
$text $delnk
---
";      }     }     if(cansigngb($uid, $who))     {     echo "Add Comment
"; }    echo "";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";    echo ""; }  //////////////////////////////////Buddies  else if($action=="filecomments") {     $who = $_GET["who"];     $id = $_GET["id"]; $wnick = getnick_uid($who); if($uid=="$who") {  addonline(getuid_sid($sid),"Viewing Own File Comments","index.php?action=viewuser&who=$who");     echo "";     echo "View My File Comments"; }else{  addonline(getuid_sid($sid),"Viewing $wnick's File Comments","");     echo "";     echo "View $wnick's File Comments"; }    echo "";  echo ""; echo ""; $uid = getuid_sid($sid); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_filecomment WHERE fileid='".$id."'")); $num_items = $noi[0]; //changable $items_per_page= 5; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT fileowner, filesigner, filemsg, dtime, id FROM ibwf_filecomment WHERE fileid='".$id."' ORDER BY dtime ASC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(isonline($item[1])) { $iml = "(o)"; }else{ $iml = "(x)"; } $snick = getnick_uid($item[1]); $lnk = "$iml $snick";       $bs = date("dMy - g:i:s a",$item[3]);       echo "$lnk
";       if(candelfilecomment($uid, $item[4]))       {         $delnk = "[x]";       }else{         $delnk = "";       }       $text = parsepm($item[2], $sid);       echo "$bs
$text $delnk
---
";      }     }     if(canaddfilecomment($uid, $who))     {     echo "Add Comment
"; }     echo "";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";    echo ""; }  //////////////////////////////////Buddies  else if($action=="blogscomment") {     $who = $_GET["who"];     $bid = $_GET["bid"]; $wnick = getnick_uid($who); if($uid=="$who") {  addonline(getuid_sid($sid),"Viewing Comments in Own Article","index.php?action=viewuser&who=$who");     echo "";     echo "View Comments in My Article"; }else{  addonline(getuid_sid($sid),"Viewing Comments in $wnick's Articles","index.php?action=viewuser&who=$who");     echo "";     echo "View Comments in $wnick's Articles"; }    echo "";  echo ""; echo ""; $uid = getuid_sid($sid); //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogcomment WHERE blogid='".$bid."'")); $num_items = $noi[0]; //changable $items_per_page= 5; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT blogowner, blogsigner, blogmsg, dtime, id FROM ibwf_blogcomment WHERE blogid='".$bid."' ORDER BY dtime ASC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { if(isonline($item[1])) { $iml = "(o)"; }else{ $iml = "(x)"; } $snick = getnick_uid($item[1]); $lnk = "$iml $snick";       $bs = date("dMy - g:i:s a",$item[3]);       echo "$lnk
";      if(candelblogcomment($uid, $item[4]))       {         $delnk = "[x]";       }else{         $delnk = "";       }       $text = parsepm($item[2], $sid);       echo "$bs
$text $delnk
---
";      }     }   if(cansignblogcomment($uid, $who))    {     echo "Add Comment
"; }    echo "";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";    echo ""; }  //////////////////////////////////Ignore list  else if($action=="ignl") {     addonline(getuid_sid($sid),"Viewing My Ignore List","");     echo "";     echo "Ignore List";     echo "";     echo "";     echo "";     $uid = getuid_sid($sid);     echo "";     echo "Ignore List";      echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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             a.name, b.place, b.userid FROM ibwf_users a             INNER JOIN ibwf_online b ON a.id = b.userid             GROUP BY 1,2             LIMIT $limit_start, $items_per_page     "; */         $sql = "SELECT target FROM ibwf_ignore WHERE name='".$uid."' LIMIT $limit_start, $items_per_page";       echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $tnick = getnick_uid($item[0]);           if(isonline($item[0]))   {     $iml = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/onl.gif%5C%22[/IMG]";        }else{     $iml = "[IMG]http://yuhjiwap.co.cc/%5C%22../images/ofl.gif%5C%22[/IMG]";        }       $lnk = "$iml$tnick";       echo "$lnk: ";       echo "Remove From Ignore list
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Settings
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Blogs  else if($action=="blogs") {     addonline(getuid_sid($sid),"Viewing A Users Blog","");     echo "";     echo "Blogs";     echo "";     echo "";     echo "";     $uid = getuid_sid($sid);     $who = $_GET["who"];     $tnick = getnick_uid($who);     echo "";     echo "$tnick's Blogs";      echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs WHERE bowner='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT id, bname FROM ibwf_blogs WHERE bowner='".$who."' ORDER BY bgdate DESC LIMIT $limit_start, $items_per_page"; echo "";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $bname = htmlspecialchars($item[1]);     if(candelbl($uid,$item[0]))     {       $dl = "[X]";     }else{       $dl = "";     }       $lnk = "»$bname";       echo "$lnk $dl
";     }     }     echo "
";     echo "";     if($page>1)     {       $ppage = $page-1;       echo "«PREV ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next»";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "
";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     if($who==$uid)     {         echo ""; echo "Add a blog
"; echo ""; echo "CPanel
";     }     echo "All Blogs
";   echo "0 [IMG]http://yuhjiwap.co.cc/%5C%22../images/home.gif%5C%22[/IMG]Home";   echo "
";     echo ""; }  //////////////////////////////////Blogs  else if($action=="allbl") {     addonline(getuid_sid($sid),"Viewing Articles List","");     echo "";     echo "Articles List";     echo "";     echo "";     echo "";     $uid = getuid_sid($sid);     $view = $_GET["view"];     if($view =="")$view="time";     echo "";     if($view!="time")     {       echo "View Newest
";     }     if($view!="points")     {       echo "View By Points
";     }     if($view!="rate")     {       echo "View Most Rated
";     }     if($view!="votes")     {       echo "View Most Voted";     }     echo "
";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_blogs")); $num_items = $noi[0]; //changable $items_per_page= 7; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($view=="time") { $ord = "a.bgdate"; }else if($view=="votes") { $ord = "nofv"; }else if($view=="rate") { $ord = "avv"; }else if($view=="points") { $ord = "nofp"; } if ($view=="time"){ $sql = "SELECT id, bname, bowner FROM ibwf_blogs ORDER by bgdate DESC LIMIT $limit_start, $items_per_page"; }else{ $sql = "SELECT a.id, a.bname, a.bowner, COUNT(b.id) as nofv, SUM(b.brate) as nofp, AVG(b.brate) as avv FROM ibwf_blogs a INNER JOIN ibwf_brate b ON a.id = b.blogid GROUP BY a.id ORDER BY $ord DESC LIMIT $limit_start, $items_per_page"; } $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $bname = htmlspecialchars($item[1]); if($view=="time") { $bonick = getnick_uid($item[2]); $byview = "- By $bonick";         }else if($view=="votes")         {           $byview = "Votes: $item[3]";         }else if($view=="rate")         {           $byview = "Rate: $item[5]";         }else if($view=="points")         {           $byview = "Points: $item[4]";         }       $lnk = "» $bname $byview";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";          echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }//////////////////////////////////Blogs  else if($action=="polls") {     addonline(getuid_sid($sid),"Viewing Polls List","");     echo "";     echo "Polls List";     echo "";     echo "";     echo "";     $uid = getuid_sid($sid);     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE pollid>'0'"));     $num_items = $noi[0]; //changable     $items_per_page= 10;     $num_pages = ceil($num_items/$items_per_page);     if(($page>$num_pages)&&$page!=1)$page= $num_pages;     $limit_start = ($page-1)*$items_per_page;    $sql = "SELECT id, name FROM ibwf_users WHERE pollid>'0' ORDER by pollid DESC LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       echo "By $item[1]
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     } echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Top Gammers  else if($action=="tshout") {     addonline(getuid_sid($sid),"Viewing Top Shouters list","");     echo "";     echo "Top Shouters";     echo "";     echo "";     echo "";     echo "";     echo "Top Shouters";     echo "
";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $num_items = regmemcount(); //changable     $items_per_page= 10;     $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, shouts FROM ibwf_users ORDER BY shouts DESC LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1] Shouts: $item[2]";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////BBcodes  else if($action=="bbcode") {     addonline(getuid_sid($sid),"Viewing BBcodes List","");     echo "";     echo "BBcodes List";     echo "";     echo "";     echo "";     echo "";     echo "BBcodes List
";     echo "";     echo "WARNING: Misusing of bbcodes may cause errors in display. Some bbcodes are not supported by some browsers.
";     echo "[b]TEXT[/b]: TEXT
";     echo "[i]TEXT[/i]: TEXT
";     echo "[u]TEXT[/u]: TEXT
";     echo "[big]TEXT[/big]: TEXT
";     echo "[small]TEXT[/small]: TEXT
";     echo "[blink]TEXT[/blink]: TEXT
";     echo "[url=http://www.google.com]Google[/url]: Google
";     echo "Replace [url=http://www.google.com]Google[/url] with any URL, and replace Google with any word you want.
";     echo "[img=http://killer-eyed.wen.ru/icons/images.gif]Images[/img]: [IMG]http://yuhjiwap.co.cc/%5C%22http://killer-eyed.wen.ru/icons/images.gif%5C%22[/IMG]
";     echo "Replace [url]http://killer-eyed.wen.ru/icons/images.gif[/url] with any image URL, and replace Images with any word you want.
";     echo "[font=aqua]Font Color[/font]: Font Color
";     echo "Replace aqua with any color or color code, and replace Font Color with any word you want.
";     echo "[user=1]Username[/user]: Username
";     echo "Replace 1 with a user id, and replace Username with any word you want.
";     echo "[file=1]Filename[/file]: Filename
";     echo "Replace 1 with a file id, and replace Filename with any word you want.
";     echo "[topic=1]Topic Name[/topic]: Topic Name
";     echo "Replace 1 with a topic id, and replace Topic Name with any word you want.
";     echo "[blog=1]Blog Name[/blog]: Blog Name
";     echo "Replace 1 with a blog id, and replace Blog Name with any word you want.
";     echo "[club=1]Club Name[/club]: Club Name
";     echo "Replace 1 with a club id, and replace Club Name with any word you want.
";      echo "";     echo "User CPanel
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////F.A.Q.s  else if($action=="faqs") {     addonline(getuid_sid($sid),"Reading F.A.Q.s","");     echo "";     echo "F.A.Q.s";     echo "";     echo "";     echo "";     echo "";     echo "F.A.Q.s
";     echo "";     //////ALL LISTS SCRIPT <<      if($page=="" || $page<=0)$page=1;     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_faqs"));     $num_items = $noi[0]; //changable     $items_per_page= 5;     $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 question, answer FROM ibwf_faqs ORDER BY id LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         $quest = parsemsg($item[0], $sid);         $ans = parsemsg($item[1], $sid);       echo "Q. $item[0]
";       echo "A. $item[1]
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }   //////////////////////////////////Staff  else if($action=="staff") {     addonline(getuid_sid($sid),"Viewing Staff Members List","");     echo "";     echo "Staff Members List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22smilies/order.gif%5C%22[/IMG]
";     echo "Staff Members List
";     $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE perm='2'"));     echo "Admins($noi[0])
";     $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE perm='1'"));     echo "Moderators($noi[0])";     echo "";     //////ALL LISTS SCRIPT <<     $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE perm>'0'"));          if($page=="" || $page<=0)$page=1;     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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, perm FROM ibwf_users WHERE perm>'0' ORDER BY name LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {         if($item[2]=='1')         {           $tit = "Moderator";         }if($item[2]=='2')         {           $tit = "Moderator";         } if($item[2]=='3')         {           $tit = "Moderator";         } if($item[2]=='4')         {           $tit = "Administrator";         }       $lnk = "$item[1] $tit";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Staff  else if($action=="admns") {     addonline(getuid_sid($sid),"Viewing Administrators List","");     echo "";     echo "Administrators List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22smilies/order.gif%5C%22[/IMG]
";     echo "Adminitrators List
";     echo "";     //////ALL LISTS SCRIPT <<     $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE perm='2'"));      if($page=="" || $page<=0)$page=1;     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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 perm='2' ORDER BY name LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {                $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////judges  else if($action=="judg") {     addonline(getuid_sid($sid),"Viewing Battle Board Judges List","");     echo "";     echo "Battle Board Judges";     echo "";     echo "";     echo "";     echo "";     echo "Battle Board Judges
";     echo "";     //////ALL LISTS SCRIPT <<     $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_judges"));      if($page=="" || $page<=0)$page=1;     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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 uid FROM ibwf_judges LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "".getnick_uid($item[0])."";       echo "$lnk
";     }     }      echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";    echo ""; }  //////////////////////////////////Staff  else if($action=="modr") {     addonline(getuid_sid($sid),"Viewing Moderators List","");     echo "";     echo "Moderators List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22smilies/order.gif%5C%22[/IMG]
";     echo "Moderators List
";     echo "";     //////ALL LISTS SCRIPT <<     $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE perm='1'"));      if($page=="" || $page<=0)$page=1;     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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 perm='1' ORDER BY name LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {        $lnk = "$item[1]";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }   //////////////////////////////////Top Posters List  else if($action=="tpweek") {     addonline(getuid_sid($sid),"Viewing Top Posters of the week","");     echo "";     echo "Top Posters";     echo "";     echo "";     echo "";     echo "";     echo "Top Posters of the week
Thank you, you brought the life to this site in the last 7 days
";     echo "";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $weekago = time(); $weekago -= 7*24*60*60; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ibwf_posts WHERE dtpost>'".$weekago."';")); $num_items = $noi[0]; //changable $items_per_page= 10; $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 uid, COUNT(*) as nops FROM ibwf_posts WHERE dtpost>'".$weekago."' GROUP BY uid ORDER BY nops DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $unick = getnick_uid($item[0]); $lnk = "$unick Posts: $item[1]";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Top Posters List  else if($action=="tptime") {     addonline(getuid_sid($sid),"Viewing Overall Top Posters ","");     echo "";     echo "Top Posters";     echo "";     echo "";     echo "";     echo "";     echo "Top Posters of all the time
";     echo "";  //////ALL LISTS SCRIPT << if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT uid) FROM ibwf_posts ;")); $num_items = $noi[0]; //changable $items_per_page= 10; $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 uid, COUNT(*) as nops FROM ibwf_posts GROUP BY uid ORDER BY nops DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $unick = getnick_uid($item[0]); $lnk = "$unick Posts: $item[1]";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }   //////////////////////////////////Males List  else if($action=="males") {     addonline(getuid_sid($sid),"Viewing Male Members List","");      echo "";     echo "Male Members List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22../images/male.gif%5C%22[/IMG]
";     echo "Male Members List
";     echo "";     //////ALL LISTS SCRIPT <<     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE sex='M'"));     if($page=="" || $page<=0)$page=1;     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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, birthday FROM ibwf_users WHERE sex='M' ORDER BY name LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       $uage = getage($item[2]);       $lnk = "$item[1] Age: $uage";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Males List  else if($action=="fems") {     addonline(getuid_sid($sid),"Viewing Female Members List","");      echo "";     echo "Female Members List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22../images/female.gif%5C%22[/IMG]
";     echo "Female Members List
";     echo "";     //////ALL LISTS SCRIPT <<     $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE sex='F'"));     if($page=="" || $page<=0)$page=1;     $num_items = $noi[0]; //changable     $items_per_page= 10;     $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, birthday FROM ibwf_users WHERE sex='F' ORDER BY name LIMIT $limit_start, $items_per_page";     $items = mysql_query($sql);     echo mysql_error();     if(mysql_num_rows($items)>0)     {     while ($item = mysql_fetch_array($items))     {       $uage = getage($item[2]);       $lnk = "$item[1] Age: $uage";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Today's Birthday'  else if($action=="bdy") {     addonline(getuid_sid($sid),"Viewing Birthday Celebrants List","");      echo "";     echo "Birthday Celebrants List";     echo "";     echo "";     echo "";     echo "";     echo "[IMG]http://yuhjiwap.co.cc/%5C%22../images/cake.gif%5C%22[/IMG]
";     echo "Happy Birthday to:
";     echo "";  //////ALL LISTS SCRIPT << $noi =mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate());")); if($page=="" || $page<=0)$page=1; $num_items = $noi[0]; //changable $items_per_page= 10; $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, birthday FROM ibwf_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate()) ORDER BY name LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $uage = getage($item[2]); $lnk = "$item[1] Age: $uage";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////Browsers  else if($action=="brows") {     addonline(getuid_sid($sid),"Viewing Browsers List","");      echo "";     echo "Browsers List";     echo "";     echo "";     echo "";     echo "";     echo "Browsers List
";     echo "";  //////ALL LISTS SCRIPT << $noi=mysql_fetch_array(mysql_query("SELECT COUNT(DISTINCT browserm) FROM ibwf_users WHERE browserm IS NOT NULL ")); if($page=="" || $page<=0)$page=1; $num_items = $noi[0]; //changable $items_per_page= 10; $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 browserm, COUNT(*) as notl FROM ibwf_users WHERE browserm!='' GROUP BY browserm ORDER BY notl DESC LIMIT $limit_start, $items_per_page"; //$moderatorz=mysql_query("SELECT tlphone, COUNT(*) as notl FROM users GROUP BY tlphone ORDER BY notl DESC LIMIT ".$pagest.",5"); $cou = $limit_start; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $cou++; $lnk = "$cou-$item[0] $item[1]";       echo "$lnk
";     }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {         $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     }     echo "";   ////// UNTILL HERE >>     echo "";     echo "Site Statistics
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; } else if($action=="addfilecomment") {   $id = $_GET["id"];   $who = $_GET["who"];   $uid = getuid_sid($sid);   $pminfo = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_vault WHERE id='".$id."'"));   $bnick = getnick_uid($pminfo[0]); addonline(getuid_sid($sid),"Adding Comment to $bnick's File","");  echo ""; echo "Add Comment to $bnick's File"; echo ""; echo ""; echo ""; echo ""; echo ""; echo "Comment:
"; echo ""; echo ""; echo ""; echo "---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo ""; echo ""; } else if($action=="vault") {     $who = $_GET["who"];     addonline(getuid_sid($sid),"Browsing Downloads","");      echo "";       echo "Downloads";       echo "";  echo ""; echo ""; $uid = getuid_sid($sid); if($who!="") { if($page=="" || $page<=0)$page=1; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."'")); $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; $sql = "SELECT id, title, itemurl, uid, downloads, pudt, description, category FROM ibwf_vault WHERE uid='".$who."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $ext = getext($item[2]); $ime = getextimg($ext); $title = parsemsg($item[1]); $lnk = "$ime$title";       if(candelvl($uid, $item[0]))       {         $delnk = "[x]";         $edlnk = "[_]";       }else{         $delnk = "";         $edlnk = "";       }       echo "$lnk $edlnk $delnk
";            }     }     echo "
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {        $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets; echo "";     } }else{         echo "• Select Category
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Symbian'"));         echo "» Symbian Applications($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Applications'"));         echo "» Java Applications($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='S60v3apps'"));         echo "» S60v3 Applications($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='N-Gage'"));         echo "» N-Gage Zone($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Sounds'"));         echo "» Mp3 Songs($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Polytones'"));         echo "» Polytones/AMR/WAV($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Videos'"));         echo "» Mobile Videos($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Musicvids'"));         echo "» Music Videos($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Wallpapers'"));         echo "» Wallpapers($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Games'"));         echo "» Games($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Themes'"));         echo "» Themes($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Porns'"));         echo "» Adults/Porns 18+($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Scripts'"));         echo "» Scripts($noi[0])
";         $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='Others'"));         echo "» Others($noi[0])
"; }   ////// UNTILL HERE >>     echo "
";     echo "Add Item
";     echo "Search File
";     echo "Latest Uploads
"; echo "";      echo "---
";    echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////////////////////add vault  else if($action=="editvlt") { $id = $_GET["id"];     addonline(getuid_sid($sid),"Editing a Vault Item","");     echo "";     echo "Edit Vault Item";     echo "";     echo "";     echo "";     echo "";     if(getcposts($uid)>20)     {       if(candelvl($uid, $id))       { echo "Edit Vault Item
"; $item = mysql_fetch_array(mysql_query("SELECT title, itemurl, description, category, uid, fsize, via FROM ibwf_vault WHERE id='".$id."'")); $age = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'")); $uage = getage($age[0]); echo ""; if($item[6]==0) {     echo ""; }else if($item[6]==1) {     echo ""; }     echo "Filename: 
"; if($item[6]==0) {     echo "File Size: (e.g. x.x kb, x.x mb) 
"; }else if($item[6]==1) {     echo ""; }   echo "Select Category: Symbian ApplicationsJava ApplicationsS60v3 ApplicationsN-Gage ZoneMp3 SongsPolytones/AMR/WAVMobile VideosMusic VideosWallpapersGamesThemesAdults/Porns 18+ScriptsOthers
";     echo "Description: 
"; if($item[6]==0) {     echo "Item URL: 
"; }else if($item[6]==1) { echo ""; } echo "";     echo "";         echo "Delete Item
"; }else{ echo "You can't edit this vault item!!!
"; } }else{ echo "You should have atleast 20 ChatPosts to Edit your Vault Item!!!
"; }  echo "Back to Downloads
"; echo ""; echo "---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; } ////////////////////////////////////////VAULT MUSIC else if($action=="viewcat") {     $who = $_GET["who"];     $cat = $_GET["cat"]; if($cat=="vaultsymbian") { $category = "Symbian Applications"; $catname = "Symbian"; }else if($cat=="vaultapps") { $category = "Java Applications"; $catname = "Applications"; }else if($cat=="vaults60v3") { $category = "S60v3 Applications"; $catname = "S60v3apps"; }else if($cat=="vaultngage") { $category = "N-Gage Zone"; $catname = "N-Gage"; }else if($cat=="vaultmusic") { $category = "Mp3 Songs"; $catname = "Sounds"; }else if($cat=="vaultpolys") { $category = "Polytones/AMR/WAV"; $catname = "Polytones"; }else if($cat=="vaultvideos") { $category = "Mobile Videos"; $catname = "Videos"; }else if($cat=="vaultmusicvids") { $category = "Music Videos"; $catname = "Musicvids"; }else if($cat=="vaultpics") { $category = "Wallpapers"; $catname = "Wallpapers"; }else if($cat=="vaultgames") { $category = "Games"; $catname = "Games"; }else if($cat=="vaultthemes") { $category = "Themes"; $catname = "Themes"; }else if($cat=="vaultporns") { $category = "Adults/Porns 18+"; $catname = "Porns"; $age = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'")); $uage = getage($age[0]); }else if($cat=="vaultscripts") { $category = "Scripts"; $catname = "Scripts"; }else if($cat=="vaultothers") { $category = "Others"; $catname = "Others"; }     addonline(getuid_sid($sid),"Browsing Downloads in $category","");      echo "";       echo "$category";       echo "";       echo "";       echo "";      $uid = getuid_sid($sid); echo "$category
";     //////ALL LISTS SCRIPT << if($uage<18 && $cat=="vaultporns") { echo "You don't have a permission to access the contents of this page and download a file from here!!!
"; }else{   if($page=="" || $page<=0)$page=1; if($who!="") { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE uid='".$who."' AND category='".$catname."'")); }else{ $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_vault WHERE category='".$catname."'")); } $num_items = $noi[0]; //changable $items_per_page= 10; $num_pages = ceil($num_items/$items_per_page); if(($page>$num_pages)&&$page!=1)$page= $num_pages; $limit_start = ($page-1)*$items_per_page; if($who!="") { $sql = "SELECT id, title, itemurl, uid, downloads, pudt, description, category FROM ibwf_vault WHERE uid='".$who."' AND category='".$catname."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page"; }else{ $sql = "SELECT id, title, itemurl, uid, downloads, pudt, description, category FROM ibwf_vault WHERE category='".$catname."' ORDER BY pudt DESC LIMIT $limit_start, $items_per_page"; } $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $ext = getext($item[2]); $ime = getextimg($ext); $title = parsemsg($item[1]); $lnk = "$ime$title";       if(candelvl($uid, $item[0]))       {         $delnk = "[x]";         $edlnk = "[_]";       }else{         $delnk = "";         $edlnk = "";       }       echo "$lnk - By ".getnick_uid($item[3])." $edlnk $delnk
";     }     }     echo "
";     echo ""; echo "Search File
";     if($page>1)     {       $ppage = $page-1;       echo "« Prev ";     }     if($page<$num_pages)     {       $npage = $page+1;       echo "Next »";     }     echo "
$page/$num_pages
";     if($num_pages>2)     {        $rets = "";         $rets .= "Jump to page";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";         $rets .= "";          echo $rets;     } } echo "";   ////// UNTILL HERE >>     echo "";     echo ""; echo "Add Item
"; echo "Back to Downloads
"; echo "";      echo "---
";    echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  else if($action=="latestuploads") {     addonline(getuid_sid($sid),"Browsing Latest Uploads","");      echo "";       echo "Latest Uploads";       echo "";       echo "";       echo "";      $uid = getuid_sid($sid); echo "Latest Uploads
";  $sql = "SELECT id, title, itemurl, uid, downloads, pudt, description, category FROM ibwf_vault ORDER BY pudt DESC LIMIT 10"; $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $ext = getext($item[2]); $ime = getextimg($ext); $title = parsemsg($item[1]); $lnk = "$ime$title";       if(candelvl($uid, $item[0]))       {         $delnk = "[x]";         $edlnk = "[_]";       }else{         $delnk = "";         $edlnk = "";       }       echo "$lnk $edlnk $delnk
";     }     }     echo "
";     echo ""; echo "Search File
";     echo ""; echo "Add Item
"; echo "Back to Downloads
"; echo "";      echo "---
";    echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";     echo ""; }  //////////////////////////VAULT OTHER else if($action=="viewitem") {     $who = $_GET["who"];     $id = $_GET["id"];     addonline(getuid_sid($sid),"Viewing Vault Item","");       echo "";       echo "View Vault Item";       echo "";  echo ""; echo ""; $uid = getuid_sid($sid); if($who!="") { $sql = "SELECT title, itemurl, uid, downloads, pudt, description, category, crdate, fsize, ftype FROM ibwf_vault WHERE uid='".$who."' AND id='".$id.""; }else{ $sql = "SELECT title, itemurl, uid, downloads, pudt, description, category, crdate, fsize, ftype FROM ibwf_vault WHERE id='".$id."'"; } $items = mysql_query($sql); echo mysql_error(); if(mysql_num_rows($items)>0) { while ($item = mysql_fetch_array($items)) { $title = parsemsg($item[0]); if(candelvl($uid, $item[0])) { $delnk = "[x]";         $edlnk = "[_]";         $clnk = "[x]";       }else{         $delnk = "";         $edlnk = "";       } if($item[6]=="Symbian") { $cat = "Symbian Applications"; $catlnk = "vaultsymbian"; }else if($item[6]=="Applications") { $cat = "Java Applications"; $catlnk = "vaultapps"; }else if($item[6]=="S60v3apps") { $cat = "S60v3 Applications"; $catlnk = "vaults60v3"; }else if($item[6]=="N-Gage") { $cat = "N-Gage Zone"; $catlnk = "vaultngage"; }else if($item[6]=="Sounds") { $cat = "Mp3 Songs"; $catlnk = "vaultmusic"; }else if($item[6]=="Polytones") { $cat = "Polytones/AMR/WAV"; $catlnk = "vaultpolys"; }else if($item[6]=="Videos") { $cat = "Mobile Videos"; $catlnk = "vaultvideos"; }else if($item[6]=="Musicvids") { $cat = "Music Videos"; $catlnk = "vaultmusicvids"; }else if($item[6]=="Wallpapers") { $cat = "Wallpapers"; $catlnk = "vaultpics"; }else if($item[6]=="Games") { $cat = "Games"; $catlnk = "vaultgames"; }else if($item[6]=="Themes") { $cat = "Themes"; $catlnk = "vaultthemes"; }else if($item[6]=="Porns") { $cat = "Adults/Porns 18+"; $catlnk = "vaultporns"; }else if($item[6]=="Scripts") { $cat = "Scripts"; $catlnk = "vaultscripts"; }else if($item[6]=="Others") { $cat = "Others"; $catlnk = "vaultothers"; }  $up = getnick_uid($item[2]);   $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_filecomment WHERE fileid='".$id."'")); if($item[5]=="") { $desc = "No description added"; }else{ $desc = parsemsg($item[5]); }  if($item[9]=="") { $ftype = "No Filetype"; }else{ $ftype = $item[9]; }       echo "Filename: $title $edlnk $delnk
File ID: $id
File Size: $item[8]
File Type: $ftype
Category: $cat
Description: $desc
Date Uploaded: $item[7]
Uploaded By: $up
Download Cost: 2 plusses
Download Times: $item[3]
Comments($noi[0])
---
"; $reported = mysql_fetch_array(mysql_query("SELECT reported, reason, byuser FROM ibwf_vault WHERE id='".$id."'")); if($reported[0]=="1") { echo "Reported File by ".getnick_uid($reported[2])."
Reason: $reported[1] $clnk
---
Download Now!
"; }else{ echo "Report File:
Please enter a valid reason to report this file or else you'll get banned!
---
Download Now!";      } }     } echo "";     echo ""; echo "Add Item
";     echo ""; echo "Search File
"; echo "Back to Downloads
"; echo ""; echo "---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo ""; echo "";  }else {   addonline(getuid_sid($sid),"Lost in the UnderGroundWAP","");       echo "";   echo "UnderGroundWAP";       echo "";       echo "";       echo "";      echo "";   echo "I don't know how did you get into here, but there's nothing to show.
---
";   echo "| Inbox |";          echo " BuddyList |";          echo " Chatrooms |";         echo " Forums |"; echo " Home |";   echo "";   echo " 

 
							
						
/* I don't know everything hehe */ 
 thank you so much . but i need this system for my site ....huhuhuhu
 thank you so much . but i need this system for my site ....huhuhuhu
							
						
/* I don't know everything hehe */ 
 ....
 ....
 it doesn't show any error or error message
  it doesn't show any error or error message 
							
						
/* I don't know everything hehe */ 
 ....
 ....

 
							
						
/* I don't know everything hehe */ 

 click here
 click here 
							
						
/* I don't know everything hehe */ 
 it didnot show any thing
it didnot show any thing  
							
						
/* I don't know everything hehe */ 
Comment