本文整理汇总了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]);