-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·79 lines (72 loc) · 3.52 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
72
73
74
75
76
77
78
79
<?php
require_once('core/init.php');
$user = new User();
$user->auth();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Servicedesk | Aarhus Tech SKP</title>
<link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/assets/css/custom.css">
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);
s = checkTime(s);
document.getElementById('clock').innerHTML =
"~ " + h + ":" + m + ":" + s + " ~";
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
</head>
<body onload="startTime()">
<div class="container">
<div class="vcenter">
<div class="col-md-6">
<?php echo Errors::getErrorMessage('index_error'); ?>
<?php echo Errors::getSuccessMessage('index_success'); ?>
<div class="row">
<div class="card border-success col-md-12">
<div class="card-body">
<h3 class="text-center">VELKOMMEN TIL SERVICEDESKEN</h3>
<blockquote class="card-blockquote">
<p class="text-center">Log ind ved at indtaste dit brugernavn og adgangskode</p>
<form method="post" action="/">
<fieldset>
<div class="form-group">
<input type="username" class="form-control" id="inputBrugernavn" name="brugernavn" placeholder="Brugernavn" autofocus="true" autocomplete="off" required>
</div>
<div class="form-group">
<input type="password" class="form-control" id="inputAdgangskode" name="adgangskode" placeholder="Adgangskode" required>
</div>
<div class="form-group text-center">
<button type="submit" class="btn btn-outline-success">Log ind</button>
</div>
</fieldset>
</form>
<footer class="text-center">© Aarhus Tech SKP 2018-2021</footer>
<footer class="text-center">Udviklet af elever og instruktører SKP Data IT</footer>
<footer class="text-center">Version <?php echo Config::get('system_info/version'); ?></footer>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/popper.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/dismiss-alerts.js"></script>
<script src="/assets/js/login-page.js"></script>
</body>
</html>