server_import.php 634 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Server import page
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Config\PageSettings;
  9. use PhpMyAdmin\Display\Import;
  10. use PhpMyAdmin\Response;
  11. /**
  12. *
  13. */
  14. require_once 'libraries/common.inc.php';
  15. PageSettings::showGroup('Import');
  16. $response = Response::getInstance();
  17. $header = $response->getHeader();
  18. $scripts = $header->getScripts();
  19. $scripts->addFile('import.js');
  20. /**
  21. * Does the common work
  22. */
  23. require 'libraries/server_common.inc.php';
  24. $response = Response::getInstance();
  25. $response->addHTML(
  26. Import::get(
  27. 'server', $db, $table, $max_upload_size
  28. )
  29. );