This commit is contained in:
Flatlogic Bot 2026-02-28 17:19:08 +00:00
parent 0ddffbfe31
commit ffc61a8ab0
3 changed files with 17 additions and 3 deletions

View File

@ -2,6 +2,12 @@
require_once __DIR__ . '/db/config.php';
session_start();
// Redirect if already logged in
if (isset($_SESSION['user_id'])) {
header("Location: dashboard.php");
exit;
}
$error = '';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
@ -77,4 +83,4 @@ $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
</div>
</body>
</html>
</html>

View File

@ -1,6 +1,13 @@
<?php
require_once __DIR__ . '/db/config.php';
require_once __DIR__ . '/mail/MailService.php';
session_start();
// Redirect if already logged in
if (isset($_SESSION['user_id'])) {
header("Location: dashboard.php");
exit;
}
$error = '';
$success = '';
@ -172,4 +179,4 @@ $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
</style>
</body>
</html>
</html>

View File

@ -1,4 +1,5 @@
<?php
session_start();
require_once 'db/config.php';
require_once 'mail/MailService.php';
@ -492,4 +493,4 @@ $platformName = defined('PLATFORM_NAME') ? PLATFORM_NAME : 'Gatsby';
</footer>
</body>
</html>
</html>