Jump to content
MakeWebGames

Recommended Posts

Posted

ive often wondered how many of these statemtents are in the MCCODES files ?

global $db,$ir, $c;

if($ir['user_level'] != 2)

{

die("403");

}

so if they could be cleaned up and used to do other things then thats a bonus ?

Like giving reasons why giving a link back to a page of desired choice all on one line with no echo or print ?

2 steps

Firstly put this into your globals_func.php file

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Now any pages where you have the unslghtly

global $db,$ir, $c;

if($ir['user_level'] != 2)

{

die("403");

}

replace with

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

The same can also be done for the use for those in jail or hosp

if($ir['jail'] or $ir['hospital'])

pagemessage("EXPLORE", "index.php", "YOU CANNOT VIEW THIS PAGE IF IN JAIL OR HOSPITAL");

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...