2016-10-22 14:57:10 +00:00
|
|
|
<?php
|
|
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
|
|
/**
|
|
|
|
* Server SQL executor
|
|
|
|
*
|
|
|
|
* @package PhpMyAdmin
|
|
|
|
*/
|
2018-04-14 09:18:00 +00:00
|
|
|
use PhpMyAdmin\Config\PageSettings;
|
|
|
|
use PhpMyAdmin\Response;
|
|
|
|
use PhpMyAdmin\SqlQueryForm;
|
2016-10-22 14:57:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
require_once 'libraries/common.inc.php';
|
|
|
|
|
2018-04-14 09:18:00 +00:00
|
|
|
PageSettings::showGroup('Sql');
|
2016-10-22 14:57:10 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Does the common work
|
|
|
|
*/
|
|
|
|
$response = Response::getInstance();
|
|
|
|
$header = $response->getHeader();
|
|
|
|
$scripts = $header->getScripts();
|
|
|
|
$scripts->addFile('makegrid.js');
|
2018-04-14 09:18:00 +00:00
|
|
|
$scripts->addFile('vendor/jquery/jquery.uitablefilter.js');
|
2016-10-22 14:57:10 +00:00
|
|
|
$scripts->addFile('sql.js');
|
|
|
|
|
|
|
|
require_once 'libraries/server_common.inc.php';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Query box, bookmark, insert data from textfile
|
|
|
|
*/
|
2018-04-14 09:18:00 +00:00
|
|
|
$response->addHTML(SqlQueryForm::getHtml());
|