本文整理汇总了PHP中ConfService::init方法的典型用法代码示例。如果您正苦于以下问题:PHP ConfService::init方法的具体用法?PHP ConfService::init怎么用?PHP ConfService::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ConfService
的用法示例。
在下文中一共展示了ConfService::init方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
protected function setUp()
{
$pServ = AJXP_PluginsService::getInstance();
ConfService::init();
$confPlugin = ConfService::getInstance()->confPluginSoftLoad($pServ);
$pServ->loadPluginsRegistry(AJXP_INSTALL_PATH . "/plugins", $confPlugin);
ConfService::start();
}
示例2: str_replace
*/
global $secret, $result;
if (!$CURRENTPATH) {
$CURRENTPATH = str_replace("\\", "/", dirname(__FILE__));
}
require_once "{$CURRENTPATH}/../../server/classes/class.AJXP_Logger.php";
require_once "{$CURRENTPATH}/../../server/classes/class.AbstractDriver.php";
require_once "{$CURRENTPATH}/../../server/classes/class.Utils.php";
require_once "{$CURRENTPATH}/../../server/classes/class.Repository.php";
if (!class_exists("SessionSwitcher")) {
require_once "{$CURRENTPATH}/sessionSwitcher.php";
}
require_once "{$CURRENTPATH}/../../server/classes/class.ConfService.php";
require_once "{$CURRENTPATH}/../../server/classes/class.AuthService.php";
define("CLIENT_RESOURCES_FOLDER", "client");
ConfService::init("{$CURRENTPATH}/../../server/conf/conf.php");
global $G_CONF_PLUGINNAME;
require_once "{$CURRENTPATH}/../../plugins/conf.{$G_CONF_PLUGINNAME}/class.AJXP_User.php";
global $plugInAction;
global $G_AUTH_DRIVER_DEF;
if (!isset($G_AUTH_DRIVER_DEF["OPTIONS"]["SECRET"]) || $G_AUTH_DRIVER_DEF["OPTIONS"]["SECRET"] == "") {
if (basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])) {
die("This file must be included and can't be called directly");
}
if ($_SERVER['PHP_SELF'] != $G_AUTH_DRIVER_DEF["OPTIONS"]["LOGIN_URL"]) {
$plugInAction = "zoooorg";
// Used to debug the whole shit in the main file
}
} else {
if ($secret != $G_AUTH_DRIVER_DEF["OPTIONS"]["SECRET"]) {
$plugInAction = "zuuuuup";
示例3: header
if (isset($_GET["ajxp_sessid"])) {
// Don't overwrite cookie
if (!isset($_COOKIE["AjaXplorer"])) {
$_COOKIE["AjaXplorer"] = $_GET["ajxp_sessid"];
}
}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
if (is_file(TESTS_RESULT_FILE)) {
set_error_handler(array("AJXP_XMLWriter", "catchError"), E_ALL & ~E_NOTICE & ~E_STRICT);
set_exception_handler(array("AJXP_XMLWriter", "catchException"));
}
$pServ = AJXP_PluginsService::getInstance();
ConfService::init();
$confPlugin = ConfService::getInstance()->confPluginSoftLoad($pServ);
try {
$pServ->loadPluginsRegistry(AJXP_INSTALL_PATH . "/plugins", $confPlugin);
} catch (Exception $e) {
die("Severe error while loading plugins registry : " . $e->getMessage());
}
ConfService::start();
$confStorageDriver = ConfService::getConfStorageImpl();
require_once $confStorageDriver->getUserClassFileName();
//new AjxpSessionHandler();
if (!isset($OVERRIDE_SESSION)) {
session_name("AjaXplorer");
}
session_start();
if (isset($_GET["tmp_repository_id"])) {
示例4: header
require_once "server/classes/class.AJXP_ClientDriver.php";
require_once "server/classes/class.ConfService.php";
require_once "server/classes/class.AuthService.php";
require_once "server/classes/class.UserSelection.php";
require_once "server/classes/class.HTMLWriter.php";
require_once "server/classes/class.AJXP_XMLWriter.php";
require_once "server/classes/class.RecycleBinManager.php";
if (isset($_GET["ajxp_sessid"]) && !isset($_COOKIE["AjaXplorer"])) {
$_COOKIE["AjaXplorer"] = $_GET["ajxp_sessid"];
}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
require_once "server/classes/class.AJXP_Logger.php";
ConfService::init("server/conf/conf.php");
$confStorageDriver = ConfService::getConfStorageImpl();
require_once $confStorageDriver->getUserClassFileName();
session_name("AjaXplorer");
session_start();
set_error_handler(array("AJXP_XMLWriter", "catchError"), E_ALL & ~E_NOTICE);
if (isset($_GET["tmp_repository_id"])) {
ConfService::switchRootDir($_GET["tmp_repository_id"], true);
}
if (AuthService::usersEnabled()) {
$rememberLogin = "";
$rememberPass = "";
if (isset($_GET["get_action"]) && $_GET["get_action"] == "get_seed") {
header("Content-type:text/plain; charset:UTF-8");
print AuthService::generateSeed();
exit(0);
示例5: die
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.HTMLWriter.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.AJXP_XMLWriter.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.Repository.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.ConfService.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.AuthService.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.AJXP_Logger.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.AJXP_Plugin.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.AJXP_PluginsService.php";
require_once CAMILA_LIB_DIR . "ajaxplorer/server/classes/class.AbstractAccessDriver.php";
if (!class_exists("DOMDocument")) {
die("Tou must have libxml PHP extension enabled on your server.");
}
HTMLWriter::charsetHeader();
$pServ = AJXP_PluginsService::getInstance();
$pServ->loadPluginsRegistry(INSTALL_PATH . "/plugins", CAMILA_VAR_ROOTDIR . "/ajaxplorer/conf");
ConfService::init(CAMILA_VAR_ROOTDIR . "/ajaxplorer/conf/conf.php");
$confStorageDriver = ConfService::getConfStorageImpl();
include_once $confStorageDriver->getUserClassFileName();
session_name("AjaXplorer");
session_start();
$outputArray = array();
$testedParams = array();
$passed = true;
//if(!is_file(TESTS_RESULT_FILE)){
// $passed = AJXP_Utils::runTests($outputArray, $testedParams);
// if(!$passed && !isset($_GET["ignore_tests"])){
// die(AJXP_Utils::testResultsToTable($outputArray, $testedParams));
// }else{
// AJXP_Utils::testResultsToFile($outputArray, $testedParams);
// }
//}
示例6: setUp
protected function setUp()
{
ConfService::init();
ConfService::start();
}
示例7: array
* @subpackage Auth
*/
global $AJXP_GLUE_GLOBALS;
if (!isset($AJXP_GLUE_GLOBALS)) {
$AJXP_GLUE_GLOBALS = array();
}
if (!isset($CURRENTPATH)) {
$CURRENTPATH = realpath(dirname(__FILE__));
$FRAMEWORK_PATH = realpath($CURRENTPATH . "/../../");
}
include_once $FRAMEWORK_PATH . "/base.conf.php";
if (!class_exists("SessionSwitcher")) {
require_once "{$CURRENTPATH}/sessionSwitcher.php";
}
$pServ = AJXP_PluginsService::getInstance();
ConfService::init($FRAMEWORK_PATH);
ConfService::start();
$confStorageDriver = ConfService::getConfStorageImpl();
require_once $confStorageDriver->getUserClassFileName();
$plugInAction = $AJXP_GLUE_GLOBALS["plugInAction"];
$secret = $AJXP_GLUE_GLOBALS["secret"];
$confPlugs = ConfService::getConf("PLUGINS");
$authPlug = ConfService::getAuthDriverImpl();
if (property_exists($authPlug, "drivers") && is_array($authPlug->drivers) && $authPlug->drivers["remote"]) {
$authPlug = $authPlug->drivers["remote"];
}
if ($authPlug->getOption("SECRET") == "") {
if (basename(__FILE__) == basename($_SERVER['SCRIPT_FILENAME'])) {
die("This file must be included and cannot be called directly");
}
if ($_SERVER['PHP_SELF'] != $authPlug->getOption("LOGIN_URL")) {