本文整理汇总了PHP中adminbase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP adminbase::__construct方法的具体用法?PHP adminbase::__construct怎么用?PHP adminbase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类adminbase
的用法示例。
在下文中一共展示了adminbase::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: control
function control()
{
parent::__construct();
$this->check_priv();
$this->load('mail');
$this->check_priv();
}
示例2: control
function control()
{
parent::__construct();
$this->check_priv();
if (!$this->user['isfounder'] && !$this->user['allowadmincredits']) {
$this->message('no_permission_for_this_module');
}
}
示例3: control
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');
}
示例4: control
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();
}
示例5: control
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();
}
示例6: control
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');
}
示例7: control
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');
}
示例8: control
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();
}
示例9: control
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');
}
示例10: pluginbase
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';
}
示例11: control
function control()
{
parent::__construct();
}