Example #1
0
 /**
  * Constructor
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     if ($this->_acl->check('page_manage')) {
         $this->setPageLinks(array(t('Manage pages') => $this->_router->makeUrl('page', 'config'), t('Add page') => $this->_router->makeUrl('page', 'config', 'add')));
     }
 }
Example #2
0
 /**
  * Constructor
  * Calls the parent constructor to register the methods
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->rssDir = $this->_zula->getDir('tmp') . '/rss';
     $this->_session->storePrevious(false);
     # Don't store previous URL in session
 }
Example #3
0
 /**
  * Constructor
  *
  * Sets the common page links
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('System information') => $this->_router->makeUrl('sysinfo'), t('Writable files/directories') => $this->_router->makeUrl('sysinfo', 'index', 'writable'), t('Update checker') => $this->_router->makeUrl('sysinfo', 'index', 'update')));
     if (function_exists('phpinfo')) {
         $this->setPageLinks(array(t('PHP info') => $this->_router->makeUrl('sysinfo', 'index', 'phpinfo')));
     }
 }
Example #4
0
 /**
  * Constructor
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     try {
         $this->loginMethod = $this->_config->get('session/login_by');
         if (!trim($this->loginMethod)) {
             throw new Exception();
         }
     } catch (Exception $e) {
         $this->loginMethod = 'username';
     }
     $this->maxLoginAttempts = abs($this->_config->get('session/max_login_attempts'));
 }
Example #5
0
 /**
  * Constructor function
  * --- Gathers all the feeds
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $rssDir = $this->_zula->getDir('tmp') . '/rss';
     $dirLen = strlen($rssDir) + 1;
     $feeds = glob($rssDir . '/*.xml');
     if (!empty($feeds)) {
         foreach ($feeds as $file) {
             $name = substr($file, $dirLen, -4);
             $this->feeds[$name] = ucfirst($name);
         }
     }
 }
Example #6
0
 /**
  * Constructor function
  *
  * Sets all the different page links
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('View modules') => $this->_router->makeUrl('module_manager'), t('Manage modules') => $this->_router->makeUrl('module_manager', 'config'), t('Install modules') => $this->_router->makeUrl('module_manager', 'install'), t('Load order') => $this->_router->makeUrl('module_manager', 'config', 'loadorder')));
 }
Example #7
0
 /**
  * Constructor
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('Manage themes') => $this->_router->makeUrl('theme'), t('Settings') => $this->_router->makeUrl('theme', 'index', 'settings')));
 }
Example #8
0
 /**
  * Constructor
  * Sets the common page links
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('Manage polls') => $this->_router->makeUrl('poll', 'config'), t('Add poll') => $this->_router->makeUrl('poll', 'config', 'add')));
 }
Example #9
0
 /**
  * Constructor
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->_config->update('config/title', sprintf('%s %s upgrader', _PROJECT_NAME, _PROJECT_LATEST_VERSION));
 }
Example #10
0
 /**
  * Constructor function
  * Configure common page links
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('Manage categories') => $this->_router->makeUrl('menu', 'config'), t('Add category') => $this->_router->makeUrl('menu', 'config', 'addcat')));
 }
Example #11
0
 /**
  * Constructor
  *
  * Sets the page links to those of the top-level categories
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('General') => $this->_router->makeUrl('settings', 'general'), t('Email') => $this->_router->makeUrl('settings', 'email'), t('Locale') => $this->_router->makeUrl('settings', 'locale'), t('Server & security') => $this->_router->makeUrl('settings', 'security'), t('Cache & performance') => $this->_router->makeUrl('settings', 'cache'), t('Editing') => $this->_router->makeUrl('settings', 'editing')));
 }
Example #12
0
 /**
  * Constructor
  * Sets the common page links
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('Latest users') => $this->_router->makeUrl('users', 'config'), t('Add user') => $this->_router->makeUrl('users', 'config', 'add')));
 }
Example #13
0
 /**
  * Constructor
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('Configuration') => $this->_router->makeUrl('session', 'config'), t('Manage validations') => $this->_router->makeUrl('session', 'config', 'validations')));
 }
Example #14
0
 /**
  * Constructor
  *
  * @return object
  */
 public function __construct($moduleDetails, $config, $sector)
 {
     parent::__construct($moduleDetails, $config, $sector);
     $this->setPageLinks(array(t('Manage layouts') => $this->_router->makeUrl('content_layout'), t('Add layout') => $this->_router->makeUrl('content_layout', 'index', 'add')));
 }
Example #15
0
 /**
  * Constructor
  * Sets common page links for configuration
  *
  * @return object
  */
 public function __construct($details, $config, $sector)
 {
     parent::__construct($details, $config, $sector);
     $this->setPageLinks(array(t('Manage Categories') => $this->_router->makeUrl('media', 'config'), t('Add Category') => $this->_router->makeUrl('media', 'config', 'addcat'), t('Manage Outstanding') => $this->_router->makeUrl('media', 'manage', 'outstanding'), t('Settings') => $this->_router->makeUrl('media', 'config', 'settings')));
 }