From be4f83cd2a17a0ec05f5bce50c91befaafaa6e0c Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sun, 20 Dec 2009 18:38:08 +0000 Subject: Test. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@376 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- admin/index.php | 130 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 admin/index.php (limited to 'admin/index.php') diff --git a/admin/index.php b/admin/index.php new file mode 100644 index 0000000..665f125 --- /dev/null +++ b/admin/index.php @@ -0,0 +1,130 @@ +. + */ + + session_start(); + +include '../includes/debug.php'; +include '../includes/config.php'; +include '../includes/sql.class.php'; +include 'functions.php'; + +$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()) + { + ?> + +
+
+ + + + + + +
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') + ); + + //render administration table + CompileAdmin($th,$td); + ?> +
+
+
+ Module Administration: +
Pages','?op=pages'), + LinkInternal('
News','?op=news'), + LinkInternal('
Calendar','?op=calendar'), + LinkInternal('
Downloads', '?op=downloads'), + LinkInternal('
Announcements','?op=announcements') + ); + + //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); + ?> +
+ +
+
+
+
+ + \ No newline at end of file -- cgit