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(); }