mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
WhitespaceClean-app/xml_cdr
whitespace pass over files for reference regex that was used s/[ \t]+(\r?\n)/\1/
This commit is contained in:
@@ -82,7 +82,7 @@
|
||||
$db->beginTransaction();
|
||||
//reset the count
|
||||
$x = 0;
|
||||
}
|
||||
}
|
||||
//parse the xml to get the call detail record info
|
||||
try {
|
||||
$xml = simplexml_load_string($xml_string);
|
||||
@@ -101,14 +101,14 @@
|
||||
echo $sql."\n";
|
||||
$db->exec($sql);
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
}
|
||||
//save the transaction
|
||||
$db->commit();
|
||||
//echo finished
|
||||
echo "completed\n";
|
||||
}
|
||||
if ($xml_cdr_archive == "dir") {
|
||||
if ($xml_cdr_archive == "dir") {
|
||||
$xml_cdr_list = glob($_SESSION['switch']['log']['dir']."/xml_cdr/archive/*/*/*/*.xml");
|
||||
echo "count: ".count($xml_cdr_list)."\n";
|
||||
//print_r($xml_cdr_list);
|
||||
|
||||
Reference in New Issue
Block a user