Example #1
0
 function control()
 {
     parent::__construct();
     $this->check_priv();
     $this->load('mail');
     $this->check_priv();
 }
Example #2
0
 function control()
 {
     parent::__construct();
     $this->check_priv();
     if (!$this->user['isfounder'] && !$this->user['allowadmincredits']) {
         $this->message('no_permission_for_this_module');
     }
 }
Example #3
0
 function control()
 {
     parent::__construct();
     if (getgpc('m') != 'user' && getgpc('a') != 'login' && getgpc('a') != 'logout') {
         if (!$this->user['isfounder'] && !$this->user['allowadminuser']) {
             $this->message('no_permission_for_this_module');
         }
     }
     $this->load('user');
 }
Example #4
0
 function control()
 {
     parent::__construct();
     if (!$this->user['isfounder'] && !$this->user['allowadminnote']) {
         $this->message('no_permission_for_this_module');
     }
     $this->load('feed');
     $this->load('misc');
     $this->apps = $this->cache['apps'];
     $this->check_priv();
 }
Example #5
0
 function control()
 {
     parent::__construct();
     $this->check_priv();
     if (!$this->user['isfounder'] && !$this->user['allowadminbadword']) {
         $this->message('no_permission_for_this_module');
     }
     /*引入接口文件,并初始化*/
     require_once ROOT_PATH . "lib/class/uset.class.php";
     $this->mUset = new uset();
 }
Example #6
0
 function control()
 {
     parent::__construct();
     $this->check_priv();
     if (!$this->user['isfounder'] && !$this->user['allowadminbadword']) {
         $this->message('no_permission_for_this_module');
     }
     require ROOT_DIR . 'lib/class/credit.class.php';
     $this->mCredit = new credit();
     //$this->load('credit');
 }
Example #7
0
File: user.php Project: cwcw/cms
 function control()
 {
     parent::__construct();
     if ($_GET['a'] != 'login' && $_GET['a'] != 'logout') {
         $this->check_priv();
         if (!$this->user['isfounder'] && !$this->user['allowadminuser']) {
             $this->message('no_permission_for_this_module');
         }
     }
     $this->load('user');
 }
Example #8
0
 function control()
 {
     parent::__construct();
     $this->check_priv();
     if (!$this->user['isfounder'] && !$this->user['allowadminnote']) {
         $this->message('no_permission_for_this_module');
     }
     $this->load('note');
     $this->apps = $this->cache['apps'];
     $this->operations = array('test' => array('', 'action=test'), 'deleteuser' => array('', 'action=deleteuser'), 'renameuser' => array('', 'action=renameuser'), 'deletefriend' => array('', 'action=deletefriend'), 'gettag' => array('', 'action=gettag', 'tag', 'updatedata'), 'getcreditsettings' => array('', 'action=getcreditsettings'), 'updatecreditsettings' => array('', 'action=updatecreditsettings'), 'updateclient' => array('', 'action=updateclient'), 'updatepw' => array('', 'action=updatepw'), 'updatebadwords' => array('', 'action=updatebadwords'), 'updatehosts' => array('', 'action=updatehosts'), 'updateapps' => array('', 'action=updateapps'), 'updatecredit' => array('', 'action=updatecredit'));
     $this->check_priv();
 }
Example #9
0
 function control()
 {
     parent::__construct();
     /*
     	$this->check_priv();
     	if(!$this->user['isfounder'] && !$this->user['allowadminapp']) {
     		$this->message('no_permission_for_this_module');
     	}
     */
     $this->load('app');
     $this->load('misc');
 }
Example #10
0
 function pluginbase()
 {
     parent::__construct();
     $this->check_priv();
     if (!$this->user['isfounder']) {
         $this->message('no_permission_for_this_module');
     }
     $a = getgpc('a');
     $this->load('plugin');
     $this->plugin = $_ENV['plugin']->get_plugin($a);
     $this->plugins = $_ENV['plugin']->get_plugins();
     if (empty($this->plugin)) {
         $this->message('read_plugin_invalid');
     }
     $this->view->assign('plugin', $this->plugin);
     $this->view->assign('plugins', $this->plugins);
     $this->view->languages = $this->plugin['lang'];
     $this->view->tpldir = UC_ROOT . './plugin/' . $a;
     $this->view->objdir = UC_DATADIR . './view';
 }
Example #11
0
 function control()
 {
     parent::__construct();
 }