_> $core = new main_core; $core->db = new db_core; $core->template = new template_core; $core->db->core =& $core; $core->template->core =& $core; $core->db->init_db(); // Connecto to MySQL and whatnot switch( $_GET["act"] ) { // Big act statement, new navigation etc, whatever floats. case "login": // Processing login. $core->process_login( $_POST["username"], $_POST["password"] ); break; case "main": // Viewing main panel break; case "logout": // Logging out / being forced out break; default: // needing to log in. $core->template->compile_template( "kp_blue", "login" ); break; } $timer_end = microtime(); echo(""); ?>