delete user info

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

34 replies · 1,395 views · started 17 years ago · 1 min read

8 participants
riderz Lead · 975 posts #21
 echo "<a href=\"ownerproc.php?action=delonline&sid=$sid&who=$who\">Delete online Of This User</a><br/>";

ownerproc

else if($action=="delonline")
{
  $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<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_online WHERE userid='".$who."'");
  if($res)
  {
  echo "<img src=\"../images/ok.gif\" alt=\"O\"/>online deleted successfully";
  }else{
  echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting online";
  }
   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>";
}

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

riderz Lead · 975 posts #22
 echo "<a href=\"ownerproc.php?action=delchonline&sid=$sid&who=$who\">Delete chonline Of This User</a><br/>";

ownerproc

else if($action=="delchonline")
{
  $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<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_chonline WHERE uid='".$who."'");
  if($res)
  {
  echo "<img src=\"../images/ok.gif\" alt=\"O\"/>chonline deleted successfully";
  }else{
  echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error deleting chonline";
  }
   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>";
}

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

riderz Lead · 975 posts #23

owner tools in change user info

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

ownerproc

else if($action=="delblog")
{
  $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>";
}

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

How bout delete plusses of all users? Thanks..Ü

LESS TALK. LESS MISTAKE.

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

riderz Lead · 975 posts #25

ok i dnt know the code for plusses brate are not plusses so ill try add this just say if it works or not

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

ownerproc.php

    //////////////////////////////////
  else if($action=="delplusses")
{$pstyle = gettheme($sid);
    echo xhtmlhead("$stitle",$pstyle);
  $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<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_fetch_array(mysql_query("DELETE plusses FROM ibwf_users WHERE id='".$uid."'"));
  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=\"index.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>";
    exit();
    }

there may be an error here

 $res = mysql_fetch_array(mysql_query("DELETE plusses FROM ibwf_users WHERE id='".$uid."'"));

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

kazzin Junior · 33 posts #27

that ol code r nt new u juz change table name only 😉 but thnx i think it not useful for any site owner

riderz Lead · 975 posts #28

well evryone always asking for a code then i posted all codes optialious posted before


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

icen01 Developer · 72 posts #29

can I

❗can i put this at adminproc cause i use script that is no owner thank bro for sharing❗

pin0y likes wap

12345xmen Developer · 239 posts #30

wel when i use delet shout in my owner controle panel i got error i do this process i use this in index

echo "<a href="ownerproc.php?action=delshout&sid=$sid&who=$who">Delete Shout Of This User</a> ";

in index.php

/////////////////////////////////OWNER CP else if($action=="ownercp") { addonline(getuid_sid($sid),"Owner CP - xHTML",""); $pstyle = gettheme($sid); echo xhtmlhead("Owner CP!",$pstyle); echo " "; echo "Owner CP"; echo " "; echo popup($sid); echo " "; if(isowner(getuid_sid($sid))) { echo "<a href="personalpic.php?action=main&sid=$sid">»Upload pic</a> "; echo "<a href="pm2all.php?action=main&sid=$sid">»Pm 2 All</a> "; echo "<a href="ownerproc.php?action=delshout&sid=$sid&who=$who">Delete Shout Of This User</a> "; echo "<a href="ownercp.php?action=general&sid=$sid">»General Settings</a> "; echo "<a href="ownercp.php?action=fcats&sid=$sid">»Forum Categories</a> "; echo "<a href="ownercp.php?action=forums&sid=$sid">»Forums</a> ";

nd

in ownerproc.php i use below code

else if($action=="delshout") { $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 id='".$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 "; echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; }else{

echo " "; $res = mysql_query("DELETE FROM ibwf_shouts WHERE shouter='".$who."'"); if($res) { echo "<img src="../images/ok.gif" alt="O"/>Shouts deleted successfully"; }else{ echo "<img src="../images/notok.gif" alt="X"/>Error deleting Shouts"; } 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>"; }

but when i open my owner tool i got there this function

delet user shout when i click on that

i got this error

Error! XML parsing failed

XML parsing failed: syntax error (Line: 4, Character: 89)

Reparse document as HTML Error:mismatched end-tag Specification:Extensible Markup Language (XML) 1.0 (Fifth Edition) 1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> 2: <wml> 3: 4: <head><title>Owner Tools</title><link rel="stylesheet" type="text/css" href="../themes/"></head><body>

External image (may be gone)Shouts deleted successfully 4External image (may be gone)Owner Tools 0External image (may be gone)Home

</body></wml> 5:

nw tel me where is fault

riderz Lead · 975 posts #31

yea u trying to put an xhtml code in wml and u must put that part in owner cp after u type in the user info

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

nothing come in the index


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

12345xmen Developer · 239 posts #32

rider bro tel me how to use this and arawap script is xhtml not wml bro

that script posted nd modified by u

tel me solution where nd how i use this function plzzzzzzzzz

riderz Lead · 975 posts #33

why u dnt just try sumthing ur damn self all u do here is requesting but never try urself


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

12345xmen Developer · 239 posts #34

dear if i knw then y u ask dear....

u ryt in ur status

Im Here to help so just ask

thats y i ask u i knw no budy hlp in free of cost

but m in learing mode nd i learn sumthing via you dear

if u hv problm to hlm me then its okz bro soory 4 all that

thanks 4 reply meeeee

sklbd Junior · 47 posts #35

this coding is not working lollzzzz

ShaK!L AhammeD

Sklifbd.CoM +88-01730039272

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