phpmyadmin/server_import.php
Piyush Vijay a99acfef71 Modularize server related remaining files like replication, plugins, queries, processes.
Sever monitor is also modularised and is not working but jQplot is not imported as it is giving error with webpack.
Another issue with these files is that table sorter is also not woking
working properly as it is not available on npm as plugin.
Signed-off-by: Piyush Vijay <piyushvijay.1997@gmail.com>
2018-07-30 23:08:28 +05:30

41 lines
706 B
PHP

<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* Server import page
*
* @package PhpMyAdmin
*/
declare(strict_types=1);
use PhpMyAdmin\Config\PageSettings;
use PhpMyAdmin\Display\Import;
use PhpMyAdmin\Response;
/**
*
*/
require_once 'libraries/common.inc.php';
PageSettings::showGroup('Import');
$response = Response::getInstance();
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('import');
/**
* Does the common work
*/
require 'libraries/server_common.inc.php';
$import = new Import();
$response = Response::getInstance();
$response->addHTML(
$import->get(
'server',
$db,
$table,
$max_upload_size
)
);