Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
05d4825e
Commit
05d4825e
authored
May 10, 2010
by
vogelor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The new version is only displayed for the admin (aargh)
parent
d1d9bc51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
interface/web/dashboard/dashboard.php
interface/web/dashboard/dashboard.php
+7
-5
No files found.
interface/web/dashboard/dashboard.php
View file @
05d4825e
...
...
@@ -87,12 +87,14 @@ $app->tpl->setVar('welcome_user', $welcome);
$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'
);
$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>'
);
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment