-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
145 lines (124 loc) · 6.32 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
if (!defined('NGR_DOCUMENT_ROOT')) {
define('NGR_DOCUMENT_ROOT', dirname(__FILE__) == '/' ? '' : dirname(__FILE__));
}
include_once('src/NagmapReborn/ConfigLoader.php');
?>
<!DOCTYPE html>
<html lang="<?php echo config('ngreborn.language', 'en-US') ?>">
<head>
<link rel="manifest" href="manifest.json" />
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="resources/img/NagFavIcon.ico" />
<link rel="stylesheet" href="resources/materialize/materialize.min.css?v=<?php echo config('ngreborn.version') ?>">
<link rel="stylesheet" href="resources/materialize/materialicons.css?v=<?php echo config('ngreborn.version') ?>">
<link rel="stylesheet" href="resources/css/style.css?v=<?php echo config('ngreborn.version') ?>" />
<link rel="stylesheet" href="resources/css/animate.css?v=<?php echo config('ngreborn.version') ?>" />
<link rel="stylesheet" href="resources/leaflet/leaflet.css?v=<?php echo config('ngreborn.version') ?>" />
<title>Nagmap Reborn - v<?php echo config('ngreborn.version') ?></title>
</head>
<body>
<div id="debug"></div>
<div id="error_button" class="hidden">
<a class="btn-floating btn-large waves-effect waves-light red modal-trigger" href="#modal_error" onclick="$('#modal_error').modal().modal('open');"><i class="material-icons">error_outline</i></a>
</div>
<div id="modal_error" class="modal modal-fixed-footer"></div>
<div class="debug_console" id="debug_console">
<div>
<a onclick="$('#debug_console').toggleClass('open')" class="waves-effect waves-light red btn" style="width:100%" data-i18n="close"></a>
</div>
<div id="console_text"></div>
</div>
<div class="animated" id="cover">
<div id="cover_error" class="hidden"></div>
<div class="slide" id="welcome">
<div class="inside animated fadeIn delay-05s slow">
<svg width="600px" height="600px" clip-rule="evenodd" fill-rule="evenodd" image-rendering="optimizeQuality" shape-rendering="geometricPrecision" text-rendering="geometricPrecision" version="1.1" viewbox="0 0 295.9 295.9" xml:space="preserve" xmlns="http://www.w3.org/2000/svg">
<?php echo @file_get_contents("resources/img/NagmapR-Logo.svg"); ?>
</svg>
<h2 id="cover_msg" class="animated fadeIn delay-2s fast"></h2>
<h2 id="cover_msg_error" class="hidden"></h2>
</div>
</div>
</div>
<div id="map"></div>
<div id="changesbar">
<div class="form-group" id="filter"></div>
<div id="downHosts"></div>
<div id="critHosts"></div>
<div id="warHosts"></div>
</div>
<script>
// Setting initial parameters.
var config = {},
_paq = [],
tp = null,
tooLong = null,
alertAudio = null,
realTime = true,
firstRadial = 1,
generalStatus = 0,
secondRadial = 44,
direction = "up",
waitConfigInterval,
_u,
STATUS = {
GENERAL: {
accessDenied: -4,
incompatible: -3,
tooLong: -2,
generealError: -1,
initial: 0,
finished: 1
},
HOSTS: {
up: 0,
warning: 1,
critical: 2,
down: 3
},
COLORS: {
up: "#007F00",
warning: "#FFFF00",
critical: "#D25700",
down: "#C92A2A",
unknown: "#A9ABAE"
}
},
i18nConfig = {
lng: "<?php echo config('ngreborn.language', 'en-US') ?>",
fallbackLng: 'en-US',
debug: <?php echo config('general.debug', 0) ?>,
resources: {
"en-US": {
translation: <?php echo file_get_contents(NGR_DOCUMENT_ROOT . "/resources/langs/en-US.json") ?>
},
"pt-BR": {
translation: <?php echo file_get_contents(NGR_DOCUMENT_ROOT . "/resources/langs/pt-BR.json") ?>
},
"fr-FR": {
translation: <?php echo file_get_contents(NGR_DOCUMENT_ROOT . "/resources/langs/fr-FR.json") ?>
},
}
};
</script>
<script src="resources/js/i18next.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/jquery-i18next.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/typed.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/jquery.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/materialize/materialize.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/popper.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/tippy.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/leaflet/leaflet.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/leaflet/oms.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/leaflet/leaflet.smoothmarkerbouncing.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/sa/sweetalert2.all.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/ns/jquery.nicescroll.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/axios.min.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/classes/Utils.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/classes/Host.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/classes/NagmapReborn.js?v=<?php echo config('ngreborn.version') ?>"></script>
<script src="resources/js/app.js?v=<?php echo config('ngreborn.version') ?>"></script>
</body>
</html>