Update init.php

This commit is contained in:
nav666 2016-04-07 02:24:01 +03:00
parent 8fe1498847
commit fad8ca5854

View File

@ -59,8 +59,18 @@ if ($tmp_request->isSecure()) {
// Remove temporary request to keep global scope clean.
unset($tmp_request);
// Initialize user session
session_start();
if (version_compare(phpversion(), '5.4.0', '<')) {
if(session_id() == '') {
session_start();
}
}
else
{
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
}
if (function_exists("date_default_timezone_set")) {
$timezone = !empty($configs['timezone'])