]> git.joonet.de Git - adminer.git/commitdiff
Open external links to a new window
authorJakub Vrana <jakub@vrana.cz>
Thu, 19 Dec 2013 17:31:37 +0000 (09:31 -0800)
committerJakub Vrana <jakub@vrana.cz>
Thu, 19 Dec 2013 17:31:37 +0000 (09:31 -0800)
adminer/include/adminer.inc.php
editor/include/adminer.inc.php

index 787fec8b7ed953e7562d1e76e632ce3e0ef37b73..6a61457e917c0ebfa91302cd0d90874f974748f7 100644 (file)
@@ -9,7 +9,7 @@ class Adminer {
        * @return string HTML code
        */
        function name() {
-               return "<a href='http://www.adminer.org/' id='h1'>Adminer</a>";
+               return "<a href='http://www.adminer.org/' target='_blank' id='h1'>Adminer</a>";
        }
 
        /** Connection parameters
@@ -756,7 +756,7 @@ username.form['auth[driver]'].onchange();
                ?>
 <h1>
 <?php echo $this->name(); ?> <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" target="_blank" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
 </h1>
 <?php
                if ($missing == "auth") {
index 2f8bcb98082fe390070f0c779a5bc66cf8fa027a..87a47d3ddb28e007fbc137858eeb47219c6f2f00 100644 (file)
@@ -4,7 +4,7 @@ class Adminer {
        var $_values = array();
 
        function name() {
-               return "<a href='http://www.adminer.org/editor/' id='h1'>" . lang('Editor') . "</a>";
+               return "<a href='http://www.adminer.org/editor/' target='_blank' id='h1'>" . lang('Editor') . "</a>";
        }
 
        //! driver, ns
@@ -544,7 +544,7 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
                ?>
 <h1>
 <?php echo $this->name(); ?> <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" target="_blank" id="version"><?php echo (version_compare($VERSION, $_COOKIE["adminer_version"]) < 0 ? h($_COOKIE["adminer_version"]) : ""); ?></a>
 </h1>
 <?php
                if ($missing == "auth") {