-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-complete.php
54 lines (53 loc) · 1.93 KB
/
setup-complete.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
<?php
include_once "classes/Securer.php";
$secure = new \pulut\Securer();
if ($secure->checkIfLoggedIn()) {
header("Location: dashboard.php");
} else {
if (!$secure->checkIfCredentialSet()) {
header("Location: setup-creds.php");
} else if (!$secure->checkIfInformationSet()) {
header("Location: setup-identity.php");
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Welcome to Pulut-Pukyutan!</title>
<?php include_once 'helpers/gen-inc.php' ?>
</head>
<body>
<div class="fluid container">
<div style="display: table-row; height: 100vh; width: 100vw">
<div class="items" style="display: table-cell; width: 100vw; vertical-align: middle !important; text-align: center">
<img id="loadimg" src="<?php echo $path['coloredLogo'] ?>" style="color: white; width: 50px;"/>
<br /><br />
<font style="color: white; font-size: 16px">Your Pulot-Pukyutan Unit has been Set-up</font><Br />
<br />
<font style="color: white; font-size: 32px">Proceed to Login Page</font>
<br /><br />
<br />
<button id="btn-setup" class="ui green button" onclick="triggerLoading()">Login</button>
</div>
</div>
</div>
<script>
function triggerLoading(){
var loadimg = document.getElementById('loadimg');
loadimg.src = "<?php echo $path['loadRotate1'] ?>";
setTimeout(function() {
location.href = 'login.php';
}, 4000);
}
$('.message .close')
.on('click', function() {
$(this)
.closest('.message')
.transition('fade')
;
})
;
</script>
</body>
</html>