mirror of
https://github.com/itflow-org/itflow
synced 2026-11-21 11:57:25 +00:00
7 lines
247 B
PHP
7 lines
247 B
PHP
<?php
|
|
|
|
// Check user is logged in with a valid session
|
|
if (!isset($_SESSION['logged']) || !$_SESSION['logged']) {
|
|
redirect($_SERVER["REQUEST_URI"] == "/" ? "/login.php" : "/login.php?last_visited=" . base64_encode($_SERVER["REQUEST_URI"]));
|
|
}
|