Translated using Weblate (English (United Kingdom))
[phpmyadmin.git] / db_import.php
blob0ec1d49ef690dbd1317ad64935254908f9b434d3
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database import page
6 * @package PhpMyAdmin
7 */
9 use PhpMyAdmin\Config\PageSettings;
10 use PhpMyAdmin\Display\Import;
11 use PhpMyAdmin\Response;
13 require_once 'libraries/common.inc.php';
15 PageSettings::showGroup('Import');
17 $response = Response::getInstance();
18 $header = $response->getHeader();
19 $scripts = $header->getScripts();
20 $scripts->addFile('import.js');
22 /**
23 * Gets tables information and displays top links
25 require 'libraries/db_common.inc.php';
27 list(
28 $tables,
29 $num_tables,
30 $total_num_tables,
31 $sub_part,
32 $is_show_stats,
33 $db_is_system_schema,
34 $tooltip_truename,
35 $tooltip_aliasname,
36 $pos
37 ) = PhpMyAdmin\Util::getDbInfo($db, isset($sub_part) ? $sub_part : '');
39 $response = Response::getInstance();
40 $response->addHTML(
41 Import::get(
42 'database', $db, $table, $max_upload_size