From 0077cb99704fe863cf731fc5cab792af2ede96c2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 17 Apr 2011 20:13:07 -0400 Subject: Backporting retarded amount of changes outside of version control --- admin/modules/index.php | 118 ++++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 58 deletions(-) (limited to 'admin/modules/index.php') diff --git a/admin/modules/index.php b/admin/modules/index.php index 94e2814..28382eb 100644 --- a/admin/modules/index.php +++ b/admin/modules/index.php @@ -1,59 +1,61 @@ -. - */ - -/** - * This file administers the site modules. - * - * -weight - * -directory name - */ - -if(!defined("ADMIN_FILE")) -{ - die("Access denied."); -} - -echo "Do a database for the index modules, thats all this really is anyway.
"; -include $basedir.'modules/functions.php'; - -if(isset($_GET['edit'])) -{ - $module_id = $_GET['edit']; - EditModule($module_id); - return; -} - -if(isset($_GET['delete'])) -{ - $module_id = $_GET['delete']; - DeleteModule($module_id); - return; -} - -if(isset($_GET['create'])) -{ - NewModule(); - return; -} - -//echo "
".LinkInternal('Create a Module','?load=admin&op=modules&create=true')."
"; - -//ListModules(); - +. + */ + +/** + * This file administers the site modules. + * + * -weight + * -directory name + */ + + ?> +

- Manage Modules

+ "; +include $basedir.'modules/functions.php'; + +if(isset($_GET['edit'])){ + $module_id = $_GET['edit']; + EditModule($module_id); + return; + +}else if(isset($_GET['delete'])){ + $module_id = $_GET['delete']; + DeleteModule($module_id); + return; + +}else if(isset($_GET['create'])){ + NewModule(); + return; + +}else{ + ListModules(); +} + +//echo "
".LinkInternal('Create a Module','?load=admin&op=modules&create=true')."
"; + +//ListModules(); + ?> \ No newline at end of file -- cgit