Update xml_cdr.php

This commit is contained in:
FusionPBX 2025-03-22 17:02:05 -06:00 committed by GitHub
parent d546c30837
commit 062c9ec8b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1649,7 +1649,7 @@ if (!class_exists('xml_cdr')) {
//if http enabled is set to false then deny access
if (!defined('STDIN')) {
if ($this->setting->get('cdr', 'http_enabled') == "false") {
if ($this->setting->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();
@ -1661,7 +1661,7 @@ if (!class_exists('xml_cdr')) {
//check for the correct username and password
if (!defined('STDIN')) {
if ($this->setting->get('cdr', 'http_enabled', true)) {
if ($this->setting->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];