Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_export.php')
-rw-r--r--tbl_export.php28
1 files changed, 9 insertions, 19 deletions
diff --git a/tbl_export.php b/tbl_export.php
index a4eb18f802..74443c513f 100644
--- a/tbl_export.php
+++ b/tbl_export.php
@@ -8,18 +8,19 @@
/**
*
*/
-require_once './libraries/common.inc.php';
+require_once 'libraries/common.inc.php';
-$GLOBALS['js_include'][] = 'export.js';
-$GLOBALS['js_include'][] = 'codemirror/lib/codemirror.js';
-$GLOBALS['js_include'][] = 'codemirror/mode/mysql/mysql.js';
+$response = PMA_Response::getInstance();
+$header = $response->getHeader();
+$scripts = $header->getScripts();
+$scripts->addFile('export.js');
/**
* Gets tables informations and displays top links
*/
-require_once './libraries/tbl_common.php';
+require_once 'libraries/tbl_common.inc.php';
$url_query .= '&goto=tbl_export.php&back=tbl_export.php';
-require_once './libraries/tbl_info.inc.php';
+require_once 'libraries/tbl_info.inc.php';
// Dump of a table
@@ -65,20 +66,9 @@ if (! empty($sql_query)) {
// Just crop LIMIT clause
$sql_query = $analyzed_sql[0]['section_before_limit'] . $analyzed_sql[0]['section_after_limit'];
}
- $message = PMA_Message::success();
+ echo PMA_Util::getMessage(PMA_Message::success());
}
-/**
- * Displays top menu links
- */
-require './libraries/tbl_links.inc.php';
-
$export_type = 'table';
-require_once './libraries/display_export.lib.php';
-
-
-/**
- * Displays the footer
- */
-require './libraries/footer.inc.php';
+require_once 'libraries/display_export.lib.php';
?>