Collapse history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1309 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
8771386114
commit
5f6594e943
|
@ -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";
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
Loading…
Reference in a new issue