Пример #1
0
 public function getPage(&$metaPageTitle, &$pageTitle)
 {
     $cmd = isset($_REQUEST['cmd']) ? explode('_', $_REQUEST['cmd']) : array(0 => null);
     $groupId = isset($cmd[1]) ? intval($cmd[1]) : null;
     // add whole component's language data to every application page of component
     $this->_objTpl->setVariable(\Env::get('init')->getComponentSpecificLanguageData('Access'));
     \Cx\Lib\SocialLogin::parseSociallogin($this->_objTpl, 'access_');
     \Cx\Core\Csrf\Controller\Csrf::add_code();
     switch ($cmd[0]) {
         case 'signup':
             $this->signUp();
             break;
         case 'settings':
             $this->settings();
             break;
         case 'members':
             $this->members($groupId);
             break;
         case 'user':
             $this->user($metaPageTitle, $pageTitle);
             break;
         default:
             $this->dashboard();
             break;
     }
     return $this->_objTpl->get();
 }
Пример #2
0
 public function getPage(&$metaPageTitle, &$pageTitle)
 {
     $cmd = isset($_REQUEST['cmd']) ? explode('_', $_REQUEST['cmd']) : array(0 => null);
     $groupId = isset($cmd[1]) ? intval($cmd[1]) : null;
     \Cx\Lib\SocialLogin::parseSociallogin($this->_objTpl, 'access_');
     \Cx\Core\Csrf\Controller\Csrf::add_code();
     switch ($cmd[0]) {
         case 'signup':
             $this->signUp();
             break;
         case 'settings':
             $this->settings();
             break;
         case 'members':
             $this->members($groupId);
             break;
         case 'user':
             $this->user($metaPageTitle, $pageTitle);
             break;
         default:
             $this->dashboard();
             break;
     }
     return $this->_objTpl->get();
 }
Пример #3
0
 /**
  * Reads $_GET['cmd'] and selects (depending on the value) an action
  *
  */
 function getPage()
 {
     \Cx\Core\Csrf\Controller\Csrf::add_code();
     if (!isset($_GET['cmd'])) {
         $_GET['cmd'] = '';
     }
     switch ($_GET['cmd']) {
         case 'details':
             $this->showDetails($_GET['id']);
             break;
         case 'search':
             $this->showSearch();
             break;
         case 'cloud':
             $this->showTagCloud();
             break;
         default:
             $this->showEntries();
             break;
     }
     return $this->_objTpl->get();
 }
Пример #4
0
 /**
  * Reads $this->cmd and selects (depending on the value) an action
  *
  */
 public function getPage()
 {
     \Cx\Core\Csrf\Controller\Csrf::add_code();
     switch ($this->cmd) {
         case 'download_file':
             $this->download();
             exit;
             break;
         case 'delete_file':
             $this->deleteDownload();
             $this->overview();
             break;
         case 'delete_category':
             $this->deleteCategory();
             $this->overview();
             break;
         default:
             $this->overview();
             break;
     }
     $this->parseMessages();
     return $this->objTemplate->get();
 }
Пример #5
0
 /**
  * get oage
  *
  * Reads the act and selects the right action
  *
  * @access   public
  * @return   string  parsed content
  */
 function getPage()
 {
     \Cx\Core\Csrf\Controller\Csrf::add_code();
     if (!isset($_REQUEST['cmd'])) {
         $_REQUEST['cmd'] = '';
     }
     if (!isset($_GET['lid'])) {
         $_GET['lid'] = '';
     }
     switch ($_REQUEST['cmd']) {
         case 'detail':
             $this->getHits(intval($_GET['id']));
             $this->feedDetails(intval($_GET['id']), intval($_GET['cid']), intval($_GET['lid']));
             break;
         case 'add':
             $this->newFeed();
             break;
         case 'myfeeds':
             $this->myFeeds();
             break;
         case 'latest':
             $this->latest();
             break;
         case 'edit':
             \Cx\Core\Csrf\Controller\Csrf::check_code();
             $this->editFeed();
             break;
         case 'search':
             $this->searchFeed();
             break;
         case 'vote':
             \Cx\Core\Csrf\Controller\Csrf::check_code();
             $this->voteFeed();
             break;
         default:
             if (isset($_GET['linkid'])) {
                 $this->redirectFeed(intval($_GET['linkid']));
             }
             $this->overview();
     }
     return $this->_objTpl->get();
 }