forked from Business/ManagePanel
PHP 7.1 compatability
This commit is contained in:
parent
e31d88ca52
commit
2322962b8e
@ -105,7 +105,7 @@ switch ($VARS['action']) {
|
||||
returnToSender("2fa_removed");
|
||||
case "clearlog":
|
||||
$rows = $database->count('authlog');
|
||||
$database->delete('authlog');
|
||||
$database->delete('authlog', []);
|
||||
insertAuthLog(15, $_SESSION['uid'], lang2("removed n entries", ['n' => $rows], false));
|
||||
returnToSender("log_cleared");
|
||||
case "editmanager":
|
||||
|
@ -11,7 +11,7 @@ header('Content-Type: text/html; charset=utf-8');
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
header('X-XSS-Protection: 1; mode=block');
|
||||
$session_length = 60 * 60; // 1 hour
|
||||
session_set_cookie_params($session_length, "/", null, false, true);
|
||||
session_set_cookie_params($session_length, "/", null, false, false);
|
||||
|
||||
session_start(); // stick some cookies in it
|
||||
// renew session cookie
|
||||
|
Loading…
x
Reference in New Issue
Block a user