GET/POST conversion - services part 1
Revisions to GET/POST conversion limiting POSTs to save, apply, and delete functions - Interfaces
setHelp formatting for interfaces.php
There was a fair bit of it, so I have put this in its own pull request.1) Gets HTML out of the strings that go for translation.2) Line 3365 - the words here about "hexadecimal" now go in the text directly in the setHelp so the translators will get access to them....
Redmine #7173 Do not allow pkg_ for If, IfGroup, Alias
Merge pull request #3430 from phil-davis/required-fields3
More required fields for Interface pages
Merge branch 'master' into patch-4
Merge pull request #3431 from phil-davis/if-ifg-alias-name-validation
Merge pull request #3420 from phil-davis/patch-3
Merge branch 'master' into if-ifg-alias-name-validation
Interface description must be unique including case
Required fields in Interfaces pages
interfaces.php display correct descr in group name message
Use the description that the user attempted to enter, not the original (and probably valid) description.
Validate POSTed interface description
Copy-paste error from code that used $_REQUEST. This is more correct to use $_POST.
Interface description should be required
I was blanking out stuff to see what input error messages came about fields that are required. I was surprised that the Interface Description would save empty. The system did not immediately explode (I was playing with a bonus interface I had created in a VM) but I don't think it is desirable to have interfaces with no description....
6RD Border Relay input error message
This field is labelled "6RD Border Relay" on the main UI. It confused me for a moment when I got this message "6RD Border Gateway must be an IPv4 address." since there was no field with that label in the 6RD section of the UI....
Example of setting required items
Merge pull request #3343 from phil-davis/retval1
Remove direct calls to /sbin/ifconfig destroy by pfSense_interface_destroy()
Report problems applying changes
1) Strictly keep track of the accumulating $retval from calls to variousfunctions that apply changes.2) Use new function print_apply_result_box() to print a suitable messagein a suitable severity based on $retval
Merge pull request #3266 from PiBa-NL/IPv6-prefixdelegation-size59
PPTP Remote IP is host or V4
Now that Form_IpAddress() supports a range of types of input, this can be specified as HOSTV4.
This should be a regular input form since it is no longer using an IP address class input type.
Change type of L2TP/PPTP WAN remote address to 'text' as it supports hostnames now, and the 'V4' type rejects them. Fixes #6899
Disable DHCP server on interfaces with subnet >= 31. Fixes #6930
dhcp6c no release
Script changes to allow no-release option of dhcp6c. These changes to beused in conjunction with pfSense/FreeBSD-ports/net/dhcp6c recent changefrom PR #231
IPv6, allow DHCP6 client to use a prefix size of /59
Merge pull request #3213 from PiBa-NL/interfaces-gateway-message
Merge pull request #3226 from phil-davis/patch-3
Added addrtolower() to interface pages
Specify the IP address family in interfaces.php
Where it is known what sort of IP address is required, we can specify it in the call to Form_IpAddress. That will make the hover text reflect what is really required as input, and make the client-side regex pattern also match only the allowed chars.
interfaces, show error message if adding duplicate gateway
Remove all calls to conf_mount_r* functions
Move copyright from ESF to Netgate
Fix wording of the "Reject leases from" option for a DHCP interface.
Merge pull request #3055 from marjohn56/master
Move to Apache License 2.0
Review license / copyright on all files (final round)
DHCP6 init before RA
Some ISP BNG's require that a dhcp6c init is sent before RA. Theadditions to interfaces.php adds a new option flag 'dhcp6withoutra',this flag is set or unset in the WAN DHCP6 section 'Do not wait for aRA'.
The interfaces.inc file handles this flag and either launches dhcp6c on...
Change group labels s/MAC controls/MAC Address/
Fix undefined constant
Notice: Use of undefined constant min - assumed 'min'Notice: Use of undefined constant max - assumed 'max'
jQuery datepicker added to interfaces.php and interfaces_ppps_edit.php for setting custom expirey date
Fix redundant phrasing.
Fixed #6331
Miscellaneous Textual Correction - Interfaces
Interfaces - Punctuation
Correct input type to 'text' for RADIUS shared secret used by wireless hostap interfaces. Fixes #6067
Further text refinements for PR 2790
Merge pull request #2790 from NOYB/Interfaces_-_Word_Smithing
Remove "we" personalizations.
Interfaces - Section Title - Reserved Networks
More accurate section title.
Remove errant line.
Interfaces - Word Smithing
Word smithing to remove a bunch of personalization ("You").
Reengineer Form_Button setAttribute
As per what was done for https://github.com/pfsense/pfsense/pull/2765 -do it to the rest of them.Seems to work OK.
Merge pull request #2737 from NOYB/HTML_Compliance_-_Interfaces
Revert "Merge pull request #2728 from phil-davis/form_button"
This reverts commit a32bed49516f3df3d104a5026a5b2c74451f348f, reversingchanges made to 9ec9978267a5d1985d6da8ba35d52b7174239d2f.
HTML Compliance - Interfaces
Error: Duplicate ID btnadvppp.<a class=btn btn-default btn-info href=interfaces_ppps_edit.php id=btnadvppp>
Internationalize Form_Button text
The text of a Form_Button is not translated internally. Some Form_Buttoncalls already had the button text enclosed in gettext(), this does itfor the remaining ones.
More icon/button inconsistencies. Ticket #5965
More icon and button consistency fixes. Ticket #5965
Fix some more stragglers for icon/button consistency. Ticket #5965
Correct reference for 6rd. Ticket #5967
Merge pull request #2716 from phil-davis/patch-6
Change invalid use of $iface in interfaces.php
At this point $iface is an undefined var. So the last test of this "if" statement is useless.That code fragment was introduced in commit https://github.com/pfsense/pfsense/commit/e4d40f41aafe00353c0069b457a0b1b0d6c20987...
Improve track6-prefix-id handling
1) The var $iface is not set at lines 2457 or 2464. It is a var that was used higher up local to build_ipv6interface_list() - it is not relevant to the single fields track6-prefix-id--hex and track6-prefix-id-max2) When the user selects a different track6-interface then trigger update_track6_prefix() which will update the help text track6-prefix-id-range....
Add track6 DHCP6 IPs back to interface when applying changes. Ticket #5945
Fix DHCPv6 server check to allow track6. Ticket #3029
Properly check the parent's MTU when changing a VLAN MTU.
Review alert wording.
Interfaces - DHCP Advanced Options Checkbox Vars
Correct the Enable Checkbox Var Names
Interfaces - DHCP Advanced Options Tweaks
Lease requirements and requests typically contain large lists of options. Set the field width to use the available section space.Apply a few tweaks for better clarity and consistency between DHCP and DHCPv6.Include a more information link specific to each advanced panel.
Convert section titles to title case
Cleanup some text in wireless options and fix a description.
Adding ability to run dhcp6c in debug mode.
Now that the fields on interfaces.php aren't hidden upon disabling the interface, we don't want to handle disable separately from everything else, as that discards all the changes other than disabling the interface. Everything else with handling bringing down of interfaces is still handled correctly. semi-related to Ticket #2453
Select an interface to track is mandatory
Internationalize interfaces UI code
Fix #5794 remove print_info_box_np chackes for gettext("apply")
1) Get rid of the stristr() checks to "guess" if an apply button shouldbe used.2) Change print_info_box() so it can take a button name of "close" , "apply" or none to decide which button to show....
Remove redundant alias check and move group check to proper place, fixes #5795
Do not let interface description to have same name of an interface group. Fixes #5795
Add gettext to select option names where required
Clarify input validation output. Ticket #5778
Use current interface description for breadcrumb
If you enter invalid stuff in the interface description - e.g. "123" - and press save, then you get a warning about it, but the breadcrumb changes to "Interfaces: 123" - the wrongly entered description (that was not applied)....
Fix #5778 do not save changes if interface description matches an alias name
See https://redmine.pfsense.org/issues/5778 for details of how to reproduce the problem.
Note that similar code to make the "Sorry, an alias with the name XXX already exists" message is also at the top of interfaces.inc - it compares the current interface descr from the config with the currently existing alias names. That check would help warn the user if someone managed to add an alias name that matched the interface name. I guess it was there from some time in the past when the alias edit code did not cross-validate the alias name with the interface descriptions. I have left that check there - it does no harm to have it "just in case"....
Reverting #5771 - No longer required
Fixed #5771EXCEPT that the link in the help text does not point to the correct place (yet)
Save adv_dhcp6_config_advanced value instread of just using it to un-hide section
Set checkboxes value to "Selected" (not "yes")
Fix typo password confirm
https://forum.pfsense.org/index.php?topic=104629.0
FInished password hiding logic by ensuring $_POST['password'] != DMYPWD before updating
Added new addPassword method and password == password_confirm validation where required.
Remove $closehead variable
Remove unused variable $closehead
Merge pull request #2287 from NOYB/Interfaces_-_DHCP_Config_File_Override
Interfaces - DHCP Config File Override
Correct section label.
Interfaces - DHCP Advanced Options - Number Attributes
Protocol timing select timeout; override system minimum number attribute to allow zero.
Merge pull request #2270 from NOYB/Interfaces_-_DHCP_Advanced_Options_-_Require_Options
Interfaces - DHCP Advanced Options - Require Options
Fix Require options form input
Interfaces - DHCP Advanced Options - Radio Buttons
Fix the Protocol Timing - Presets radio buttons.
Remove all pfSense_MODULE and pfSense_BUILDER_BINARIES definitions, whatever was the reason they were added, it was never finished and it's not being used