1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

Simpler customization of name() link

This commit is contained in:
Jakub Vrana
2011-04-03 08:27:34 -07:00
parent 46dad6eec3
commit 3ebfdd30c1
2 changed files with 5 additions and 7 deletions

View File

@@ -4,10 +4,10 @@ class Adminer {
var $operators; var $operators;
/** Name in title and navigation /** Name in title and navigation
* @return string * @return string HTML code
*/ */
function name() { function name() {
return "Adminer"; return "<a href='http://www.adminer.org/' id='h1'>Adminer</a>";
} }
/** Connection parameters /** Connection parameters
@@ -719,8 +719,7 @@ DROP PROCEDURE adminer_alter;
global $VERSION, $connection, $token, $jush, $drivers; global $VERSION, $connection, $token, $jush, $drivers;
?> ?>
<h1> <h1>
<a href="http://www.adminer.org/" id="h1"><?php echo $this->name(); ?></a> <?php echo $this->name(); ?> <span class="version"><?php echo $VERSION; ?></span>
<span class="version"><?php echo $VERSION; ?></span>
<a href="http://www.adminer.org/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a> <a href="http://www.adminer.org/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
</h1> </h1>
<?php <?php

View File

@@ -4,7 +4,7 @@ class Adminer {
var $_values = array(); var $_values = array();
function name() { function name() {
return lang('Editor'); return "<a href='http://www.adminer.org/editor/' id='h1'>" . lang('Editor') . "</a>";
} }
//! driver, ns //! driver, ns
@@ -511,8 +511,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
global $VERSION, $token; global $VERSION, $token;
?> ?>
<h1> <h1>
<a href="http://www.adminer.org/" id="h1"><?php echo $this->name(); ?></a> <?php echo $this->name(); ?> <span class="version"><?php echo $VERSION; ?></span>
<span class="version"><?php echo $VERSION; ?></span>
<a href="http://www.adminer.org/editor/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a> <a href="http://www.adminer.org/editor/#download" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
</h1> </h1>
<?php <?php