File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 8787$ info = array ();
8888
8989/*
90- * Check the ISPConfig-Version
90+ * Check the ISPConfig-Version (only for the admin)
9191*/
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> ' );
92+ if ($ _SESSION ["s " ]["user " ]["typ " ] == 'admin ' ) {
93+ $ new_version = @file_get_contents ('http://www.ispconfig.org/downloads/ispconfig3_version.txt ' );
94+ $ new_version = trim ($ new_version );
95+ if ($ new_version != ISPC_APP_VERSION ) {
96+ $ info [] = array ('info_msg ' => 'There is a new Version of ISPConfig 3 available! <a href="http://www.ispconfig.org">See more...</a> ' );
97+ }
9698}
9799
98100$ app ->tpl ->setloop ('info ' , $ info );
You can’t perform that action at this time.
0 commit comments