hmmm i think both of us code is valid cause i use the card so it wont excute the other codes if the first card is trigger
Changing Perm
Collapse
X
-
wizard bro ur code gives this syntax error, unexpected T_ELSE in /modproc.php on line 624Failure 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
-
both codes giving error
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
-
wizard bro ur code gives this syntax error, unexpected T_ELSE in /modproc.php on line 624[/b]
learner im positive that code works. i copied it from funmobile mod which alot of ppl use n can attest to the fact that it works. kenny u did not use if-else iteration or exit(); function so urs will show both cards if sum1 is trying to ban admin.
Comment
-
wizard bro henestly it is giving me error here it is
Parse error: syntax error, unexpected T_ELSE in /home/public_html/wap/modproc.php on line 626
here is my modproc codes bro
where am i going wrong?Code: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\">"; $getulvl = mysql_fetch_array(mysql_query("SELECT perms FROM ibwf_users WHERE id='".$who."'")); if($getulvl[0]>0) { echo "You cannot punish another staff member doofus!"; }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_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
-
i did but it gets banned thenFailure 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
-
<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
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\">";
$getulvl =
mysql_fetch_array(my
sql_query("SELECT perms
FROM ibwf_users WHERE
id='".$who."'"));
if($getulvl[0 ]>0)
{ echo "You cannot
punish another staff
member doofus!";
}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.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='".getnick_uid
(getuid_sid($sid))."
$pmsg[$pid] The user
".$unick." 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";
} } <-- add a next } there
echo "
<a
href=\"index.php?acti
on=main&sid=$sid
\"><img
src=\"images/home.gif\"
alt=\"*\"/>";
echo "Home</a>";
echo "</p></card>";
}
</div>
R.M.C
----------
PHP Adovocate B)
Comment
-
learner im positive that code works. i copied it from funmobile mod which alot of ppl use n can attest to the fact that it works. kenny u did not use if-else iteration or exit(); function so urs will show both cards if sum1 is trying to ban admin.[/b]
ur right, tht code works... i copied 2 my script nd it works... the only problem is tht admin cnt ban mod also....
which is lil iritating lol... u have 2 remove mod permision 1st and then bansigpiceeeeerrr....
Comment
-
yay brothers it worked adding a } now its working you guys are the best ::smile::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




Comment