29 lines
1010 B
PHP
29 lines
1010 B
PHP
<?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'); ?>
|