. */ session_start(); define('BAYONET_INCLUDE', '../include'); define('BAYONET_CONFIG', '../include/config.ini'); include BAYONET_INCLUDE . '/debug.php'; include BAYONET_INCLUDE . '/sql.class.php'; include BAYONET_INCLUDE . '/functions.php'; require_once BAYONET_INCLUDE . '/classes.php'; Bayonet_Config::init(); $config = Bayonet_Config::$ini; $db = new Bayonet_SQL(); $db->Connect( $config['sql']['hostname'], $config['sql']['username'], $config['sql']['password'] ); $db->Select_db($config['sql']['database']); //$config['logs']['dir'] = "../logs/"; include 'header.php'; if(!defined("MODULE_FILE")) { //die("Access denied."); } define("ADMIN_FILE",'admin_file'); include 'admin_functions.php'; if(isset($_GET['op']) && $_GET['op'] == 'logout') { logout(); } if(login()) { //this is so dirty... sigh. if(is_loggedin()) { //GET ADMIN USER INFO - DEFINE IMPORTANT INFO $username = $_SESSION['username']; $result = $db->Query("SELECT user_id, level FROM bayonet_users WHERE username = '$username' LIMIT 1"); $row = $db->FetchRow($result); define("ADMIN_USERNAME", $username); define("ADMIN_ID", $row['user_id']); define("ADMIN_LEVEL", $row['level']); if(isset($_GET['op'])){ ?>
bayonet online web admin Account Settings  |  Logout,

Administration Menu:
Modules','?op=modules'), LinkInternal('
Blocks','?op=blocks'), LinkInternal('
Navigation','?op=navigation'), LinkInternal('
Edit Admins','?op=admins'), LinkInternal('
Announcements','?op=announcements') ); //render administration table CompileAdmin($th,$td); ?>

Module Administration:
Pages','?op=pages'), LinkInternal('
News Reel','?op=newsreel'), LinkInternal('
News','?op=news'), LinkInternal('
Calendar','?op=calendar'), LinkInternal('
Downloads', '?op=downloads'), LinkInternal('
RUDI','?op=rudi'), LinkInternal('
Adjutant','?op=adjutant') ); //render administration table CompileAdmin($th,$td); ?>

Queries: %d | Fetches: %d
\n", $totaltime, ((float)memory_get_usage()/1024/1024), ((float)memory_get_peak_usage()/1024/1024), $phpversion, $db_queries, $db_fetches); ?>