mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Replace root.php
This commit is contained in:
@@ -26,7 +26,11 @@
|
||||
|
||||
//block directory browsing and send the user to the main index
|
||||
|
||||
include "root.php";
|
||||
header("Location: ".PROJECT_PATH."/index.php");
|
||||
//set the include path
|
||||
$conf = glob("{/usr/local/etc,/etc}/fusionpbx/config.conf", GLOB_BRACE);
|
||||
set_include_path(parse_ini_file($conf[0])['document.root']);
|
||||
|
||||
//set a redirect
|
||||
header("Location: ".PROJECT_PATH."/index.php");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user