From cad5e1c19528acfc897fd2273a357fecf6265f33 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Thu, 17 Jul 2014 19:31:50 +0000 Subject: [PATCH] billing app update support --- app/xml_cdr/v_xml_cdr_import.php | 8 ++++---- app/xml_cdr/xml_cdr.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 54fabd12e1..32cc140474 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -58,8 +58,8 @@ $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){ - require_once "app/billings/functions.php"; + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){ + require_once "app/billing/functions.php"; } //define the process_xml_cdr function function process_xml_cdr($db, $leg, $xml_string) { @@ -216,7 +216,7 @@ } //billing information - if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){ + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){ $db2 = new database; $lcr_currency = 'USD'; @@ -529,4 +529,4 @@ fclose($fp); } -?> \ No newline at end of file +?> diff --git a/app/xml_cdr/xml_cdr.php b/app/xml_cdr/xml_cdr.php index 6874ef0720..c9c0089605 100644 --- a/app/xml_cdr/xml_cdr.php +++ b/app/xml_cdr/xml_cdr.php @@ -295,7 +295,7 @@ else { echo th_order_by('start_stamp', $text['label-start'], $order_by, $order); //echo th_order_by('end_stamp', 'End', $order_by, $order); echo th_order_by('duration', $text['label-duration'], $order_by, $order); - if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){ + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){ // billing collumns echo "".$text['label-price']."\n"; } @@ -310,8 +310,8 @@ else { echo " \n"; } echo "\n"; - if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){ - require_once "app/billings/functions.php"; + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){ + require_once "app/billing/functions.php"; require_once "resources/classes/database.php"; $database = new database; } @@ -438,7 +438,7 @@ else { echo " ".gmdate("G:i:s", $seconds)."\n"; - if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billings/app_config.php")){ + if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/billing/app_config.php")){ $database->table = "v_xml_cdr"; $accountcode = (strlen($row["accountcode"])?$row["accountcode"]:$_SESSION[domain_name]);