mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-15 08:34:11 +03:00
Merge branch 'patch-1' of https://github.com/nav666/mibew into nav666-patch-1
This commit is contained in:
commit
788a18f7f1
@ -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'])
|
||||
|
Loading…
Reference in New Issue
Block a user