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