Who can code this one? Thanks..
Reset all plusses of members!
Collapse
X
-
Originally posted by robzky View PostWho can code this one? Thanks..My Blog: http://jhommark.blogspot.com
My Facebook: http://www.facebook.com/jhommark
My Official Site: http://www.undergroundweb.tk
My Community Site: http://undergroundwap.xtreemhost.com
-
owner tools in change user info
Code:echo "<a href=\"ownerproc.php?action=delplusses&sid=$sid&who=$who\">Delete Plusses Of This User</a><br/>";
Code:else if($action=="delplusses") { $who = $_GET["who"]; $user = getnick_uid($who); echo "<head>"; echo "<title>Owner Tools</title>"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"; echo "</head>"; echo "<body>"; echo "<p align=\"center\">"; $uid = getuid_sid($sid); $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'")); if($trgtperm>$perm){ echo "<b><img src=\"../images/notok.gif\" alt=\"x\"/><br/>Error!!!<br/>Permission Denied...</b><br/>"; echo "<br/>U Cannot Delete $user plusses<br/>"; echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; echo "</p>"; }else{ echo "<br/>"; $res = mysql_query("DELETE FROM ibwf_brate WHERE uid='".$who."'"); if($res) { echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Plusses deleted successfully"; }else{ echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting plusses"; } echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>"; echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"; } echo "</p></body>"; }
Comment
-
i think this is the correct one.
add new field in your ibwf_users named "reset" and value=1
else if($action=="delplusses")
{
$who = $_GET["who"];
$user = getnick_uid($who);
echo "<head>";
echo "<title>Owner Tools</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
$uid = getuid_sid($sid);
$perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE reset='".$uid."'"));
$trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE name='".$user."'"));
if($trgtperm>$perm){
echo "<b><img src=\"../images/notok.gif\" alt=\"x\"/><br/>Error!!!<br/>Permission Denied...</b><br/>";
echo "<br/>U Cannot Delete $user plusses<br/>";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p>";
}else{
echo "<br/>";
$res = mysql_query("SET plusses='0' FROM ibwf_users WHERE reset='1'");
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Plusses deleted successfully";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting plusses";
}
echo "<br/><b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&sid=$sid\">< img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
}
echo "</p></body>";
}
Comment
Comment