loadPluginsRegistry(INSTALL_PATH."/plugins", INSTALL_PATH."/server/conf"); ConfService::init("server/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); } } $START_PARAMETERS = array("BOOTER_URL"=>"content.php?get_action=get_boot_conf", "MAIN_ELEMENT" => "ajxp_desktop"); if(AuthService::usersEnabled()) { AuthService::preLogUser((isSet($_GET["remote_session"])?$_GET["remote_session"]:"")); AuthService::bootSequence($START_PARAMETERS); if(AuthService::getLoggedUser() != null || AuthService::logUser(null, null) == 1) { $loggedUser = AuthService::getLoggedUser(); if(!$loggedUser->canRead(ConfService::getCurrentRootDirIndex()) && AuthService::getDefaultRootId() != ConfService::getCurrentRootDirIndex()) { ConfService::switchRootDir(AuthService::getDefaultRootId()); } } } AJXP_Utils::parseApplicationGetParameters($_GET, $START_PARAMETERS, $_SESSION); $JSON_START_PARAMETERS = json_encode($START_PARAMETERS); if(ConfService::getConf("JS_DEBUG")){ $mess = ConfService::getMessages(); include_once(INSTALL_PATH."/".CLIENT_RESOURCES_FOLDER."/html/gui_debug.html"); }else{ $content = file_get_contents(INSTALL_PATH."/".CLIENT_RESOURCES_FOLDER."/html/gui.html"); $content = AJXP_XMLWriter::replaceAjxpXmlKeywords($content, false); if($JSON_START_PARAMETERS){ $content = str_replace("//AJXP_JSON_START_PARAMETERS", "startParameters = ".$JSON_START_PARAMETERS.";", $content); } print($content); } ? >