19 lines
485 B
PHP
19 lines
485 B
PHP
<?php
|
|
include "../indexes/ConnectDB.php";
|
|
|
|
// Start the session
|
|
session_start();
|
|
|
|
// Check if the user is already logged in
|
|
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) {
|
|
echo "<script type='text/javascript'>
|
|
window.top.location.href = '../home.php';
|
|
</script>";
|
|
}
|
|
else {
|
|
echo "<script type='text/javascript'>
|
|
window.location.href = './login.html';
|
|
</script>";
|
|
}
|
|
?>
|