[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[5630] ipcop/trunk
From:       owes () users ! sourceforge ! net
Date:       2011-04-20 5:32:17
Message-ID: E1QCQ1R-0007M5-MD () sfp-svn-2 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 5630
          http://ipcop.svn.sourceforge.net/ipcop/?rev=5630&view=rev
Author:   owes
Date:     2011-04-20 05:32:17 +0000 (Wed, 20 Apr 2011)

Log Message:
-----------
Add short and longmonths (used in log CGIs) as global variable.

Modified Paths:
--------------
    ipcop/trunk/src/libs/general-functions.pl
    ipcop/trunk/updates/1.9.20/ROOTFILES.i486-1.9.20

Modified: ipcop/trunk/src/libs/general-functions.pl
===================================================================
--- ipcop/trunk/src/libs/general-functions.pl	2011-04-20 05:16:14 UTC (rev 5629)
+++ ipcop/trunk/src/libs/general-functions.pl	2011-04-20 05:32:17 UTC (rev 5630)
@@ -1,14 +1,20 @@
-# SmoothWall CGIs
 #
-# This code is distributed under the terms of the GPL
+# general-functions.pl: various global variables, helper functions, etc. for scripts \
and the web GUI  #
+# This file is part of the IPCop Firewall.
+#
+# IPCop is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
 # (c) The SmoothWall Team
 # Copyright (C) 2002 Alex Hudson - getcgihash() rewrite
 # Copyright (C) 2002 Bob Grant <bob@cache.ucr.edu> - validmac()
 # Copyright (c) 2002/04/13 Steve Bootes - add alias section, helper functions
 # Copyright (c) 2002/08/23 Mark Wormgoor <mark@wormgoor.com> validfqdn()
 # Copyright (c) 2003/09/11 Darren Critchley <darrenc@telus.net> srtarray()
-# Copyright (c) 2004-2010 The IPCop Team
+# Copyright (c) 2004-2011 The IPCop Team
 #
 # $Id$
 #
@@ -34,6 +40,16 @@
 # $Lang::tr{'sunday'} $Lang::tr{'monday'} $Lang::tr{'tuesday'} \
$Lang::tr{'wednesday'}  # $Lang::tr{'thursday'} $Lang::tr{'friday'} \
$Lang::tr{'saturday'}  
+@General::shortMonths = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', \
'Sep', 'Oct', 'Nov', 'Dec'); +@General::longMonths = (
+    'january', 'february', 'march',     'april',   'may',      'june',
+    'july',    'august',   'september', 'october', 'november', 'december'
+);
+# Make sure the months are seen by translation stuff
+# $Lang::tr{'january'},   $Lang::tr{'february'}, $Lang::tr{'march'},    \
$Lang::tr{'april'}, +# $Lang::tr{'may'},       $Lang::tr{'june'},     \
$Lang::tr{'july'},     $Lang::tr{'august'}, +# $Lang::tr{'september'}, \
$Lang::tr{'october'},  $Lang::tr{'november'}, $Lang::tr{'december'} +
 #
 # log ("message") use default 'ipcop' tag
 # log ("tag","message") use your tag

Modified: ipcop/trunk/updates/1.9.20/ROOTFILES.i486-1.9.20
===================================================================
--- ipcop/trunk/updates/1.9.20/ROOTFILES.i486-1.9.20	2011-04-20 05:16:14 UTC (rev \
                5629)
+++ ipcop/trunk/updates/1.9.20/ROOTFILES.i486-1.9.20	2011-04-20 05:32:17 UTC (rev \
5630) @@ -1,6 +1,7 @@
 ## please place IPCop files first, then packages sorted by alphabetical order
 /home/httpd/cgi-bin/email.cgi
 /home/httpd/cgi-bin/proxy.cgi
+/usr/lib/ipcop/general-functions.pl
 /usr/local/bin/emailhelper
 /usr/local/sbin/setup
 ##


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic