Update xml_cdr.php
This commit is contained in:
parent
cf55ca59ed
commit
7fae8eefca
|
|
@ -1668,7 +1668,7 @@
|
|||
|
||||
//authentication for xml cdr http post
|
||||
if (!defined('STDIN')) {
|
||||
if ($this->settings->get('cdr', 'http_enabled')) {
|
||||
if ($this->settings->get('cdr', 'http_enabled', false)) {
|
||||
//get the contents of xml_cdr.conf.xml
|
||||
$conf_xml_string = file_get_contents($this->settings->get('switch', 'conf').'/autoload_configs/xml_cdr.conf.xml');
|
||||
|
||||
|
|
@ -1700,7 +1700,7 @@
|
|||
|
||||
//if http enabled is set to false then deny access
|
||||
if (!defined('STDIN')) {
|
||||
if ($this->settings->get('cdr', 'http_enabled') == false) {
|
||||
if ($this->settings->get('cdr', 'http_enabled', false) {
|
||||
openlog('FusionPBX', LOG_NDELAY, LOG_AUTH);
|
||||
syslog(LOG_WARNING, '['.$_SERVER['REMOTE_ADDR'].'] XML CDR import default setting http_enabled is not enabled. Line: '.__line__);
|
||||
closelog();
|
||||
|
|
@ -1712,7 +1712,7 @@
|
|||
|
||||
//check for the correct username and password
|
||||
if (!defined('STDIN')) {
|
||||
if ($this->settings->get('cdr', 'http_enabled', true)) {
|
||||
if ($this->settings->get('cdr', 'http_enabled', false)) {
|
||||
if ($auth_array[0] == $_SERVER["PHP_AUTH_USER"] && $auth_array[1] == $_SERVER["PHP_AUTH_PW"]) {
|
||||
//echo "access granted\n";
|
||||
$this->username = $auth_array[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue