summaryrefslogtreecommitdiff
path: root/hugo/navigation.php
diff options
context:
space:
mode:
Diffstat (limited to 'hugo/navigation.php')
-rw-r--r--hugo/navigation.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/hugo/navigation.php b/hugo/navigation.php
new file mode 100644
index 0000000..4b4b3b3
--- /dev/null
+++ b/hugo/navigation.php
@@ -0,0 +1,27 @@
+<?php
+/* vim: set expandtab sw=4 ts=4 sts=4: */
+/**
+ * the navigation frame - displays server, db and table selection tree
+ *
+ * @package PhpMyAdmin-Navigation
+ */
+
+// Include common functionalities
+require_once './libraries/common.inc.php';
+
+// Also initialises the collapsible tree class
+require_once './libraries/navigation/Navigation.class.php';
+
+// Do the magic
+$response = PMA_Response::getInstance();
+if ($response->isAjax()) {
+ $navigation = new PMA_Navigation();
+ $response->addJSON('message', $navigation->getDisplay());
+} else {
+ $response->addHTML(
+ PMA_Message::error(
+ __('Fatal error: The navigation can only be accessed via AJAX')
+ )
+ );
+}
+?>