This repository has been archived by the owner on Mar 15, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.php
81 lines (71 loc) · 2.1 KB
/
settings.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
80
81
<?php
$PAGE['title'] = "Maps";
include 'inc/config.php';
include 'inc/sessions.php';
include 'inc/functions.php';
if ($_SESSION['user']['rank'] < 3) {
die('You must be a Senior Admin.');
}
?>
<!DOCTYPE html>
<html>
<head>
<?php include 'pageparts/head.php'; ?>
</head>
<body>
<div id="wrapper">
<?php include 'pageparts/nav.php'; ?>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">CJFreedom Panel <small>User Settings</small></h1>
</div>
<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
<b>Chrome Notifications</b>
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" onclick="window.webkitNotifications.requestPermission();" class="onoffswitch-checkbox" id="chromeNotify">
<label class="onoffswitch-label" for="chromeNotify">
<div class="onoffswitch-inner">
<div class="onoffswitch-active">
<div class="onoffswitch-switch">ON</div>
</div>
<div class="onoffswitch-inactive">
<div class="onoffswitch-switch">OFF</div>
</div>
</div>
</label>
</div>
</div>
<br />
<div class="row">
<b>Alert Noises</b>
<div class="onoffswitch">
<input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="alertNoises">
<label class="onoffswitch-label" for="alertNoises">
<div class="onoffswitch-inner">
<div class="onoffswitch-active">
<div class="onoffswitch-switch">ON</div>
</div>
<div class="onoffswitch-inactive">
<div class="onoffswitch-switch">OFF</div>
</div>
</div>
</label>
</div>
</div><br /><br />
<button type="submit" onclick="saveSettings();" class="btn btn-default">Save</button>
</div>
<!-- /#page-wrapper -->
</div>
<!-- /#wrapper -->
<?php include 'pageparts/footerjs.php'; ?>
<script>
if (document.getElementById('chromeNotify')) {
loadSettings();
}
</script>
</body>
</html>