sqlQueryForm = $sqlQueryForm; } /** * @return void */ public function index(): void { global $goto, $back; $header = $this->response->getHeader(); $scripts = $header->getScripts(); $scripts->addFile('makegrid.js'); $scripts->addFile('vendor/jquery/jquery.uitablefilter.js'); $scripts->addFile('sql.js'); PageSettings::showGroup('Sql'); Common::database(); /** * After a syntax error, we return to this script * with the typed query in the textarea. */ $goto = Url::getFromRoute('/database/sql'); $back = $goto; $this->response->addHTML($this->sqlQueryForm->getHtml( true, false, isset($_POST['delimiter']) ? htmlspecialchars($_POST['delimiter']) : ';' )); } }