mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Cleanup the indentation ... tabs and whitespace after the last pull request.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
// make sure the PATH_SEPARATOR is defined
|
||||
umask(2);
|
||||
umask(2);
|
||||
if (!defined("PATH_SEPARATOR")) {
|
||||
if (strpos($_ENV["OS"], "Win") !== false) {
|
||||
define("PATH_SEPARATOR", ";");
|
||||
@@ -34,8 +34,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($output_format)) $output_format = (PHP_SAPI == 'cli') ? 'text' : 'html';
|
||||
|
||||
if (!isset($output_format)) $output_format = (PHP_SAPI == 'cli') ? 'text' : 'html';
|
||||
|
||||
// make sure the document_root is set
|
||||
$_SERVER["SCRIPT_FILENAME"] = str_replace("\\", '/', $_SERVER["SCRIPT_FILENAME"]);
|
||||
if(PHP_SAPI == 'cli'){
|
||||
|
||||
@@ -460,7 +460,7 @@ if (!class_exists('schema')) {
|
||||
|
||||
//set the global variable
|
||||
global $db, $upgrade_data_types, $text,$output_format;
|
||||
if ($format=='') $format = $output_format;
|
||||
if ($format=='') $format = $output_format;
|
||||
|
||||
//get the db variables
|
||||
$config = new config;
|
||||
|
||||
@@ -67,14 +67,15 @@ if (!class_exists('switch_settings')) {
|
||||
}
|
||||
}
|
||||
|
||||
{ //connect to event socket
|
||||
$esl = new event_socket;
|
||||
$esl->connect($this->event_socket_ip_address, $this->event_socket_port, $this->event_socket_password);
|
||||
//connect to event socket
|
||||
$esl = new event_socket;
|
||||
$esl->connect($this->event_socket_ip_address, $this->event_socket_port, $this->event_socket_password);
|
||||
|
||||
//run the api command
|
||||
$result = $esl->request('api global_getvar');
|
||||
} //close event socket
|
||||
//run the api command
|
||||
$result = $esl->request('api global_getvar');
|
||||
|
||||
//close event socket
|
||||
fclose($fp);
|
||||
|
||||
//set the result as a named array
|
||||
$vars = array();
|
||||
|
||||
Reference in New Issue
Block a user