summaryrefslogtreecommitdiff
path: root/utils/modules.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-28 10:20:09 +0000
committerdeva <deva>2010-02-28 10:20:09 +0000
commit8c69fd9b2e824114ee3cd0f6a7dcddc7e31d913c (patch)
tree5352520fe12cb1670d2d5f035483a172c467643b /utils/modules.php
parent5fac941e3295d4a094795aaf2f0e05c542879465 (diff)
Added users module. Made new password lineedit widget.
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)