Files
TP-cms/src/includes/function.php
2025-11-02 22:20:14 +00:00

10 lines
156 B
PHP
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
function isLoggedIn() {
return isset($_SESSION['user_id']);
}
function redirect($url) {
header("Location: $url");
    exit;
}
?>