Translated using Weblate (Norwegian Bokmål)
[phpmyadmin.git] / server_export.php
blob848cff45e50471d5ab6609fe13ee8f4f6d5b4e5f
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * object the server export page
6 * @package PhpMyAdmin
7 */
8 use PhpMyAdmin\Config\PageSettings;
9 use PhpMyAdmin\Display\Export;
10 use PhpMyAdmin\Response;
12 /**
13 * Does the common work
15 require_once 'libraries/common.inc.php';
16 require_once 'libraries/server_common.inc.php';
18 PageSettings::showGroup('Export');
20 $response = Response::getInstance();
21 $header = $response->getHeader();
22 $scripts = $header->getScripts();
23 $scripts->addFile('export.js');
25 $export_page_title = __('View dump (schema) of databases') . "\n";
27 $displayExport = new Export();
29 $select_item = isset($tmp_select)? $tmp_select : '';
30 $multi_values = $displayExport->getHtmlForSelectOptions($select_item);
32 if (! isset($sql_query)) {
33 $sql_query = '';
35 if (! isset($num_tables)) {
36 $num_tables = 0;
38 if (! isset($unlim_num_rows)) {
39 $unlim_num_rows = 0;
41 $response = Response::getInstance();
42 $response->addHTML(
43 $displayExport->getDisplay(
44 'server', $db, $table, $sql_query, $num_tables,
45 $unlim_num_rows, $multi_values