本文整理汇总了PHP中ConfService::initConfStorageImpl方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfService::initConfStorageImpl方法的具体用法?PHP ConfService::initConfStorageImpl怎么用?PHP ConfService::initConfStorageImpl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfService
的用法示例。
在下文中一共展示了ConfService::initConfStorageImpl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
function init($confFile)
{
include_once $confFile;
// INIT AS GLOBAL
global $G_LANGUE, $G_AVAILABLE_LANG, $G_REPOSITORIES, $G_REPOSITORY, $G_USE_HTTPS, $G_WM_EMAIL, $G_MAX_CHAR, $G_UPLOAD_MAX_NUMBER, $G_UPLOAD_MAX_FILE, $G_UPLOAD_MAX_TOTAL, $G_UPLOAD_ENABLE_FLASH, $G_DEFAULT_REPOSITORIES, $G_AUTH_DRIVER_DEF, $G_CONF_PLUGINNAME, $G_PROBE_REAL_SIZE;
if (!isset($langue) || $langue == "") {
$langue = $default_language;
}
$G_LANGUE = $langue;
if (isset($available_languages)) {
$G_AVAILABLE_LANG = $available_languages;
} else {
$G_AVAILABLE_LANG = ConfService::listAvailableLanguages();
}
$G_USE_HTTPS = $use_https;
$G_WM_EMAIL = $webmaster_email;
$G_MAX_CHAR = $max_caracteres;
$G_UPLOAD_MAX_NUMBER = $upload_max_number;
$G_UPLOAD_ENABLE_FLASH = $upload_enable_flash;
$G_UPLOAD_MAX_FILE = Utils::convertBytes($upload_max_size_per_file);
$G_UPLOAD_MAX_TOTAL = Utils::convertBytes($upload_max_size_total);
$G_DEFAULT_REPOSITORIES = $REPOSITORIES;
$G_AUTH_DRIVER_DEF = $AUTH_DRIVER;
$G_CONF_PLUGINNAME = $CONF_STORAGE["NAME"];
$G_PROBE_REAL_SIZE = $allowRealSizeProbing;
ConfService::initConfStorageImpl($CONF_STORAGE["NAME"], $CONF_STORAGE["OPTIONS"]);
$G_REPOSITORIES = ConfService::initRepositoriesList($G_DEFAULT_REPOSITORIES);
ConfService::switchRootDir();
}