guys how do we change prem of admin and mod like we do it on db changing it to 2 for admin and 1 for mod. so if i want to change the number where in the script or where in the db i change the admin perm number from 2 to 4?
Changing Perm
Collapse
X
-
Changing Perm
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>
Tags: None
-
ok sorry i mean from database where exactly do i change the perm number?Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

-
Guest -
thanks guys and how do u put a function in rw where one admin cant bann otherFailure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
i think you would do thisput that code where its says user have been band i think lol figur that out cos i dont use lava lairCode:////this is saying if the user that your banding perm is two $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibws_users WHERE id='".$who."'")); if($perm[0] =='2') { echo "DUMB ASS YOU CANT BAND ANOTHER ADMIN!"; }
R.M.C
----------
PHP Adovocate B)
Comment
-
someone please tell me where to put this code i tried in modproc but dunno the right way to do it
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
i think this is where i should add that right? but i did somethin is going wrongCode:else if($action=="pun") { $pid = $_POST["pid"]; $who = $_POST["who"]; $pres = $_POST["pres"]; $pds = $_POST["pds"]; $phr = $_POST["phr"]; $pmn = $_POST["pmn"]; $psc = $_POST["psc"]; echo "<card id=\"main\" title=\"Mod CP\">"; echo "<p align=\"center\">"; $uip = ""; $ubr = ""; $pmsg[0]="Trashed"; $pmsg[1]="Banned"; $pmsg[2]="IP-Banned"; if($pid=='2') { //ip ban $uip = getip_uid($who); $ubr = getbr_uid($who); } if(trim($pres)=="") { echo "<img src=\"images/notok.gif\" alt=\"X\"/>You must Specify a reson for punishing the user"; }else{ $timeto = $pds*24*60*60; $timeto += $phr*60*60; $timeto += $pmn*60; $timeto += $psc; $ptime = $timeto + time(); $unick = getnick_uid($who); $res = mysql_query("INSERT INTO ibwf_penalties SET uid='".$who."', penalty='".$pid."', exid='".getuid_sid($sid)."', timeto='".$ptime."', pnreas='".mysql_escape_string($pres)."', ipadd='".$uip."', browserm='".$ubr."'"); if($res) { mysql_query("UPDATE ibwf_users SET lastpnreas='".$pmsg[$pid].": ".mysql_escape_string($pres)."' WHERE id='".$who."'"); mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='[b]".getnick_uid(getuid_sid($sid))."[/b] $pmsg[$pid] The user [b]".$unick."[/b] For ".$timeto." Seconds', actdt='".time()."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>$unick is $pmsg[$pid] for $timeto Seconds"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error"; } } echo " <a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></card>"; }
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
try that I THINK LOLCode:else if($action=="pun") { $pid = $_POST["pid"]; $who = $_POST["who"]; $pres = $_POST["pres"]; $pds = $_POST["pds"]; $phr = $_POST["phr"]; $pmn = $_POST["pmn"]; $psc = $_POST["psc"]; $perm =mysql_fetch_array(mysql_query("SELECT perm FROM ibws_users WHERE id='".$who."'")); if($perm[0]=='2') { echo "<card id=\"main\" title=\"Mod CP\">"; echo "<p align=\"center\">"; echo "you cant band another admin "; echo "</p>"."</card>"; } echo "<card id=\"main\" title=\"Mod CP\">"; echo "<p align=\"center\">"; $uip = ""; $ubr = ""; $pmsg[0]="Trashed"; $pmsg[1]="Banned"; $pmsg[2]="IP-Banned"; if($pid=='2') {//ip ban $uip = getip_uid($who); $ubr = getbr_uid($who); } if(trim($pres)=="") { echo "<img src=\"images/notok.gi f\" alt=\"X\"/>You must Specify a reson for punishing the user"; }else{ $timeto = $pds*24 *60 *60; $timeto + = $phr*60 *60; $timeto + = $pmn*60; $timeto += $psc; $ptime = $timeto + time(); $unick = getnick_uid($who); $res = mysql_query("INSERT INTO ibwf_penalties SET uid='".$who."', penalty='".$pid."', exid='".getuid_sid ($sid)."', timeto='".$ptime."', pnreas='".mysql_escap e_string($pres)."', ipadd='".$uip."', browserm='".$ubr."'"); if($res) { mysql_query("UPDATE ibwf_users SET lastpnreas='".$pmsg[$p id].": ".mysql_escape_string ($pres)."' WHERE id='".$who."'"); mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='[b]".getnick_uid (getuid_sid($sid))."[/b] $pmsg[$pid] The user [b]".$unick."[/b] For ".$timeto." Seconds', actdt='".time()."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>$unick is $ pmsg[$pid] for $timeto Seconds"; }else{ echo "<img src=\"images/notok.gi f\" alt=\"X\"/>Database Error"; } } echo " <a href=\"index.php?acti on=main&sid=$sid \"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></card>"; }
R.M.C
----------
PHP Adovocate B)
Comment
-
mmhm ill copy d code i did for that.Code:else if($action=="pun") { echo "<card id=\"main\" title=\"Mod CP\">"; echo "<p align=\"center\">"; $getulvl = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$who."'")); if($getulvl[0]>0) { echo "You cannot punish another staff member doofus!:P"; }else{ $uip = ""; $ubr = ""; $pmsg[0]="Trashed"; $pmsg[1]="Banned"; $pmsg[2]="IP-Banned"; if($pid=='2') { //ip ban $uip = getip_uid($who); $ubr = getbr_uid($who); } if(trim($pres)=="") { echo "<img src=\"images/notok.gif\" alt=\"X\"/>You must Specify a reson for punishing the user"; }else{ $timeto = $pds*24*60*60; $timeto += $phr*60*60; $timeto += $pmn*60; $timeto += $psc; $ptime = $timeto + time(); $unick = getnick_uid($who); $res = mysql_query("INSERT INTO ibwf_penalties SET uid='".$who."', penalty='".$pid."', exid='".getuid_ses($ses)."', timeto='".$ptime."', pnreas='".mysql_escape_string($pres)."', ipadd='".$uip."', browserm='".$ubr."'"); if($res) { mysql_query("UPDATE ibwf_users SET lastpnreas='".$pmsg[$pid].": ".mysql_escape_string($pres)."' WHERE id='".$who."'"); mysql_query("INSERT INTO ibwf_mlog SET action='penalties', details='[b]".getnick_uid(getuid_ses($ses))."[/b] $pmsg[$pid] The user [b]".$unick."[/b] For ".$timeto." Seconds', actdt='".time()."'"); echo "<img src=\"images/ok.gif\" alt=\"O\"/>$unick is $pmsg[$pid] for $timeto Seconds"; }else{ echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error"; } } } echo " <a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>"; echo "Home</a>"; echo "</p></card>"; }
Comment

Comment