Initial commit

This commit is contained in:
ldy
2025-06-06 17:14:52 +08:00
parent 0465a9baef
commit f0aabfb5ac
91 changed files with 4466 additions and 0 deletions

18
login/index_login.php Normal file
View File

@@ -0,0 +1,18 @@
<?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>";
}
?>