mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use server DOCUMENT_ROOT variable
Move includes to the near the top of the page
This commit is contained in:
@@ -5,14 +5,16 @@
|
||||
//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']);
|
||||
|
||||
//includes files
|
||||
require_once "resources/require.php";
|
||||
}
|
||||
else {
|
||||
exit;
|
||||
}
|
||||
|
||||
//include files
|
||||
require_once "resources/require.php";
|
||||
include "resources/classes/permissions.php";
|
||||
require $_SERVER['DOCUMENT_ROOT']."/app/email_queue/resources/functions/transcribe.php";
|
||||
|
||||
//increase limits
|
||||
set_time_limit(0);
|
||||
//ini_set('max_execution_time',1800); //30 minutes
|
||||
@@ -101,12 +103,6 @@
|
||||
sleep($sleep_seconds);
|
||||
}
|
||||
|
||||
//includes
|
||||
if (!defined('STDIN')) { include_once "root.php"; }
|
||||
require_once "resources/require.php";
|
||||
include "resources/classes/permissions.php";
|
||||
require $document_root."/app/email_queue/resources/functions/transcribe.php";
|
||||
|
||||
//define a function to remove html tags
|
||||
if (!function_exists('remove_tags')) {
|
||||
function remove_tags($string) {
|
||||
|
||||
Reference in New Issue
Block a user