ldswapworld

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

17 replies · 761 views · started 17 years ago · 1 min read

5 participants
cedwap Developer · 64 posts #1

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?

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

thunderwap Developer · 169 posts #2

what script you using?

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

cedwap Developer · 64 posts #3

ldswapworld script

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

thunderwap Developer · 169 posts #4

post adctrl.php here

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

cedwap Developer · 64 posts #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 ""; gettimebar(); boxstart("$sitename");

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

echo " "; echo "You are not a moderator!!! "; echo " "; echo "<a href="index.php">Main Menu</a>"; echo " "; echo "</body></html>";

exit(); }

if(isbanned($uid)){ echo " "; echo " "; echo "You are Banned "; $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

"; echo " "; echo "</body>";

echo "</html>"; exit(); } if(islogged($sid)==false){ echo " "; echo "You are not logged in "; echo "Or Your session has been expired

"; echo "<a href="index.php">Login</a>"; echo " "; echo "</body></html>";

exit(); } addonline(getuid_sid($sid),"Mod CP",""); if($action=="he3nomain"){ echo " <a href="adctrl.php?action=hidden&sid=$sid">Cloaked users</a> "; echo " "; echo "Reports"; echo " "; echo " "; $nrpm = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_private WHERE reported='1'")); echo "<a href="adctrl.php?action=cfmpr&sid=$sid">»Pr. Messages($nrpm[0])</a> "; $nrps = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_posts WHERE reported='1'")); echo "<a href="adctrl.php?action=fcpsr&sid=$sid">»Posts($nrps[0])</a> "; $nrtp = mysql_fetch_array(mysql_query("SELECT COUNT() FROM ibwf_topics WHERE reported='1'")); echo "<a href="adctrl.php?action=doordarshan&sid=$sid">»Topics($nrtp[0])</a>"; echo " "; echo " "; echo "Logs"; echo " "; echo " "; $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&sid=$sid&view=$act[0]">$act0</a> "; } } echo " "; getfooter($sid);

}

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

else if($action=="cfmpr"){ $page = $_GET["page"]; echo " "; echo "Reported PMs"; echo " "; echo " ";

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&sid=$sid&who=$item[2]">$fromnk</a>"; $tlk = "<a href="index.php?action=viewuser&sid=$sid&who=$item[3]">$tonick</a>"; echo "From: $flk To: $tlk Time: $dtop "; echo $text; echo " "; echo "<a href="adctrlpr.php?action=phm97&sid=$sid&pid=$item[0]">Handle</a>

"; }

echo " "; echo " "; if($page>1){ $ppage = $page-1; echo "<a href="adctrl.php?action=$action&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages){ $npage = $page+1; echo "<a href="adctrl.php?action=$action&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; 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 "

"; echo "<a href="adctrl.php?action=he3nomain&sid=$sid">"; echo "Mod R/L</a> "; getfooter($sid);

} ///////////////////Edit main page/////////////// else if($action=="edtmp"){ echo " "; echo "Main Page Message"; echo " "; $fmsg=getfmsg(); echo " "; echo "Enter message:

<form action=\"adctrlpr.php?action=edtmp&amp;sid=$sid\" method=\"post\">"; echo "<textarea id=\"inputText\" name=\"fmsg\" rows=\"10\" cols=\"20\">".htmlspecialchars($fmsg)."</textarea> <input id=\"inputButton\" type=\"submit\" value=\"Set\"></form>"; echo "

"; echo "<a href="adctrl.php?action=he3nomain&sid=$sid">"; echo "Mod R/L</a><p/>"; getfooter($sid);

}

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

else if($action=="fcpsr"){ $page = $_GET["page"]; echo " "; echo "Reported Posts"; echo " "; echo " ";

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&sid=$sid&who=$item[3]">$poster</a>"; $tlk = "<a href="index.php?action=viewtpc&sid=$sid&tid=$item[2]">$tname</a>"; echo "Poster: $flk In: $tlk Time: $dtop "; echo $text; echo " "; echo "<a href="adctrlpr.php?action=phs19&sid=$sid&pid=$item[0]">Handle</a>

"; }

echo " "; echo " "; if($page>1){ $ppage = $page-1; echo "<a href="adctrl.php?action=$action&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages){ $npage = $page+1; echo "<a href="adctrl.php?action=$action&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; 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 "

"; echo "<a href="adctrl.php?action=he3nomain&sid=$sid">"; echo "Mod R/L</a> "; 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 " ".date("h:i A", $indiatime)." ".date("d/m/Y", $indiatime)." ";

echo " Cloaked Users "; $umsg = getunreadpm(getuid_sid($sid)); echo " ".getalert($sid)." "; if($umsg>0){ echo " <a href="inbox.php?action=main&sid=$sid">Inbox($umsg new msg)</a> "; } echo " "; echo getshoutbox($sid); echo " "; $num_items = getnumonline(); //changable echo " $num_items users are currently online among which $nouo[0] are hidden "; 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 " "; $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\">$item[0]</a>";}
else if(ismod($item[3]))
{$lnk = "$atxt<a href=\"index.php?action=viewuser&amp;who=$item[3]&amp;sid=$sid\">$item[0]</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] "; } echo " "; echo " "; if($page>1){ $ppage = $page-1; echo "<a href="index.php?action=online&page=$ppage&sid=$sid">«Previous</a> "; } if($page<$num_pages){ $npage = $page+1; echo "<a href="index.php?action=online&page=$npage&sid=$sid">Next»</a>"; } echo " Page $page of $num_pages "; if($num_pages>2){ echo getjumper($action, $sid,"index"); } echo " "; getfooter($sid); }

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

else if($action=="lakdi"){ $page = $_GET["page"]; $view = $_GET["view"]; echo " "; echo "$view"; echo " "; echo " ";

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])." "; $bandar = strrpos($item[1], "has"); $machchar = substr($item[1], 0, $bandar-1); echo str_replace("&", "&", $item[1]); //echo " <a href="index.php?action=viewuser&who=".getuid_nick($machchar)."&sid=$sid">View Profile</a>"; echo "

"; }

echo " "; echo " "; if($page>1){ $ppage = $page-1; echo "<a href="adctrl.php?action=$action&page=$ppage&sid=$sid&view=$view">«PREV</a> "; } if($page<$num_pages){ $npage = $page+1; echo "<a href="adctrl.php?action=$action&page=$npage&sid=$sid&view=$view">Next»</a>"; } echo " $page/$num_pages "; 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 "

"; echo "<a href="adctrl.php?action=he3nomain&sid=$sid">"; echo "Mod R/L</a> "; getfooter($sid);

}

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

else if($action=="doordarshan"){ $page = $_GET["page"]; echo " "; echo "Reported Topics"; echo " "; echo " ";

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&sid=$sid&who=$item[3]">$poster</a>"; $tlk = "<a href="index.php?action=viewtpc&sid=$sid&tid=$item[0]">$tname</a>"; echo "Poster: $flk In: $tlk Time: $dtop "; echo $text; echo " "; echo "<a href="adctrlpr.php?action=psu6&sid=$sid&tid=$item[0]">Handle</a>

"; }

echo " "; echo " "; if($page>1){ $ppage = $page-1; echo "<a href="adctrl.php?action=$action&page=$ppage&sid=$sid">«PREV</a> "; } if($page<$num_pages){ $npage = $page+1; echo "<a href="adctrl.php?action=$action&page=$npage&sid=$sid">Next»</a>"; } echo " $page/$num_pages "; 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 "

"; echo "<a href="adctrl.php?action=he3nomain&sid=$sid">"; echo "Mod R/L</a> "; getfooter($sid); }

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

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

";

if(istrashed($who)){ echo "<a href="adctrlpr.php?action=kachrakadabba&sid=$sid&who=$who">»Untrash</a> "; } if(isbanned($who)){ echo "<a href="adctrlpr.php?action=albalaao&sid=$sid&who=$who">»Unban</a> "; } if(isshoutblocked($who)){ echo "<a href="adctrlpr.php?action=openshout&sid=$sid&who=$who">»Unblock Shoutbox</a> "; } if(isforumblocked($who)){ echo "<a href="adctrlpr.php?action=openforum&sid=$sid&who=$who">»Unblock Forum Access</a> "; } if(isinboxblocked($who)){ echo "<a href="adctrlpr.php?action=openinbox&sid=$sid&who=$who">»Unblock Inbox</a> "; } if(!isshield($who)){ echo "<a href="adctrlpr.php?action=dhaal&sid=$sid&who=$who">»Shield</a> "; }else{ echo "<a href="adctrlpr.php?action=chalbhag&sid=$sid&who=$who">»Unshield</a> "; } echo " "; 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='**".getnick_uid(getuid_sid($sid))."**booted the user ".getnick_uid($who)."', actdt='".time()."'"); echo " "; $unick = getnick_uid($who); echo "$unick has been booted!"; echo " "; getfooter($sid); }

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

echo "<form action="adctrlpr.php?action=pls&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> "; echo "Reason: <input id="inputText" name="pres" maxlength="100"/> "; echo "Coins: <input id="inputText" name="pval" format="*N" maxlength="5"/> "; echo "<input type="hidden" name="who" value="$who"/>"; echo "<input id="inputButton" type="submit" value="GO"/>"; echo "</form>"; echo " "; getfooter($sid); }

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

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

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

echo "Username: $who Member ID: $who1 "; $email=mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id=$who1")); echo "E-Mail: $email[0] "; echo "Phones used: "; $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 "; } echo "IP addresses: "; $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 "; } if(isowner($uid)){ echo "Phone numbers: "; $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 "; } echo "More phone numbers: "; $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 "; } echo "Extended numbers: "; $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 "; } echo "Network information: "; $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 "; } $todel = $who1; echo "<a href="ownerpro.php?action=delu&sid=$sid&who=$todel">Delete this user</a> "; echo "<a href="ownerc.php?action=chubi&sid=$sid&who=$todel">Edit $who's Profile</a> "; echo "<a href="lists.php?action=readmsgs&sid=$sid&who=$tid">Read $who's Inboxes</a> "; echo "<a href="ownerc.php?action=expses&sid=$sid&who=$who">Boot</a> "; } echo "Opera Mini Phones: "; $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 "; } echo "Original IPs if using Opera Mini or another proxy like Google Wireless Transcoder: "; $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 "; } } else{ echo "You are not an Admin"; } echo " "; boxend(); getfooter($sid);

}

else{ echo " "; $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!

"; echo "<a href="index.php?action=main&sid=$sid">"; echo "Main Menu</a>"; echo " "; }

boxend(); ?>

</body> </html>

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

thunderwap Developer · 169 posts #6

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

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

cedwap Developer · 64 posts #7

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

do you have the sql of wap.net.ph

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

riderz Lead · 975 posts #9

cedwap wrote: 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


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

thunderwap Developer · 169 posts #10

try this

<?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&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&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&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&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&sid=$sid&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_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&sid=$sid&who=$item[2]\">$fromnk</a>";
$tlk = "<a href=\"index.php?action=viewuser&sid=$sid&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&sid=$sid&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&page=$ppage&sid=$sid\">«PREV</a> ";
}
if($page<$num_pages){
$npage = $page+1;
echo "<a href=\"adctrl.php?action=$action&page=$npage&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&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&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&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&sid=$sid&who=$item[3]\">$poster</a>";
$tlk = "<a href=\"index.php?action=viewtpc&sid=$sid&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&sid=$sid&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&page=$ppage&sid=$sid\">«PREV</a> ";
}
if($page<$num_pages){
$npage = $page+1;
echo "<a href=\"adctrl.php?action=$action&page=$npage&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&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&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&who=$item[3]&sid=$sid\"><font color='red'>$item[0]</font></a>";}
	else if(ismod($item[3]))
	{$lnk = "$atxt<a href=\"index.php?action=viewuser&who=$item[3]&sid=$sid\"><font color='blue'>$item[0]</font></a>";}
	else
		{$lnk = "$atxt<a href=\"index.php?action=viewuser&who=$item[3]&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&page=$ppage&sid=$sid\">«Previous</a> ";
}
if($page<$num_pages){
$npage = $page+1;
echo "<a href=\"index.php?action=online&page=$npage&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_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("&", "&", $item[1]);
//echo "<br/><a href=\"index.php?action=viewuser&who=".getuid_nick($machchar)."&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&page=$ppage&sid=$sid&view=$view\">«PREV</a> ";
}
if($page<$num_pages){
$npage = $page+1;
echo "<a href=\"adctrl.php?action=$action&page=$npage&sid=$sid&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&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&sid=$sid&who=$item[3]\">$poster</a>";
$tlk = "<a href=\"index.php?action=viewtpc&sid=$sid&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&sid=$sid&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&page=$ppage&sid=$sid\">«PREV</a> ";
}
if($page<$num_pages){
$npage = $page+1;
echo "<a href=\"adctrl.php?action=$action&page=$npage&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&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&sid=$sid&who=$who\">»Penalties</a><br/>";
echo "<a href=\"adctrl.php?action=expses&sid=$sid&who=$who\">»Boot</a><br/>";
echo "<a href=\"adctrl.php?action=jodghata&sid=$sid&who=$who\">»Add/Subtract Points</a><br/><br/>";

if(istrashed($who)){
echo "<a href=\"adctrlpr.php?action=kachrakadabba&sid=$sid&who=$who\">»Untrash</a><br/>";
}
if(isbanned($who)){
echo "<a href=\"adctrlpr.php?action=albalaao&sid=$sid&who=$who\">»Unban</a><br/>";
}
if(isshoutblocked($who)){
echo "<a href=\"adctrlpr.php?action=openshout&sid=$sid&who=$who\">»Unblock Shoutbox</a><br/>";
}
if(isforumblocked($who)){
echo "<a href=\"adctrlpr.php?action=openforum&sid=$sid&who=$who\">»Unblock Forum Access</a><br/>";
}
if(isinboxblocked($who)){
echo "<a href=\"adctrlpr.php?action=openinbox&sid=$sid&who=$who\">»Unblock Inbox</a><br/>";
}
if(!isshield($who)){
echo "<a href=\"adctrlpr.php?action=dhaal&sid=$sid&who=$who\">»Shield</a><br/>";
}else{
echo "<a href=\"adctrlpr.php?action=chalbhag&sid=$sid&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&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&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&sid=$sid&who=$todel\">Delete this user</a><br/>";
echo "<a href=\"admonition.php?action=chubi&sid=$sid&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&sid=$sid\">";
echo "Main Menu</a>";
echo "</p>";
}

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

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

cedwap Developer · 64 posts #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----

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

cedwap Developer · 64 posts #12

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

PROUD TO BE PINOY! just PM me if you have questions about installing/coding script...feel free to PM me if your asking to be your coder....i want helping others so i decided to be a personal coder without asking asking for an exchange...PM now..

Guest #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

partho Junior · 40 posts #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

partho Junior · 40 posts #15

hellp bro pls help me i am use **[B]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;(

partho Junior · 40 posts #16

Warning: Unterminated comment starting line 781 in /home/bingocha/public_html/bingochat.in/class.upload.php on line 781

Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /home/bingocha/public_html/bingochat.in/class.upload.php on line 781

what is the error sls slove this.................................

partho Junior · 40 posts #17

how to change site time /where this option to change it🍬

cbwf Newbie · 4 posts #18

i have a problem i am make admin and head admin but error h.admin enter cp direct log out and enter admin but server say u r not a admin .....how is prosible.......

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close