Add Perms

Started on the old forum in March 2008 · view the original in the archive · old links redirect here

13 replies · 844 views · started 18 years ago · 1 min read

7 participants
winpda Junior · 38 posts #1

Can some one help me to add more perm ... My wap only have admin and moderator .. I wan add more perm such as ... BiG BoSs, BoSs and Head Admin ...

learner Lead · 587 posts #3

its already posted search and btw is very simple even i learned u have to add new filds in core.php such as is boss, is big boss just like is admin is mod

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

winpda Junior · 38 posts #5

d procedure would b d same regardless of which

learner Lead · 587 posts #8

in core.php keep addin this to ur choice

if($ginfo[2]==3) {

    if(isowner($uid))
    {
        return true;
    }else{
      return false;
    }
  }

  if($ginfo[2]==2)
  {
    
    if(isadmin($uid))
    {
        return true;
    }else{
      return false;
    }
  }

then

if($rperm[1]==1) { return ismod(getuid_sid($sid)); } if($rperm[1]==2) { return isadmin(getuid_sid($sid)); } if($rperm[1]==3) { return isowner(getuid_sid($sid)); }

if(getuage_sid($sid)<$rperm[0])
{
  return false;
}
if($uperm[1]<$rperm[2])
{
  return false;
}
return true;

}

then

return "Banned!"; } if($info[0]=='2') { return "<img src="images/.gif" alt="Admin!"/>"; }else if($info[0]=='1') { return "<img src="images/.gif" alt="Mod!"/>"; }else if($info[0]=='3') { return "<img src="images/.gif" alt="Owner!"/>"; }else{

and keep on adding

/////////////////////////////////////////Is big boss

function isowner($uid) { $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($admn[0]=='3') { return true; }else{ return false; } }

and

/////////////////////////////////////////Is boss

function isowner($uid) { $admn = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'")); if($admn[0]=='4') { return true; }else{ return false; } }

got the idea?

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

winpda Junior · 38 posts #9

how about ownercp ?

to chosse mod , admin , head admin , boss and big boss? at ownercp ..

hehehe ....

learner Lead · 587 posts #10

search for the option in ownercp where u add a user as admin or normal etc. enter ur new field there with the perm number hehehehehehehehehehehehehehehehehehehe

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

winpda Junior · 38 posts #11

thanks ... i do ... how to make big boss can see all function ?

metulj Super moderator Principal · 1,726 posts #13

is it possible to add a junior mod?

depends what you mean by junior mod ? but probably its possible the same way as posted above

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

djdevil89 Senior · 287 posts #14

hmm i got the same prob at the moment n i managed to make it work but now it shows on admin vip status and on vip it shows administrator and both got tools how to fix that?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

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