예제 #1
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     hasAdminRights($isAdm);
     if (!$isAdm) {
         return array();
     }
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$lll["subscription_ttitle"]] = $gorumroll->method == "showhtmllist" ? "" : new AppController("subscription/list");
     return $navBarPieces;
 }
예제 #2
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$lll["Notifications"]] = $gorumroll->method == "showhtmllist" ? "" : new AppController("notification/list");
     return $navBarPieces;
 }
예제 #3
0
파일: user.php 프로젝트: alencarmo/OCF
 function getNavBarPieces($absolute = FALSE)
 {
     global $gorumroll, $lll;
     hasAdminRights($isAdm);
     if (!$isAdm) {
         return array();
     }
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     if ($gorumroll->method == "showhtmllist") {
         $navBarPieces[$lll["users"]] = "";
     } else {
         $ctrl =& new AppController("user/list");
         $ctrl->setAbsolute($absolute);
         $navBarPieces[$lll["users"]] = $ctrl;
     }
     if ($gorumroll->method == "showdetails") {
         $navBarPieces[htmlspecialchars($this->name)] = "";
     } elseif ($gorumroll->list == "user" && ($gorumroll->method == "modify_form" || $gorumroll->method == "delete_form")) {
         $ctrl =& new AppController("user/showdetails/{$this->id}");
         $ctrl->setAbsolute($absolute);
         $navBarPieces[htmlspecialchars($this->name)] = $ctrl;
     }
     return $navBarPieces;
 }
예제 #4
0
파일: settings.php 프로젝트: alencarmo/OCF
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$gorumroll->list == "appsettings_content" ? $lll["contentManagement"] : $lll["adminsett"]] = "";
     return $navBarPieces;
 }
예제 #5
0
 function getNavBarPieces()
 {
     global $lll, $gorumroll;
     $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     $navBarPieces[$lll["customlist_ttitle"]] = $gorumroll->method == "showhtmllist" ? "" : new AppController("customlist/list");
     return $navBarPieces;
 }
예제 #6
0
파일: itemfield.php 프로젝트: alencarmo/OCF
 function getNavBarPieces()
 {
     global $lll, $gorumroll, $gorumcategory;
     $cid = !empty($this->cid) ? $this->cid : $gorumcategory;
     if ($gorumroll->method == "sortfield_form" && $gorumroll->rollid !== 0 || !empty($this->cid)) {
         G::load($cat, $cid, "appcategory");
         $navBarPieces = $cat->getNavBarPieces();
     } else {
         $navBarPieces = ControlPanel::getNavBarPieces(TRUE);
     }
     $label = $cid ? "itemfield_ttitle_simple" : "itemfield_ttitle_global";
     if ($gorumroll->method == "sortfield_form") {
         $navBarPieces[$lll[$label]] = "";
     } else {
         $navBarPieces[$lll[$label]] = new AppController("field/sortfield_form/{$this->cid}");
     }
     return $navBarPieces;
 }