diff options
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) |