- sessions should now be persistent across restarts for some browsers (namely IE)

- show tab: unknown source last in items list page
- fixed displaying related event on creature detail page
- parse aura:190 on spell detail page
This commit is contained in:
Sarjuuk
2014-09-20 01:20:14 +02:00
parent 56d85ee599
commit 813b3600ce
5 changed files with 12 additions and 17 deletions

View File

@@ -71,9 +71,8 @@ foreach ($sets as $k => $v)
define('CFG_'.strtoupper($k), $v['s'] ?: intVal($v['i']));
$protocoll = 'http://';
if ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || CFG_FORCE_SSL)
$protocoll = 'https://';
$secure = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || CFG_FORCE_SSL;
$protocoll = $secure ? 'https://' : 'http://';
define('STATIC_URL', substr($protocoll.$_SERVER['SERVER_NAME'].strtr($_SERVER['SCRIPT_NAME'], ['index.php' => '']), 0, -1).'/static'); // points js to images & scripts (change here if you want to use a separate subdomain)
define('HOST_URL', substr($protocoll.$_SERVER['SERVER_NAME'].strtr($_SERVER['SCRIPT_NAME'], ['index.php' => '']), 0, -1)); // points js to executable files
@@ -87,7 +86,7 @@ Util::execTime(CFG_DEBUG);
// Setup Session
ini_set('session.cookie_httponly', true);
session_set_cookie_params(15 * YEAR, '/', '', $secure, true);
session_cache_limiter('private');
session_start();
if (User::init())