- Joined
- Jan 1, 2009
- Messages
- 384
- Reaction score
- 20
If you have problems with the vacantion mode (and even if you don't know if you have, you can still use this..)...
This small php code will block users that have vacantion mode activated to visit any other page than "/overview.php","/options.php","/frames.php","/leftmenu.php"&"/messages.php".
1.Open common.php
2.At the end, after:
3.Add:
urlaubs_modus is the column for the vacantion mode in the users table.
2.At the end, after:
PHP:
$dpath = "../" . DEFAULT_SKINPATH;
}
3.Add:
PHP:
$vacantion_page = array("/overview.php","/options.php","/frames.php","/leftmenu.php","/messages.php");//page autorisé
if($user['urlaubs_modus'] == 1 && in_array($_SERVER['PHP_SELF'],$vacantion_page) == false){
message ("Vacantion mode is active | You can't play!");
}
Maybe usefull for some...:sneaky2: