tbl_sql.php 928 B

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