Diag DNS disable Add Alias button when host field is changed
(cherry picked from commit 45eafdbd7b958bd4f9459d90a6a63ff8202eec3b)(cherry picked from commit 2e294992e4151a80a7d57aa4afabc12b9375539f)
Diag DNS fix update alias button text after add alias
1) Lookup a name with Diag DNS2) Press "Add Alias" The alias is added, but the button still says "Add Alias".
Actually the alias exists by now. The button should say "Update Alias".
Fix: once we have emitted the alias create/update success message, we can set $alias_exists true so that the rest of the code is based on the (possibly new) state.(cherry picked from commit 474b275684950ab8215b449987d4cbece005f9ed)...
Diag DNS do not show Add Alias if no priv to add alais
(cherry picked from commit 7fcccc8f09afd7f4a524ff598b43e15d678905eb)(cherry picked from commit f54a3ede59ee819500f272ea87b244b7ab949e41)
Diag DNS do not create an empty alias if name does not resolve
(cherry picked from commit f445385114c43cb46b8188a7cea425648f7647f2)(cherry picked from commit 14e90f2e5d34ca34cf226ece4f8fcb4fb6c943fa)
Required fields in diagnostics
(cherry picked from commit 3e2028f4dca359e715058d2c35ae0df5b939657e)
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
(cherry picked from commit 9d3e8723171c727cf43338bd8e95ab2bb7e6a66c)
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
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....
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....
Merge pull request #2840 from phil-davis/patch-7
(cherry picked from commit 64c3e9a58d426637fa91996d3a30695f10e01e70)
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/