From eec8fdf3fd36f6f8511bdb4bea0899f82bf3f6ab Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 23 Mar 2009 18:41:22 +0000 Subject: First attempt on a modularized plugin system, complete with admin, and parameters. --- pages/admin.php | 89 +++++++++++++++++++++++---------------------------------- 1 file changed, 35 insertions(+), 54 deletions(-) (limited to 'pages/admin.php') diff --git a/pages/admin.php b/pages/admin.php index 5305ae2..3f924c7 100644 --- a/pages/admin.php +++ b/pages/admin.php @@ -1,3 +1,5 @@ +
+
Admin
@@ -7,66 +9,44 @@ if($loggedin == true) { else $UID = $HTTP_COOKIE_VARS["UserID"]; $user = $users->findUser($UID); ?> -
-
-
Admin
-
-
-
-events == "on") {?> - " - href="?page=admin&module=events">Events - -news == "on") {?> - " - href="?page=admin&module=news">News - -gallery == "on") {?> - " - href="?page=admin&module=gallery">Gallery - -guestbook == "on") {?> - " - href="?page=admin&module=guestbook">Guestbook - -newsletter == "on") {?> - " - href="?page=admin&module=newsletter">Newsletter - -pressrelease == "on") {?> - " - href="?page=admin&module=pressrelease">Press - -user == "on") {?> - " - href="?page=admin&module=user">Password - -users == "on") {?> - " - href="?page=admin&module=users">Users - + -
+\n"; -} else { +if($admin_module) { + foreach($admin_module->admin_submodules as $submodulename => $submodule) { + if($s == $submodule) { + $admin_submodule = $s; + $admin_submodule_name = $submodulename; + } + echo "\n"; + } +} ?> -
-
Login
+
+
+$admin_submodule_name
\n"; + $admin_module->admin($admin_submodule, $a, $vars); +} +?> +
+ +

UserID:

Password:

@@ -76,3 +56,4 @@ if($loggedin == true) { +
-- cgit v1.2.3