Start with the require.php
This commit is contained in:
parent
e6bfaf21ee
commit
17b938698e
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue