mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 08:06:59 +02:00
Collapse history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1309 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -158,13 +158,13 @@ echo lang('Webserver file %s', "<code>adminer.sql" . ($compress ? "[" . implode(
|
||||
|
||||
<?php
|
||||
if ($history) {
|
||||
echo "<fieldset><legend>" . lang('History') . "</legend>\n";
|
||||
print_fieldset("history", lang('History'), $_GET["history"] != "");
|
||||
foreach ($history as $key => $val) {
|
||||
//! save and display timestamp
|
||||
echo '<a href="' . h(ME . "sql=&history=$key") . '">' . lang('Edit') . '</a> <code class="jush-sql">' . shorten_utf8(ltrim(str_replace("\n", " ", str_replace("\r", "", preg_replace('~^(#|-- ).*~m', '', $val)))), 80, "</code>") . "<br>\n";
|
||||
}
|
||||
echo "<input type='submit' name='clear' value='" . lang('Clear') . "'>\n";
|
||||
echo "</fieldset>\n";
|
||||
echo "</div></fieldset>\n";
|
||||
}
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user