tbl_sql.php 1014 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Table SQL executor
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. /**
  9. *
  10. */
  11. require_once 'libraries/common.inc.php';
  12. /**
  13. * Runs common work
  14. */
  15. $response = PMA_Response::getInstance();
  16. $header = $response->getHeader();
  17. $scripts = $header->getScripts();
  18. $scripts->addFile('makegrid.js');
  19. $scripts->addFile('sql.js');
  20. require 'libraries/tbl_common.inc.php';
  21. $url_query .= '&amp;goto=tbl_sql.php&amp;back=tbl_sql.php';
  22. require_once 'libraries/sql_query_form.lib.php';
  23. $err_url = 'tbl_sql.php' . $err_url;
  24. // After a syntax error, we return to this script
  25. // with the typed query in the textarea.
  26. $goto = 'tbl_sql.php';
  27. $back = 'tbl_sql.php';
  28. /**
  29. * Get table information
  30. */
  31. require_once 'libraries/tbl_info.inc.php';
  32. /**
  33. * Query box, bookmark, insert data from textfile
  34. */
  35. $response->addHTML(
  36. PMA_getHtmlForSqlQueryForm(
  37. true, false,
  38. isset($_REQUEST['delimiter'])
  39. ? htmlspecialchars($_REQUEST['delimiter'])
  40. : ';'
  41. )
  42. );
  43. ?>