49 lines
1.9 KiB
PHP
49 lines
1.9 KiB
PHP
<?php
|
|
require_once 'includes/auth.php';
|
|
if (is_logged_in()) {
|
|
header('Location: /portal');
|
|
exit();
|
|
}
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Register - AI-Powered Marketing Portal</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="assets/css/custom.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container d-flex justify-content-center align-items-center vh-100">
|
|
<div class="card shadow-sm" style="width: 100%; max-width: 400px;">
|
|
<div class="card-body p-4">
|
|
<h2 class="card-title text-center mb-4">Create Account</h2>
|
|
<form action="auth_handler.php" method="POST">
|
|
<input type="hidden" name="action" value="register">
|
|
<div class="mb-3">
|
|
<label for="name" class="form-label">Full Name</label>
|
|
<input type="text" class="form-control" id="name" name="name" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="email" class="form-label">Email address</label>
|
|
<input type="email" class="form-control" id="email" name="email" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="password" class="form-label">Password</label>
|
|
<input type="password" class="form-control" id="password" name="password" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary w-100">Register</button>
|
|
</form>
|
|
<div class="text-center mt-3">
|
|
<p>Already have an account? <a href="login.php">Login here</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|