-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
37 lines (36 loc) · 1.12 KB
/
Copy pathindex.php
File metadata and controls
37 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true) {
header('Location: dashboard.php');
exit;
} else {
header('Location: login.php');
exit;
}
?>
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mail Manager - Email Administration System</title>
<meta name="description" content="Email administration system for managing domains, email accounts, and aliases.">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<noscript>
<div style="text-align: center; padding: 50px; font-family: Arial, sans-serif;">
<h1>Mail Manager</h1>
<p>Redirecting to login page...</p>
<p>If you are not redirected automatically, <a href="login.php">click here</a>.</p>
</div>
</noscript>
<script>
setTimeout(function() {
window.location.href = 'login.php';
}, 1000);
</script>
</body>
</html>