vogelor
2010-05-10 05d4825e5850d2a67a3d4e2eefc971d257d5112d
The new version is only displayed for the admin (aargh)
1 files modified
4 ■■■ changed files
interface/web/dashboard/dashboard.php 4 ●●● patch | view | raw | blame | history
interface/web/dashboard/dashboard.php
@@ -87,13 +87,15 @@
$info = array();
/*
 * Check the ISPConfig-Version
 * Check the ISPConfig-Version (only for the admin)
*/
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt');
$new_version = trim($new_version);
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);