-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
52 lines (47 loc) · 1.51 KB
/
admin.php
File metadata and controls
52 lines (47 loc) · 1.51 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
if(!isset($_SESSION)){
session_start();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Admin Panel</title>
<!-- To link external styling file -->
<link rel="stylesheet" href="styles/admin.css">
</head>
<body>
<header>
</header>
<main>
<div id="content">
<a href="bio.php" id="back">←</a>
<h2>Ruinedmango</h2>
<?php if(!isset($_SESSION['isadmin'])): ?>
<p>
<form autocomplete="off" action="/private/admin/login.php" method="post">
<p>Username: <input name="username" type="text"></p>
<p>Password: <input name="password" type="password"></p>
<input class="submitbutton" type="submit" value="Login" title="Login!">
</form>
</p>
<?php endif ?>
<?php if(isset($_SESSION['isadmin'])):
unset ($_SESSION['isadmin']); ?>
<p>
<form action="/private/status/edit.php" method="post">
<p>Status Message: <input name="status" type="text"></p>
<input class="submitbutton" type="submit" value="Set Status" title="Send your message!">
</form>
</p>
<?php endif ?>
</div>
</main>
<footer>
<p>© 2025 RuinedNet</p>
</footer>
</body>
</html>