From 26759eb0ad485d640cd3560ebf2da61f5a7e9871 Mon Sep 17 00:00:00 2001
From: vogelor <vogelor@ispconfig3>
Date: Mon, 10 May 2010 14:15:32 -0400
Subject: [PATCH] The dashboard now shows if a new ISPConfig - Version is available
---
interface/web/dashboard/dashboard.php | 28 +++++++++++++++++-----------
1 files changed, 17 insertions(+), 11 deletions(-)
diff --git a/interface/web/dashboard/dashboard.php b/interface/web/dashboard/dashboard.php
index 53a745c..97795a8 100644
--- a/interface/web/dashboard/dashboard.php
+++ b/interface/web/dashboard/dashboard.php
@@ -79,17 +79,23 @@
//
//$app->tpl->setloop('warning', $warning);
//
-///*
-// * If there is any information to display, do it...
-//*/
-//$info = array();
-//
-//$info[] = array('info_msg' => 'IClaus1');
-//$info[] = array('info_msg' => 'IClaus2');
-//$info[] = array('info_msg' => 'IClaus3');
-//$info[] = array('info_msg' => 'IClaus4');
-//
-//$app->tpl->setloop('info', $info);
+
+
+/*
+ * If there is any information to display, do it...
+*/
+$info = array();
+
+/*
+ * Check the ISPConfig-Version
+*/
+$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);
/*
* Show all modules, the user is allowed to use
--
Gitblit v1.9.1