From 645cf9f978a20c70fa07f599cee4385bdbbec051 Mon Sep 17 00:00:00 2001 From: Alexei Yuzhakov Date: Sun, 14 Jun 2015 20:46:11 +0600 Subject: [PATCH 1/7] Prohibit the ability to check version if it was disabled. Signed-off-by: Alexei Yuzhakov --- libraries/Util.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/Util.class.php b/libraries/Util.class.php index 7a4ef957bd..dd6cad089f 100644 --- a/libraries/Util.class.php +++ b/libraries/Util.class.php @@ -4491,6 +4491,10 @@ class PMA_Util */ public static function getLatestVersion() { + if (!$GLOBALS['cfg']['VersionCheck']) { + return array(); + } + // wait 3s at most for server response, it's enough to get information // from a working server $connection_timeout = 3; From 1a0005418bf6f07ff0ac29d9e96702d2fba0e759 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Mon, 15 Jun 2015 00:41:27 +0200 Subject: [PATCH 2/7] Manage logo display in navigation panel, with a template. Signed-off-by: Hugues Peccatte --- .../navigation/NavigationHeader.class.php | 95 +++++++++++-------- templates/logo.phtml | 15 +++ 2 files changed, 70 insertions(+), 40 deletions(-) create mode 100644 templates/logo.phtml diff --git a/libraries/navigation/NavigationHeader.class.php b/libraries/navigation/NavigationHeader.class.php index 9d9ec76ab3..a5023e4a27 100644 --- a/libraries/navigation/NavigationHeader.class.php +++ b/libraries/navigation/NavigationHeader.class.php @@ -9,6 +9,9 @@ if (! defined('PHPMYADMIN')) { exit; } +require_once 'libraries/Template.class.php'; +use PMA\Template; + /** * This class renders the logo, links, server selection, * which are then displayed at the top of the navigation panel @@ -73,11 +76,10 @@ class PMA_NavigationHeader */ private function _logo() { - $retval = ''; // display Logo, depending on $GLOBALS['cfg']['NavigationDisplayLogo'] if (!$GLOBALS['cfg']['NavigationDisplayLogo']) { - $retval .= ''; - return $retval; + return Template::get('logo') + ->render(array('displayLogo' => false)); } $logo = 'phpMyAdmin'; @@ -88,44 +90,57 @@ class PMA_NavigationHeader $logo = ''; } - $retval .= '