Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@sanction /usr/local/tftproot]# cat /usr/local/www/apache22/data/directory.php
- <?php
- $rows = array();
- $rows[] = array("Person's Name","0000000000");
- $rows[] = array("Person's Name","0000000000");
- $rows[] = array("Person's Name","0000000000");
- $rows[] = array("Person's Name","0000000000");
- $rows[] = array("Person's Name","0000000000");
- header("Content-type: text/xml");
- header("Connection: close");
- header("Expires: -1");
- print("<CiscoIPPhoneDirectory>\n");
- print("\t<Title>Directory</Title>\n");
- print("\t<Prompt>Choose a Number</Prompt>\n");
- foreach($rows as $row)
- {
- print("\t<DirectoryEntry>\n");
- print("\t\t<Name>");
- print($row[0]);
- print("</Name>\n");
- print("\t\t<Telephone>");
- print($row[1]);
- print("</Telephone>\n");
- print("\t</DirectoryEntry>\n");
- }
- print("</CiscoIPPhoneDirectory>\n");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement