Revision: 6538
http://ipcop.svn.sourceforge.net/ipcop/?rev=6538&view=rev
Author: owes
Date: 2012-04-09 13:02:30 +0000 (Mon, 09 Apr 2012)
Log Message:
-----------
Use same text/info as in index.cgi
Modified Paths:
--------------
ipcop/trunk/html/cgi-bin/updates.cgi
ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0
Modified: ipcop/trunk/html/cgi-bin/updates.cgi
===================================================================
--- ipcop/trunk/html/cgi-bin/updates.cgi 2012-04-09 12:58:45 UTC (rev
6537)
+++ ipcop/trunk/html/cgi-bin/updates.cgi 2012-04-09 13:02:30 UTC (rev
6538)
@@ -19,7 +19,7 @@
# (c) The SmoothWall Team
#
# With many, many changes since 2001,
-# (c) 2001-2011, the IPCop team
+# (c) 2001-2012, the IPCop team
#
# $Id$
#
@@ -185,13 +185,13 @@
&Header::closebox();
}
-my $age = &General::age("/var/ipcop/patches/available.xml");
-if ($age =~ m/(\d{1,3})d/) {
- if ($1 >= 7) {
- &Header::openbox('100%', 'left', $Lang::tr{'warning messages'},
'warning');
- print "$Lang::tr{'updates is old1'} $1 $Lang::tr{'updates is old3'}";
- &Header::closebox();
- }
+# Patches warning
+my $patchmessage = &General::ispatchavailable();
+if ($patchmessage ne '') {
+ &Header::openbox('100%', 'left', $Lang::tr{'warning messages'}, 'warning');
+ print $patchmessage;
+ print " ";
+ &Header::closebox();
}
$checked{'CHECKUPDATES'}{'off'} = '';
Modified: ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0
===================================================================
--- ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 2012-04-09 12:58:45 UTC
(rev 6537)
+++ ipcop/trunk/updates/2.1.0/ROOTFILES.i486-2.1.0 2012-04-09 13:02:30 UTC
(rev 6538)
@@ -15,6 +15,7 @@
/home/httpd/cgi-bin/shaping.cgi
/home/httpd/cgi-bin/status.cgi
/home/httpd/cgi-bin/time.cgi
+/home/httpd/cgi-bin/updates.cgi
/home/httpd/cgi-bin/urlfilter.cgi
/home/httpd/html/images/redirect-background.png
/sbin/mkinitramfs
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn