Location: PHPKode > projects > Mummi (Multi-user MOD_MP3 Interface) > mummi.0.6/htroot/admin/index.php
<?
// Setting the title of the page
$GLOBALS[page_title] = "Admin Home";

// Include files
include "common.php";
include "$GLOBALS[lib_path]/design.inc";

// Set the user navbars.
if(!$HTTP_COOKIE_VARS[login_active]) $nav_array = array(main);
elseif($os->num_rows("SELECT user_name FROM users WHERE user_name='$result_array[user_name]' AND user_type='1'")) $nav_array = array(user_main, user_admin);
else $nav_array = array(user_main);


// Setting the default page contents
$GLOBALS[contents01] = <<<ENDcontents01
	This is the Admin section.. must be admin to see this page.<br><br>$GLOBALS[redirect_page]
ENDcontents01;


// an array for the draw_page function.
$contents = array("$GLOBALS[page_title]"=>"$GLOBALS[contents01]");
draw_header("$GLOBALS[page_title]");
draw_nav($nav_array);
draw_sect($contents);
draw_footer();



?>
Return current item: Mummi (Multi-user MOD_MP3 Interface)