Translated using Weblate (French)
[phpmyadmin.git] / tbl_import.php
blob70a359b34f63694494cc0069d040bc8fe3ae380d
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Table import
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, $url_query;
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_once ROOT_PATH . 'libraries/tbl_common.inc.php';
35 $url_query .= '&amp;goto=tbl_import.php&amp;back=tbl_import.php';
37 $response->addHTML(
38 $import->get(
39 'table',
40 $db,
41 $table,
42 $max_upload_size