/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::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(); }
/** * __construct * * @return void */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->buildPage(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->_lang = parent::$lang; $this->_current_user = parent::$users->get_user_data(); $this->build_page(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->_lang = parent::$lang; $this->_current_user = parent::$users->get_user_data(); $this->_have_premium = OfficiersLib::isOfficierActive($this->_current_user['premium_officier_commander']); // build the page $this->build_page(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->_lang = parent::$lang; $this->_resource = parent::$objects->getObjects(); $this->_tr_dark_matter = FunctionsLib::read_config('trader_darkmatter'); $this->_current_user = parent::$users->get_user_data(); $this->_current_planet = parent::$users->get_planet_data(); $this->build_page(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->_current_user = parent::$users->get_user_data(); if (!OfficiersLib::isOfficierActive($this->_current_user['premium_officier_commander'])) { FunctionsLib::redirect('game.php?page=officier'); } else { $this->build_page(); } }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->_lang = parent::$lang; $this->_resource = parent::$objects->getObjects(); $this->_prod_grid = parent::$objects->getProduction(); $this->_reslist = parent::$objects->getObjectsList(); $this->_current_user = parent::$users->get_user_data(); $this->_current_planet = parent::$users->get_planet_data(); $this->build_page(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); $this->_lang = parent::$lang; $this->_resource = parent::$objects->getObjects(); $this->_pricelist = parent::$objects->getPrice(); $this->_combat_caps = parent::$objects->getCombatSpecs(); $this->_prod_grid = parent::$objects->getProduction(); $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(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::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->getObjects(); $this->_pricelist = parent::$objects->getPrice(); $this->_reslist = parent::$objects->getObjectsList(); $this->_formula = FunctionsLib::load_library('FormulaLib'); $this->_noob = FunctionsLib::load_library('NoobsProtectionLib'); $this->_galaxyLib = FunctionsLib::load_library('GalaxyLib'); $this->build_page(); }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::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->getObjects(); $this->_reslist = parent::$objects->getObjectsList(); if ($this->_current_planet[$this->_resource[31]] == 0) { FunctionsLib::message($this->_lang['bd_lab_required'], '', '', TRUE); } else { $this->handle_technologie_build(); $this->build_page(); } }
/** * __construct() */ public function __construct() { parent::__construct(); // check if session is active parent::$users->check_session(); // Check module access FunctionsLib::module_message(FunctionsLib::is_module_accesible(self::MODULE_ID)); // DEFAULT VALUES $this->_current_user = parent::$users->get_user_data(); $this->_lang = parent::$lang; $this->bbcode = FunctionsLib::load_library('BBCodeLib'); $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->setPermissions(); // BUILD THE ALLIANCE PAGE $this->buildPage(); }