Example #1
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         die;
     }
 }
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (Yii::app()->session['USER_RIGHT_CONFIGURATOR'] != 1) {
         die;
     }
 }
Example #3
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         Yii::app()->session['flashmessage'] = gT('Access denied!');
         $this->getController()->redirect(App()->createUrl("/admin"));
     }
 }
Example #4
0
 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (Yii::app()->session['USER_RIGHT_CONFIGURATOR'] != 1) {
         die;
     }
     Yii::app()->loadHelper('database');
 }
Example #5
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('superadmin', 'read')) {
         die;
     }
     if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) {
         die($this->getController()->lang->gT('This feature is only available for MySQL databases.'));
     }
 }
Example #6
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] != 1) {
         die;
     }
     if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) {
         die($this->getController()->lang->gT('This feature is only available for MySQL databases.'));
     }
 }
Example #7
0
 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         Yii::app()->setFlashMessage(gT("You do not have permission to access this page."), 'error');
         $this->getController()->redirect($this->getController()->createUrl("/admin/"));
     }
     Yii::app()->loadHelper('database');
     Yii::app()->loadHelper('surveytranslator');
 }
 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     if (!Permission::model()->hasGlobalPermission('settings', 'read')) {
         $clang = $this->getController()->lang;
         Yii::app()->session['flashmessage'] = $clang->gT("You do not have sufficient rights to access this page.");
         $this->getController()->redirect($this->getController()->createUrl("/admin/"));
     }
     Yii::app()->loadHelper('database');
     Yii::app()->loadHelper('surveytranslator');
 }
Example #9
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     // Load helpers
     Yii::app()->loadHelper('surveytranslator');
     // Sanitize/get globals/variables
     $_POST['quotamax'] = sanitize_int(Yii::app()->request->getPost('quotamax'));
     if (empty($_POST['autoload_url'])) {
         $_POST['autoload_url'] = 0;
     }
     if (empty($_POST['quota_limit']) || !is_numeric(Yii::app()->request->getPost('quota_limit')) || Yii::app()->request->getPost('quota_limit') < 0) {
         $_POST['quota_limit'] = 0;
     }
 }
Example #10
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     Yii::app()->loadHelper('surveytranslator');
 }
Example #11
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     Yii::app()->loadHelper('database');
 }
Example #12
0
 function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
     Yii::app()->loadHelper('export');
 }
Example #13
0
 /**
  * Initiates the survey action, checks for superadmin permission
  *
  * @access public
  * @param CController $controller
  * @param string $id
  * @return void
  */
 public function __construct($controller, $id)
 {
     parent::__construct($controller, $id);
 }