Initial commit
This commit is contained in:
24
lotgd-web/lotgd/lib/superusernav.php
Executable file
24
lotgd-web/lotgd/lib/superusernav.php
Executable file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
// translator ready
|
||||
// addnews ready
|
||||
// mail ready
|
||||
function superusernav()
|
||||
{
|
||||
global $SCRIPT_NAME, $session;
|
||||
tlschema("nav");
|
||||
addnav("Navigation");
|
||||
if ($session['user']['superuser'] &~ SU_DOESNT_GIVE_GROTTO) {
|
||||
$script = substr($SCRIPT_NAME,0,strpos($SCRIPT_NAME,"."));
|
||||
if ($script != "superuser") {
|
||||
$args = modulehook("grottonav");
|
||||
if (!array_key_exists('handled',$args) || !$args['handled']) {
|
||||
addnav("G?Return to the Grotto", "superuser.php");
|
||||
}
|
||||
}
|
||||
}
|
||||
$args = modulehook("mundanenav");
|
||||
if (!array_key_exists('handled',$args) || !$args['handled'])
|
||||
addnav("M?Return to the Mundane", "village.php");
|
||||
tlschema();
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user