Revision: 6011
http://ipcop.svn.sourceforge.net/ipcop/?rev=6011&view=rev
Author: owes
Date: 2011-10-31 08:08:46 +0000 (Mon, 31 Oct 2011)
Log Message:
-----------
Add parameter to closepage() to be able to skip connection information.
Modified Paths:
--------------
ipcop/trunk/src/libs/header.pl
Modified: ipcop/trunk/src/libs/header.pl
===================================================================
--- ipcop/trunk/src/libs/header.pl 2011-10-31 07:46:48 UTC (rev 6010)
+++ ipcop/trunk/src/libs/header.pl 2011-10-31 08:08:46 UTC (rev 6011)
@@ -357,13 +357,16 @@
;
}
+#
+# Close GUI page. Use 'skip_connected' as parameter when connection
information should not be displayed.
+#
sub closepage
{
- my $status =
- &General::connectionstatus() . "<br />"
- . `/bin/date "+%Y-%m-%d %H:%M:%S"`
- . "<br /><br /><small>IPCop v${General::version} © 2001-2011 The
IPCop Team</small>";
+ my $connected = shift;
+ my $status = "<small>IPCop v${General::version} © 2001-2011 The IPCop
Team</small>";
+ $status = &General::connectionstatus() . "<br />" . `/bin/date "+%Y-%m-%d
%H:%M:%S"`. "<br /><br />$status" if ($connected ne 'skip_connected');
+
print <<END
<!-- IPCOP FOOTER -->
<table width='100%' border='0'><tr>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your Android app more play: Bring it to the BlackBerry PlayBook
in minutes. BlackBerry App World™ now supports Android™ Apps
for the BlackBerry® PlayBook™. Discover just how easy and simple
it is! http://p.sf.net/sfu/android-dev2dev
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn