Database conn, users in progress

This commit is contained in:
Dr3amFury
2025-07-17 01:05:46 +02:00
parent d274fa033b
commit ef76dc973a
9 changed files with 149 additions and 8 deletions

28
landing.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
session_start();
if (isset($_SESSION['user_id'])) {
// Already logged in, redirect to email generator
header("Location: /home.php");
exit();
}
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/header.php');
?>
<body>
<div class="container" style="text-align: center;">
<h1>Welcome to AI Email Generator</h1>
<p style="margin-bottom: 20px;">Craft professional emails in seconds. Please login or register to get started.</p>
<div style="display: flex; justify-content: center; gap: 20px;">
<a href="/inc/php/login.php"><button style="padding: 10px 20px;">Login</button></a>
<a href="/inc/php/register.php"><button style="padding: 10px 20px;">Register</button></a>
</div>
<div style="margin-top: 30px;">
<button id="darkModeBtn">Toggle Dark Mode</button>
</div>
</div>
<script src="/inc/js/theme.js"></script>
<?php include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/footer.php'); ?>