#------------------------------------------- # check if they're authorized - cookie based # (they get a login form if not) #------------------------------------------- if (!authorized()) { exit; } #------------------------------------------- # - define our page title (arbitrary) # - include a .js file if you want # - set the navigation tab (see nav.php) #------------------------------------------- $page_title = "Title"; $page_script = ""; $page_nav = ""; #------------------------------------------- # include the head, which does everything you need # done before you start your own output #------------------------------------------- include "head.php"; ?> <!-- whatever you want goes here, for example --> <h1>Our modueles are in: <?php echo getAbsModPath(); ?> </h1> <!-- and finish off with a few closing tags--> <?php include "foot.php";
function getAbsAdminPath() { return preg_replace("/modules/", "admin", getAbsModPath()); }