-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
105 lines (72 loc) · 3.4 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php require_once 'core/init.php'; ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= @$APP_TITLE ?></title>
<link rel="stylesheet" href="media/minimal.css?v=<?= @$APP_VERSION ?>">
<?php Style::HTMLHeadCurrentStyle(); ?>
<meta name="theme-color" content="var(--timer-default-color)">
<script>
var GLOBAL_ID = '<?= $_GET['i'] ?>';
var CURRENT_URL = window.location.href;
var SYNC_PING_COUNT = <?= $SYNC_PING_COUNT * 1 ?>;
var originalTextContent = <?= json_encode(Property::get('text-content'), JSON_PRETTY_PRINT) ?> ;
</script>
<script src="scripts/default.js?v=<?= @$APP_VERSION ?>"></script>
<script src="scripts/classes.js?v=<?= @$APP_VERSION ?>"></script>
<script src="scripts/qrcode.js?v=<?= @$APP_VERSION ?>"></script>
<?php if (AccessCheck::isValidAdminPage()) : ?>
<script src="scripts/nicEdit/nicEdit.js"></script>
<script src="scripts/admin.js?v=<?= @$APP_VERSION ?>"></script>
<?php endif; ?>
</head>
<body class="<?= Style::getCurrentStyle() . ' ' . (AccessCheck::isValidAdminPage() ? 'admin': '') . ' ' . (AccessCheck::inListMode() ? 'list' : '') ?>">
<div id="main">
<div id="visible" style="display:none">
<div class="container-timer">
<div id="timer"></div>
</div>
<div class="container-timer-spacing"></div>
<div class="container-toolbar">
<?php Toolbar::HTMLLinkAnchor('javascript:fullScreen()','Mostrar em tela inteira','full-screen',''); ?>
<?php Toolbar::HTMLLinkAnchor('javascript:alternarQRCode()','Mostrar QRCode','qrcode',''); ?>
<?php if (AccessCheck::isValidAdminPage()): ?>
<?php Toolbar::HTMLMenu(); ?>
<?php endif; ?>
</div>
<?php if (AccessCheck::isSystemMessageActive()): ?>
<div class="container-title">
<h1 id="title"></h1>
</div>
<div class="container-message">
<p id="message"></p>
</div>
<?php endif; ?>
<?php if (AccessCheck::isValidAdminPage()): ?>
<!--<admin>-->
<div class="container-admin">
<div class="textView"></div>
<div class="textEdit" style="visibility:hidden">
<textarea style="width: 100%" id="nEditor"><?= Property::get('text-content') ?></textarea>
</div>
</div>
<!--</admin>-->
<?php else: ?>
<!--<user>-->
<!--</user>-->
<?php endif; ?>
</div>
<div id="qrcode" style="display: none"></div>
<div class="container-status">
<div id="status"></div>
<div id="status-basic"></div>
<div id="status-error"><noscript>O Javascript está desativado.</noscript></div>
</div>
<div class="container-debug">
<pre id="debug"><?php // var_dump($_SERVER); ?></pre>
</div>
</div>
</body>
</html>