diff options
author | deva <deva> | 2010-01-28 14:11:14 +0000 |
---|---|---|
committer | deva <deva> | 2010-01-28 14:11:14 +0000 |
commit | 10267210927846619e39e76ac173d9295851b948 (patch) | |
tree | bf85343aa358b25b68ce953492689cbcebb37259 /utils/modules.php | |
parent | 55b8d42b6422f24196078c8adb6a2a59861d0ef4 (diff) |
Fix broken module loading in admin. New module parameter system.
Diffstat (limited to 'utils/modules.php')
-rw-r--r-- | utils/modules.php | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/utils/modules.php b/utils/modules.php index 54682a4..b77beb8 100644 --- a/utils/modules.php +++ b/utils/modules.php @@ -19,9 +19,29 @@ function loadModule($modulename) } } +function loadAllModules() +{ + loadModule("config"); + loadModule("discography"); + loadModule("events"); + loadModule("gallery"); + loadModule("guestbook"); + loadModule("icons"); + loadModule("links"); + loadModule("members"); + loadModule("news"); + loadModule("pages"); +} + function getModuleParams($code) { - return explode(",", $code); + $params = array(); + $ps = explode(",", $code); + foreach($ps as $p) { + $v = explode("=", $p); + $params[$v[0]] = $v[1]; + } + return $params; } function runModule($code) |