Increase the indention to improve code consistency.
This commit is contained in:
parent
2729b902c9
commit
b7827c38e6
|
|
@ -53,7 +53,8 @@
|
|||
//set pdo attribute that enables exception handling
|
||||
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
||||
|
||||
function process_xml_cdr($db, $leg, $xml_string) {
|
||||
//define the process_xml_cdr function
|
||||
function process_xml_cdr($db, $leg, $xml_string) {
|
||||
//set global variable
|
||||
global $debug;
|
||||
|
||||
|
|
@ -273,7 +274,7 @@ function process_xml_cdr($db, $leg, $xml_string) {
|
|||
}
|
||||
}
|
||||
unset($sql);
|
||||
}
|
||||
}
|
||||
|
||||
//get cdr details from the http post
|
||||
if (strlen($_POST["cdr"]) > 0) {
|
||||
|
|
@ -375,7 +376,7 @@ function process_xml_cdr($db, $leg, $xml_string) {
|
|||
ob_end_clean(); //clean the buffer
|
||||
$time = "\n\n$insert_count inserts in: ".number_format($insert_time,5). " seconds.\n";
|
||||
$time .= "Other processing time: ".number_format((microtime(true)-$time5-$insert_time),5). " seconds.\n";
|
||||
$fp = fopen(sys_get_temp_dir().'/xml_cdr_post.log', 'w');
|
||||
$fp = fopen($_SESSION['server']['temp']['dir'].'/xml_cdr.log', 'w');
|
||||
fwrite($fp, $content.$time);
|
||||
fclose($fp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue