mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-04 16:12:20 +02:00
use .inc.
git-svn-id: http://www.observium.org/svn/observer/trunk@1339 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+4
-4
@@ -87,10 +87,10 @@ function popUp(URL) {
|
|||||||
<?php
|
<?php
|
||||||
if($_SESSION['authenticated']) {
|
if($_SESSION['authenticated']) {
|
||||||
## Authenticated. Print a page.
|
## Authenticated. Print a page.
|
||||||
if(isset($_GET['page']) && !strstr("..", $_GET['page']) && is_file("pages/" . $_GET['page'] . ".php")) {
|
if(isset($_GET['page']) && !strstr("..", $_GET['page']) && is_file("pages/" . $_GET['page'] . ".inc.php")) {
|
||||||
include("pages/" . $_GET['page'] . ".php");
|
include("pages/" . $_GET['page'] . ".inc.php");
|
||||||
} else {
|
} else {
|
||||||
if(isset($config['front_page'])) {
|
if(isset($config['front_page']) && is_file($config['front_page'])) {
|
||||||
include($config['front_page']);
|
include($config['front_page']);
|
||||||
} else {
|
} else {
|
||||||
include("pages/front/default.php");
|
include("pages/front/default.php");
|
||||||
@@ -99,7 +99,7 @@ function popUp(URL) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
## Not Authenticated. Print login.
|
## Not Authenticated. Print login.
|
||||||
include("pages/logon.inc");
|
include("pages/logon.inc.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user