From c9d5743c4a3915167123901682619b39b005b8bf Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 18 Oct 2012 10:17:49 +0000 Subject: [PATCH] Config: use app_icon_url to change the hyperlink used when clicking on the main icon SVN:trunk[2289] --- application/itopwebpage.class.inc.php | 3 ++- application/loginwebpage.class.inc.php | 6 ++++-- core/config.class.inc.php | 8 ++++++++ pages/logoff.php | 3 ++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 623ca0b00..63a3c718c 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -709,6 +709,7 @@ EOF $sApplicationBanner .= '
'.Dict::Format('UI:ApplicationEnvironment', $sEnvLabel).$sBackButton.'
'; } + $sIconUrl = Utils::GetConfig()->Get('app_icon_url'); $sOnlineHelpUrl = MetaModel::GetConfig()->Get('online_help'); //$sLogOffMenu = ""; @@ -716,7 +717,7 @@ EOF $sHtml .= ''; $sHtml .= '
'; $sHtml .= ' '; $sHtml .= '
'; $sHtml .= '
pin
'; diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index 39ae11f6c..2ffbab5cd 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -121,7 +121,8 @@ EOF $sAuthPwd = utils::ReadParam('suggest_pwd', '', true, 'raw_data'); $sVersionShort = Dict::Format('UI:iTopVersion:Short', ITOP_VERSION); - $this->add("
\n"); + $sIconUrl = Utils::GetConfig()->Get('app_icon_url'); + $this->add("
\n"); $this->add("
\n"); $this->add("

".Dict::S('UI:Login:Welcome')."

\n"); if ($bFailedLogin) @@ -176,7 +177,8 @@ function DoCheckPwd() } EOF ); - $this->add("
\n"); + $sIconUrl = Utils::GetConfig()->Get('app_icon_url'); + $this->add("
\n"); $this->add("
\n"); $this->add("

".Dict::S('UI:Login:ChangeYourPassword')."

\n"); if ($bFailedLogin) diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 7874d61d7..837ca38b9 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -100,6 +100,14 @@ class Config 'source_of_value' => '', 'show_in_conf_sample' => true, ), + 'app_icon_url' => array( + 'type' => 'string', + 'description' => 'Hyperlink to redirect the user when clicking on the application icon (in the main window, or login/logoff pages)', + 'default' => 'http://www.combodo.com/itop', + 'value' => '', + 'source_of_value' => '', + 'show_in_conf_sample' => false, + ), 'skip_check_to_write' => array( 'type' => 'bool', 'description' => 'Disable data format and integrity checks to boost up data load (insert or update)', diff --git a/pages/logoff.php b/pages/logoff.php index e26beecf6..61b12f67b 100644 --- a/pages/logoff.php +++ b/pages/logoff.php @@ -51,7 +51,8 @@ switch($sLoginMode) } $oPage = new LoginWebPage(); $sVersionShort = Dict::Format('UI:iTopVersion:Short', ITOP_VERSION); -$oPage->add("
\n"); +$sIconUrl = Utils::GetConfig()->Get('app_icon_url'); +$oPage->add("
\n"); $oPage->add("
\n"); $oPage->add("

".Dict::S('UI:LogOff:ThankYou')."

\n");