Skip to content

Commit 26759eb

Browse files
author
vogelor
committed
The dashboard now shows if a new ISPConfig - Version is available
1 parent d6af2bd commit 26759eb

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

interface/web/dashboard/dashboard.php

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,23 @@
7979
//
8080
//$app->tpl->setloop('warning', $warning);
8181
//
82-
///*
83-
// * If there is any information to display, do it...
84-
//*/
85-
//$info = array();
86-
//
87-
//$info[] = array('info_msg' => 'IClaus1');
88-
//$info[] = array('info_msg' => 'IClaus2');
89-
//$info[] = array('info_msg' => 'IClaus3');
90-
//$info[] = array('info_msg' => 'IClaus4');
91-
//
92-
//$app->tpl->setloop('info', $info);
82+
83+
84+
/*
85+
* If there is any information to display, do it...
86+
*/
87+
$info = array();
88+
89+
/*
90+
* Check the ISPConfig-Version
91+
*/
92+
$new_version = @file_get_contents('http://www.ispconfig.org/downloads/ispconfig3_version.txt');
93+
$new_version = trim($new_version);
94+
if($new_version != ISPC_APP_VERSION) {
95+
$info[] = array('info_msg' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org">See more...</a>');
96+
}
97+
98+
$app->tpl->setloop('info', $info);
9399

94100
/*
95101
* Show all modules, the user is allowed to use

interface/web/themes/default/css/screen/content_ispc.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,20 +234,23 @@
234234
.dashboard-modules {
235235
float:left;
236236
width:100px;
237-
height: 20px;
237+
height: 100px;
238238
border:1px dotted #888888;
239239
background-color: #cccccc;
240240
margin:10px;
241-
padding:10px;
242241
background-position: center 5px;
243242
background-repeat: no-repeat;
244-
padding-top: 70px;
245243
text-align: center;
246244
}
247245

248-
.dashboard-modules a{
249-
color: Black;
250-
font-weight: bold;
246+
.dashboard-modules a, .dashboard-modules a:hover{
247+
color:Black;
248+
display:block;
249+
font-weight:bold;
250+
height:30px;
251+
padding-top:70px;
252+
width:100px;
253+
text-decoration: none;
251254
}
252255

253256
.dashboard-modules.admin { background-image: url('../../icons/x64/system.png') !important; }

0 commit comments

Comments
 (0)