本文整理汇总了PHP中registry::load_config方法的典型用法代码示例。如果您正苦于以下问题:PHP registry::load_config方法的具体用法?PHP registry::load_config怎么用?PHP registry::load_config使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类registry
的用法示例。
在下文中一共展示了registry::load_config方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: define
* -----------------------------------------------------------------------
* @author $Author: hoofy_leon $
* @copyright 2006-2011 EQdkp-Plus Developer Team
* @link http://eqdkp-plus.com
* @package eqdkp-plus
* @version $Rev: 12583 $
*
* $Id: infotooltip_feed.php 12583 2012-12-13 17:49:38Z hoofy_leon $
*/
define('EQDKP_INC', true);
$eqdkp_root_path = './../';
$noinit = true;
include $eqdkp_root_path . '/common.php';
registry::add_const('root_path', $eqdkp_root_path);
//init our db-class
registry::load_config();
require $eqdkp_root_path . 'core/dbal/dbal.php';
require_once $eqdkp_root_path . 'core/dbal/' . registry::get_const('dbtype') . '.php';
registry::$aliases['db'] = array('dbal_' . registry::get_const('dbtype'), array(array('open' => true)));
error_reporting(E_ALL);
header('content-type: text/html; charset=UTF-8');
include $eqdkp_root_path . 'infotooltip/infotooltip.class.php';
$itt = registry::register('infotooltip');
$in = registry::register('input');
registry::$aliases['bridge'] = 'bridge_generic';
/* Itemfetching
* Parameters accepted:
* - name => item_name OR item_ID if game_id = true
* - lang => language of item (short version, e.g. 'en', 'de')
* - game_id => see name
*/
示例2: define
define('DEBUG', 99);
define('INSTALLER', true);
@set_time_limit(0);
@ignore_user_abort(true);
define('ANONYMOUS', -1);
include_once $eqdkp_root_path . 'core/super_registry.class.php';
include_once $eqdkp_root_path . 'core/registry.class.php';
include_once $eqdkp_root_path . 'core/gen_class.class.php';
registry::add_const('root_path', $eqdkp_root_path);
registry::add_const('lite_mode', true);
// switch to userdefined error-handling
registry::$aliases['pdl'] = array('plus_debug_logger', array(false, false));
registry::$aliases['user'] = 'auth_db';
$pdl = registry::register('plus_debug_logger', array(false, false));
set_error_handler(array($pdl, 'myErrorHandler'));
register_shutdown_function(array($pdl, "catch_fatals"));
$pdl->set_debug_level(DEBUG);
//to prevent errors on further adding of debug-levels
unset($pdl);
registry::load_config(true);
//New DBAL
if ($dbtype = registry::get_const('dbtype')) {
include_once registry::get_const('root_path') . 'libraries/dbal/dbal.class.php';
require_once registry::get_const('root_path') . 'libraries/dbal/' . registry::get_const('dbtype') . '.dbal.class.php';
registry::$aliases['db'] = array('dbal_' . registry::get_const('dbtype'), array(array('open' => true)));
}
include_once $eqdkp_root_path . 'core/constants.php';
include_once $eqdkp_root_path . 'core/core.functions.php';
include_once $eqdkp_root_path . 'install/install.class.php';
registry::load_html_fields();
registry::register('install')->init();