-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
44 lines (43 loc) · 1.57 KB
/
index.php
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
<?php
include 'User.php';
//check if the app is installed.
if(!file_exists("config/config.php")){
header('Location: install/');
exit();
}
session_start();
if (isset($_SESSION['user'])) {
if (true) {
header('Location: admin.php');
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Mineload Login</title>
<link media="all" rel="stylesheet" type="text/css" href="css/all.css" />
<link media="all" rel="stylesheet" type="text/css" href="css/login.css" />
</head>
<body>
<div id="loginfieldset">
<form action="login.php" method="post">
<fieldset>
<img src="images/mineload-logo-silver.png" alt="Mineload" width="400" height="140" />
<table>
<tr><td><label for="loginform">Username:</label></td><td><input class="loginfield" type="text" id="loginform" name="loginform" /></td></tr>
<tr><td><label for="passwordform">Password:</label></td><td><input class="loginfield" type="password" id="passwordform" name="passwordform" /></td></tr>
<tr><td></td><td><input id="loginbutton" type="submit" value="Login" /></td></tr>
</table>
<ul class="states">
<li><?php if(isset($_GET['error'])){echo $_GET['error'];} ?></li>
</ul>
</fieldset>
</form>
</div>
<div id="footer">
<p>Mineload Web Interface version 0.0.6 Beta by Tim Sullivan (<a href="http://timatooth.com">Timatooth</a>) on <a href="http://dev.bukkit.org/server-mods/mineload">BukkitDev</a></p>
</div>
</body>
</html>