mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
security fixes and some juniper graphing stuff.
git-svn-id: http://www.observium.org/svn/observer/trunk@245 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+4
-1
@@ -94,12 +94,15 @@ function popUp(URL) {
|
||||
<div style="margin: 7px;"></div>
|
||||
<?php
|
||||
if($_SESSION['authenticated']) {
|
||||
if($_GET['page'] && is_file("pages/" . $_GET['page'] . ".php")) {
|
||||
## Authenticated. Print a page.
|
||||
if($_GET['page'] && !strstr("..", $_GET['page']) && is_file("pages/" . $_GET['page'] . ".php")) {
|
||||
include("pages/" . $_GET['page'] . ".php");
|
||||
} else {
|
||||
include("pages/default.php");
|
||||
}
|
||||
|
||||
} else {
|
||||
## Not Authenticated. Print login.
|
||||
include("pages/logon.inc");
|
||||
exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user