Reset all plusses of members!

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

8 replies · 394 views · started 17 years ago · 1 min read

4 participants
robzky Developer · 205 posts #1

Who can code this one? Thanks..

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

robzky Developer · 205 posts #3

Ah! Ok thanks bro.. I can't click the THANKS link.. Haist!

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

robzky Developer · 205 posts #4

Hmm.. Damn! I can't code this.. Help me guyz!

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

riderz Lead · 975 posts #5

owner tools in change user info

 echo "<a href=\"ownerproc.php?action=delplusses&sid=$sid&who=$who\">Delete Plusses Of This User</a><br/>";

ownerproc

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>";
}

this should do the job


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

robzky Developer · 205 posts #6

Rider this code is only for one user! Can you code this delete plusses of all users! Thanks..

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

kuklux Newbie · 8 posts #8

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 " "; $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 "<img src="../images/notok.gif" alt="x"/> Error!!! Permission Denied... "; echo " U Cannot Delete $user plusses "; echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; }else{

echo " "; $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 " 9<a accesskey="9" href="ownercp.php?action=ownercp&sid=$sid"><img src="../images/admn.gif" alt=""/>Owner Tools</a> "; echo "0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; } echo "

</body>"; }
robzky Developer · 205 posts #9

no! you don't need to add new field...

LESS TALK. LESS MISTAKE.

HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

Write your reply now; next you create a free account (or sign in) and it is posted right away. 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