navigation.php 696 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * the navigation frame - displays server, db and table selection tree
  5. *
  6. * @package PhpMyAdmin-Navigation
  7. */
  8. // Include common functionalities
  9. require_once './libraries/common.inc.php';
  10. // Also initialises the collapsible tree class
  11. require_once './libraries/navigation/Navigation.class.php';
  12. // Do the magic
  13. $response = PMA_Response::getInstance();
  14. if ($response->isAjax()) {
  15. $navigation = new PMA_Navigation();
  16. $response->addJSON('message', $navigation->getDisplay());
  17. } else {
  18. $response->addHTML(
  19. PMA_Message::error(
  20. __('Fatal error: The navigation can only be accessed via AJAX')
  21. )
  22. );
  23. }
  24. ?>