Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Fix minisite session detection (starts with AjaXplorer_Shared, not ne…
Browse files Browse the repository at this point in the history
…cessarily exactly that word)
  • Loading branch information
cdujeu committed May 5, 2014
1 parent 56ae0e8 commit bd2db1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/plugins/gui.ajax/class.AJXP_ClientDriver.php
Expand Up @@ -286,9 +286,10 @@ public function computeBootConf()
if (isSet($_GET["server_prefix_uri"])) {
$_SESSION["AJXP_SERVER_PREFIX_URI"] = str_replace("_UP_", "..", $_GET["server_prefix_uri"]);
}
$currentIsMinisite = (strpos(session_name(), "AjaXplorer_Shared") === 0);
$config = array();
$config["ajxpResourcesFolder"] = "plugins/gui.ajax/res";
if (strpos(session_name(), "AjaXplorer_Shared") === 0) {
if ($currentIsMinisite) {
$config["ajxpServerAccess"] = "index_shared.php";
} else {
$config["ajxpServerAccess"] = AJXP_SERVER_ACCESS;
Expand Down Expand Up @@ -318,7 +319,7 @@ public function computeBootConf()
} else {
$to = $timeoutTime;
}
if(session_name() == "AjaXplorer_Shared") $to = -1;
if($currentIsMinisite) $to = -1;
$config["client_timeout"] = intval($to);
$config["client_timeout_warning"] = floatval($this->getFilteredOption("CLIENT_TIMEOUT_WARN"));
$config["availableLanguages"] = ConfService::getConf("AVAILABLE_LANG");
Expand Down

0 comments on commit bd2db1e

Please sign in to comment.