Any0ne have it..?pls post here..thanks
[Help]Owner Cp for Methos XHTML
Collapse
X
-
admincp.php
PHP Code:<?php include("config.php"); include("core.php"); //session_start(); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">"; echo "<head><title>$site_name</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/> <meta name=\"description\" content=\"Chatheaven :)\"> <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"; echo "<body>"; connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; if(!isadmin(getuid_sid($sid))) { echo "<p align=\"center\">"; echo "You are not an admin<br/>"; echo "<br/>"; echo "<a href=\"index.php\">Home</a>"; echo "</p>"; echo "</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 "</body>"; echo "</html>"; exit(); } $res = mysql_query("UPDATE ibwf_users SET pid='0' WHERE id='".getuid_sid($sid)."'"); addonline(getuid_sid($sid),"Admin CP",""); if($action=="general") { $xtm = getsxtm(); $paf = getpmaf(); $fvw = getfview(); $fmsg = htmlspecialchars(getfmsg()); if(canreg()) { $arv = "e"; }else{ $arv= "d"; } echo "<form action=\"admproc.php?action=general&sid=$sid\" method=\"post\">"; echo "Session Period: "; echo "<input name=\"sesp\" format=\"*N\" maxlength=\"3\" size=\"3\ value=\"$xtm\"/>"; echo "<br/>PM Antiflood<input name=\"pmaf\" format=\"*N\" maxlength=\"3\" size=\"3\" value=\"$paf\"/>"; echo "<br/>Forum Message: "; echo "<input name=\"fmsg\" maxlength=\"255\" value=\"$fmsg\"/>"; echo "<br/>Registration: "; echo "<select name=\"areg\" value=\"$arv\">"; echo "<option value=\"e\">Enabled</option>"; echo "<option value=\"d\">Disabled</option>"; echo "</select><br/>"; echo "View:"; echo "<select name=\"fvw\" value=\"$fvw\">"; //$vname[0]="Drop Menu"; $vname[0]="Horizontal Links"; $vname[1]="Nothing"; for($i=0;$i<count($vname);$i++) { echo "<option value=\"$i\">$vname[$i]</option>"; } echo "</select>"; echo "<input type=\"submit\" value=\"submit\"/>"; echo "</form>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addperm") { echo "<p align=\"center\">"; echo "<b>Add permission</b>"; $forums = mysql_query("SELECT id, name FROM ibwf_forums ORDER BY position, id, name"); echo "<form action=\"admproc.php?action=addperm&sid=$sid\" method=\"post\">"; echo "<br/><br/>Forum: <select name=\"fid\">"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select>"; $forums = mysql_query("SELECT id, name FROM fun_groups ORDER BY name, id"); echo "<br/>UGroups: <select name=\"gid\">"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select>"; echo "<input type=\"submit\" value=\"Submit\"/>"; echo "</form>"; echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } //////////////////////////////////////Manage Mods else if($action=="manmods") { echo "<p align=\"center\">"; echo "NOTE: Some features will be added later to this page<br/><br/>"; $mods = mysql_query("SELECT id, name FROM ibwf_users WHERE perm='1'"); echo "Mod: <select name=\"mid\">"; while($mod=mysql_fetch_array($mods)) { echo "<option value=\"$mod[0]\">$mod[1]</option>"; } echo "</select><br/>"; /* $forums = mysql_query("SELECT id, name FROM ibwf_forums"); echo "Forum: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<anchor>Add"; echo "<go href=\"admproc.php?action=addfmod&sid=$sid\" method=\"post\">"; echo "<postfield name=\"mid\" value=\"$(mid)\"/>"; echo "<postfield name=\"fid\" value=\"$(fid)\"/>"; echo "</go>"; echo "</anchor>"; */ echo "<anchor>Add All Forums"; echo "<go href=\"admproc.php?action=addfmod&sid=$sid\" method=\"post\">"; echo "<postfield name=\"mid\" value=\"$(mid)\"/>"; echo "<postfield name=\"fid\" value=\"*\"/>"; echo "</go>"; echo "<br/></anchor>"; echo "<anchor>Delete All Forums"; echo "<go href=\"admproc.php?action=delfmod&sid=$sid\" method=\"post\">"; echo "<postfield name=\"mid\" value=\"$(mid)\"/>"; echo "<postfield name=\"fid\" value=\"*\"/>"; echo "</go>"; echo "</anchor>"; //echo "<br/><br/>"; echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="fcats") { echo "<p>"; echo "<a href=\"admincp.php?action=addcat&sid=$sid\">»Add Category</a><br/>"; echo "<a href=\"admincp.php?action=edtcat&sid=$sid\">»Edit Category</a><br/>"; echo "<a href=\"admincp.php?action=delcat&sid=$sid\">»Delete Category</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="club") { $clid = $_GET["clid"]; echo "<p>"; echo "<a href=\"admincp.php?action=gccp&sid=$sid&clid=$clid\">»Give Credit Plusses</a><br/>"; echo "<a href=\"admproc.php?action=delclub&sid=$sid&clid=$clid\">»Delete Club</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="manrss") { echo "<p>"; echo "<a href=\"admincp.php?action=addrss&sid=$sid\">»Add Source</a><br/>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rss")); if($noi[0]>0) {echo "<form action=\"admincp.php?action=edtrss&sid=$sid\" method=\"post\">"; echo "<br/><select name=\"rssid\">"; while($rs=mysql_fetch_array($rss)) { echo "<option value=\"$rs[1]\">$rs[0]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Edit\"/>"; echo "<form action=\"admproc.php?action=delrss&sid=$sid\" method=\"post\">"; echo "<br/><select name=\"rssid\">"; while($rs1=mysql_fetch_array($rss1)) { echo "<option value=\"$rs1[1]\">$rs1[0]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Delete\"/>"; echo "<br/>"; echo "</form>"; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="chrooms") { echo "<p>"; echo "<a href=\"admincp.php?action=addchr&sid=$sid\">»Add Room</a><br/>"; $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms")); if($noi[0]>0) { $rss = mysql_query("SELECT name, id FROM ibwf_rooms"); echo "<form action=\"admproc.php?action=delchr&sid=$sid\" method=\"post\">"; echo "<br/><select name=\"chrid\">"; while($rs=mysql_fetch_array($rss)) { $rs0 = htmlspecialchars("$rs[0]"); $rs1 = htmlspecialchars("$rs[1]"); echo "<option value=\"$rs1\">$rs0</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Delete\"/>"; echo "</form>"; } echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="forums") { echo "<p>"; echo "<a href=\"admincp.php?action=addfrm&sid=$sid\">»Add Forum</a><br/>"; echo "<a href=\"admincp.php?action=edtfrm&sid=$sid\">»Edit Forum</a><br/>"; echo "<a href=\"admincp.php?action=delfrm&sid=$sid\">»Delete Forum</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="clrdta") { echo "<p>"; echo "<a href=\"admproc.php?action=delpms&sid=$sid\">»Deleted PMs</a><br/>"; echo "<a href=\"admproc.php?action=clrmlog&sid=$sid\">»Clear ModLog</a><br/>"; echo "<a href=\"admproc.php?action=delsht&sid=$sid\">»Delete Old Shouts</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="ugroups") { echo "<p>"; echo "<a href=\"admincp.php?action=addgrp&sid=$sid\">»Add User Group</a><br/>"; //echo "<a href=\"admincp.php?action=edtgrp&sid=$sid\">»Edit User group</a><br/>"; echo "<a href=\"admincp.php?action=delgrp&sid=$sid\">»Delete User group</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addcat") { echo "<p align=\"center\">"; echo "<form action=\"admproc.php?action=addcat&sid=$sid\" method=\"post\">"; echo "Name:<input name=\"fcname\" maxlength=\"30\"/><br/>"; echo "Position:<input name=\"fcpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addfrm") { echo "<p align=\"center\">"; echo "<b>Add Forum</b><br/><br/>"; echo "<form action=\"admproc.php?action=addfrm&sid=$sid\" method=\"post\">"; echo "Name:<input name=\"frname\" maxlength=\"30\"/><br/>"; echo "Position:<input name=\"frpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; $fcats = mysql_query("SELECT id, name FROM fun_fcats ORDER BY position, id, name"); echo "Category: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="gccp") { echo "<p align=\"center\">"; echo "<b>Add club plusses</b><br/><br/>"; $clid = $_GET["clid"]; echo "<form action=\"admproc.php?action=gccp&sid=$sid&clid=$clid\" method=\"post\">"; echo "Plusses:<input name=\"plss\" maxlength=\"3\" size=\"3\" format=\"*N\"/><br/>"; echo "<input type=\"submit\" value=\"Give\"/>"; echo "</form>"; echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addsml") { echo "<p align=\"center\">"; echo "<b>Add Smilies</b><br/><br/>"; echo "<form action=\"admproc.php?action=addsml&sid=$sid\" method=\"post\">"; echo "Code:<input name=\"smlcde\" maxlength=\"30\"/><br/>"; echo "Image Source:<input name=\"smlsrc\" maxlength=\"200\"/><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "</form>"; echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addavt") { echo "<p align=\"center\">"; echo "<b>Add Smilies</b><br/><br/>"; echo "<form action=\"admproc.php?action=addavt&sid=$sid\" method=\"post\">"; echo "Source:<input name=\"avtsrc\" maxlength=\"30\"/><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "</form>"; echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addrss") { echo "<p align=\"center\">"; echo "<b>Add RSS</b><br/><br/>"; echo "<form action=\"admproc.php?action=addrss&sid=$sid\" method=\"post\">"; echo "Name:<input name=\"rssnm\" maxlength=\"50\"/><br/>"; echo "Source:<input name=\"rsslnk\" maxlength=\"255\"/><br/>"; echo "Image:<input name=\"rssimg\" maxlength=\"255\"/><br/>"; echo "Description:<input name=\"rssdsc\" maxlength=\"255\"/><br/>"; $forums = mysql_query("SELECT id, name FROM fun_forums ORDER BY position, id, name"); echo "Forum: <select name=\"fid\">"; echo "<option value=\"0\">NO FORUM</option>"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=manrss&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/rss.gif\" alt=\"rss\"/>Manage RSS</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addchr") { echo "<p align=\"center\">"; echo "<b>Add Room</b><br/><br/>"; echo "<form action=\"admproc.php?action=addchr&sid=$sid\" method=\"post\">"; echo "Name:<input name=\"chrnm\" maxlength=\"30\"/><br/>"; echo "Minimum Age:<input name=\"chrage\" format=\"*N\" maxlength=\"3\" size=\"3\"/><br/>"; echo "Minimum Chat Posts:<input name=\"chrpst\" format=\"*N\" maxlength=\"4\" size=\"4\"/><br/>"; echo "Permission:<select name=\"chrprm\">"; echo "<option value=\"0\">Normal</option>"; echo "<option value=\"1\">Moderators</option>"; echo "<option value=\"2\">Admins</option>"; echo "</select><br/>"; echo "Censored:<select name=\"chrcns\">"; echo "<option value=\"1\">Yes</option>"; echo "<option value=\"0\">No</option>"; echo "</select><br/>"; echo "Fun:<select name=\"chrfun\">"; echo "<option value=\"0\">No</option>"; echo "<option value=\"1\">esreveR</option>"; echo "<option value=\"2\">Fun Babe</option>"; echo "</select><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "<form>"; echo "<br/><br/><a href=\"admincp.php?action=chrooms&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/chat.gif\" alt=\"chat\"/>Chatrooms</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="edtrss") { $rssid = $_POST["rssid"]; $rsinfo = mysql_fetch_array(mysql_query("SELECT title, link, imgsrc, fid, dscr FROM ibwf_rss WHERE id='".$rssid."'")); echo "<form action=\"admproc.php?action=edtrss&sid=$sid\" method=\"post\">"; echo "Name:<input name=\"rssnm\" maxlength=\"50\" value=\"$rsinfo[0]\"/><br/>"; echo "Source:<input name=\"rsslnk\" maxlength=\"255\" value=\"$rsinfo[1]\"/><br/>"; echo "Image:<input name=\"rssimg\" maxlength=\"255\" value=\"$rsinfo[2]\"/><br/>"; echo "Description:<input name=\"rssdsc\" maxlength=\"255\" value=\"$rsinfo[4]\"/><br/>"; $forums = mysql_query("SELECT id, name FROM fun_forums ORDER BY position, id, name"); echo "Forum: <select name=\"fid\" value=\"$rsinfo[3]\">"; echo "<option value=\"0\">NO FORUM</option>"; while ($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Edit\"/>"; echo "<input type=\"hidden\" name=\"fid\" value=\"$fid\"/>"; echo "<input type=\"hidden\" name=\"rssid\" value=\"$rssid\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=manrss&sid=$sid\">"; echo "<img src=\"http://coding-talk.com/images/rss.gif\" alt=\"rss\"/>Manage RSS</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="addgrp") { echo "<p align=\"center\">"; echo "<b>Add Group</b><br/><br/>"; echo "<form action=\"admproc.php?action=addgrp&sid=$sid\" method=\"post\">"; echo "Name:<input name=\"ugname\" maxlength=\"30\"/><br/>"; echo "Auto Assign:<select name=\"ugaa\">"; echo "<option value=\"1\">Yes</option>"; echo "<option value=\"0\">No</option>"; echo "</select><br/>"; echo "<br/><small><b>For Auto Assign Only</b></small><br/>"; echo "Allow:<select name=\"allus\">"; echo "<option value=\"0\">Normal Users</option>"; echo "<option value=\"1\">Mods</option>"; echo "<option value=\"2\">Admins</option>"; echo "</select><br/>"; echo "Min. Age:"; echo "<input name=\"mage\" format=\"*N\" maxlength=\"3\" size=\"3\"/>"; echo "<br/>Min. Posts:"; echo "<input name=\"mpst\" format=\"*N\" maxlength=\"3\" size=\"3\"/>"; echo "<br/>Min. Plusses:"; echo "<input name=\"mpls\" format=\"*N\" maxlength=\"3\" size=\"3\"/><br/>"; echo "<input type=\"submit\" value=\"Add\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=ugroups&sid=$sid\">"; echo "UGroups</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="edtfrm") { echo "<p align=\"center\">"; echo "<b>Edit Forum</b><br/><br/>"; $forums = mysql_query("SELECT id,name FROM ibwf_forums ORDER BY position, id, name"); echo "<form action=\"admproc.php?action=edtfrm&sid=$sid\" method=\"post\">"; echo "Forum: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select>"; echo "<br/>Name:<input name=\"frname\" maxlength=\"30\"/><br/>"; echo "Position:<input name=\"frpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "Category: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Edit\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="delfrm") { echo "<p align=\"center\">"; echo "<b>Delete Forum</b><br/><br/>"; $forums = mysql_query("SELECT id,name FROM ibwf_forums ORDER BY position, id, name"); echo "<form action=\"admproc.php?action=delfrm&sid=$sid\" method=\"post\">"; echo "Forum: <select name=\"fid\">"; while($forum=mysql_fetch_array($forums)) { $forum0 = htmlspecialchars("$forum[0]"); $forum1 = htmlspecialchars("$forum[1]"); echo "<option value=\"$forum0\">$forum1</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Delete\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; }else if($action=="delgrp") { echo "<p align=\"center\">"; echo "<b>Delete UGroup</b><br/><br/>"; $forums = mysql_query("SELECT id,name FROM ibwf_groups ORDER BY name, id"); echo "<form action=\"admproc.php?action=delgrp&sid=$sid\" method=\"post\">"; echo "UGroup: <select name=\"ugid\">"; while($forum=mysql_fetch_array($forums)) { echo "<option value=\"$forum[0]\">$forum[1]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Delete\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else if($action=="edtcat") { echo "<p align=\"center\">"; echo "<b>Edit Category</b><br/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "<form action=\"admproc.php?action=edtcat&sid=$sid\" method=\"post\">"; echo "Edit: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "Name:<input name=\"fcname\" maxlength=\"30\"/><br/>"; echo "Position:<input name=\"fcpos\" format=\"*N\" size=\"3\" maxlength=\"3\"/><br/>"; echo "<input type=\"submit\" value=\"Edit\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; }else if($action=="delcat") { echo "<p align=\"center\">"; echo "<b>Delete Category</b><br/><br/>"; $fcats = mysql_query("SELECT id, name FROM ibwf_fcats ORDER BY position, id, name"); echo "<form action=\"admproc.php?action=delcat&sid=$sid\" method=\"post\"/>"; echo "Delete: <select name=\"fcid\">"; while ($fcat=mysql_fetch_array($fcats)) { echo "<option value=\"$fcat[0]\">$fcat[1]</option>"; } echo "</select><br/>"; echo "<input type=\"submit\" value=\"Delete\"/>"; echo "</form>"; echo "<br/><br/><a href=\"admincp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } /////////////////////////////////user info else if($action=="chuinfo") { echo "<p align=\"center\">"; echo "Type user nickname<br/><br/>"; echo "<form action=\"admincp.php?action=acui&sid=$sid\" method=\"post\">"; echo "User: <input name=\"unick\" format=\"*x\" maxlength=\"15\"/><br/>"; echo "<input type=\"submit\" value=\"find\"/>"; echo "</form>"; echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } //////////////////////////////////////Change User info else if($action=="acui") { echo "<p align=\"center\">"; $unick = $_POST["unick"]; $tid = getuid_nick($unick); if($tid==0) { echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>User Does Not exist<br/>"; }else{ echo "</p>"; echo "<p>"; echo "<a href=\"admincp.php?action=chubi&sid=$sid&who=$tid\">»$unick's Profile</a><br/>"; $judg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_judges WHERE uid='".$tid."'")); if($judg[0]>0) { echo "<a href=\"admproc.php?action=deljdg&sid=$sid&who=$tid\">»Remove $unick From Judges List</a><br/>"; }else{ echo "<a href=\"admproc.php?action=addjdg&sid=$sid&who=$tid\">»Make $unick judge</a><br/>"; } //echo "<a href=\"admincp.php?action=addtog&sid=$sid&who=$tid\">»Add $unick to a group</a><br/>"; //echo "<a href=\"admincp.php?action=umset&sid=$sid&who=$tid\">»$unick's Mod. Settings</a><br/>"; echo "<a href=\"admproc.php?action=delxp&sid=$sid&who=$tid\">»Delete $unick's posts</a><br/>"; echo "<a href=\"admproc.php?action=delu&sid=$sid&who=$tid\">»Delete $unick</a><br/>"; echo "</p>"; echo "<p align=\"center\">"; } echo "<a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "Users Info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } //////////////////////////////////////////// else if($action=="chubi") { $who = $_GET["who"]; $unick = getnick_uid($who); echo "<onevent type=\"onenterforward\">"; $avat = getavatar($who); $email = mysql_fetch_array(mysql_query("SELECT email FROM ibwf_users WHERE id='".$who."'")); $site = mysql_fetch_array(mysql_query("SELECT site FROM ibwf_users WHERE id='".$who."'")); $bdy = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$who."'")); $uloc = mysql_fetch_array(mysql_query("SELECT location FROM ibwf_users WHERE id='".$who."'")); $usig = mysql_fetch_array(mysql_query("SELECT signature FROM ibwf_users WHERE id='".$who."'")); $sx = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$who."'")); $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$who."'")); echo "<form action=\"admproc.php?action=uprof&sid=$sid&who=$who\" method=\"post\">"; echo "Nickname: <input name=\"unick\" maxlength=\"15\" value=\"$unick\"/><br/>"; echo "Avatar: <input name=\"savat\" maxlength=\"100\" value=\"$avat\"/><br/>"; echo "E-Mail: <input name=\"semail\" maxlength=\"100\" value=\"$email[0]\"/><br/>"; echo "Site: <input name=\"usite\" maxlength=\"100\" value=\"$site[0]\"/><br/>"; echo "Birthday<small>(YYYY-MM-DD)</small>: <input name=\"ubday\" maxlength=\"50\" value=\"$bdy[0]\"/><br/>"; echo "Location: <input name=\"uloc\" maxlength=\"50\" value=\"$uloc[0]\"/><br/>"; echo "Signature: <input name=\"usig\" maxlength=\"100\" value=\"$usig[0]\"/><br/>"; echo "Sex: <select name=\"usex\" value=\"$sx[0]\">"; echo "<option value=\"M\">Male</option>"; echo "<option value=\"F\">Female</option>"; echo "</select><br/>"; echo "Privileges: <select name=\"perm\" value=\"$perm[0]\">"; echo "<option value=\"0\">Normal</option>"; echo "<option value=\"1\">sponsor</option>"; echo "<option value=\"2\">mod</option>"; echo "<option value=\"3\">Admin</option>"; echo "</select><br/>"; echo "<input type=\"submit\" value=\"Update\"/>"; echo "</form>"; echo "</p>"; echo "<p align=\"center\">"; echo "<a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "Users Info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p>"; echo "</body>"; } else{ echo "<p align=\"center\">"; echo "I don't know how did you get into here, but there's nothing to show<br/><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } ?> </html>
admproc.php
dont forget to click thanks lolPHP Code:<?php include("core.php"); include("config.php"); header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">"; echo "<head>"; echo "<title>$stitle</title>"; echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />"; echo "</head>"; echo "<body>"; connectdb(); $action = $_GET["action"]; $sid = $_GET["sid"]; $res = mysql_query("UPDATE ibwf_users SET pid='0' WHERE id='".getuid_sid($sid)."'"); addonline(getuid_sid($sid),"Admin CP",""); if($action=="general") { $xtm = $_POST["sesp"]; $fmsg = $_POST["fmsg"]; $areg = $_POST["areg"]; $pmaf = $_POST["pmaf"]; $fvw = $_POST["fvw"]; if($areg=="d") { $arv = 0; }else{ $arv = 1; } echo "<p align=\"center\">"; $res = mysql_query("UPDATE ibwf_settings SET value='".$fmsg."' WHERE name='4ummsg'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum Message updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error Updating Forum message<br/>"; } $res = mysql_query("UPDATE ibwf_settings SET value='".$xtm."' WHERE name='sesxp'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Session Period updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error Updating Session Period<br/>"; } $res = mysql_query("UPDATE ibwf_settings SET value='".$pmaf."' WHERE name='pmaf'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>PM antiflood is $pmaf seconds<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error Updating PM antiflood value<br/>"; } $res = mysql_query("UPDATE ibwf_settings SET value='".$arv."' WHERE name='reg'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Registration updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error Updating Registration<br/>"; } $res = mysql_query("UPDATE ibwf_settings SET value='".$fvw."' WHERE name='fview'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forums View updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error Updating Forums View<br/>"; } echo "<br/>"; echo "<a href=\"admincp.php?action=general&sid=$sid\">"; echo "Edit general settings</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } //////////////////////////Add moderating else if($action=="addfmod") { $mid = $_POST["mid"]; $fid = $_POST["fid"]; echo "<p align=\"center\">"; $res = mysql_query("INSERT INTO ibwf_modr SET name='".$mid."', forum='".$fid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Moding Privileges Added<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error<br/>"; } echo "<br/><br/><a href=\"admincp.php?action=manmods&sid=$sid\">"; echo "Manage Moderators</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delclub") { $clid = $_GET["clid"]; echo "<p align=\"center\">"; $res = deleteClub($clid); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Club Deleted<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error<br/>"; } echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="gccp") { $clid = $_GET["clid"]; $plss = $_POST["plss"]; echo "<p align=\"center\">"; $nop = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_clubs WHERE id='".$clid."'")); $newpl = $nop[0] + $plss; $res = mysql_query("UPDATE ibwf_clubs SET plusses='".$newpl."' WHERE id='".$clid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Club plusses updated<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error<br/>"; } echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delfmod") { $mid = $_POST["mid"]; $fid = $_POST["fid"]; echo "<p align=\"center\">"; $res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$mid."' AND forum='".$fid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Moding Privileges Deleted<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error<br/>"; } echo "<br/><br/><a href=\"admincp.php?action=manmods&sid=$sid\">"; echo "Manage Moderators</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } /////////////////////////////////////// else if($action=="addcat") { $fcname = $_POST["fcname"]; $fcpos = $_POST["fcpos"]; echo "<p align=\"center\">"; echo $fcname; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_fcats SET name='".$fcname."', position='".$fcpos."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum Category added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Forum Category"; } echo "<br/><br/><a href=\"admincp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addfrm") { $frname = $_POST["frname"]; $frpos = $_POST["frpos"]; $fcid = $_POST["fcid"]; echo "<p align=\"center\">"; echo $frname; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_forums SET name='".$frname."', position='".$frpos."', cid='".$fcid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Forum "; } echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addsml") { $smlcde = $_POST["smlcde"]; $smlsrc = $_POST["smlsrc"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_smilies SET scode='".$smlcde."', imgsrc='".$smlsrc."', hidden='0'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Smilie added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Smilie "; } echo "<br/><br/><a href=\"admincp.php?action=addsml&sid=$sid\">"; echo "Add Another Smilie</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addavt") { $avtsrc = $_POST["avtsrc"]; echo "<p align=\"center\">"; echo "Source: ".$avtsrc; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_avatars SET avlink='".$avtsrc."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Avatar added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Avatar "; } echo "<br/><br/><a href=\"admincp.php?action=addavt&sid=$sid\">"; echo "Add Another Avatar</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addjdg") { $who = $_GET["who"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_judges SET uid='".$who."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Judge added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Judge "; } echo "<br/><br/><a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "Users Info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="deljdg") { $who = $_GET["who"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_judges WHERE uid='".$who."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Judge deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting Judge "; } echo "<br/><br/><a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "Users Info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delsm") { $smid = $_GET["smid"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_smilies WHERE id='".$smid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Smilie deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting smilie "; } echo "<br/><br/><a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addrss") { $rssnm = $_POST["rssnm"]; $rsslnk = $_POST["rsslnk"]; $rssimg = $_POST["rssimg"]; $rssdsc = $_POST["rssdsc"]; $fid = $_POST["fid"]; echo "<p align=\"center\">"; echo $rssnm; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_rss SET title='".$rssnm."', link='".$rsslnk."', imgsrc='".$rssimg."', dscr='".$rssdsc."', fid='".$fid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Source added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding RSS Source"; } echo "<br/><br/><a href=\"admincp.php?action=manrss&sid=$sid\">"; echo "Manage RSS</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addchr") { $chrnm = $_POST["chrnm"]; $chrage = $_POST["chrage"]; $chrpst = $_POST["chrpst"]; $chrprm = $_POST["chrprm"]; $chrcns = $_POST["chrcns"]; $chrfun = $_POST["chrfun"]; echo "<p align=\"center\">"; echo $chrnm; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_rooms SET name='".$chrnm."', static='1', pass='', mage='".$chrage."', chposts='".$chrpst."', perms='".$chrprm."', censord='".$chrcns."' , freaky='".$chrfun."'"); echo mysql_error(); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Chatroom added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding Chat room"; } echo "<br/><br/><a href=\"admincp.php?action=chrooms&sid=$sid\">"; echo "Chatrooms</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="edtrss") { $rssnm = $_POST["rssnm"]; $rsslnk = $_POST["rsslnk"]; $rssimg = $_POST["rssimg"]; $rssdsc = $_POST["rssdsc"]; $fid = $_POST["fid"]; $rssid = $_POST["rssid"]; echo "<p align=\"center\">"; echo $rssnm; echo "<br/>"; $res = mysql_query("UPDATE ibwf_rss SET title='".$rssnm."', link='".$rsslnk."', imgsrc='".$rssimg."', dscr='".$rssdsc."', fid='".$fid."' WHERE id='".$rssid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Source updated successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error updating RSS Source"; } echo "<br/><br/><a href=\"admincp.php?action=manrss&sid=$sid\">"; echo "Manage RSS</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="addperm") { $fid = $_POST["fid"]; $gid = $_POST["gid"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_acc SET fid='".$fid."', gid='".$gid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Permission added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding permission "; } echo "<br/><br/><a href=\"admincp.php?action=addperm&sid=$sid\">"; echo "Add Permission</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } //////////////////////////////////////////Update profile else if($action=="uprof") { $who = $_GET["who"]; $unick = $_POST["unick"]; $perm = $_POST["perm"]; $savat = $_POST["savat"]; $semail = $_POST["semail"]; $usite = $_POST["usite"]; $ubday = $_POST["ubday"]; $uloc = $_POST["uloc"]; $usig = $_POST["usig"]; $usex = $_POST["usex"]; echo "<p align=\"center\">"; $onk = mysql_fetch_array(mysql_query("SELECT name FROM ibwf_users WHERE id='".$who."'")); $exs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name='".$unick."'")); if($onk[0]!=$unick) { if($exs[0]>0) { echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>New nickname already exist, choose another one<br/>"; }else { $res = mysql_query("UPDATE ibwf_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', name='".$unick."', perm='".$perm."' WHERE id='".$who."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>$unick's profile was updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Error updating $unick's profile<br/>"; } } }else { $res = mysql_query("UPDATE ibwf_users SET avatar='".$savat."', email='".$semail."', site='".$usite."', birthday='".$ubday."', location='".$uloc."', signature='".$usig."', sex='".$usex."', name='".$unick."', perm='".$perm."' WHERE id='".$who."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>$unick's profile was updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Error updating $unick's profile<br/>"; } } echo "<br/><a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "Users Info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } /////////////user password else if($action=="upwd") { $npwd = $_POST["npwd"]; $who = $_GET["who"]; echo "<p align=\"center\">"; if((strlen($npwd)<4) || (strlen($npwd)>15)){ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>password should be between 4 and 15 letters only<br/>"; }else{ $pwd = md5($npwd); $res = mysql_query("UPDATE ibwf_users SET pass='".$pwd."' WHERE id='".$who."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"o\"/>password was updated successfully<br/>"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"x\"/>Error updating password<br/>"; } } echo "<br/><a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "Users Info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } ///////////////add group else if($action=="addgrp") { $frname = $_POST["ugname"]; $ugaa = $_POST["ugaa"]; $allus = $_POST["allus"]; $mage = $_POST["mage"]; $mpst = $_POST["mpst"]; $mpls = $_POST["mpls"]; echo "<p align=\"center\">"; echo $ugname; echo "<br/>"; $res = mysql_query("INSERT INTO ibwf_groups SET name='".$ugname."', autoass='".$ugaa."', userst='".$allus."', mage='".$mage."', posts='".$mpst."', plusses='".$mpls."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>User group added successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error adding User group"; } echo "<br/><br/><a href=\"admincp.php?action=ugroups&sid=$sid\">"; echo "UGroups</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="edtfrm") { $fid = $_POST["fid"]; $frname = $_POST["frname"]; $frpos = $_POST["frpos"]; $fcid = $_POST["fcid"]; echo "<p align=\"center\">"; echo $frname; echo "<br/>"; $res = mysql_query("UPDATE ibwf_forums SET name='".$frname."', position='".$frpos."', cid='".$fcid."' WHERE id='".$fid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum updated successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error updating Forum "; } echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="edtcat") { $fcid = $_POST["fcid"]; $fcname = $_POST["fcname"]; $fcpos = $_POST["fcpos"]; echo "<p align=\"center\">"; echo $fcname; echo "<br/>"; $res = mysql_query("UPDATE ibwf_fcats SET name='".$fcname."', position='".$fcpos."' WHERE id='".$fcid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum Category updated successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error updating Forum Category"; } echo "<br/><br/><a href=\"admincp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delfrm") { $fid = $_POST["fid"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_forums WHERE id='".$fid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting Forum "; } echo "<br/><br/><a href=\"admincp.php?action=forums&sid=$sid\">"; echo "Forums</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delpms") { echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_private WHERE reported!='1' AND starred='0' AND unread='0'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>All PMS except starred, reported, and unread were deleted"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error!"; } echo "<br/><br/><a href=\"admincp.php?action=clrdta&sid=$sid\">"; echo "Clear Data</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="clrmlog") { echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_mlog"); echo mysql_error(); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>ModLog Cleared Successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error!"; } echo "<br/><br/><a href=\"admincp.php?action=clrdta&sid=$sid\">"; echo "Clear Data</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delsht") { echo "<p align=\"center\">"; $altm = time()-(5*24*60*60); echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_shouts WHERE shtime<'".$altm."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Shouts Older Than 5 days were deleted"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error!"; } echo "<br/><br/><a href=\"admincp.php?action=clrdta&sid=$sid\">"; echo "Clear Data</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delgrp") { $ugid = $_POST["ugid"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_groups WHERE id='".$ugid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>UGroup deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting UGroup"; } echo "<br/><br/><a href=\"admincp.php?action=ugroups&sid=$sid\">"; echo "UGroups</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delrss") { $rssid = $_POST["rssid"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_rss WHERE id='".$rssid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Source deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error"; } echo "<br/><br/><a href=\"admincp.php?action=manrss&sid=$sid\">"; echo "Manage RSS</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delchr") { $chrid = $_POST["chrid"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_rooms WHERE id='".$chrid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Room deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Database Error"; } echo "<br/><br/><a href=\"admincp.php?action=chrooms&sid=$sid\">"; echo "Chatrooms</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delu") { $who = $_GET["who"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_buddies WHERE tid='".$who."' OR uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_gbook WHERE gbowner='".$who."' OR gbsigner='".$who."'"); $res = mysql_query("DELETE FROM ibwf_ignore WHERE name='".$who."' OR target='".$who."'"); $res = mysql_query("DELETE FROM ibwf_mangr WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_modr WHERE name='".$who."'"); $res = mysql_query("DELETE FROM ibwf_penalties WHERE uid='".$who."' OR exid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_private WHERE byuid='".$who."' OR touid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'"); $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_brate WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_games WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_presults WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_vault WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_blogs WHERE bowner='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chat WHERE chatter='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chat WHERE who='".$who."'"); $res = mysql_query("DELETE FROM ibwf_chonline WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_online WHERE userid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_ses WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_xinfo WHERE uid='".$who."'"); deleteMClubs($who); $res = mysql_query("DELETE FROM ibwf_users WHERE id='".$who."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>User deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting UGroup"; } echo "<br/><br/><a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "User info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } //////////// Delete users posts else if($action=="delxp") { $who = $_GET["who"]; echo "<p align=\"center\">"; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_posts WHERE uid='".$who."'"); $res = mysql_query("DELETE FROM ibwf_topics WHERE authorid='".$who."'"); if($res) { mysql_query("UPDATE ibwf_users SET plusses='0' where id='".$who."'"); echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>User Posts deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting UPosts"; } echo "<br/><br/><a href=\"admincp.php?action=chuinfo&sid=$sid\">"; echo "User info</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else if($action=="delcat") { $fcid = $_POST["fcid"]; echo "<p align=\"center\">"; echo $fcname; echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_fcats WHERE id='".$fcid."'"); if($res) { echo "<img src=\"http://coding-talk.com/images/ok.gif\" alt=\"O\"/>Forum Category deleted successfully"; }else{ echo "<img src=\"http://coding-talk.com/images/notok.gif\" alt=\"X\"/>Error deleting Forum Category"; } echo "<br/><br/><a href=\"admincp.php?action=fcats&sid=$sid\">"; echo "Forum Categories</a><br/>"; echo "<a href=\"index.php?action=admincp&sid=$sid\"><img src=\"http://coding-talk.com/images/admn.gif\" alt=\"*\"/>"; echo "Admin CP</a><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } else{ echo "<p align=\"center\">"; echo "I don't know how did you get into here, but there's nothing to show<br/><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"http://coding-talk.com/images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></body>"; } ?> </html>
Comment
-
... < anchor >
< / anchor >
in XHTML

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
max 20min job.

Comment