diff --git a/design.inc.php b/design.inc.php index 99d6c784..24c8901b 100644 --- a/design.inc.php +++ b/design.inc.php @@ -21,9 +21,11 @@ PRE { margin: 0; margin: .12em 0; } #menu { position: absolute; top: 8px; left: 8px; width: 15em; overflow: auto; white-space: nowrap; } #content { margin-left: 16em; } + + - +
table) && $field->primary_key) { $links[$j] = $field->table; if (!isset($indexes[$field->table])) { diff --git a/index.php b/index.php index 8d2fce9f..af6f606b 100644 --- a/index.php +++ b/index.php @@ -5,8 +5,8 @@ session_start(); error_reporting(E_ALL & ~E_NOTICE); $SELF = preg_replace('~^[^?]*/([^?]*).*~', '\\1?', $_SERVER["REQUEST_URI"]) . (strlen($_GET["server"]) ? 'server=' . urlencode($_GET["server"]) . '&' : '') . (strlen($_GET["db"]) ? 'db=' . urlencode($_GET["db"]) . '&' : ''); $TOKENS = &$_SESSION["tokens"][$_GET["server"]][preg_replace('~([?&]sql=)upload~', '\\1', $_SERVER["REQUEST_URI"])]; -include "./lang.inc.php"; include "./functions.inc.php"; +include "./lang.inc.php"; include "./design.inc.php"; include "./auth.inc.php"; include "./connect.inc.php"; @@ -58,7 +58,7 @@ if (isset($_GET["dump"])) { echo ""; echo "" . htmlspecialchars($row["ROUTINE_TYPE"]) . ""; echo '' . htmlspecialchars($row["ROUTINE_NAME"]) . ''; - echo "
" . htmlspecialchars($row["ROUTINE_DEFINITION"]) . "
"; + echo "
" . htmlspecialchars($row["ROUTINE_DEFINITION"]) . "
"; echo "\n"; } echo "\n"; diff --git a/sql.inc.php b/sql.inc.php index 3d6d88a1..55ab1825 100644 --- a/sql.inc.php +++ b/sql.inc.php @@ -17,7 +17,7 @@ if ($_POST && $error) { $offset = $match[0][1] + strlen($match[0][0]); } else { $empty = false; - echo "
" . htmlspecialchars(substr($query, 0, $match[0][1])) . "
\n"; + echo "
" . htmlspecialchars(substr($query, 0, $match[0][1])) . "
\n"; $result = mysql_query(substr($query, 0, $match[0][1])); $query = substr($query, $match[0][1] + strlen($match[0][0])); $offset = 0; diff --git a/table.inc.php b/table.inc.php index d97eef4b..958231e9 100644 --- a/table.inc.php +++ b/table.inc.php @@ -50,7 +50,7 @@ if (mysql_get_server_info() >= 5) { echo "

" . lang('Triggers') . "

\n"; echo "\n"; while ($row = mysql_fetch_assoc($result)) { - echo "\n"; + echo "\n"; } echo "
$row[Timing]$row[Event]
" . htmlspecialchars($row["Statement"]) . "
$row[Timing]$row[Event]
" . htmlspecialchars($row["Statement"]) . "
\n"; } diff --git a/view.inc.php b/view.inc.php index 601e5058..7721dc94 100644 --- a/view.inc.php +++ b/view.inc.php @@ -1,3 +1,3 @@ " . htmlspecialchars(preg_replace('~^.* AS ~U', '', mysql_result(mysql_query("SHOW CREATE VIEW " . idf_escape($_GET["view"])), 0, 1))) . "\n"; +echo "
" . htmlspecialchars(preg_replace('~^.* AS ~U', '', mysql_result(mysql_query("SHOW CREATE VIEW " . idf_escape($_GET["view"])), 0, 1))) . "
\n";