vogelor
2010-05-05 2db42a8180b716de7fa83ed9cd96dbe9b59e9aff
interface/web/nav.php
@@ -42,6 +42,14 @@
   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')) {