From 4f5961373605708a0a43284ebf999d453354fe30 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 4 Nov 2008 09:19:36 +0000 Subject: [PATCH] Don't allow editing in information_schema git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@538 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- select.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/select.inc.php b/select.inc.php index 062c160d..a66c37ad 100644 --- a/select.inc.php +++ b/select.inc.php @@ -237,17 +237,17 @@ for (var i=0; > i; i++) { } echo "
\n"; - echo "\n"; + echo "
\n"; for ($j=0; $row = $result->fetch_assoc(); $j++) { if (!$j) { - echo '' . (count($select) == count($group) ? '' : ''); + echo ''; foreach ($row as $key => $val) { echo '"; } echo "\n"; } $unique_idf = implode('&', unique_idf($row, $indexes)); - echo '' . (count($select) == count($group) ? '' : ''); + echo '' : ''); foreach ($row as $key => $val) { if (!isset($val)) { $val = "NULL"; @@ -300,8 +300,8 @@ for (var i=0; > i; i++) { } echo " (" . lang('%d row(s)', $found_rows) . ")

\n"; - echo "
" . lang('Edit') . "
\n"; - echo "
" . lang('Export') . "
$dump_options
\n"; + echo ($_GET["db"] != "information_schema" ? "
" . lang('Edit') . "
\n" : ""); + echo "
" . lang('Export') . "
$dump_options
\n"; echo "\n"; } $result->free();
' . htmlspecialchars($key) . "
' . lang('edit') . ' ' . lang('clone') . '
' . (count($select) == count($group) && $_GET["db"] != "information_schema" ? ' ' . lang('edit') . ' ' . lang('clone') . '