1
0
mirror of https://github.com/vrana/adminer.git synced 2025-09-03 11:22:35 +02:00

Avoid showing version on login page (and css/js version)

Thanks to MisterDuval (https://github.com/adminerevo/adminerevo/pull/180)
This commit is contained in:
Peter Knut
2024-08-17 00:47:23 +02:00
parent 949b39b191
commit 47ccfa2a2e
3 changed files with 11 additions and 5 deletions

View File

@@ -580,8 +580,11 @@ qsl('div').onclick = whisperClick;", "")
global $VERSION;
?>
<h1>
<?php echo $this->name(); ?> <span class="version"><?php echo $VERSION; ?></span>
<a href="https://www.adminer.org/editor/#download"<?php echo target_blank(); ?> id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
<?php echo $this->name(); ?>
<?php if ($missing != "auth"): ?>
<span class="version"><?php echo $VERSION; ?></span>
<a href="https://www.adminer.org/editor/#download"<?php echo target_blank(); ?> id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
<?php endif; ?>
</h1>
<?php
if ($missing == "auth") {