<?php$timer_start = microtime();include("core/conf_global.php");include("core/class_core.php");include("core/class_db.php");include("core/class_template.php");// Include the code + the DB thingy... doodad >_>$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 whatnotswitch( $_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("<!-- Script completed in " . ($timer_end - $timer_start) . " Seconds -->");?>