Start with the require.php

This commit is contained in:
FusionPBX 2025-03-13 13:08:36 -06:00 committed by GitHub
parent e6bfaf21ee
commit 17b938698e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 10 deletions

View File

@ -28,22 +28,25 @@
Corey Moullas <cmoullas@emak.tech> Corey Moullas <cmoullas@emak.tech>
*/ */
//includes files
require_once dirname(__DIR__, 2) . "/resources/require.php";
//check if windows //check if windows
if (stristr(PHP_OS, 'WIN')) { $IS_WINDOWS = true; } else { $IS_WINDOWS = false; } if (stristr(PHP_OS, 'WIN')) { $IS_WINDOWS = true; } else { $IS_WINDOWS = false; }
//executed via command line //command line
if (defined('STDIN')) { if (defined('STDIN')) {
//add multi-lingual support //add multi-lingual support
$language = new text; $language = new text;
$text = $language->get($settings->get('domain','language','en-us'), 'app/fax'); $text = $language->get($settings->get('domain','language','en-us'), 'app/fax');
} }
//executed via browser
else {
//includes files //web server
require_once dirname(__DIR__, 2) . "/resources/require.php"; if (!defined('STDIN')) {
//additional include
require_once "resources/check_auth.php"; require_once "resources/check_auth.php";
//set the domain_uuid and domain_name //set the domain_uuid and domain_name