| | |
| | | //* Pick out modules |
| | | //* TODO: limit to activated modules of the user |
| | | $modules_list = array(); |
| | | if($_SESSION["s"]["user"]["typ"] == 'admin') { |
| | | $handle = @opendir(ISPC_WEB_PATH); |
| | | while ($file = @readdir ($handle)) { |
| | | if ($file != '.' && $file != '..') { |
| | |
| | | } |
| | | } |
| | | } |
| | | } else { |
| | | $modules = $conf['interface_modules_enabled']; |
| | | if($_SESSION["s"]["user"]["typ"] != 'admin' && $app->auth->has_clients($_SESSION['s']['user']['userid'])) { |
| | | $modules .= ',client'; |
| | | } |
| | | $tmp = explode(',',$modules); |
| | | foreach($tmp as $m) { |
| | | $modules_list[$m] = $m; |
| | | } |
| | | } |
| | | |
| | | //* Languages |
| | | $language_list = array(); |