LotGDocker/lotgd-web/lotgd/lib/superusernav.php

25 lines
648 B
PHP
Raw Permalink Normal View History

2020-08-17 19:16:42 -04:00
<?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();
}
?>