db_import.php 899 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Database import page
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Config\PageSettings;
  9. use PhpMyAdmin\Display\Import;
  10. use PhpMyAdmin\Response;
  11. require_once 'libraries/common.inc.php';
  12. PageSettings::showGroup('Import');
  13. $response = Response::getInstance();
  14. $header = $response->getHeader();
  15. $scripts = $header->getScripts();
  16. $scripts->addFile('import.js');
  17. /**
  18. * Gets tables information and displays top links
  19. */
  20. require 'libraries/db_common.inc.php';
  21. list(
  22. $tables,
  23. $num_tables,
  24. $total_num_tables,
  25. $sub_part,
  26. $is_show_stats,
  27. $db_is_system_schema,
  28. $tooltip_truename,
  29. $tooltip_aliasname,
  30. $pos
  31. ) = PhpMyAdmin\Util::getDbInfo($db, isset($sub_part) ? $sub_part : '');
  32. $response = Response::getInstance();
  33. $response->addHTML(
  34. Import::get(
  35. 'database', $db, $table, $max_upload_size
  36. )
  37. );