public function __construct($id = null) { $this->path = _FM_HOME_DIR . DS . "data" . DS . "rights" . DS; if (!isset(self::$tree)) { self::$tree = MPeer::getUserGroups($this); self::$user = MPeer::getUser(); } if ($id !== null && MFile::isFile($this->path . "rf" . $id . ".php")) { $this->load($id); } else { $this->createClean($id); } if ($id !== null && $id > -1) { $this->rootFolderId = (int) $id; } $this->calculate($id); }
), // Info array( //Views array("information"), // name MText::_("information"), // URL MURL::_("information"), // Roots only ? 0 ) ); $user = MPeer::getUser(); foreach ($mainMenuItems as $menuItem){ if(!$menuItem[3] || $menuItem[3] && $user->isRoot || _FM_IS_DEMO){ if(in_array($GLOBALS['view'], $menuItem[0])){ echo' <div class="toLeft" style="position: relative; display: block; width: auto; margin-top: 2px;"> <span class="activeTab" id="activeTab">'.$menuItem[1].'</span> <img src="' . _FM_HOME_FOLDER . '/images/active-tab-right.png" class="toLeft" /> </div> '."\n"; }else{ echo '<a href="'.$menuItem[2].'" class="tabOverlay">'.$menuItem[1].'</a> '."\n"; } }//EOF allowed to see }//EOF foreach