Completed
Push — master ( 64741e...904a1b )
by Maurício
09:11
created

db_import.php (1 issue)

1
<?php
2
/* vim: set expandtab sw=4 ts=4 sts=4: */
3
/**
4
 * Database import page
5
 *
6
 * @package PhpMyAdmin
7
 */
8
declare(strict_types=1);
9
10
use PhpMyAdmin\Config\PageSettings;
11
use PhpMyAdmin\Display\Import;
12
use PhpMyAdmin\Response;
13
14
require_once 'libraries/common.inc.php';
15
16
PageSettings::showGroup('Import');
17
18
$response = Response::getInstance();
19
$header   = $response->getHeader();
20
$scripts  = $header->getScripts();
21
$scripts->addFile('import.js');
22
23
$import = new Import();
24
25
/**
26
 * Gets tables information and displays top links
27
 */
28
require 'libraries/db_common.inc.php';
29
30
list(
0 ignored issues
show
Comprehensibility Best Practice introduced by
This list assign is not used and could be removed.
Loading history...
31
    $tables,
32
    $num_tables,
33
    $total_num_tables,
34
    $sub_part,
35
    $is_show_stats,
36
    $db_is_system_schema,
37
    $tooltip_truename,
38
    $tooltip_aliasname,
39
    $pos
40
) = PhpMyAdmin\Util::getDbInfo($db, isset($sub_part) ? $sub_part : '');
41
42
$response = Response::getInstance();
43
$response->addHTML(
44
    $import->get(
45
        'database',
46
        $db,
47
        $table,
48
        $max_upload_size
49
    )
50
);
51