<?php
// Fehlermeldungen/Warnungen verwerfen:
error_reporting(0);
parse_str($_SERVER['QUERY_STRING'],$vars);
if ($vars['number'] == 12345) {
$pass = "Ok";
} else {
$pass = "Negativ";
}
header('Content-Type: application/xml;charset=UTF-8');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<SnomIPPhoneText>
<Fetch mil=\"10000\">snom://mb_exit</Fetch>
<Text>";
if ($vars['message']) {
echo "<br/>" . $vars['message'] . "<br/>";
}
if ($vars['number']) {
echo $pass . "!";
}
if ($vars['phone']) {
echo "<br/>IP des Telefons:<br/>" . $vars['phone'];
}
if ($vars['mac']) {
echo "<br/>MAC:<br/>" . $vars['mac'];
}
if ($vars['user']) {
echo "<br/>Benutzer:<br/>" . $vars['user'];
}
if ($vars['host']) {
echo "<br/>Registrar:<br/>" . $vars['host'];
}
echo "</Text>
</SnomIPPhoneText>";
?>