Add and use the 'Sessions' class.
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
if (!init_plugins()) return;
|
||||
|
||||
if (!empty($_SESSION["uid"])) {
|
||||
if (!\Sessions\validate_session()) {
|
||||
if (!Sessions::validate_session()) {
|
||||
header("Content-Type: text/json");
|
||||
|
||||
print json_encode([
|
||||
|
||||
Reference in New Issue
Block a user