From cd0758422e946230628165aa894d44e186169506 Mon Sep 17 00:00:00 2001
From: jakubvrana " . htmlspecialchars($query) . '
' . lang('Edit') . '';
+ $sql = " " . lang('SQL command') . "" . htmlspecialchars($query) . '
' . lang('Edit') . '';
$_SESSION["history"][$_GET["server"]][$_GET["db"]][] = $query;
}
if ($execute) {
@@ -230,9 +230,9 @@ function is_utf8($val) {
return (preg_match('~~u', $val) && !preg_match('~[\\0-\\x8\\xB\\xC\\xE-\\x1F]~', $val));
}
-function shorten_utf8($string, $length) {
+function shorten_utf8($string, $length = 80, $suffix = "") {
preg_match("~^(.{0,$length})(.?)~su", $string, $match);
- return htmlspecialchars($match[1]) . ($match[2] ? "..." : "");
+ return htmlspecialchars($match[1]) . $suffix . ($match[2] ? "..." : "");
}
function friendly_url($val) {
diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php
index 6155aee0..5e546868 100644
--- a/adminer/lang/cs.inc.php
+++ b/adminer/lang/cs.inc.php
@@ -57,7 +57,6 @@ $translations = array(
'Select' => 'Vypsat',
'New item' => 'Nová položka',
'Search' => 'Vyhledat',
- 'Sort' => 'Setřídit',
'ASC' => 'vzestupně',
'DESC' => 'sestupně',
'Limit' => 'Limit',
@@ -196,7 +195,6 @@ $translations = array(
'Move' => 'Přesunout',
'Engine' => 'Úložiště',
'Save and continue edit' => 'Uložit a pokračovat v editaci',
- 'clone' => 'klonovat',
'original' => 'původní',
'%d item(s) have been affected.' => array('Byl ovlivněn %d záznam.', 'Byly ovlivněny %d záznamy.', 'Bylo ovlivněno %d záznamů.'),
'whole result' => 'celý výsledek',
@@ -215,4 +213,5 @@ $translations = array(
'Maximum number of allowed fields exceeded. Please increase %s and %s.' => 'Byl překročen maximální povolený počet polí. Zvyšte prosím %s a %s.',
'(anywhere)' => '(kdekoliv)',
'%.3f s' => '%.3f s',
+ 'History' => 'Historie',
);
diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php
index 8e5b81af..1eca30b9 100644
--- a/adminer/sql.inc.php
+++ b/adminer/sql.inc.php
@@ -1,10 +1,14 @@
" . shorten_utf8(trim(substr($query, 0, $match[0][1])), 100) . "\n";
+ echo "" . shorten_utf8(trim(substr($query, 0, $match[0][1]))) . "
\n";
flush();
$start = explode(" ", microtime());
//! don't allow changing of character_set_results, convert encoding of displayed query
@@ -79,5 +83,16 @@ if (!ini_get("file_uploads")) {
' . shorten_utf8(str_replace("\n", " ", $val), 80, "
") . "