Translated using Weblate (German)
[phpmyadmin.git] / db_import.php
blob8919b65e2c9b246c886bfa150fbc3535b75e778b
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database import page
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Config\PageSettings;
11 use PhpMyAdmin\Display\Import;
12 use PhpMyAdmin\Response;
14 if (! defined('ROOT_PATH')) {
15 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
18 global $db, $table;
20 require_once ROOT_PATH . 'libraries/common.inc.php';
22 PageSettings::showGroup('Import');
24 $response = Response::getInstance();
25 $header = $response->getHeader();
26 $scripts = $header->getScripts();
27 $scripts->addFile('import.js');
29 $import = new Import();
31 /**
32 * Gets tables information and displays top links
34 require ROOT_PATH . 'libraries/db_common.inc.php';
36 list(
37 $tables,
38 $num_tables,
39 $total_num_tables,
40 $sub_part,
41 $is_show_stats,
42 $db_is_system_schema,
43 $tooltip_truename,
44 $tooltip_aliasname,
45 $pos
46 ) = PhpMyAdmin\Util::getDbInfo($db, isset($sub_part) ? $sub_part : '');
48 $response = Response::getInstance();
49 $response->addHTML(
50 $import->get(
51 'database',
52 $db,
53 $table,
54 $max_upload_size