summaryrefslogtreecommitdiff
path: root/utils/modules.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/modules.php')
-rw-r--r--utils/modules.php41
1 files changed, 26 insertions, 15 deletions
diff --git a/utils/modules.php b/utils/modules.php
index 2c4df69..0b72f08 100644
--- a/utils/modules.php
+++ b/utils/modules.php
@@ -2,6 +2,29 @@
$modules = array();
+function getModuleList()
+{
+ $mlist = array();
+
+ array_push($mlist, "config");
+ array_push($mlist, "discography");
+ array_push($mlist, "events");
+ array_push($mlist, "gallery");
+ array_push($mlist, "guestbook");
+ array_push($mlist, "icons");
+ array_push($mlist, "links");
+ array_push($mlist, "members");
+ array_push($mlist, "news");
+ array_push($mlist, "pages");
+ array_push($mlist, "downloads");
+ array_push($mlist, "newsletter");
+ array_push($mlist, "pressrelease");
+ array_push($mlist, "user");
+ array_push($mlist, "users");
+
+ return $mlist;
+}
+
function loadModule($modulename)
{
global $MODULES_DIR;
@@ -21,21 +44,9 @@ 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");
- loadModule("downloads");
- loadModule("newsletter");
- loadModule("pressrelease");
- loadModule("user");
- // loadModule("users");
+ foreach(getModuleList() as $m) {
+ loadModule($m);
+ }
}
function getModuleParams($code)