當前位置: 首頁>>代碼示例>>PHP>>正文


PHP XGPCore類代碼示例

本文整理匯總了PHP中XGPCore的典型用法代碼示例。如果您正苦於以下問題:PHP XGPCore類的具體用法?PHP XGPCore怎麽用?PHP XGPCore使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了XGPCore類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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();
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:32,代碼來源:buildings.php

示例2: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     $this->_lang = parent::$lang;
     $this->_resource = parent::$objects->get_objects();
     $this->_pricelist = parent::$objects->get_price();
     $this->_combat_caps = parent::$objects->get_combat_specs();
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:11,代碼來源:missions.php

示例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->build_page();
 }
開發者ID:rampmaster,項目名稱:XG-Proyect-v3.x.x,代碼行數:12,代碼來源:forum.php

示例4: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     // WE'RE GOING TO HANDLE A DIFFERENT DB OBJECT FOR THE SESSIONS
     $this->_dbc = clone parent::$db;
     session_set_save_handler(array(&$this, 'open'), array(&$this, 'close'), array(&$this, 'read'), array(&$this, 'write'), array(&$this, 'delete'), array(&$this, 'clean'));
     if (session_id() == '') {
         session_start();
     }
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:13,代碼來源:Sessions.php

示例5: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     // Other stuff
     $this->clean_up();
     $this->create_backup();
     // Updates
     $this->update_fleets();
     $this->update_statistics();
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:13,代碼來源:Update_Lib.php

示例6: __construct

 /**
  * __construct
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     // Other stuff
     $this->cleanUp();
     $this->createBackup();
     // Updates
     $this->updateFleets();
     $this->updateStatistics();
 }
開發者ID:saiikup,項目名稱:XG-Proyect-v3.x.x,代碼行數:15,代碼來源:UpdateLib.php

示例7: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     $this->_lang = parent::$lang;
     if ($this->server_requirementes()) {
         $this->build_page();
     } else {
         die(Functions_Lib::message($this->_lang['ins_no_server_requirements']));
     }
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:13,代碼來源:update.php

示例8: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     $this->langs = parent::$lang;
     $this->_planet = Functions_Lib::load_library('PlanetLib');
     if ($this->serverRequirementes()) {
         $this->buildPage();
     } else {
         die(Functions_Lib::message($this->langs['ins_no_server_requirements']));
     }
 }
開發者ID:saiikup,項目名稱:XG-Proyect-v3.x.x,代碼行數:14,代碼來源:installation.php

示例9: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     $this->_lang = parent::$lang;
     if (Functions_Lib::read_config('reg_enable') == 1) {
         $this->_creator = Functions_Lib::load_library('Creator_Lib');
         $this->build_page();
     } else {
         die(Functions_Lib::message($this->_lang['re_disabled'], 'index.php', '5', FALSE, FALSE));
     }
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:14,代碼來源:register.php

示例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->langs = parent::$lang;
     $this->current_user = parent::$users->get_user_data();
     $this->buildPage();
 }
開發者ID:saiikup,項目名稱:XG-Proyect-v3.x.x,代碼行數:14,代碼來源:combatreport.php

示例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));
     $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();
 }
開發者ID:rampmaster,項目名稱:XG-Proyect-v3.x.x,代碼行數:16,代碼來源:messages.php

示例12: __construct

 /**
  * __construct()
  */
 public function __construct($user, $planet, $galaxy, $system)
 {
     parent::__construct();
     $this->_lang = parent::$lang;
     $this->_current_user = $user;
     $this->_current_planet = $planet;
     $this->_galaxy = $galaxy;
     $this->_system = $system;
     $this->_resource = parent::$objects->get_objects();
     $this->_pricelist = parent::$objects->get_price();
     $this->_formula = Functions_Lib::load_library('Formula_Lib');
     $this->_noob = Functions_Lib::load_library('NoobsProtection_Lib');
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:16,代碼來源:Galaxy_Lib.php

示例13: __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();
 }
開發者ID:rampmaster,項目名稱:XG-Proyect-v3.x.x,代碼行數:16,代碼來源:phalanx.php

示例14: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     // check if session is active
     parent::$users->check_session();
     $this->_lang = parent::$lang;
     $this->_current_user = parent::$users->get_user_data();
     // Check if the user is allowed to access
     if (!Administration_Lib::have_access($this->_current_user['user_authlevel'])) {
         die(Functions_Lib::message($this->_lang['ge_no_permissions']));
     } else {
         $this->build_page();
     }
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:17,代碼來源:home.php

示例15: __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();
 }
開發者ID:Gritch69,項目名稱:XG-Project,代碼行數:17,代碼來源:defense.php


注:本文中的XGPCore類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。