ldswapworld

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

    ldswapworld

    guys....when i click the post pm at mod reports...Reported Posts


    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/chatbet/public_html/adctrl.php on line 189


    appears...how to fix it?

    #2
    what script you using?
    sigpic

    WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

    Comment


      #3
      ldswapworld script

      Comment


        #4
        post adctrl.php here
        sigpic

        WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

        Comment


          #5
          <?php
          include("config.php");
          include("core.php");
          echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
          echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML Mobile 1.0//EN\"". " \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
          ?>
          <html xmlns="http://www.w3.org/1999/xhtml">
          <head>
          <title>Mod CP</title>
          <meta forua="true" http-equiv="Cache-Control" content="no-cache"/>
          <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
          <?php
          connectdb();

          $sid = $_GET["sid"];
          $uid = getuid_sid($sid);
          echo gettheme($sid);


          ?>
          </head>
          <body>
          <?php
          echo "<font size=\"".getfontsize($sid)."\">";
          gettimebar();
          boxstart("$sitename");

          $action = $_GET["action"];
          if(!ismod(getuid_sid($sid))){

          echo "<p align=\"center\">";
          echo "You are not a moderator!!!<br/>";
          echo "<br/>";
          echo "<a href=\"index.php\">Main Menu</a>";
          echo "</p>";
          echo "</div></div></font></body></html>";


          exit();
          }

          if(isbanned($uid)){
          echo "<p align=\"center\">";
          echo "<br/>";
          echo "You are <b>Banned</b><br/>";
          $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
          $remain = $banto[0]- time();
          $rmsg = gettimemsg($remain);
          echo "Time to finish your penalty: $rmsg<br/><br/>";
          echo "</p>";
          echo "</div></div></font></body>";


          echo "</html>";
          exit();
          }
          if(islogged($sid)==false){
          echo "<p align=\"center\">";
          echo "You are not logged in<br/>";
          echo "Or Your session has been expired<br/><br/>";
          echo "<a href=\"index.php\">Login</a>";
          echo "</p>";
          echo "</div></div></font></body></html>";


          exit();
          }
          addonline(getuid_sid($sid),"Mod CP","");
          if($action=="he3nomain"){
          echo "<p><a href=\"adctrl.php?action=hidden&amp;sid=$sid\">Clo aked users</a></p>";
          echo "<p align=\"center\">";
          echo "<b>Reports</b>";
          echo "</p>";
          echo "<p>";
          $nrpm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported='1'"));
          echo "<a href=\"adctrl.php?action=cfmpr&amp;sid=$sid\">&#18 7;Pr. Messages($nrpm[0])</a><br/>";
          $nrps = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported='1'"));
          echo "<a href=\"adctrl.php?action=fcpsr&amp;sid=$sid\">&#18 7;Posts($nrps[0])</a><br/>";
          $nrtp = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported='1'"));
          echo "<a href=\"adctrl.php?action=doordarshan&amp;sid=$sid\ ">&#187;Topics($nrtp[0])</a>";
          echo "</p>";
          echo "<p align=\"center\">";
          echo "<b>Logs</b>";
          echo "</p>";
          echo "<p>";
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog"));
          if($noi[0]>0){
          $nola = mysql_query("SELECT DISTINCT (action) FROM ibwf_mlog ORDER BY actdt DESC");
          while($act=mysql_fetch_array($nola)){
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog WHERE action='".$act[0]."'"));
          echo "<a href=\"adctrl.php?action=lakdi&amp;sid=$sid&amp;vi ew=$act[0]\">$act[0]($noi[0])</a><br/>";
          }
          }
          echo "</p>";
          getfooter($sid);

          }

          /////////////////////////////////Reported PMs

          else if($action=="cfmpr"){
          $page = $_GET["page"];
          echo "<p align=\"center\">";
          echo "<b>Reported PMs</b>";
          echo "</p>";
          echo "<p>";

          if($page=="" || $page<=0)$page=1;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported ='1'"));
          $num_items = $noi[0]; //changable
          $items_per_page= 5;
          $num_pages = ceil($num_items/$items_per_page);
          if($page>$num_pages)$page= $num_pages;
          $limit_start = ($page-1)*$items_per_page;
          $sql = "SELECT id, text, byuid, touid, timesent FROM ibwf_private WHERE reported='1' ORDER BY timesent DESC LIMIT $limit_start, $items_per_page";
          $items = mysql_query($sql);
          while ($item=mysql_fetch_array($items)){
          $fromnk = getnick_uid($item[2]);
          $tonick = getnick_uid($item[3]);
          $dtop = date("d m y - H:i:s", $item[4]);
          $text = parsepm($item[1]);
          $flk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$item[2]\">$fromnk</a>";
          $tlk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$item[3]\">$tonick</a>";
          echo "From: $flk To: $tlk<br/>Time: $dtop<br/>";
          echo $text;
          echo "<br/>";
          echo "<a href=\"adctrlpr.php?action=phm97&amp;sid=$sid&amp; pid=$item[0]\">Handle</a><br/><br/>";
          }

          echo "</p>";
          echo "<p align=\"center\">";
          if($page>1){
          $ppage = $page-1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$ppage&a mp;sid=$sid\">&#171;PREV</a> ";
          }
          if($page<$num_pages){
          $npage = $page+1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$npage&a mp;sid=$sid\">Next&#187;</a>";
          }
          echo "<br/>$page/$num_pages<br/>";
          if($num_pages>2){
          $rets = "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputText\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
          $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
          $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
          $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
          $rets .= "</form>";
          echo $rets;
          }
          echo "<br/><br/>";
          echo "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\"> ";
          echo "Mod R/L</a></p>";
          getfooter($sid);

          }
          ///////////////////Edit main page///////////////
          else if($action=="edtmp"){
          echo "<p align=\"center\">";
          echo "<b>Main Page Message</b>";
          echo "</p>";
          $fmsg=getfmsg();
          echo "<p>";
          echo "Enter message:<br/><form action=\"adctrlpr.php?action=edtmp&amp;sid=$sid\" method=\"post\">";
          echo "<textarea id=\"inputText\" name=\"fmsg\" rows=\"10\" cols=\"20\">".htmlspecialchars($fmsg)."</textarea><br/><input id=\"inputButton\" type=\"submit\" value=\"Set\"></form>";
          echo "<br/><br/>";
          echo "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\"> ";
          echo "Mod R/L</a><p/>";
          getfooter($sid);

          }

          /////////////////////////////////Reported Posts

          else if($action=="fcpsr"){
          $page = $_GET["page"];
          echo "<p align=\"center\">";
          echo "<b>Reported Posts</b>";
          echo "</p>";
          echo "<p>";

          if($page=="" || $page<=0)$page=1;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported ='1'"));
          $num_items = $noi[0]; //changable
          $items_per_page= 5;
          $num_pages = ceil($num_items/$items_per_page);
          if($page>$num_pages)$page= $num_pages;
          $limit_start = ($page-1)*$items_per_page;
          $sql = "SELECT id, text, tid, uid, dtpost FROM ibwf_posts WHERE reported='1' ORDER BY dtpost DESC LIMIT $limit_start, $items_per_page";
          $items = mysql_query($sql);
          while ($item=mysql_fetch_array($items)){
          $poster = getnick_uid($item[3]);
          $tname = htmlspecialchars(gettname($item[3]));
          $dtop = date("d m y - H:i:s", $item[4]);
          $text = parsemsg($item[1]);
          $flk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$item[3]\">$poster</a>";
          $tlk = "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;t id=$item[2]\">$tname</a>";
          echo "Poster: $flk<br/>In: $tlk<br/>Time: $dtop<br/>";
          echo $text;
          echo "<br/>";
          echo "<a href=\"adctrlpr.php?action=phs19&amp;sid=$sid&amp; pid=$item[0]\">Handle</a><br/><br/>";
          }

          echo "</p>";
          echo "<p align=\"center\">";
          if($page>1){
          $ppage = $page-1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$ppage&a mp;sid=$sid\">&#171;PREV</a> ";
          }
          if($page<$num_pages){
          $npage = $page+1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$npage&a mp;sid=$sid\">Next&#187;</a>";
          }
          echo "<br/>$page/$num_pages<br/>";
          if($num_pages>2){
          $rets = "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputText\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
          $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
          $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
          $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
          $rets .= "</form>";
          echo $rets;
          }
          echo "<br/><br/>";
          echo "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\"> ";
          echo "Mod R/L</a></p>";
          getfooter($sid);
          }

          //////////Hidden Users///////////
          else if($action=="hidden"){
          addonline(getuid_sid($sid),"Viewing cloaked users list","index.php?action=$action");
          $nouo = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE hidden = 1"));
          $indiatime = time() + (addhours());
          echo "<p align=\"right\">".date("h:i A", $indiatime)."<br/>".date("d/m/Y", $indiatime)."</p>";

          echo "<p align=\"center\"><b><big><u>Cloaked Users</u></big></b></p>";
          $umsg = getunreadpm(getuid_sid($sid));
          echo "<p align=\"center\">".getalert($sid)."</p>";
          if($umsg>0){
          echo "<p align=\"center\"><a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox( $umsg new msg)</a></p>";
          }
          echo "<p align=\"center\">";
          echo getshoutbox($sid);
          echo "</p>";
          $num_items = getnumonline(); //changable
          echo "<p>$num_items users are currently online among which $nouo[0] are hidden</p>";
          if($page=="" || $page<=0)$page=1;
          $items_per_page= 20;
          $num_pages = ceil($num_items/$items_per_page);
          if($page>$num_pages)$page= $num_pages;
          $limit_start = ($page-1)*$items_per_page;
          $sql = "SELECT
          a.name, a.budmsg, b.place, b.userid, a.id FROM ibwf_users a
          INNER JOIN ibwf_online b ON a.id = b.userid WHERE b.hidden = 1
          GROUP BY 1,2
          LIMIT $limit_start, $items_per_page
          ";
          echo "<p>";
          $items = mysql_query($sql);
          echo mysql_error();
          while ($item = mysql_fetch_array($items)){

          if(isadmin($item[3]))
          {$lnk = "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\"><font color='red'>$item[0]</font></a>";}
          else if(ismod($item[3]))
          {$lnk = "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\"><font color='blue'>$item[0]</font></a>";}
          else
          {$lnk = "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";}
          $mood = "";
          if ($item[1] == "") {
          $mood = "";
          }
          else {
          $mood = "(".parsemsg($item[1]).")";
          }
          echo "$lnk $mood - $item[2]<br/>";
          }
          echo "</p>";
          echo "<p align=\"center\">";
          if($page>1){
          $ppage = $page-1;
          echo "<a href=\"index.php?action=online&amp;page=$ppage&amp ;sid=$sid\">&#171;Previous</a> ";
          }
          if($page<$num_pages){
          $npage = $page+1;
          echo "<a href=\"index.php?action=online&amp;page=$npage&amp ;sid=$sid\">Next&#187;</a>";
          }
          echo "<br/>Page $page of $num_pages<br/>";
          if($num_pages>2){
          echo getjumper($action, $sid,"index");
          }
          echo "</p>";
          getfooter($sid);
          }


          /////////////////////////////////Reported Posts

          else if($action=="lakdi"){
          $page = $_GET["page"];
          $view = $_GET["view"];
          echo "<p align=\"center\">";
          echo "<b>$view</b>";
          echo "</p>";
          echo "<p>";

          if($page=="" || $page<=0)$page=1;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog WHERE action='".$view."'"));
          $num_items = $noi[0]; //changable
          $items_per_page= 5;
          $num_pages = ceil($num_items/$items_per_page);
          if($page>$num_pages)$page= $num_pages;
          $limit_start = ($page-1)*$items_per_page;
          $sql = "SELECT actdt, details FROM ibwf_mlog WHERE action='".$view."' ORDER BY actdt DESC LIMIT $limit_start, $items_per_page";
          $items = mysql_query($sql);
          while ($item=mysql_fetch_array($items)){
          echo "Time: ".date("d m y-H:i:s", $item[0])."<br/>";
          $bandar = strrpos($item[1], "has");
          $machchar = substr($item[1], 0, $bandar-1);
          echo str_replace("&", "&amp;", $item[1]);
          //echo "<br/><a href=\"index.php?action=viewuser&amp;who=".getuid_ nick($machchar)."&amp;sid=$sid\">View Profile</a>";
          echo "<br/><br/>";
          }

          echo "</p>";
          echo "<p align=\"center\">";
          if($page>1){
          $ppage = $page-1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$ppage&a mp;sid=$sid&amp;view=$view\">&#171;PREV</a> ";
          }
          if($page<$num_pages){
          $npage = $page+1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$npage&a mp;sid=$sid&amp;view=$view\">Next&#187;</a>";
          }
          echo "<br/>$page/$num_pages<br/>";
          if($num_pages>2){
          $rets = "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputText\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
          $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
          $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
          $rets .= "<input type=\"hidden\" name=\"view\" value=\"$view\"/>";
          $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
          $rets .= "</form>";
          echo $rets;
          }
          echo "<br/><br/>";
          echo "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\"> ";
          echo "Mod R/L</a></p>";
          getfooter($sid);

          }

          /////////////////////////////////Reported Topics

          else if($action=="doordarshan"){
          $page = $_GET["page"];
          echo "<p align=\"center\">";
          echo "<b>Reported Topics</b>";
          echo "</p>";
          echo "<p>";

          if($page=="" || $page<=0)$page=1;
          $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported ='1'"));
          $num_items = $noi[0]; //changable
          $items_per_page= 5;
          $num_pages = ceil($num_items/$items_per_page);
          if($page>$num_pages)$page= $num_pages;
          $limit_start = ($page-1)*$items_per_page;
          $sql = "SELECT id, name, text, authorid, crdate FROM ibwf_topics WHERE reported='1' ORDER BY crdate DESC LIMIT $limit_start, $items_per_page";
          $items = mysql_query($sql);
          while ($item=mysql_fetch_array($items)){
          $poster = getnick_uid($item[3]);
          $tname = htmlspecialchars($item[1]);
          $dtop = date("d m y - H:i:s", $item[4]);
          $text = parsemsg($item[2]);
          $flk = "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp; who=$item[3]\">$poster</a>";
          $tlk = "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;t id=$item[0]\">$tname</a>";
          echo "Poster: $flk<br/>In: $tlk<br/>Time: $dtop<br/>";
          echo $text;
          echo "<br/>";
          echo "<a href=\"adctrlpr.php?action=psu6&amp;sid=$sid&amp;t id=$item[0]\">Handle</a><br/><br/>";
          }

          echo "</p>";
          echo "<p align=\"center\">";
          if($page>1){
          $ppage = $page-1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$ppage&a mp;sid=$sid\">&#171;PREV</a> ";
          }
          if($page<$num_pages){
          $npage = $page+1;
          echo "<a href=\"adctrl.php?action=$action&amp;page=$npage&a mp;sid=$sid\">Next&#187;</a>";
          }
          echo "<br/>$page/$num_pages<br/>";
          if($num_pages>2){
          $rets = "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputButton\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
          $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
          $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
          $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
          $rets .= "</form>";
          echo $rets;
          }
          echo "<br/><br/>";
          echo "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\"> ";
          echo "Mod R/L</a></p>";
          getfooter($sid);
          }

          ///////////////////////////////////////////////Mod a user

          else if($action=="ermu"){
          $who = $_GET["who"];
          echo "<p align=\"center\">";
          $unick = getnick_uid($who);
          echo "<b>Moderating $unick</b>";
          echo "</p>";
          echo "<p>";
          echo "<a href=\"adctrl.php?action=kalamopt&amp;sid=$sid&amp ;who=$who\">&#187;Penalties</a><br/>";
          echo "<a href=\"adctrl.php?action=expses&amp;sid=$sid&amp;w ho=$who\">&#187;Boot</a><br/>";
          echo "<a href=\"adctrl.php?action=jodghata&amp;sid=$sid&amp ;who=$who\">&#187;Add/Subtract Coins</a><br/><br/>";

          if(istrashed($who)){
          echo "<a href=\"adctrlpr.php?action=kachrakadabba&amp;sid=$ sid&amp;who=$who\">&#187;Untrash</a><br/>";
          }
          if(isbanned($who)){
          echo "<a href=\"adctrlpr.php?action=albalaao&amp;sid=$sid&a mp;who=$who\">&#187;Unban</a><br/>";
          }
          if(isshoutblocked($who)){
          echo "<a href=\"adctrlpr.php?action=openshout&amp;sid=$sid& amp;who=$who\">&#187;Unblock Shoutbox</a><br/>";
          }
          if(isforumblocked($who)){
          echo "<a href=\"adctrlpr.php?action=openforum&amp;sid=$sid& amp;who=$who\">&#187;Unblock Forum Access</a><br/>";
          }
          if(isinboxblocked($who)){
          echo "<a href=\"adctrlpr.php?action=openinbox&amp;sid=$sid& amp;who=$who\">&#187;Unblock Inbox</a><br/>";
          }
          if(!isshield($who)){
          echo "<a href=\"adctrlpr.php?action=dhaal&amp;sid=$sid&amp; who=$who\">&#187;Shield</a><br/>";
          }else{
          echo "<a href=\"adctrlpr.php?action=chalbhag&amp;sid=$sid&a mp;who=$who\">&#187;Unshield</a><br/>";
          }
          echo "</p>";
          getfooter($sid);
          }


          ///////////////////////////////////////////////Boot user

          else if($action=="expses"){
          $who = $_GET["who"];
          mysql_query("DELETE FROM ibwf_ses WHERE uid = $who");
          mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='<b>".getnick_uid(getuid_sid($sid))."</b>booted the user <b>".getnick_uid($who)."</b>', actdt='".time()."'");
          echo "<p align=\"center\">";
          $unick = getnick_uid($who);
          echo "$unick has been booted!";
          echo "</p>";
          getfooter($sid);
          }

          /////////////////////////////Add Subtract Plusses///////////////
          else if($action=="jodghata")
          {
          $who = $_GET["who"];
          echo "<p align=\"center\">";
          $unick = getnick_uid($who);
          echo "<b>Add/Substract $unick's Coins</b>";
          echo "</p>";
          echo "<p>";
          $pen[0]="Substract";
          $pen[1]="Add";

          echo "<form action=\"adctrlpr.php?action=pls&amp;sid=$sid\" method=\"post\">";
          echo "Action: <select id=\"inputText\" name=\"pid\">";
          for($i=0;$i<count($pen);$i++)
          {
          echo "<option value=\"$i\">$pen[$i]</option>";
          }
          echo "</select><br/>";
          echo "Reason: <input id=\"inputText\" name=\"pres\" maxlength=\"100\"/><br/>";
          echo "Coins: <input id=\"inputText\" name=\"pval\" format=\"*N\" maxlength=\"5\"/><br/>";
          echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
          echo "<input id=\"inputButton\" type=\"submit\" value=\"GO\"/>";
          echo "</form>";
          echo "</p>";
          getfooter($sid);
          }

          //////////////////////////////////////Penalties Options

          else if($action=="kalamopt"){
          $who = $_GET["who"];
          echo "<p align=\"center\">";
          $unick = getnick_uid($who);
          echo "What do you want to do with $unick";
          echo "</p>";
          echo "<p>";
          $pen[0]="Trash";
          $pen[1]="Ban";
          $pen[2]="Ban Ip";
          echo "<form method=\"post\" action=\"adctrlpr.php?action=sazadore&amp;sid=$sid \">Penalty:<br/>";
          echo "<input type=\"radio\" name=\"pid\" value=\"0\" />Block Outgoing<br/>";
          echo "<input type=\"radio\" name=\"pid\" value=\"1\" checked=\"checked\" />Ban<br/>";
          echo "<input type=\"radio\" name=\"pid\" value=\"2\" />Block Inbox<br/>";
          echo "<input type=\"radio\" name=\"pid\" value=\"3\" />Block Forum Access<br/>";
          echo "<input type=\"radio\" name=\"pid\" value=\"4\" />Block Shoutbox<br/>";
          echo "Reason:<br/> <input id=\"inputText\" type=\"text\" name=\"pres\" maxlength=\"100\"/><br/>";
          echo "Days: <br/><input id=\"inputText\" type=\"text\" name=\"pds\" format=\"*N\" maxlength=\"4\"/><br/>";
          echo "Hours: <br/><input id=\"inputText\" type=\"text\" name=\"phr\" format=\"*N\" maxlength=\"4\"/><br/>";
          echo "Minutes: <br/><input id=\"inputText\" type=\"text\" name=\"pmn\" format=\"*N\" maxlength=\"2\"/><br/>";
          //echo "Seconds: <br/><input id=\"inputText\" type=\"text\" name=\"psc\" format=\"*N\" maxlength=\"2\"/><br/>";
          echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
          echo "<input id=\"inputButton\" type=\"submit\" name=\"submit\" value=\"Punish\"/></form>";
          echo "</p>";
          getfooter($sid);

          }
          ////////////////////////////////User Info/////////////////////////////
          else if($action=="uinfod")
          {
          addonline($uid,"Viewing <i>Personal Details</i> of a user","index.php?action=$action");
          $who = $_GET["who"];
          $who1=getuid_nick($who);
          getnewmsg($sid);
          getalert($sid);
          echo "<p>";
          if(ismod($uid))
          {

          echo "<b>Username:</b> $who<br/><b>Member ID</b>: $who1<br/>";
          $email=mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id=$who1"));
          echo "<b>E-Mail:</b> $email[0] <br/>";
          echo "<b>Phones used:</b><br/>";
          $query = mysql_query("SELECT DISTINCT ua FROM ua WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$ua <br/>";
          }
          echo "<b>IP addresses:</b><br/>";
          $query = mysql_query("SELECT DISTINCT ip FROM ip WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$ip <br/>";
          }
          if(isowner($uid)){
          echo "<b>Phone numbers:</b><br/>";
          $query = mysql_query("SELECT DISTINCT msi FROM msi WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$msi <br/>";
          }
          echo "<b>More phone numbers:</b><br/>";
          $query = mysql_query("SELECT DISTINCT xmsi FROM xmsi WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$xmsi <br/>";
          }
          echo "<b>Extended numbers:</b><br/>";
          $query = mysql_query("SELECT DISTINCT xnmsi FROM xnmsi WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$xnmsi <br/>";
          }
          echo "<b>Network information:</b><br/>";
          $query = mysql_query("SELECT DISTINCT netinf FROM netinf WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$netinf <br/>";
          }
          $todel = $who1;
          echo "<a href=\"ownerpro.php?action=delu&amp;sid=$sid&amp;w ho=$todel\">Delete this user</a><br/>";
          echo "<a href=\"ownerc.php?action=chubi&amp;sid=$sid&amp;wh o=$todel\">Edit $who's Profile</a><br/>";
          echo "<a href=\"lists.php?action=readmsgs&amp;sid=$sid&amp; who=$tid\">Read $who's Inboxes</a><br/>";
          echo "<a href=\"ownerc.php?action=expses&amp;sid=$sid&amp;w ho=$who\">Boot</a><br/>";
          }
          echo "<b>Opera Mini Phones:</b><br/>";
          $query = mysql_query("SELECT DISTINCT opminfon FROM opminfon WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$opminfon <br/>";
          }
          echo "<b>Original IPs if using Opera Mini or another proxy like Google Wireless Transcoder:</b><br/>";
          $query = mysql_query("SELECT DISTINCT fwdip FROM fwdip WHERE uid = '$who1'") or die(mysql_error());
          while ($row = mysql_fetch_array($query)) {
          extract($row);
          echo "$fwdip <br/>";
          }
          }
          else{
          echo "You are not an Admin";
          }
          echo "</p>";
          boxend();
          getfooter($sid);

          }



          else{
          echo "<p align=\"center\">";
          $idiot = getnick_sid($sid);
          $idiot1 = $REMOTE_ADDR;
          mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='$idiot $idiot1 was trying to hack the site!!', actdt='".time()."'");
          echo "If you are a normal user then I don't know how did you get into here, but there's nothing to show! Else if you are an idiot hacker then you will be thrown out very soon! Your IP and phone number will be blocked from accessing INDIANWAP!<br/><br/>";
          echo "<a href=\"index.php?action=main&amp;sid=$sid\">";
          echo "Main Menu</a>";
          echo "</p>";
          }

          boxend();
          ?>
          </font></body>
          </html>

          Comment


            #6
            it is edited from mobilezonez so use that script.no errors in that script.if u fibd errors then post your problems
            sigpic

            WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

            Comment


              #7
              tnx 4 d concern..i found out the problem...

              do you have the sql of wap.net.ph

              Comment


                #8
                Cedwap USE BBCODE

                Comment


                  #9
                  Originally posted by cedwap View Post
                  tnx 4 d concern..i found out the problem...

                  do you have the sql of wap.net.ph
                  U said u have the sql and u also showed me the one url where there are no errors use it

                  Comment


                    #10
                    try this

                    PHP Code:
                    <?php
                    include("config.php");
                    include(
                    "core.php");
                    echo(
                    "<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                    echo 
                    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML Mobile 1.0//EN\""" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
                    ?>
                    <html xmlns="http://www.w3.org/1999/xhtml">
                    <head>
                    <title>Mod CP</title>
                    <meta forua="true" http-equiv="Cache-Control" content="no-cache"/>
                    <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
                    <?php
                    connectdb
                    ();

                    $sid $_GET["sid"];
                    $uid getuid_sid($sid);
                    echo 
                    gettheme($sid);


                    ?>
                    </head>
                    <body>
                    <?php
                    echo "<font size=\"".getfontsize($sid)."\">";
                    gettimebar();
                    boxstart("$sitename");

                    $action $_GET["action"];
                    if(!
                    ismod(getuid_sid($sid))){
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "You are not a moderator!!!<br/>";
                    echo 
                    "<br/>";
                    echo 
                    "<a href=\"index.php\">Main Menu</a>";
                    echo 
                    "</p>";
                    echo 
                    "</div></div></font></body></html>";


                    exit();
                    }

                    if(
                    isbanned($uid)){
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<br/>";
                    echo 
                    "You are <b>Banned</b><br/>";
                    $banto mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1'"));
                    $remain $banto[0]- time();
                    $rmsg gettimemsg($remain);
                    echo 
                    "Time to finish your penalty: $rmsg<br/><br/>";
                    echo 
                    "</p>";
                    echo 
                    "</div></div></font></body>";


                    echo 
                    "</html>";
                    exit();
                    }
                    if(
                    islogged($sid)==false){
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "You are not logged in<br/>";
                    echo 
                    "Or Your session has been expired<br/><br/>";
                    echo 
                    "<a href=\"index.php\">Login</a>";
                    echo 
                    "</p>";
                    echo 
                    "</div></div></font></body></html>";


                    exit();
                    }
                    addonline(getuid_sid($sid),"Mod CP","");
                    if(
                    $action=="he3nomain"){
                    echo 
                    "<p><a href=\"adctrl.php?action=hidden&amp;sid=$sid\">Cloaked users</a></p>";
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>Reports</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";
                    $nrpm mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported='1'"));
                    echo 
                    "<a href=\"adctrl.php?action=cfmpr&amp;sid=$sid\">»Pr. Messages($nrpm[0])</a><br/>";
                    $nrps mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported='1'"));
                    echo 
                    "<a href=\"adctrl.php?action=fcpsr&amp;sid=$sid\">»Posts($nrps[0])</a><br/>";
                    $nrtp mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported='1'"));
                    echo 
                    "<a href=\"adctrl.php?action=doordarshan&amp;sid=$sid\">»Topics($nrtp[0])</a>";
                    echo 
                    "</p>";
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>Logs</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";
                    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog"));
                    if(
                    $noi[0]>0){
                    $nola mysql_query("SELECT DISTINCT (action)  FROM ibwf_mlog ORDER BY actdt DESC");
                    while(
                    $act=mysql_fetch_array($nola)){
                    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog WHERE action='".$act[0]."'"));
                    echo 
                    "<a href=\"adctrl.php?action=lakdi&amp;sid=$sid&amp;view=$act[0]\">$act[0]($noi[0])</a><br/>";
                    }
                    }
                    echo 
                    "</p>";
                    getfooter($sid);

                    }

                    /////////////////////////////////Reported PMs

                    else if($action=="cfmpr"){
                    $page $_GET["page"];
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>Reported PMs</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";

                    if(
                    $page=="" || $page<=0)$page=1;
                    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE reported ='1'"));
                    $num_items $noi[0]; //changable
                    $items_per_page5;
                    $num_pages ceil($num_items/$items_per_page);
                    if(
                    $page>$num_pages)$page$num_pages;
                    $limit_start = ($page-1)*$items_per_page;
                    $sql "SELECT id, text, byuid, touid, timesent FROM ibwf_private WHERE reported='1' ORDER BY timesent DESC LIMIT $limit_start$items_per_page";
                    $items mysql_query($sql);
                    while (
                    $item=mysql_fetch_array($items)){
                    $fromnk getnick_uid($item[2]);
                    $tonick getnick_uid($item[3]);
                    $dtop date("d m y - H:i:s"$item[4]);
                    $text parsepm($item[1]);
                    $flk "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[2]\">$fromnk</a>";
                    $tlk "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$tonick</a>";
                    echo 
                    "From: $flk To: $tlk<br/>Time: $dtop<br/>";
                    echo 
                    $text;
                    echo 
                    "<br/>";
                    echo 
                    "<a href=\"adctrlpr.php?action=phm97&amp;sid=$sid&amp;pid=$item[0]\">Handle</a><br/><br/>";
                    }

                    echo 
                    "</p>";
                    echo 
                    "<p align=\"center\">";
                    if(
                    $page>1){
                    $ppage $page-1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
                    }
                    if(
                    $page<$num_pages){
                    $npage $page+1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                    }
                    echo 
                    "<br/>$page/$num_pages<br/>";
                    if(
                    $num_pages>2){
                    $rets "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputText\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
                    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
                    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                    $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
                    $rets .= "</form>";
                    echo 
                    $rets;
                    }
                    echo 
                    "<br/><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\">";
                    echo 
                    "Mod R/L</a></p>";
                    getfooter($sid);

                    }
                    ///////////////////Edit main page///////////////
                    else if($action=="edtmp"){
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>Main Page Message</b>";
                    echo 
                    "</p>";
                    $fmsg=getfmsg();
                    echo 
                    "<p>";
                    echo 
                    "Enter message:<br/><form action=\"adctrlpr.php?action=edtmp&amp;sid=$sid\" method=\"post\">";
                    echo 
                    "<textarea id=\"inputText\" name=\"fmsg\" rows=\"10\" cols=\"20\">".htmlspecialchars($fmsg)."</textarea><br/><input id=\"inputButton\" type=\"submit\" value=\"Set\"></form>";
                    echo 
                    "<br/><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\">";
                    echo 
                    "Mod R/L</a><p/>";
                    getfooter($sid);

                    }

                    /////////////////////////////////Reported Posts

                    else if($action=="fcpsr"){
                    $page $_GET["page"];
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>Reported Posts</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";

                    if(
                    $page=="" || $page<=0)$page=1;
                    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_posts WHERE reported ='1'"));
                    $num_items $noi[0]; //changable
                    $items_per_page5;
                    $num_pages ceil($num_items/$items_per_page);
                    if(
                    $page>$num_pages)$page$num_pages;
                    $limit_start = ($page-1)*$items_per_page;
                    $sql "SELECT id, text, tid, uid, dtpost FROM ibwf_posts WHERE reported='1' ORDER BY dtpost DESC LIMIT $limit_start$items_per_page";
                    $items mysql_query($sql);
                    while (
                    $item=mysql_fetch_array($items)){
                    $poster getnick_uid($item[3]);
                    $tname htmlspecialchars(gettname($item[3]));
                    $dtop date("d m y - H:i:s"$item[4]);
                    $text parsemsg($item[1]);
                    $flk "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$poster</a>";
                    $tlk "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$item[2]\">$tname</a>";
                    echo 
                    "Poster: $flk<br/>In: $tlk<br/>Time: $dtop<br/>";
                    echo 
                    $text;
                    echo 
                    "<br/>";
                    echo 
                    "<a href=\"adctrlpr.php?action=phs19&amp;sid=$sid&amp;pid=$item[0]\">Handle</a><br/><br/>";
                    }

                    echo 
                    "</p>";
                    echo 
                    "<p align=\"center\">";
                    if(
                    $page>1){
                    $ppage $page-1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
                    }
                    if(
                    $page<$num_pages){
                    $npage $page+1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                    }
                    echo 
                    "<br/>$page/$num_pages<br/>";
                    if(
                    $num_pages>2){
                    $rets "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputText\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
                    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
                    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                    $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
                    $rets .= "</form>";
                    echo 
                    $rets;
                    }
                    echo 
                    "<br/><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\">";
                    echo 
                    "Mod R/L</a></p>";
                    getfooter($sid);
                    }

                    //////////Hidden Users///////////
                    else if($action=="hidden"){
                    addonline(getuid_sid($sid),"Viewing cloaked users list","index.php?action=$action");
                    $nouo mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_online WHERE hidden = 1"));
                    $indiatime time() + (addhours());
                    echo 
                    "<p align=\"right\">".date("h:i A"$indiatime)."<br/>".date("d/m/Y"$indiatime)."</p>";

                    echo 
                    "<p align=\"center\"><b><big><u>Cloaked Users</u></big></b></p>";
                    $umsg getunreadpm(getuid_sid($sid));
                    echo 
                    "<p align=\"center\">".getalert($sid)."</p>";
                    if(
                    $umsg>0){
                    echo 
                    "<p align=\"center\"><a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox($umsg new msg)</a></p>";
                    }
                    echo 
                    "<p align=\"center\">";
                    echo 
                    getshoutbox($sid);
                    echo 
                    "</p>";
                    $num_items getnumonline(); //changable
                    echo "<p>$num_items users are currently online among which $nouo[0] are hidden</p>";
                    if(
                    $page=="" || $page<=0)$page=1;
                    $items_per_page20;
                    $num_pages ceil($num_items/$items_per_page);
                    if(
                    $page>$num_pages)$page$num_pages;
                    $limit_start = ($page-1)*$items_per_page;
                    $sql "SELECT
                                a.name, a.budmsg, b.place, b.userid, a.id FROM ibwf_users a
                                INNER JOIN ibwf_online b ON a.id = b.userid WHERE b.hidden = 1
                                GROUP BY 1,2
                                LIMIT 
                    $limit_start$items_per_page
                    "
                    ;
                    echo 
                    "<p>";
                    $items mysql_query($sql);
                    echo 
                    mysql_error();
                    while (
                    $item mysql_fetch_array($items)){
                        
                        if(
                    isadmin($item[3]))
                        {
                    $lnk "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\"><font color='red'>$item[0]</font></a>";}
                        else if(
                    ismod($item[3]))
                        {
                    $lnk "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\"><font color='blue'>$item[0]</font></a>";}
                        else
                            {
                    $lnk "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</a>";}
                    $mood "";
                    if (
                    $item[1] == "") {
                            
                    $mood "";
                    }
                    else {
                            
                    $mood "(".parsemsg($item[1]).")";
                    }
                    echo 
                    "$lnk $mood - $item[2]<br/>";
                    }
                    echo 
                    "</p>";
                    echo 
                    "<p align=\"center\">";
                    if(
                    $page>1){
                    $ppage $page-1;
                    echo 
                    "<a href=\"index.php?action=online&amp;page=$ppage&amp;sid=$sid\">«Previous</a> ";
                    }
                    if(
                    $page<$num_pages){
                    $npage $page+1;
                    echo 
                    "<a href=\"index.php?action=online&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                    }
                    echo 
                    "<br/>Page $page of $num_pages<br/>";
                    if(
                    $num_pages>2){
                    echo 
                    getjumper($action$sid,"index");
                    }
                    echo 
                    "</p>";
                    getfooter($sid);
                    }


                    /////////////////////////////////Reported Posts

                    else if($action=="lakdi"){
                    $page $_GET["page"];
                    $view $_GET["view"];
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>$view</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";

                    if(
                    $page=="" || $page<=0)$page=1;
                    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_mlog WHERE  action='".$view."'"));
                    $num_items $noi[0]; //changable
                    $items_per_page5;
                    $num_pages ceil($num_items/$items_per_page);
                    if(
                    $page>$num_pages)$page$num_pages;
                    $limit_start = ($page-1)*$items_per_page;
                    $sql "SELECT  actdt, details FROM ibwf_mlog WHERE action='".$view."' ORDER BY actdt DESC LIMIT $limit_start$items_per_page";
                    $items mysql_query($sql);
                    while (
                    $item=mysql_fetch_array($items)){
                    echo 
                    "Time: ".date("d m y-H:i:s"$item[0])."<br/>";
                    $bandar strrpos($item[1], "has");
                    $machchar substr($item[1], 0$bandar-1);
                    echo 
                    str_replace("&""&amp;"$item[1]);
                    //echo "<br/><a href=\"index.php?action=viewuser&amp;who=".getuid_nick($machchar)."&amp;sid=$sid\">View Profile</a>";
                    echo "<br/><br/>";
                    }

                    echo 
                    "</p>";
                    echo 
                    "<p align=\"center\">";
                    if(
                    $page>1){
                    $ppage $page-1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$ppage&amp;sid=$sid&amp;view=$view\">«PREV</a> ";
                    }
                    if(
                    $page<$num_pages){
                    $npage $page+1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$npage&amp;sid=$sid&amp;view=$view\">Next»</a>";
                    }
                    echo 
                    "<br/>$page/$num_pages<br/>";
                    if(
                    $num_pages>2){
                    $rets "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputText\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
                    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
                    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                    $rets .= "<input type=\"hidden\" name=\"view\" value=\"$view\"/>";
                    $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
                    $rets .= "</form>";
                    echo 
                    $rets;
                    }
                    echo 
                    "<br/><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\">";
                    echo 
                    "Mod R/L</a></p>";
                    getfooter($sid);

                    }

                    /////////////////////////////////Reported Topics

                    else if($action=="doordarshan"){
                    $page $_GET["page"];
                    echo 
                    "<p align=\"center\">";
                    echo 
                    "<b>Reported Topics</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";

                    if(
                    $page=="" || $page<=0)$page=1;
                    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_topics WHERE reported ='1'"));
                    $num_items $noi[0]; //changable
                    $items_per_page5;
                    $num_pages ceil($num_items/$items_per_page);
                    if(
                    $page>$num_pages)$page$num_pages;
                    $limit_start = ($page-1)*$items_per_page;
                    $sql "SELECT id, name, text, authorid, crdate FROM ibwf_topics WHERE reported='1' ORDER BY crdate DESC LIMIT $limit_start$items_per_page";
                    $items mysql_query($sql);
                    while (
                    $item=mysql_fetch_array($items)){
                    $poster getnick_uid($item[3]);
                    $tname htmlspecialchars($item[1]);
                    $dtop date("d m y - H:i:s"$item[4]);
                    $text parsemsg($item[2]);
                    $flk "<a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$item[3]\">$poster</a>";
                    $tlk "<a href=\"index.php?action=viewtpc&amp;sid=$sid&amp;tid=$item[0]\">$tname</a>";
                    echo 
                    "Poster: $flk<br/>In: $tlk<br/>Time: $dtop<br/>";
                    echo 
                    $text;
                    echo 
                    "<br/>";
                    echo 
                    "<a href=\"adctrlpr.php?action=psu6&amp;sid=$sid&amp;tid=$item[0]\">Handle</a><br/><br/>";
                    }

                    echo 
                    "</p>";
                    echo 
                    "<p align=\"center\">";
                    if(
                    $page>1){
                    $ppage $page-1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$ppage&amp;sid=$sid\">«PREV</a> ";
                    }
                    if(
                    $page<$num_pages){
                    $npage $page+1;
                    echo 
                    "<a href=\"adctrl.php?action=$action&amp;page=$npage&amp;sid=$sid\">Next»</a>";
                    }
                    echo 
                    "<br/>$page/$num_pages<br/>";
                    if(
                    $num_pages>2){
                    $rets "Jump to page<form method=\"get\" action=\"adctrl.php\"><input id=\"inputButton\" type=\"text\" name=\"page\" format=\"*N\" size=\"3\"/>";
                    $rets .= "<input type=\"hidden\" name=\"action\" value=\"$action\"/>";
                    $rets .= "<input type=\"hidden\" name=\"sid\" value=\"$sid\"/>";
                    $rets .= "<input id=\"inputButton\" type=\"submit\" value=\"Go\"/>";
                    $rets .= "</form>";
                    echo 
                    $rets;
                    }
                    echo 
                    "<br/><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=he3nomain&amp;sid=$sid\">";
                    echo 
                    "Mod R/L</a></p>";
                    getfooter($sid);
                    }

                    ///////////////////////////////////////////////Mod a user

                    else if($action=="ermu"){
                    $who $_GET["who"];
                    echo 
                    "<p align=\"center\">";
                    $unick getnick_uid($who);
                    echo 
                    "<b>Moderating $unick</b>";
                    echo 
                    "</p>";
                    echo 
                    "<p>";
                    echo 
                    "<a href=\"adctrl.php?action=kalamopt&amp;sid=$sid&amp;who=$who\">»Penalties</a><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=expses&amp;sid=$sid&amp;who=$who\">»Boot</a><br/>";
                    echo 
                    "<a href=\"adctrl.php?action=jodghata&amp;sid=$sid&amp;who=$who\">»Add/Subtract Points</a><br/><br/>";

                    if(
                    istrashed($who)){
                    echo 
                    "<a href=\"adctrlpr.php?action=kachrakadabba&amp;sid=$sid&amp;who=$who\">»Untrash</a><br/>";
                    }
                    if(
                    isbanned($who)){
                    echo 
                    "<a href=\"adctrlpr.php?action=albalaao&amp;sid=$sid&amp;who=$who\">»Unban</a><br/>";
                    }
                    if(
                    isshoutblocked($who)){
                    echo 
                    "<a href=\"adctrlpr.php?action=openshout&amp;sid=$sid&amp;who=$who\">»Unblock Shoutbox</a><br/>";
                    }
                    if(
                    isforumblocked($who)){
                    echo 
                    "<a href=\"adctrlpr.php?action=openforum&amp;sid=$sid&amp;who=$who\">»Unblock Forum Access</a><br/>";
                    }
                    if(
                    isinboxblocked($who)){
                    echo 
                    "<a href=\"adctrlpr.php?action=openinbox&amp;sid=$sid&amp;who=$who\">»Unblock Inbox</a><br/>";
                    }
                    if(!
                    isshield($who)){
                    echo 
                    "<a href=\"adctrlpr.php?action=dhaal&amp;sid=$sid&amp;who=$who\">»Shield</a><br/>";
                    }else{
                    echo 
                    "<a href=\"adctrlpr.php?action=chalbhag&amp;sid=$sid&amp;who=$who\">»Unshield</a><br/>";
                    }
                    echo 
                    "</p>";
                    getfooter($sid);
                    }


                    ///////////////////////////////////////////////Boot  user

                    else if($action=="expses"){
                    $who $_GET["who"];
                    mysql_query("DELETE FROM ibwf_ses WHERE uid = $who");
                    mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='<b>".getnick_uid(getuid_sid($sid))."</b>booted the user <b>".getnick_uid($who)."</b>', actdt='".time()."'");
                    echo 
                    "<p align=\"center\">";
                    $unick getnick_uid($who);
                    echo 
                    "$unick has been booted!";
                    echo 
                    "</p>";
                    getfooter($sid);
                    }

                    /////////////////////////////Add Subtract Plusses///////////////
                    else if($action=="jodghata")
                    {
                        
                    $who $_GET["who"];
                        echo 
                    "<p align=\"center\">";
                        
                    $unick getnick_uid($who);
                        echo 
                    "<b>Add/Substract $unick's Points!</b>";
                        echo 
                    "</p>";
                        echo 
                    "<p>";
                        
                    $pen[0]="Substract";
                        
                    $pen[1]="Add";
                        
                    echo 
                    "<form action=\"adctrlpr.php?action=pls&amp;sid=$sid\" method=\"post\">";
                        echo 
                    "Action: <select id=\"inputText\" name=\"pid\">";
                        for(
                    $i=0;$i<count($pen);$i++)
                        {
                          echo 
                    "<option value=\"$i\">$pen[$i]</option>";
                        }
                        echo 
                    "</select><br/>";
                        echo 
                    "Reason: <input id=\"inputText\" name=\"pres\" maxlength=\"100\"/><br/>";
                        echo 
                    "Plusses: <input id=\"inputText\" name=\"pval\" format=\"*N\" maxlength=\"5\"/><br/>";
                            echo 
                    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
                        echo 
                    "<input id=\"inputButton\" type=\"submit\" value=\"GO\"/>";
                        echo 
                    "</form>";
                        echo 
                    "</p>";
                    getfooter($sid);
                    }

                    //////////////////////////////////////Penalties Options

                    else if($action=="kalamopt"){
                    $who $_GET["who"];
                    echo 
                    "<p align=\"center\">";
                    $unick getnick_uid($who);
                    echo 
                    "What do you want to do with $unick";
                    echo 
                    "</p>";
                    echo 
                    "<p>";
                    $pen[0]="Trash";
                    $pen[1]="Ban";
                    $pen[2]="Ban Ip";
                    echo 
                    "<form method=\"post\" action=\"adctrlpr.php?action=sazadore&amp;sid=$sid\">Penalty:<br/>";
                    echo 
                    "<input type=\"radio\" name=\"pid\" value=\"0\" />Block Outgoing<br/>";
                    echo 
                    "<input type=\"radio\" name=\"pid\" value=\"1\" checked=\"checked\" />Ban<br/>";
                    echo 
                    "<input type=\"radio\" name=\"pid\" value=\"2\" />Block Inbox<br/>";
                    echo 
                    "<input type=\"radio\" name=\"pid\" value=\"3\" />Block Forum Access<br/>";
                    echo 
                    "<input type=\"radio\" name=\"pid\" value=\"4\" />Block Shoutbox<br/>";
                    echo 
                    "Reason:<br/> <input id=\"inputText\" type=\"text\" name=\"pres\" maxlength=\"100\"/><br/>";
                    echo 
                    "Days: <br/><input id=\"inputText\" type=\"text\" name=\"pds\" format=\"*N\" maxlength=\"4\"/><br/>";
                    echo 
                    "Hours: <br/><input id=\"inputText\" type=\"text\" name=\"phr\" format=\"*N\" maxlength=\"4\"/><br/>";
                    echo 
                    "Minutes: <br/><input id=\"inputText\" type=\"text\" name=\"pmn\" format=\"*N\" maxlength=\"2\"/><br/>";
                    echo 
                    "Seconds: <br/><input id=\"inputText\" type=\"text\" name=\"psc\" format=\"*N\" maxlength=\"2\"/><br/>";
                    echo 
                    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
                    echo 
                    "<input id=\"inputButton\" type=\"submit\" name=\"submit\" value=\"Punish\"/></form>";
                    echo 
                    "</p>";
                    getfooter($sid);

                    }
                    ////////////////////////////////User Info/////////////////////////////
                    else if($action=="uinfod")
                    {
                      
                    addonline($uid,"Viewing <i>janm kundli</i> of a user","index.php?action=$action");
                    $who $_GET["who"];
                      
                    $who1=getuid_nick($who);
                     
                    getnewmsg($sid);
                     
                    getalert($sid);
                    echo 
                    "<p>";
                      if(
                    ismod($uid))
                      {
                              
                    echo 
                    "<b>Username:</b> $who<br/><b>Member ID</b>: $who1<br/>";
                    $email=mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id=$who1"));
                    echo 
                    "<b>E-Mail:</b> $email[0] <br/>";
                    echo 
                    "<b>Phones used:</b><br/>";
                    $query mysql_query("SELECT DISTINCT ua FROM ua WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$ua <br/>";
                    }
                    echo 
                    "<b>IP addresses:</b><br/>";
                    $query mysql_query("SELECT DISTINCT ip FROM ip WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$ip <br/>";
                    }
                    if(
                    isadmin($uid)){
                    echo 
                    "<b>Phone numbers:</b><br/>";
                    $query mysql_query("SELECT DISTINCT msi FROM msi WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$msi <br/>";
                    }
                    echo 
                    "<b>More phone numbers:</b><br/>";
                    $query mysql_query("SELECT DISTINCT xmsi FROM xmsi WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$xmsi <br/>";
                    }
                    echo 
                    "<b>Extended numbers:</b><br/>";
                    $query mysql_query("SELECT DISTINCT xnmsi FROM xnmsi WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$xnmsi <br/>";
                    }
                    echo 
                    "<b>Network information:</b><br/>";
                    $query mysql_query("SELECT DISTINCT netinf FROM netinf WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$netinf <br/>";
                    }
                    $todel $who1;
                    echo 
                    "<a href=\"admonitionpr.php?action=delu&amp;sid=$sid&amp;who=$todel\">Delete this user</a><br/>";
                    echo 
                    "<a href=\"admonition.php?action=chubi&amp;sid=$sid&amp;who=$todel\">Edit $who's Profile</a><br/>";
                    }
                    echo 
                    "<b>Opera Mini Phones:</b><br/>";
                    $query mysql_query("SELECT DISTINCT opminfon FROM opminfon WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$opminfon <br/>";
                    }
                    echo 
                    "<b>Original IPs if using Opera Mini or another proxy like Google Wireless Transcoder:</b><br/>";
                    $query mysql_query("SELECT DISTINCT fwdip FROM fwdip WHERE uid = '$who1'") or die(mysql_error());
                    while (
                    $row mysql_fetch_array($query)) {
                    extract($row);
                    echo 
                    "$fwdip <br/>";
                    }
                       }
                    else{
                        echo 
                    "You are not an Admin";
                      }
                      echo 
                    "</p>";
                    boxend();
                    getfooter($sid);

                    }



                    else{
                    echo 
                    "<p align=\"center\">";
                    $idiot getnick_sid($sid);
                    $idiot1 $REMOTE_ADDR;
                    mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='$idiot $idiot1 was trying to hack the site!!', actdt='".time()."'");
                    echo 
                    "If you are a normal user then I don't know how did you get into here, but there's nothing to show! Else if you are an idiot hacker then you will be thrown out very soon! Your IP and phone number will be blocked from accessing INDIANWAP!<br/><br/>";
                    echo 
                    "<a href=\"index.php?action=main&amp;sid=$sid\">";
                    echo 
                    "Main Menu</a>";
                    echo 
                    "</p>";
                    }

                    boxend();
                    ?>
                    </font></body>
                    </html>
                    sigpic

                    WANT GOOD CHEAP HOSTING WITH 99% UPTIME? THEN PM ME FOR DETAILS!!

                    Comment


                      #11
                      yes i used the lavalair sql it work..but i found out that the article has an error,,so i need to find the complete one-..

                      ----chatbeta.info----

                      Comment


                        #12
                        oh...tnx thunderwap..i appreciate your effort

                        Comment


                          #13
                          there a few errors on this script i see gallery doesnt work lol too file not uploaded to the wanted location
                          Error: Destination directory can't be made writeable. Can't carry on a process
                          Back to Photo Gallery

                          Comment


                            #14
                            i have some problem i am not enter main page i am just click enter error is You are not logged in
                            or your session has expired.pls slove this

                            Comment


                              #15
                              hellp bro pls help me i am use ldswapworld script but some problem pls go to my site bingochat.in and slove my error my error is i am not go to main page pls slove this errror

                              Comment

                              Working...
                              X