use .inc.

git-svn-id: http://www.observium.org/svn/observer/trunk@1339 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-10 13:52:14 +00:00
parent a212bf8a98
commit 5c484e5a85
+4 -4
View File
@@ -87,10 +87,10 @@ function popUp(URL) {
<?php
if($_SESSION['authenticated']) {
## Authenticated. Print a page.
if(isset($_GET['page']) && !strstr("..", $_GET['page']) && is_file("pages/" . $_GET['page'] . ".php")) {
include("pages/" . $_GET['page'] . ".php");
if(isset($_GET['page']) && !strstr("..", $_GET['page']) && is_file("pages/" . $_GET['page'] . ".inc.php")) {
include("pages/" . $_GET['page'] . ".inc.php");
} else {
if(isset($config['front_page'])) {
if(isset($config['front_page']) && is_file($config['front_page'])) {
include($config['front_page']);
} else {
include("pages/front/default.php");
@@ -99,7 +99,7 @@ function popUp(URL) {
} else {
## Not Authenticated. Print login.
include("pages/logon.inc");
include("pages/logon.inc.php");
exit;
}
?>