本文整理汇总了PHP中Functions_Lib::is_module_accesible方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions_Lib::is_module_accesible方法的具体用法?PHP Functions_Lib::is_module_accesible怎么用?PHP Functions_Lib::is_module_accesible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Functions_Lib
的用法示例。
在下文中一共展示了Functions_Lib::is_module_accesible方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_current_user = parent::$users->get_user_data();
$this->_current_planet = parent::$users->get_planet_data();
$this->_current_page = isset($_GET['page']) ? $_GET['page'] : NULL;
$this->_lang = parent::$lang;
$this->_objects = parent::$objects;
if ($this->_current_page != 'resources' && $this->_current_page != 'station') {
$this->_current_page = 'resources';
}
// check the current page and the allowed elements
// resources page
if ($this->_current_page == 'resources') {
$this->_allowed['1'] = array(1, 2, 3, 4, 12, 22, 23, 24);
$this->_allowed['3'] = array(12, 22, 23, 24);
}
// station page
if ($this->_current_page == 'station') {
$this->_allowed['1'] = array(14, 15, 21, 31, 33, 34, 44);
$this->_allowed['3'] = array(14, 21, 41, 42, 43);
}
// build the page
$this->build_page();
}
示例2: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->build_page();
}
示例3: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->langs = parent::$lang;
$this->current_user = parent::$users->get_user_data();
$this->buildPage();
}
示例4: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_lang = parent::$lang;
$this->_current_user = parent::$users->get_user_data();
$this->_have_premium = Officiers_Lib::is_officier_active($this->_current_user['premium_officier_commander']);
// build the page
$this->build_page();
}
示例5: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_lang = parent::$lang;
$this->_current_user = parent::$users->get_user_data();
$this->_current_planet = parent::$users->get_planet_data();
$this->_formula = Functions_Lib::load_library('Formula_Lib');
$this->build_page();
}
示例6: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_lang = parent::$lang;
$this->_resource = parent::$objects->get_objects();
$this->_price = parent::$objects->get_price();
$this->_current_user = parent::$users->get_user_data();
$this->_current_planet = parent::$users->get_planet_data();
$this->build_page();
}
示例7: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_current_user = parent::$users->get_user_data();
if (!Officiers_Lib::is_officier_active($this->_current_user['premium_officier_commander'])) {
Functions_Lib::redirect('game.php?page=officier');
} else {
$this->build_page();
}
}
示例8: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_lang = parent::$lang;
$this->_resource = parent::$objects->get_objects();
$this->_pricelist = parent::$objects->get_price();
$this->_combat_caps = parent::$objects->get_combat_specs();
$this->_prod_grid = parent::$objects->get_production();
$this->_current_user = parent::$users->get_user_data();
$this->_current_planet = parent::$users->get_planet_data();
$this->_element_id = isset($_GET['gid']) ? (int) $_GET['gid'] : NULL;
$this->build_page();
}
示例9: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_current_user = parent::$users->get_user_data();
$this->_current_planet = parent::$users->get_planet_data();
$this->_lang = parent::$lang;
$this->_resource = parent::$objects->get_objects();
$this->_pricelist = parent::$objects->get_price();
$this->_reslist = parent::$objects->get_objects_list();
$this->_formula = Functions_Lib::load_library('Formula_Lib');
$this->_noob = Functions_Lib::load_library('NoobsProtection_Lib');
$this->_galaxyLib = Functions_Lib::load_library('Galaxy_Lib');
$this->build_page();
}
示例10: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
$this->_current_user = parent::$users->get_user_data();
$this->_current_planet = parent::$users->get_planet_data();
$this->_lang = parent::$lang;
$this->_resource = parent::$objects->get_objects();
$this->_reslist = parent::$objects->get_objects_list();
if ($this->_current_planet[$this->_resource[31]] == 0) {
Functions_Lib::message($this->_lang['bd_lab_required'], '', '', TRUE);
} else {
$this->handle_technologie_build();
$this->build_page();
}
}
示例11: __construct
/**
* __construct()
*/
public function __construct()
{
parent::__construct();
// check if session is active
parent::$users->check_session();
// Check module access
Functions_Lib::module_message(Functions_Lib::is_module_accesible(self::MODULE_ID));
// DEFAULT VALUES
$this->_current_user = parent::$users->get_user_data();
$this->_lang = parent::$lang;
$this->_bbcode = Functions_Lib::load_library('BBCode_Lib');
$this->_ally = '';
$this->_permissions = array();
// SOME REQUIRED PATHS
$this->_lang['dpath'] = DPATH;
$this->_lang['img_path'] = XGP_ROOT . IMG_PATH;
$this->_lang['js_path'] = XGP_ROOT . JS_PATH;
// SET THE PERMISSIONS
$this->set_permissions();
// BUILD THE ALLIANCE PAGE
$this->build_page();
}