2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 if (! defined('PHPMYADMIN')) {
12 // Get relations & co. status
13 $cfgRelation = PMA_getRelationsParam();
15 if (isset($_REQUEST['single_table'])) {
16 $GLOBALS['single_table'] = $_REQUEST['single_table'];
19 require_once './libraries/file_listing.lib.php';
20 require_once './libraries/plugin_interface.lib.php';
21 require_once './libraries/display_export.lib.php';
23 /* Scan for plugins */
24 $export_list = PMA_getPlugins(
26 'libraries/plugins/export/',
28 'export_type' => $export_type,
29 'single_table' => isset($single_table)
33 /* Fail if we didn't find any plugin */
34 if (empty($export_list)) {
36 __('Could not load export plugins, please check your installation!')
41 $html = '<form method="post" action="export.php" '
42 . ' name="dump" class="disableAjax">';
44 //output Hidden Inputs
45 $single_table_str = isset($single_table)?
$single_table : '';
46 $sql_query_str = isset($sql_query)?
$sql_query : '';
47 $html .= PMA_getHtmlForHiddenInput(
55 //output Export Options
56 $num_tables_str = isset($num_tables)?
$num_tables : '';
57 $unlim_num_rows_str = isset($unlim_num_rows)?
$unlim_num_rows : '';
58 $multi_values_str = isset($multi_values)?
$multi_values : '';
59 $html .= PMA_getHtmlForExportOptions(
71 $response = PMA_Response
::getInstance();
72 $response->addHTML($html);