| | |
| | | if(isset($_SESSION["s"]["user"]) && $_SESSION["s"]["user"]['active'] == 1 && is_array($_SESSION['s']['module'])) {
|
| | | //* Loading modules of the user and building top navigation
|
| | | $modules = explode(',', $_SESSION['s']['user']['modules']);
|
| | | /*
|
| | | * If the dashboard is in the list of modules it always has to be the first!
|
| | | */
|
| | | if (in_array('dashboard', $modules)) {
|
| | | $key = array_search('dashboard', $modules);
|
| | | unset($modules[$key]);
|
| | | $modules = array_merge(array('dashboard'), $modules);
|
| | | }
|
| | | if(is_array($modules)) {
|
| | | foreach($modules as $mt) {
|
| | | if(is_file($mt.'/lib/module.conf.php')) {
|