mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Move logout to a file logout.php in /post fixes issue where one cant logout if in admin section, also redirect to login page with or without login key if set
This commit is contained in:
3
post.php
3
post.php
@@ -55,12 +55,13 @@ if (str_contains($module, 'admin') && isset($session_is_admin) && $session_is_ad
|
||||
|
||||
}
|
||||
|
||||
// Logout is the same for user and admin
|
||||
require_once "post/logout.php";
|
||||
|
||||
// TODO: Move admin_update into the admin section to be auto-loaded
|
||||
// We can't do this until everyone has the new database fields added in 1.4.9 on Sept 14th 2024
|
||||
require_once "post/admin_update.php"; // Load updater
|
||||
|
||||
|
||||
// TODO: Find a home for these
|
||||
|
||||
require_once "post/ai.php";
|
||||
|
||||
Reference in New Issue
Block a user