phone.php 320 B

123456789101112131415
  1. <?php
  2. header('Content-type: text/xml');
  3. if (isset($_REQUEST['PhoneNumber'])) {
  4. $client = htmlspecialchars($_REQUEST['PhoneNumber']);
  5. }
  6. ?>
  7. <Response>
  8. <?php if (empty($client)) { ?>
  9. <Dial>
  10. <Client><?php echo $client; ?></Client>
  11. </Dial>
  12. <?php } else { ?>
  13. <Say>An Error Occurred. We are sorry.</Say>
  14. <?php } ?>
  15. </Response>