Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/xampp/phpMyAdmin/libraries/classes/Controllers/Table/ |
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Holds the PhpMyAdmin\Controllers\Table\SqlController * * @package PhpMyAdmin\Controllers\Table */ declare(strict_types=1); namespace PhpMyAdmin\Controllers\Table; use PhpMyAdmin\Config\PageSettings; use PhpMyAdmin\SqlQueryForm; /** * Table SQL executor * @package PhpMyAdmin\Controllers\Table */ class SqlController extends AbstractController { /** * @param array $params Request parameters * @param SqlQueryForm $sqlQueryForm SqlQueryForm instance * * @return string HTML */ public function index(array $params, SqlQueryForm $sqlQueryForm): string { global $url_query, $err_url, $goto, $back; PageSettings::showGroup('Sql'); require ROOT_PATH . 'libraries/tbl_common.inc.php'; $url_query .= '&goto=tbl_sql.php&back=tbl_sql.php'; $err_url = 'tbl_sql.php' . $err_url; /** * After a syntax error, we return to this script * with the typed query in the textarea. */ $goto = 'tbl_sql.php'; $back = 'tbl_sql.php'; return $sqlQueryForm->getHtml( $params['sql_query'] ?? true, false, isset($params['delimiter']) ? htmlspecialchars($params['delimiter']) : ';' ); } }