Skip to content

Commit 3ed4501

Browse files
author
vogelor
committed
View a little bit more info at the dashboard (ISPC-Version)
1 parent 0123869 commit 3ed4501

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

interface/web/dashboard/dashboard.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@
9292
if($_SESSION["s"]["user"]["typ"] == 'admin') {
9393
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt');
9494
$new_version = trim($new_version);
95+
$v1 = ISPC_APP_VERSION;
96+
$v2 = $new_version;
9597
$this_version = explode(".",ISPC_APP_VERSION);
9698
$this_fullversion = (($this_version[0] < 10) ? '0'.$this_version[0] : $this_version[0]) .
9799
(($this_version[1] < 10) ? '0'.$this_version[1] : $this_version[1]) .
@@ -105,7 +107,10 @@
105107
(($new_version[2] < 10) ? '0'.$new_version[2] : $new_version[2]) .
106108
(($new_version[3] < 10) ? (($new_version[3] < 1) ? '00' : '0'.$new_version[3]) : $new_version[3]);
107109
if($new_fullversion > $this_fullversion) {
108-
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org/ispconfig-3/download">See more...</a>');
110+
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available!<br>' .
111+
'This Version: ' . $v1 . '<br>' .
112+
'New Version : ' . $v2 .
113+
'<br><br><a href="http://www.ispconfig.org/ispconfig-3/download" target="ISPC">See more...</a>');
109114
}
110115
}
111116

0 commit comments

Comments
 (0)