本文整理汇总了PHP中Armory::InitializeArmory方法的典型用法代码示例。如果您正苦于以下问题:PHP Armory::InitializeArmory方法的具体用法?PHP Armory::InitializeArmory怎么用?PHP Armory::InitializeArmory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Armory
的用法示例。
在下文中一共展示了Armory::InitializeArmory方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
}
if (!(include __ARMORYDIRECTORY__ . '/includes/UpdateFields.php')) {
die('<b>Error:</b> unable to load UpdateFields.php!');
}
if (!(include __ARMORYDIRECTORY__ . '/includes/defines.php')) {
die('<b>Error:</b> unable to load defines.php!');
}
if (!(include __ARMORYDIRECTORY__ . '/includes/classes/class.armory.php')) {
die('<b>Error:</b> unable to load Armory class!');
}
if (!(include __ARMORYDIRECTORY__ . '/includes/revision_nr.php')) {
die('<b>Error:</b> unable to load revision file!');
}
// Forgot what am I did here :(
$_SESSION['last_url'] = str_replace('.php', '.xml', $_SERVER['PHP_SELF']) . '?' . str_replace('locale=', 'l=', $_SERVER['QUERY_STRING']);
Armory::InitializeArmory();
if (!(include __ARMORYDIRECTORY__ . '/includes/interfaces/interface.cache.php')) {
die('<b>Error:</b> unable to load cache interface!');
}
// We are forced to load APC cache, enabled or not
if (!(include __ARMORYDIRECTORY__ . '/includes/classes/cache/cache.apc.php')) {
die('<b>Error:</b> unable to load apc cache class!');
}
if (Armory::$armoryconfig['useApc'] == true) {
if (!(include __ARMORYDIRECTORY__ . '/includes/cache_config.php')) {
die('<b>Error:</b> unable to load cache config!');
}
// Make sure APC is installed
if (!function_exists('apc_fetch')) {
die('<b>Error:</b> APC is enabled in configuation, but is not installed on php');
}