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


PHP ipsRegistry::init方法代碼示例

本文整理匯總了PHP中ipsRegistry::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP ipsRegistry::init方法的具體用法?PHP ipsRegistry::init怎麽用?PHP ipsRegistry::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ipsRegistry的用法示例。


在下文中一共展示了ipsRegistry::init方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: define

define('IPB_VERSION', 0);
define('IPB_LONG_VERSION', 0);
define('IPS_IS_UPGRADER', FALSE);
define('IN_IPB', TRUE);
define('IN_ACP', TRUE);
define('PUBLIC_DIRECTORY', 'public');
require_once IPS_ROOT_PATH . 'setup/sources/base/ipsRegistry_setup.php';
/*noLibHook*/
require_once IPS_ROOT_PATH . 'setup/sources/base/ipsController_setup.php';
/*noLibHook*/
require_once IPS_ROOT_PATH . 'setup/sources/classes/output/output.php';
/*noLibHook*/
require_once IPS_ROOT_PATH . 'setup/cli/output.php';
/*noLibHook*/
$steps = array(1 => 'sql', 'sql_steps', 'applications', 'modules', 'settings', 'templates', 'tasks', 'languages', 'clientlanguages', 'bbcode', 'acphelp', 'other', 'caches');
ipsRegistry::init();
$registry = ipsRegistry::instance();
//-----------------------------------------
// Set Configuration
//-----------------------------------------
IPSSetUp::setSavedData('install_apps', $_SERVER['argv'][1]);
IPSSetUp::setSavedData('install_dir', $_SERVER['argv'][2]);
IPSSetUp::setSavedData('install_url', $_SERVER['argv'][3]);
IPSSetUp::setSavedData('lkey', $_SERVER['argv'][4]);
IPSSetUp::setSavedData('sql_driver', 'mysql');
IPSSetUp::setSavedData('db_host', $_SERVER['argv'][5]);
IPSSetUp::setSavedData('db_name', $_SERVER['argv'][6]);
IPSSetUp::setSavedData('db_user', $_SERVER['argv'][7]);
IPSSetUp::setSavedData('db_pass', $_SERVER['argv'][8]);
IPSSetUp::setSavedData('db_pre', '');
IPSSetUp::setSavedData('admin_user', $_SERVER['argv'][9]);
開發者ID:Advanture,項目名稱:Online-RolePlay,代碼行數:31,代碼來源:install.php


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