ComicsViewer/authfunctions.php
2023-08-18 12:50:45 -04:00

20 lines
502 B
PHP

<?php
//
// This function is called at the beginning of any pages where
// user login is required. Feel free to change the logic between
// the lines indicated below.
//
function require_login () {
if ( !$_SESSION['validated'] ) {
// ******** START OF AUTH LOGIC ********
$_SESSION['appurl'] = $_SERVER['REQUEST_URI'];
header('Location: /jajauth/login.php');
exit();
// ********* END OF AUTH LOGIC *********
}
}
?>