page_handlers.php 343 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * All page handlers are bundled here
  4. */
  5. /**
  6. * The friends request page handler
  7. *
  8. * @param array $page the page elements
  9. *
  10. * @return bool
  11. */
  12. function friend_request_page_handler($page) {
  13. if (isset($page[0])) {
  14. set_input("username", $page[0]);
  15. }
  16. include(dirname(dirname(__FILE__)) . "/pages/index.php");
  17. return true;
  18. }