Uridium Posted July 27, 2010 Posted July 27, 2010 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"); Quote
Maniak Posted July 27, 2010 Posted July 27, 2010 Very good idea! I didn't think of doing something like that! Quote
Danny696 Posted July 27, 2010 Posted July 27, 2010 I did something like that on undeadland. But it just used a div and a class. Quote
Dayo Posted July 27, 2010 Posted July 27, 2010 i would edit it slightly and do it like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.