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:
Adam Amstrong
2008-07-22 08:24:34 +00:00
parent 0ee570b762
commit 96cc0308fd
20 changed files with 85 additions and 24 deletions
+4 -1
View File
@@ -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;
}