function display($tpl = null) { $layout = FSS_Input::getCmd('layout'); if ($layout == "support") { return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_support', false)); } if ($layout == "content") { return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_content', false)); } if ($layout == "moderate") { return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_moderate', false)); } if ($layout == "shortcut") { return JFactory::getApplication()->redirect(FSSRoute::_('index.php?option=com_fss&view=admin_shortcut', false)); } $can_view = false; $view = array(); if (FSS_Permission::PermAnyContent()) { $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_content', false); $can_view = true; } if (FSS_Permission::AdminGroups()) { $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_groups', false); $can_view = true; } if (FSS_Permission::auth("fss.reports", "com_fss.reports")) { $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_report', false); $can_view = true; } if (FSS_Permission::auth("fss.handler", "com_fss.support_admin")) { $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_support', false); $can_view = true; } if (FSS_Permission::CanModerate()) { $view[] = FSSRoute::_('index.php?option=com_fss&view=admin_moderate', false); $can_view = true; } if (!$can_view) { return FSS_Admin_Helper::NoPerm(); } // if only 1 section visible, then view that section only if (count($view) == 1) { $mainframe = JFactory::getApplication(); $link = reset($view); $mainframe->redirect($link); } $this->comments = new FSS_Comments(null, null); $this->artcounts = FSS_ContentEdit::getArticleCounts(); parent::display(); }
function display($tpl = null) { //print_p($_POST); if (!FSS_Permission::AdminGroups()) { return FSS_Admin_Helper::NoPerm(); } $this->groupid = FSS_Input::getInt('groupid'); $what = FSS_Input::getCmd('what'); if ($what == "productlist") { return $this->DisplayProducts(); } if ($what == "setperm") { return $this->SetPerm(); } if ($what == "toggleallemail") { return $this->ToggleAllEMail(); } if ($what == "toggleadmin") { return $this->ToggleIsAdmin(); } if ($what == "pickuser") { return $this->PickUser(); } if ($what == "adduser") { return $this->AddUser(); } if ($what == "removemembers") { return $this->RemoveUsers(); } if ($what == "savegroup" || $what == "saveclose") { return $this->SaveGroup($what); } if ($what == "create") { return $this->CreateGroup(); } if ($what == "deletegroup") { return $this->DeleteGroup(); } if ($this->groupid > 0) { return $this->DisplayGroup(); } return $this->DisplayGroupList(); parent::display(); }
'> <img src='<?php echo JURI::root(true); ?> /components/com_fss/assets/images/support/content_16.png'> <?php echo JText::sprintf("SA_CONTENT"); ?> </a> </li> <?php } ?> <?php if (FSS_Permission::AdminGroups()) { ?> <li class="<?php if ($this->view == "admin_groups") { echo "active"; } ?> "> <a href='<?php echo FSSRoute::_('index.php?option=com_fss&view=admin_groups'); ?> '> <img src='<?php echo JURI::root(true); ?> /components/com_fss/assets/images/support/groups_16.png'>
function display($tpl = null) { $mainframe = JFactory::getApplication(); $aparams = $mainframe->getPageParameters('com_fss'); $this->template = $aparams->get('template'); if ($this->template == "") { $this->template = "grid"; } $this->show_desc = $aparams->get('show_desc'); $this->mainwidth = $aparams->get('mainwidth'); $this->maincolums = $aparams->get('maincolums'); if ($this->maincolums == 0 || $this->maincolums == "") { $this->maincolums = 3; } $this->hideicons = $aparams->get('hideicons'); $this->imagewidth = $aparams->get('imagewidth'); if ($this->imagewidth == 0 || $this->imagewidth == "") { $this->imagewidth = 128; } $this->imageheight = $aparams->get('imageheight'); if ($this->imageheight == 0 || $this->imageheight == "") { $this->imageheight = 128; } $this->border = $aparams->get('border'); $this->info_top = $aparams->get('info_top'); $this->info_well = $aparams->get('info_well'); if ($this->info_top === null) { $this->info_top = 1; } if ($this->info_well === null) { $this->info_well = 1; } $db = JFactory::getDBO(); $query = 'SELECT * FROM #__menu'; $db->setQuery($query); $this->joomlamenus = $db->loadAssocList('id'); // work out permissions, and if to show admin or not $showadmin = false; $showgroups = false; if (FSS_Permission::AnyAdmin()) { $showadmin = true; } if (FSS_Permission::AdminGroups()) { $showgroups = true; } $this->showadmin = $showadmin; if ($showadmin) { $this->getSupportOverView(); } $query = 'SELECT * FROM #__fss_main_menu '; $where = array(); if (!$showadmin) { $where[] = 'itemtype != 9'; } if (!$showgroups) { $where[] = 'itemtype != 10'; } // add language and access to query where $where[] = 'language in (' . $db->Quote(JFactory::getLanguage()->getTag()) . ',' . $db->Quote('*') . ')'; $user = JFactory::getUser(); $where[] = 'access IN (' . implode(',', $user->getAuthorisedViewLevels()) . ')'; $where[] = "published = 1"; if (count($where) > 0) { $query .= " WHERE " . implode(" AND ", $where); } $query .= " ORDER BY ordering"; $db->setQuery($query); $this->menus = $db->loadAssocList('id'); FSS_Translate_Helper::Tr($this->menus); $this->ValidateMenuLinks(); parent::display(); }