Skip to content
Snippets Groups Projects
Commit 05d4825e authored by vogelor's avatar vogelor
Browse files

The new version is only displayed for the admin (aargh)

parent d1d9bc51
No related branches found
No related tags found
No related merge requests found
...@@ -87,12 +87,14 @@ $app->tpl->setVar('welcome_user', $welcome); ...@@ -87,12 +87,14 @@ $app->tpl->setVar('welcome_user', $welcome);
$info = array(); $info = array();
/* /*
* Check the ISPConfig-Version * Check the ISPConfig-Version (only for the admin)
*/ */
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt'); if($_SESSION["s"]["user"]["typ"] == 'admin') {
$new_version = trim($new_version); $new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt');
if($new_version != ISPC_APP_VERSION) { $new_version = trim($new_version);
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org">See more...</a>'); if($new_version != ISPC_APP_VERSION) {
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org">See more...</a>');
}
} }
$app->tpl->setloop('info', $info); $app->tpl->setloop('info', $info);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment