summaryrefslogtreecommitdiff
path: root/utils/modules.php
blob: 4c3422816bc473dec34b6bb46e881e03e9be5edf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

$modules = array();

/**
 * Iterate all defined modules, and load them into the global array.
 * FIXME: Make this lazy (load on demand)
 */
foreach($MODULES as $modulename) {
	include_once($MODULES_DIR . "/" . $modulename . ".php");
	$module = call_user_func($modulename . "_init");
	$modules[$modulename] = $module;
}

?>