server_sql.php 698 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Server SQL executor
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Config\PageSettings;
  9. use PhpMyAdmin\Response;
  10. use PhpMyAdmin\SqlQueryForm;
  11. /**
  12. *
  13. */
  14. require_once 'libraries/common.inc.php';
  15. PageSettings::showGroup('Sql');
  16. /**
  17. * Does the common work
  18. */
  19. $response = Response::getInstance();
  20. $header = $response->getHeader();
  21. $scripts = $header->getScripts();
  22. $scripts->addFile('makegrid.js');
  23. $scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
  24. $scripts->addFile('sql.js');
  25. require_once 'libraries/server_common.inc.php';
  26. /**
  27. * Query box, bookmark, insert data from textfile
  28. */
  29. $response->addHTML(SqlQueryForm::getHtml());