Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2010
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. [root@sanction /usr/local/tftproot]# cat /usr/local/www/apache22/data/directory.php
  2. <?php
  3. $rows = array();
  4. $rows[] = array("Person's Name","0000000000");
  5. $rows[] = array("Person's Name","0000000000");
  6. $rows[] = array("Person's Name","0000000000");
  7. $rows[] = array("Person's Name","0000000000");
  8. $rows[] = array("Person's Name","0000000000");
  9.  
  10.  header("Content-type: text/xml");
  11.  header("Connection: close");
  12.  header("Expires: -1");
  13.  
  14.  print("<CiscoIPPhoneDirectory>\n");
  15.  print("\t<Title>Directory</Title>\n");
  16.  print("\t<Prompt>Choose a Number</Prompt>\n");
  17.  
  18. foreach($rows as $row)
  19.  {
  20.     print("\t<DirectoryEntry>\n");
  21.  
  22.     print("\t\t<Name>");
  23.     print($row[0]);
  24.     print("</Name>\n");
  25.  
  26.  
  27.     print("\t\t<Telephone>");
  28.     print($row[1]);
  29.     print("</Telephone>\n");
  30.  
  31.     print("\t</DirectoryEntry>\n");
  32.  }
  33. print("</CiscoIPPhoneDirectory>\n");
  34.  
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement