当前位置: 首页>>代码示例>>PHP>>正文


PHP Functions_Lib::load_library方法代码示例

本文整理汇总了PHP中Functions_Lib::load_library方法的典型用法代码示例。如果您正苦于以下问题:PHP Functions_Lib::load_library方法的具体用法?PHP Functions_Lib::load_library怎么用?PHP Functions_Lib::load_library使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Functions_Lib的用法示例。


在下文中一共展示了Functions_Lib::load_library方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __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

示例2: __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

示例3: __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

示例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->_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

示例5: __construct

 /**
  * __construct()
  */
 public function __construct()
 {
     parent::__construct();
     // check if session is active
     parent::$users->check_session();
     $this->_lang = parent::$lang;
     $this->_creator = Functions_Lib::load_library('Creator_Lib');
     $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']) && Administration_Lib::authorization($this->_current_user['user_authlevel'], 'edit_users') == 1) {
         $this->build_page();
     } else {
         die(Functions_Lib::message($this->_lang['ge_no_permissions']));
     }
 }
开发者ID:saiikup,项目名称:XG-Proyect-v3.x.x,代码行数:18,代码来源:maker.php

示例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->_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();
 }
开发者ID:rampmaster,项目名称:XG-Proyect-v3.x.x,代码行数:21,代码来源:galaxy.php

示例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));
     // 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();
 }
开发者ID:Gritch69,项目名称:XG-Project,代码行数:25,代码来源:alliance.php

示例8: update_moon

 /**
  * method update_moon
  * param $fleet_row
  * param $report
  * param $moonName
  * param $target_userId
  * param $target_planet
  * return the attack result
  */
 private function update_moon($fleet_row, $report, $moonName, $target_userId, $target_planet)
 {
     $moon = $report->tryMoon();
     if ($moon === FALSE) {
         return;
     }
     $galaxy = $fleet_row['fleet_end_galaxy'];
     $system = $fleet_row['fleet_end_system'];
     $planet = $fleet_row['fleet_end_planet'];
     $moon_exists = parent::$db->query_fetch("SELECT `planet_id`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tFROM `" . PLANETS . "`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE `planet_galaxy` = '" . $galaxy . "'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND `planet_system` = '" . $system . "'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND `planet_planet` = '" . $planet . "'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAND `planet_type` = '3';");
     if ($moon_exists['planet_id'] != 0) {
         return;
     }
     extract($moon);
     //$size and $fields
     $_creator = Functions_Lib::load_library('Creator_Lib');
     $_creator->create_moon($galaxy, $system, $planet, $TargetUserID, '', '', $size);
 }
开发者ID:rampmaster,项目名称:XG-Proyect-v3.x.x,代码行数:27,代码来源:attack.php

示例9: array

$lang = array();
// set time zone
date_default_timezone_set(Functions_Lib::read_config('date_time_zone'));
// default skin path
define('DPATH', DEFAULT_SKINPATH);
// For debugging
if (Functions_Lib::read_config('debug') == 1) {
    // Show all errors
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
} else {
    // Only for Betas, it's going to be changed
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
}
$debug = Functions_Lib::load_library('Debug_Lib');
$db = new Database();
$installed = Functions_Lib::read_config('game_installed');
$game_version = Functions_Lib::read_config('version');
$game_lang = Functions_Lib::read_config('lang');
$current_page = isset($_GET['page']) ? $_GET['page'] : '';
// check if is installed
if ($installed == 0 && !defined('IN_INSTALL')) {
    Functions_Lib::redirect(XGP_ROOT . 'install/');
}
// define game version
if ($installed != 0) {
    define('VERSION', $game_version == '' ? '' : 'v' . $game_version);
}
// define game language
define('DEFAULT_LANG', $game_lang == '' ? 'spanish' : $game_lang);
开发者ID:Gritch69,项目名称:XG-Project,代码行数:31,代码来源:common.php


注:本文中的Functions_Lib::load_library方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。