File:
1.17.2a/server/web/monitor.popup.php (
View as Code)
1: 2: /* -------------------------------------------------------------
3: This file is part of FreeNATS
4:
5: FreeNATS is (C) Copyright 2008-2010 PurplePixie Systems
6:
7: FreeNATS is free software: you can redistribute it and/or modify
8: it under the terms of the GNU General Public License as published by
9: the Free Software Foundation, either version 3 of the License, or
10: (at your option) any later version.
11:
12: FreeNATS is distributed in the hope that it will be useful,
13: but WITHOUT ANY WARRANTY; without even the implied warranty of
14: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15: GNU General Public License for more details.
16:
17: You should have received a copy of the GNU General Public License
18: along with FreeNATS. If not, see www.gnu.org/licenses
19:
20: For more information see www.purplepixie.org/freenats
21: -------------------------------------------------------------- */
22: ob_start();
23:
24: // This really should be handled by clever Data API (XML) calls but alas
25: // that is too much work hence the AJAH framework
26:
27: require("include.php");
28: $NATS->Start();
29:
30: // Timeskip check - means this page skips timecheck/reset if site.monitor.keepalive is 0
31: if ($NATS->Cfg->Get("site.monitor.keepalive",1)==0) $timeskip=true;
32: else $timeskip=false;
33:
34: if (!$NATS_Session->Check($NATS->DB,$timeskip))
35: {
36: header("Location: ./?login_msg=Invalid+Or+Expired+Session");
37: exit();
38: }
39: if ($NATS_Session->userlevel<1) UL_Error("Monitor Popup");
40:
41: if (isset($_REQUEST['type'])) $type=$_REQUEST['type'];
42: else $type="";
43:
44: echo "";
92: ?>