Location: PHPKode > projects > Mummi (Multi-user MOD_MP3 Interface) > mummi.0.6/htroot/index.php
<?

// Setting the title
$GLOBALS[page_title] = "Mummi: Multi-user MOD_MP3 Interface";

//  This get the document root specified in the virtual host of apache
$GLOBALS[int_path] = getenv(DOCUMENT_ROOT);

// This will be changed to look at a file that the user can set the prefrence of.
$GLOBALS[lib_path] = "$GLOBALS[int_path]/../lib";

// Including all needed classes
include "$GLOBALS[lib_path]/config.inc";
include "$GLOBALS[lib_path]/mysql.inc";
include "$GLOBALS[lib_path]/overseer.inc";
include "$GLOBALS[lib_path]/design.inc";

// make a pconnection with the class
$os = new OVERSEER;
$os->connect("$GLOBALS[dbhost]","$GLOBALS[dbusername]"," $GLOBALS[dbuserpassword]","$GLOBALS[dbname]");

// Checking to see if a user is logged in but is just looking at the main page
$session_array = $os->decipher($HTTP_COOKIE_VARS[login_active], $GLOBALS[secret_key]);

// Set the navbars.
if(!$HTTP_COOKIE_VARS[login_active]) $nav_array = array(main);
elseif($os->num_rows("SELECT user_name FROM users WHERE user_name='$session_array[user_name]' AND user_type='1'")) $nav_array = array_merge($GLOBALS[admin_navbox_array], $os->get_navbox_array($session_array[user_name]));
else $nav_array = array_merge($GLOBALS[basic_navbox_array], $os->get_navbox_array($session_array[user_name]));
// ============================================================================

// Setting the default page contents
$GLOBALS[contents01] = <<<ENDcontents01
	<font face="$GLOBALS[body_font_face]" size="$GLOBALS[body_font_size]">

	Welcome to the "Multi-User MOD_MP3 Interface" developer Demo site.
	This is where you can test the latest enhancements to MUMMI as they come.<br><br>

	You must register in order to use this demo.
	If you would like to become a user you can do so by going <a href="$url_path/signup.php">here</a>.<br>

	<b>WARNING: THIS IS A DEVELOPER DEMO SITE. SOMETHINGS MIGHT NOT WORK.</b>
	</font>
ENDcontents01;

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


draw_header("$GLOBALS[page_title]");
draw_nav($nav_array);
draw_sect($contents);
draw_footer();
ob_end_flush();
?>
Return current item: Mummi (Multi-user MOD_MP3 Interface)