From d145320671a88eccd99e1a8790e81c9d1d5bed14 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 30 Apr 2013 16:44:51 +0000 Subject: [PATCH] Fix a little more indentation on the xml cdr. --- app/xml_cdr/v_xml_cdr_import.php | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/app/xml_cdr/v_xml_cdr_import.php b/app/xml_cdr/v_xml_cdr_import.php index 4e430106ad..ba86476456 100644 --- a/app/xml_cdr/v_xml_cdr_import.php +++ b/app/xml_cdr/v_xml_cdr_import.php @@ -266,7 +266,7 @@ } } unset($error); - + if ($debug) { GLOBAL $insert_time,$insert_count; $insert_time+=microtime(true)-$time5_insert;//add this current query. @@ -306,24 +306,24 @@ } } - //if http enabled is set to false then deny access - if (!$_SESSION["xml_cdr"]["http_enabled"]) { - echo "access denied
\n"; - return; - } + //if http enabled is set to false then deny access + if (!$_SESSION["xml_cdr"]["http_enabled"]) { + echo "access denied
\n"; + return; + } - //check for the correct username and password - if ($_SESSION["xml_cdr"]["username"] == $_SERVER["PHP_AUTH_USER"] && $_SESSION["xml_cdr"]["password"] == $_SERVER["PHP_AUTH_PW"]) { - //echo "access granted
\n"; - } - else { - echo "access denied
\n"; - return; - } - //loop through all attribues - //foreach($xml->settings->param[1]->attributes() as $a => $b) { - // echo $a,'="',$b,"\"
\n"; - //} + //check for the correct username and password + if ($_SESSION["xml_cdr"]["username"] == $_SERVER["PHP_AUTH_USER"] && $_SESSION["xml_cdr"]["password"] == $_SERVER["PHP_AUTH_PW"]) { + //echo "access granted
\n"; + } + else { + echo "access denied
\n"; + return; + } + //loop through all attribues + //foreach($xml->settings->param[1]->attributes() as $a => $b) { + // echo $a,'="',$b,"\"
\n"; + //} //get the http post variable $xml_string = trim($_POST["cdr"]);