mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
+7
-8
@@ -50,6 +50,13 @@ if (strpos($_SERVER['PATH_INFO'], "debug"))
|
||||
|
||||
// Set variables
|
||||
$msg_box = array();
|
||||
// Check for install.inc.php
|
||||
if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php')
|
||||
{
|
||||
// no config.php does so let's redirect to the install
|
||||
header('Location: /install.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
include("../includes/defaults.inc.php");
|
||||
include("../config.php");
|
||||
@@ -60,14 +67,6 @@ include("includes/vars.inc.php");
|
||||
include('includes/plugins.inc.php');
|
||||
Plugins::start();
|
||||
|
||||
// Check for install.inc.php
|
||||
if (!file_exists('../config.php') && $_SERVER['PATH_INFO'] != '/install.php')
|
||||
{
|
||||
// no config.php does so let's redirect to the install
|
||||
header('Location: /install.php');
|
||||
exit;
|
||||
}
|
||||
|
||||
$runtime_start = utime();
|
||||
|
||||
ob_start();
|
||||
|
||||
Reference in New Issue
Block a user