mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 18:30:11 +01:00
gui: improved session handling
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
7e67db16ae
commit
7cdb016565
@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
ini_set('session.cookie_httponly', true);
|
||||
ini_set('session.use_strict_mode', 1);
|
||||
ini_set('session.use_only_cookies', 1);
|
||||
if(isset($_SERVER['HTTP_HOST'])) { ini_set('session.cookie_domain', $_SERVER['HTTP_HOST']); }
|
||||
|
||||
|
||||
define('NORMAL', 1);
|
||||
define('DEBUG', 5);
|
||||
|
||||
@ -32,6 +38,8 @@ $config['THEME'] = 'default';
|
||||
$config['SITE_NAME'] = 'piler.yourdomain.com';
|
||||
$config['SITE_URL'] = 'http://piler.yourdomain.com/';
|
||||
|
||||
$config['SESSION_EXPIRY'] = 3600;
|
||||
|
||||
$config['ENABLE_SAAS'] = 0;
|
||||
$config['CAPTCHA_FAILED_LOGIN_COUNT'] = 0;
|
||||
|
||||
@ -313,6 +321,8 @@ define('NOW', time());
|
||||
|
||||
require_once 'config-site.php';
|
||||
|
||||
ini_set('session.cookie_lifetime', $config['SESSION_EXPIRY']);
|
||||
|
||||
require($config['DIR_BASE'] . "/system/registry.php");
|
||||
require($config['DIR_BASE'] . "/system/request.php");
|
||||
|
||||
|
@ -6,8 +6,6 @@ require(DIR_SYSTEM . "/front.php");
|
||||
require(DIR_SYSTEM . "/language.php");
|
||||
require(DIR_SYSTEM . "/loader.php");
|
||||
require(DIR_SYSTEM . "/model.php");
|
||||
//require(DIR_SYSTEM . "/registry.php");
|
||||
//require(DIR_SYSTEM . "/request.php");
|
||||
require(DIR_SYSTEM . "/router.php");
|
||||
|
||||
require(DIR_SYSTEM . "/misc.php");
|
||||
@ -26,5 +24,3 @@ if(TSA_URL) {
|
||||
|
||||
|
||||
date_default_timezone_set(TIMEZONE);
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user