Tidy up "functions.inc"

Escape single quotes for TABLE and HREF
Updated closing TR tag
Tidy up "services_dhcp_relay.php" XHTML

Add "closehead" variable and close HEAD manually
Add CDATA sections to scripts
Add summary to TABLES
Add missing closing FORM if DHCP is enabled
Update HTML Boolean operators
Close INPUT
Tidy up "services_dhcp" XHTML

Update alert message
Add "closehead" variable and manually close HEAD
Add CDATA sections to scripts
Add summart to tables
Update HTML Boolean operators
Close INPUT
Add missing closing P tag
Remove empty TFOOT
Add missing opening TR tag, closing TD tag and closing P tag
Remove duplicate closing TR
Tidy up "services_dhcpv6_realy.php" XHTML

Add "closehead" variable and manually close HEAD
Add CDATA sections to scripts
Add summary to tables
Add missing closing FORM if DHCPV6 is running
Update HTML Boolean operators
Close INPUT
Tidy up "services_dhcpv6" XHTML

Update alert message
Add "closehead" variable and manually close HEAD
Add CDATA sections to script
Add SUMMARY to tables
Update HTML Boolean operators
Close INPUT
Add missing closing P tag
Remove empty TFOOT tag
Deprecate ampersand
Tidy up "services_router_advertisements" XHTML

Add CDATA sections to script
Add SUMMARY to table
Update HTML Boolean operators
Add dummy table row, but don't display it
Close INPUT
Tidy up "services_dnsmasq" XHTML

Add "closehead" variable and manually close HEAD
Add CDATA sections to scripts
Add SUMMARY to tables
Update HTML Boolean operators
Close INPUT
Move TFOOT between THEAD and TBODY (quirk of HTML)
Move NOWRAP into class statement
Close IMG and add ALT
Deprecate ampersand
Add table row, but don't display it
Remove duplicate opening and closing TR tags
Add missing closing BODY tag and closing HTML tag
Tidy up "services_unbound" XHTML

Add "cloeahead" variable and manually close HEAD
Add CDATA sections to scripts
Add SUMMARY to tables
Update HTML Boolean operators
Close INPUT
Remove duplicate closing TD tag
Move TFOOT tag between THEAD and TBODY (quirk of HTML)
Add dummy table row, but don't display it
Remove duplicate opening and closing TR tags
Closing IMG and add ALT
Deprecate ampersand
Tidy up "services_unbound_acls.php" XHTML

Add "cloeahead" variable and manually close HEAD
Add CDATA sections to scripts
Close INPUT
Add SUMMARY to tables
Update HTML Boolean operators
Close IMG and add ALT
Remove empty TFOOT tag
Move TFOOT tag between THEAD and TBODY (quirk of HTML)
Add dummy table row, but don't display it
Add missing closing DIV and closing FORM
Tidy up "services_unbound_advanced.php" XHTML

Add "closehead" variable and manually close HEAD
Add CDATA sections to scripts
Add SUMMARY to tables
Update HTML Boolean operators
Close INPUR
Added check line 175: Needed to fix error in GUI

Added check to see if $config['ipsec']["ipsec_{$lkey}"] is set before executing unnecessary unset, was causing issues when trying to enable/disable ("Do NOT check packages signature")
Update system_advanced_misc.php
Ensure variable is available when testing smtp. Fixes #3577 (well not the rrd summary package).
Dont check for 'checked' but rather if it is just set
Indentation
Indentation
Update captiveportal.inc

Release unused pipeno when client is already authenticated.

Bug #3062
Put the fix to be more generic to prevent any other leak possible in the long run. Fixes #3062
Merge pull request #1065 from ExolonDX/branch_master_22
Merge pull request #1063 from ExolonDX/branch_master_19