-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
71 lines (67 loc) · 3.49 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
include 'inc/server.php';
if(isset($_SESSION['UserId'])){
header('location: ./punishments');
echo '
<script>
location.replace("./punishments");
window.location.href = "./punishments"
</script>
';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
<link rel="stylesheet" href="assets/css/styles.min.css">
<link rel="stylesheet" href="assets/css/styles.min.css">
<title>UltraPunishments - <?php echo $lang->login; ?></title>
<link rel="icon" href="./assets/img/icon.jpg" sizes="16x16">
<meta property="og:title" content="Stats" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="UltraPunishments - Punishments" />
<meta property="og:description" content="View all of Server's Punishments." />
<meta property="og:image" content="./inc/img/upunlogo.jpg"/>
<meta property="og:image:url" content="https://stats.extasynetwork.net"/>
<meta name="theme-color" content="#f77727">
<meta name="msapplication-TileColor" content="#f77727">
</head>
<body>
<div class="row no-gutters justify-content-center bannerrow">
<div class="col-auto"><img class="img-fluid bannerimg" src="assets/img/banner.png">
<div class="panel">
<h3 class="h3custom">UltraPunishments v<?php echo $version; ?><br></h3><span class="madeby"><?php echo $lang->webaddonby; ?> <a href="https://www.spigotmc.org/members/eazyftw.55966/">EazyFTW</a> & <a href="https://www.spigotmc.org/members/faab007.324536/">Faab007NL</a><br></span>
<h2><?php echo $lang->login; ?></h2>
<?php
if(isset($_SESSION['Error'])){
if($_SESSION['Error'] == "WrongUsernameOrPassword"){
echo '<div class="error_msg"><strong>'.$lang->loginwrong.'</strong></div>';
}
if($_SESSION['Error'] == "dberror"){
echo '<div class="error_msg"><strong>'.$lang->dberror.'</strong></div>';
}
$_SESSION['Error'] = "";
}
?>
<form action="inc/server.php" method="post">
<div class="form-group">
<input class="form-control" type="text" placeholder="<?php echo $lang->username; ?>" name="username" required>
</div>
<div class="form-group">
<input class="form-control" type="password" placeholder="<?php echo $lang->password; ?>" name="password" required>
</div>
<div class="form-group">
<button class="btn btn-primary btn-block btnsubmit" value="<?php echo $lang->login; ?>" name="login" type="submit"><?php echo $lang->login; ?></button>
</div>
</form>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.bundle.min.js"></script>
</body>
</html>