| | |
| | | |
| | | $wb = array(); |
| | | $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_dashlet_modules.lng'; |
| | | if(is_file($lng_file)) include($lng_file); |
| | | if(is_file($lng_file)) include $lng_file; |
| | | $tpl->setVar($wb); |
| | | |
| | | /* |
| | |
| | | foreach($modules as $mt) { |
| | | if(is_file('../' . $mt . '/lib/module.conf.php')) { |
| | | if(!preg_match("/^[a-z]{2,20}$/i", $mt)) die('module name contains unallowed chars.'); |
| | | include_once('../' . $mt.'/lib/module.conf.php'); |
| | | include_once '../' . $mt.'/lib/module.conf.php'; |
| | | /* We don't want to show the dashboard */ |
| | | if ($mt != 'dashboard') { |
| | | $module_title = $app->lng($module['title']); |
| | |
| | | return $tpl->grab(); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |