✏️ 编辑:db_sql_format.php
路径:
/virtual/bigbrother/public_html/log/phpmyadmin/db_sql_format.php
大小:485 B · 修改:2018-04-09 09:05:48 · 权限:0705 · 可写
← 返回目录
👁 查看
⬇ 下载
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Format SQL for SQL editors * * @package PhpMyAdmin */ use PhpMyAdmin\Response; /** * Loading common files. Used to check for authorization, localization and to * load the parsing library. */ require_once 'libraries/common.inc.php'; $query = !empty($_POST['sql']) ? $_POST['sql'] : ''; $query = PhpMyAdmin\SqlParser\Utils\Formatter::format($query); $response = Response::getInstance(); $response->addJSON("sql", $query);
💾 保存
取消
保存为 UTF-8,换行统一为 LF