Fix diag_dns regressions
After testing diag_dns behaviour some regressions have been noticed.
1) Looking up ipv6.google.com (it only has AAAA records) doesn't work - gethostbyname() only supports v4, ipv6.google.com only has v6 - this bug was recently and inadvertently introduced...
Move copyright from ESF to Netgate
Fix diag_dns ipaddr set to use in IP WHOIS and IP Info
- Do not call resolve_host_addresses() when hostname cannot be resolved by gethostbyname(). The old check was considering gethostbyname would return NULL in this case but it returns a string with the hostname...
Removed unused variable $hostname
Add output encoding to diag_dns.php for results returned from DNS. Fixes #6737
Code style and comments
No functional change - just making style consistent
Move to Apache License 2.0
Review license / copyright on all files (final round)
chmod 0644 php web pages
Fix PTR lookups on diag_dns.php. Ticket #6561
Change button order on diag_dns.php so hitting enter in the field does a lookup rather than update alias. semi-related to Ticket #6561
Merge pull request #3028 from PiBa-NL/2.3_dnsV6
Diagnostics - DNS Lookup, also query for IPv6 addresses
Always use require_once
The usage of require() and require_once() throughout the system isinconsistent, and "bugs" come up now and then when the order of"requires" is a bit different and some require() happens after theinclude file is already included/required....
Merge pull request #2839 from phil-davis/patch-6
Allow to update existing alias from diag DNS
See Redmine #6077This seems the easy and reasonable thing to do. Make the button text reflect what is going to happen "Add alias" or "Update alias". Then the backend code can just either create a new alias or overwrite an existing one.
Handle alias from CNAME in diag_dns
If I resolve a CNAME with diag_dns, it gives back the translated FQDNs - e.g. www.inf.org translates to inf.org. Then press "Add Alias".Problem: The existing code puts a "/32" CIDR after that in the alias "www_inf_org" in the config - "inf.org./32" - and if you then edit the "www_inf_org" alias it shows as "inf.org./32" in the Network or FQDN Address field. Normally when putting an FQDN into an alias, no CIDR is inserted....
Truncate alias name at 31 characters to prevent creating an invalid ruleset. Ticket #6075
Use correct subnet mask for IPv6. Fixes #6039
Revert "Merge pull request #2728 from phil-davis/form_button"
This reverts commit a32bed49516f3df3d104a5026a5b2c74451f348f, reversingchanges made to 9ec9978267a5d1985d6da8ba35d52b7174239d2f.
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.
Bring some consistency to the way most buttons are displayed (color, icons, etc). Ticket #5965
Still need to review Advanced buttons and Repeatable block buttons.
Review alert wording. End sentence with period, remove redundant 'Warning', 'Error', etc. prefixes, since alerts are now color coded. Remove <b> tags.
Use print_info_box() to generate alerts
Convert section titles to title case
add call gettext function for translate
Internationalization batch 1
All simple php echo to short
Short version is far more used than long php echo. This brings all code to same standard where possible.
Convert remaining short_open_tag occurances. See PR #2378
Convert short open tags to full tags
Short open tag is discouraged since it is only available if enabled
See https://secure.php.net/manual/en/language.basic-syntax.phptags.php
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
Code style usr local www a-e
better spacing
Calling all of these "Page" in the privilege name is redundant since they are all pages and the "WebCfg" prefix implies they are pages.
Add some missing privileges to pages
Added use of class autoloading (GUI stuff only)
Any GUI script that loads the guiconfig.inc file will have access tothe autoloader.
fix Bug #5400
interface=wan could be offline/disabled in multi-wan systems.also, currently no code in diag_ping.php to convert 'wan' => source-ip
Merge with master
Copyright and license cleanup
- Remove personal copyright from people who assigned it to employer (ESF)- Remove $Id$- Remove extra spaces
Diag review
Moved action-buttons in-line styling to pfSense.css
Merge with bootstrap
bootstrap usr/local/www a to e minor edits
bootstrap, use require_once for classes/Form.class.php
Merge branch 'master' into bootstrap
Move main pfSense content to src/