Fix a little more indentation on the xml cdr.
This commit is contained in:
parent
b7827c38e6
commit
d145320671
|
|
@ -266,7 +266,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($error);
|
unset($error);
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
GLOBAL $insert_time,$insert_count;
|
GLOBAL $insert_time,$insert_count;
|
||||||
$insert_time+=microtime(true)-$time5_insert;//add this current query.
|
$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 http enabled is set to false then deny access
|
||||||
if (!$_SESSION["xml_cdr"]["http_enabled"]) {
|
if (!$_SESSION["xml_cdr"]["http_enabled"]) {
|
||||||
echo "access denied<br />\n";
|
echo "access denied<br />\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//check for the correct username and password
|
//check for the correct username and password
|
||||||
if ($_SESSION["xml_cdr"]["username"] == $_SERVER["PHP_AUTH_USER"] && $_SESSION["xml_cdr"]["password"] == $_SERVER["PHP_AUTH_PW"]) {
|
if ($_SESSION["xml_cdr"]["username"] == $_SERVER["PHP_AUTH_USER"] && $_SESSION["xml_cdr"]["password"] == $_SERVER["PHP_AUTH_PW"]) {
|
||||||
//echo "access granted<br />\n";
|
//echo "access granted<br />\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "access denied<br />\n";
|
echo "access denied<br />\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//loop through all attribues
|
//loop through all attribues
|
||||||
//foreach($xml->settings->param[1]->attributes() as $a => $b) {
|
//foreach($xml->settings->param[1]->attributes() as $a => $b) {
|
||||||
// echo $a,'="',$b,"\"<br />\n";
|
// echo $a,'="',$b,"\"<br />\n";
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//get the http post variable
|
//get the http post variable
|
||||||
$xml_string = trim($_POST["cdr"]);
|
$xml_string = trim($_POST["cdr"]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue