server_export.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * object the server export page
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Config\PageSettings;
  9. use PhpMyAdmin\Display\Export;
  10. use PhpMyAdmin\Response;
  11. /**
  12. * Does the common work
  13. */
  14. require_once 'libraries/common.inc.php';
  15. require_once 'libraries/server_common.inc.php';
  16. PageSettings::showGroup('Export');
  17. $response = Response::getInstance();
  18. $header = $response->getHeader();
  19. $scripts = $header->getScripts();
  20. $scripts->addFile('export.js');
  21. $export_page_title = __('View dump (schema) of databases') . "\n";
  22. $displayExport = new Export();
  23. $select_item = isset($tmp_select)? $tmp_select : '';
  24. $multi_values = $displayExport->getHtmlForSelectOptions($select_item);
  25. if (! isset($sql_query)) {
  26. $sql_query = '';
  27. }
  28. if (! isset($num_tables)) {
  29. $num_tables = 0;
  30. }
  31. if (! isset($unlim_num_rows)) {
  32. $unlim_num_rows = 0;
  33. }
  34. $response = Response::getInstance();
  35. $response->addHTML(
  36. $displayExport->getDisplay(
  37. 'server', $db, $table, $sql_query, $num_tables,
  38. $unlim_num_rows, $multi_values
  39. )
  40. );