Fix. multiple calls fax_send caused error.
Fix. require EventSocket implicitly. Fix. require `test` class.
This commit is contained in:
parent
bea4a02056
commit
4fde7dfc80
|
|
@ -29,6 +29,7 @@ include "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/functions/object_to_array.php";
|
require_once "resources/functions/object_to_array.php";
|
||||||
require_once "resources/functions/parse_attachments.php";
|
require_once "resources/functions/parse_attachments.php";
|
||||||
|
require_once "resources/classes/text.php";
|
||||||
|
|
||||||
//get accounts to monitor
|
//get accounts to monitor
|
||||||
$sql = "select * from v_fax ";
|
$sql = "select * from v_fax ";
|
||||||
|
|
|
||||||
|
|
@ -98,21 +98,28 @@ if (!$included) {
|
||||||
$fax_dir = $_SESSION['switch']['storage']['dir'].'/fax'.((count($_SESSION["domains"]) > 1) ? '/'.$_SESSION['domain_name'] : null);
|
$fax_dir = $_SESSION['switch']['storage']['dir'].'/fax'.((count($_SESSION["domains"]) > 1) ? '/'.$_SESSION['domain_name'] : null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
function correct_path($p) {
|
require_once "resources/classes/EventSocket.php";
|
||||||
global $IS_WINDOWS;
|
|
||||||
if ($IS_WINDOWS) {
|
|
||||||
return str_replace('/', '\\', $p);
|
|
||||||
}
|
|
||||||
return $p;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function gs_cmd($args) {
|
if(!function_exists('correct_path')) {
|
||||||
global $IS_WINDOWS;
|
function correct_path($p) {
|
||||||
if ($IS_WINDOWS) {
|
global $IS_WINDOWS;
|
||||||
return 'gswin32c '.$args;
|
if ($IS_WINDOWS) {
|
||||||
|
return str_replace('/', '\\', $p);
|
||||||
|
}
|
||||||
|
return $p;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!function_exists('gs_cmd')) {
|
||||||
|
function gs_cmd($args) {
|
||||||
|
global $IS_WINDOWS;
|
||||||
|
if ($IS_WINDOWS) {
|
||||||
|
return 'gswin32c '.$args;
|
||||||
|
}
|
||||||
|
return 'gs '.$args;
|
||||||
}
|
}
|
||||||
return 'gs '.$args;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//get the fax extension
|
//get the fax extension
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue