Commit Graph

222 Commits

Author SHA1 Message Date
Phil Davis
5b7c33fc7e Firewall Rules Apply be friendly to other languages
Forum: https://forum.pfsense.org/index.php?topic=86808.0
Redmine: https://redmine.pfsense.org/issues/3886

print_info_box_np() when called with just the first $msg parameter has some rough tests to decide if the "Apply" button should be displayed. It checks if the translation of "apply", "save" or "create" appears in the $msg string (which is a translated string itself). If the $msg string did not translate, and thus remains in English, but gettext("apply") does translate then the e.g. Turkish word for "apply" is not going to appear in the English $msg string. So things go wrong.

print_info_box_np already has extra parameters to tell it explicitly $showapply - and for this stuff we know we want the apply button, regardless of how the various text string translations work out. Thus I have provided those parameters here.

I also changed the construction of the text to pass as $msg, breaking it up like in firewall_aliases.php - this means that the string "You must apply the changes in order for them to take effect." translates and you get at least that Turkish displayed.

IMHO it would be beneficial to change lots of these print_info_box_np calls to explicitly set $showapply=true - that will ensure that the apply button shows (and thus the user can perform the needed actions) regardless of how well/not well the translation of the text turns out.
2015-01-15 19:05:32 -02:00
Phil Davis
6317d31dfc Fix lineup of copyright lines
and module names and other bits of formatting and typos in header
comment sections.
2015-01-01 10:13:14 -02:00
Renato Botelho
d961e7e33e Welcome 2015 2014-12-31 16:22:27 -02:00
Renato Botelho
d3bf4a4163 Split ICMP and ICMPv6 types on Firewall Rules
- Remove redundant declaration of $icmptypes and move it to a common
place (filter.inc)
- Add missing ICMP types for v4
- Add ICMPv6 types
- Adjust javascripts to show correct options depending of IP Protocol
- Hide ICMP type selection when protocol is IPv4+v6

It fixes #3389
2014-12-11 19:47:05 -02:00
Jim Thompson
dd447bde2b modify copyright statement to reflect reality 2014-11-10 22:49:50 -06:00
Renato Botelho
6f3d20631d Replace Header() calls by lowercase 2014-06-13 08:59:57 -03:00
Colin Fleming
c739be2cf4 Add "match" to floating rules
Add "match" to floating rules as proposed in the forums
https://forum.pfsense.org/index.php?topic=76611.0
Remove Windows Thumbnail cache files
2014-05-16 20:46:31 +01:00
ayvis
07130afe2b removed duplicate type=text/javascript
added type for <script>
2014-03-25 23:32:27 +01:00
ayvis
91f026b02c replaced uppercase html tags with lowercase
js files saved as UTF-8 / LF
language="JavaScript" deprecated, replaced with type="text/javascript"
2014-03-19 23:38:56 +01:00
Renato Botelho
7f7626ba44 Merge branch 'master-br' of https://github.com/ayvis/pfsense into ayvis-master-br 2014-03-17 11:17:29 -03:00
Chris Buechler
c728177042 standardize on www.pfsense.org and HTTPS, point package URLs to
packages.pfsense.org
2014-03-14 19:04:43 -05:00
ayvis
8cd558b61b xhtml Compliance
replaced <br>, <br/> and </br> with <br />
2014-03-14 21:24:03 +01:00
Luiz Gustavo Costa
15e477769d more fix some variables gettext 2014-03-07 14:00:48 -03:00
Colin Fleming
fd35c8c15a Update "firewall_rules.php"
Remove double quotes
2013-04-22 14:45:02 +02:00
Colin Fleming
44605bc8ce Tidy up "firewall_rules.php" XHTML
Add summary to TABLE tags
Move space character to within the SPAN tag
Tidy up P tag
2013-04-17 16:20:31 +01:00
Colin Fleming
f4245bbc11 Tidy up "firewall_rules.php" XHTML
Close INPUT, BR and IMG tags and add ALT to IMG tags
Deprecate the ampersand in ANCHOR tags
Move NOWRAP to class statement
Add missing closing FONT
Add missing opening and closing TR tags
Add CDATA sections to SCRIPT tags
2013-04-09 14:39:03 +01:00
jim-p
f7344c521d Fix extra curly that is breaking firewall rules 2013-03-01 09:42:22 -05:00
Renato Botelho
56dda8e089 Fix indent and whitespaces 2013-02-28 19:51:43 -03:00
Colin Fleming
1fe0d1a191 Spelling mistake 2013-01-14 13:43:20 +00:00
Colin Fleming
a3381369d9 Update PHP shorthand tag
Standardise all PHP start tags from "<?" to "<?PHP"
2013-01-14 13:27:36 +00:00
jim-p
e653b6e118 Encode the if parameter before using it in redirects, too.
Conflicts:

	usr/local/www/firewall_rules.php
2012-10-31 14:06:34 -04:00
jim-p
3a343d7384 Refine saving/applying on more pages - don't show apply or take an action unless the user is allowed to do that. 2012-10-09 15:17:00 -04:00
jim-p
bec92ab9e2 Don't offer to apply changes if no changes actually happened. 2012-10-09 10:44:14 -04:00
Darren Embry
59167b10fb fix some imbalanced HTML tags
hopefully this will fix #2625 but this needs to be done anyway.
2012-09-06 14:47:00 -04:00
jim-p
b32dd0a6b7 Activate new shortcuts/status in the rest of the areas that are currently setup. 2012-08-10 13:32:16 -04:00
Charlie Root
4e8854c66a improve alias popup in firewall_rules
include url_table list up to 10000 items
read alias only on mouseover
use table to list columns
show edit shortcut
show total items value on popup description
2012-06-16 17:58:51 +00:00
smos
05a4cebd90 Add a inet46 filter type on the firewall rules page. I have locked down a few of the most common limitations.
Still arguing if we should lock this down even further to aliases only.
Redmine ticket #2466
2012-05-31 20:08:55 +02:00
jim-p
31f0ef215e Switch to a common function to determine anti-lockout ports, and fix a bug that was getting the ports wrong with custom https+redirect on. 2012-05-25 12:14:34 -04:00
Darren Embry
0416d9a0eb fix for #2289: Logic error in firewall rule interface selection for drop-down menu case 2012-04-06 14:15:16 -04:00
jim-p
7be4635326 If no rules are defined on the floating rules tab, show a more relevant message. 2012-02-23 08:48:14 -05:00
Vinicius Coque
6134cc8fe0 now we use the Chosen javascript plugin for jQuery 2011-11-15 15:12:17 -02:00
Vinicius Coque
df39dd8ab4 replacing prototype by jQuery on firewall_* 2011-10-10 21:00:06 -03:00
jim-p
badc234035 Fix bottom note when viewing Floating rules to better reflect how they operate. 2011-08-30 15:30:10 -04:00
jim-p
d3347fdf2b Fix display of ssh port on anti-lockout rule display in GUI. 2011-07-28 14:24:46 -04:00
Scott Ullrich
b733ce0d13 Adding hook for first tr 2011-07-23 22:53:47 -04:00
Scott Ullrich
e5c6bd247d Load chosen but do not use it (for pkgs) 2011-07-23 21:56:19 -04:00
Scott Ullrich
20246b9377 Move hook up some 2011-07-23 21:51:27 -04:00
Scott Ullrich
3a4ca65e81 Adding hooks that will be used for filtering plugins 2011-07-23 21:06:10 -04:00
Scott Ullrich
4a6cf823f3 Move hook code up a few lines 2011-07-23 20:03:26 -04:00
Scott Ullrich
7a7ec6f4a8 Add hook for overriding interfaces 2011-07-23 19:14:15 -04:00
Scott Ullrich
8c5bf3d799 Add hook for bottom icon row 2011-07-23 18:36:12 -04:00
Scott Ullrich
5fec5fe4c3 Add hook and fix style for anti lockout 2011-07-23 18:25:00 -04:00
Scott Ullrich
7c1e7572b7 Add missing ; 2011-07-23 18:04:57 -04:00
Scott Ullrich
afabae93ea Adding pre_id_tablerow hook 2011-07-23 18:02:47 -04:00
Scott Ullrich
1a700ea631 Adding apply hooks 2011-07-22 20:09:50 -04:00
Scott Ullrich
10995178ee Make name similar 2011-07-17 16:33:21 -04:00
Scott Ullrich
1db196b214 Adding hooks 2011-07-17 16:29:36 -04:00
jim-p
ee0cf21f7c Merge remote branch 'upstream/master' 2011-06-01 16:56:04 -04:00
jim-p
a01ce4c764 Make the ICMP echo request type less ambiguous, and since it's likely the main one to get used, move it to the top. 2011-06-01 16:54:42 -04:00
Seth Mos
86966fba75 Merge remote branch 'upstream/master'
Conflicts:
	etc/inc/filter.inc
	usr/local/www/themes/the_wall/rrdcolors.inc.php
2011-04-12 10:39:20 +02:00