56 Commits

Author SHA1 Message Date
Franco Fichtner
feba63b664 interfaes: move magic /tmp/devX_pdinfo handling away from GUI page
While here separate between IPv4 and IPv6 reload (again?) and
rename the PINFO variable to PDINFO for consistency.
2020-05-11 04:12:16 +02:00
Martin Wasley
39a3a91283 interfaces: Show ISP Assigned PD in status interfaces
Uses the new feature within dhcp6c to display the ISPs allocated prefix.
We may be able to use this rather than asking the user to enter the prefix
size in interfaces.

PR: https://github.com/opnsense/core/pull/4099
2020-05-10 08:37:29 +02:00
Franco Fichtner
b2560c6eb4 services: split code to get rid of shallow services.inc #3736 2019-10-01 08:33:15 +02:00
Ad Schellevis
d241a64138 status_interfaces.php align output more to actual ifconfig results:
* add additional virtual addresses
* add netmask on link-local
* remove seperate netmask row, add to address where it belongs
* add mtu value when set
* add carp attributes (status, vhid, advbase, advskew)
2019-07-23 12:06:16 +02:00
Franco Fichtner
b6671c2b59 src: use new configdp_run() where appropriate 2018-12-25 09:27:47 +01:00
Franco Fichtner
6dcb9da10f interfaces: simplify nameserver lookup 2018-12-13 10:47:15 +01:00
Franco Fichtner
a22c63a67c interfaces: actually, use get_nameservers() for *all* interfaces
It has the added benefit of grabbing the correct servers provided
for all upstream interfaces.

PR: https://github.com/opnsense/core/issues/3020
2018-12-07 12:18:17 +00:00
Franco Fichtner
c65f2f5879 interfaces: remove questionable / limited use of get_dns_servers()
PR: https://github.com/opnsense/core/issues/3020
2018-12-07 12:35:06 +01:00
Franco Fichtner
baa43590d7 src: remove get_configured_interface_with_descr()'s $withdisabled 2018-09-11 22:16:31 +02:00
Franco Fichtner
a35b40a4a7 src: remove unused $only_opt 2018-09-11 21:52:34 +02:00
Franco Fichtner
aa4da63f95 interfaces: add remote-safe reload; closes #1642
Demote the current actions to non-primary actions as they
are local and selective.
2018-05-24 19:50:21 +00:00
Franco Fichtner
b77b3a5782 interfaces: flip arguments of interface_configure() 2018-05-22 08:42:52 +02:00
Franco Fichtner
f3caafbe04 interfaces: clean up reload structure for single interfaces 2018-05-22 08:03:18 +02:00
Ad Schellevis
8787a3200b status_interfaces, prefix containers and remove duplicate htmlspecialchars(), closes https://github.com/opnsense/core/issues/2202 2018-02-15 21:50:28 +01:00
NOYB
c3ff906041 HTML Compliance - Interfaces Overview
Error: script element between head and body.
2018-02-03 21:45:25 +01:00
NOYB
6078cb7843 Interfaces Overview Tweaks - DNS Servers
These are not necessarily ISP DNS servers.
2018-02-03 21:45:25 +01:00
NOYB
d67787a8fb Interfaces Overview Tweaks - Opportunistic Word Breaks
Create opportunistic word breaks between raw and unit-ized (KB/MB/GB) In/Out Packets for better portrait mobile view line wrap formating.
2018-02-03 21:45:25 +01:00
NOYB
450d8ba102 Touch Friendlyize - Interface Overview Interface Selection
The chevron down icon is problematic to touch select here.  Extend selection area to entire vertical and horizontal row space.
2018-02-02 07:08:09 +01:00
NOYB
6ef9a127ff HTML Compliance - Attribute "type" on Element <script>
Warning: The type attribute is unnecessary for JavaScript resources.

HTML5: Edition for Web Authors
http://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html
The default, which is used if the attribute is absent, is "text/javascript".

The Script element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script
HTML5 specification urges authors to omit the attribute rather than provide a redundant MIME type.
2018-01-22 19:13:34 +01:00
NOYB
76aab5cb52 HTML Compliance - Obsolete table attributes
width, align, valign, cellpadding, cellspacing, border, summary

Error: The width attribute on the table element is obsolete. Use CSS instead.
Error: The align attribute on the table element is obsolete. Use CSS instead.
Error: The valign attribute on the table element is obsolete. Use CSS instead.
Error: The cellpadding attribute on the table element is obsolete. Use CSS instead.
Error: The cellspacing attribute on the table element is obsolete. Use CSS instead.
Error: The border attribute on the table element is obsolete. Use CSS instead.
Error: The summary attribute on the table element is obsolete. Consider describing the structure of the table in a caption element or in a figure element containing the table; or, simplify the structure of the table so that no description is needed.
2018-01-04 18:26:02 +01:00
Ad Schellevis
932a086ea7 vmstat, better handling of irq counters, for https://github.com/opnsense/core/issues/1662 2017-05-29 09:45:49 +02:00
Ad Schellevis
3b3ebbbec2 another blob of madness in status_interfaces.php, for https://github.com/opnsense/core/issues/1662 2017-05-28 14:30:21 +02:00
Ad Schellevis
17a9a26398 interfaces, refactor and rename get_interface_info() to remove most of the performance bottlenecks. for https://github.com/opnsense/core/issues/1662 2017-05-28 13:45:44 +02:00
Ad Schellevis
6401d20ec8 step one, cleaning up get_interface_info(), move pfctl calls to configd. for https://github.com/opnsense/core/issues/1662 2017-05-27 18:13:47 +02:00
Franco Fichtner
9b694b705d start to hide IPsec and OpenVPN for pluginification 2017-03-11 17:51:54 +01:00
Franco Fichtner
715b636793 unbound: clean up includes and function usage
o consolidate "unbound_" prefix for unbound.inc for pluginification
o services.inc includes unbound.inc rightfully, a bit like a
  plugin would do in the future, but this also means we can
  zap all requires from top pages, which are entirely spurious.
o get_dns_servers() moves to system.inc because it is used by
  status_interfaces.php
o RIP read_hosts()
2016-11-14 11:28:01 +01:00
Ad Schellevis
870fcde171 wrong order, fixes performance issues on status_interfaces.php 2016-10-17 11:55:52 +02:00
Franco Fichtner
6aaba83422 www: url_safe() for status pages #1168 2016-09-25 10:40:34 +02:00
Ad Schellevis
f107116e7d ditch load_mac_manufacturer_table, replace with configd call 2016-09-15 15:21:04 +02:00
Franco Fichtner
da3b10c664 interfaces: fix crash report and deprecate 'hwif' ifinfo element 2016-08-05 08:42:34 +02:00
Franco Fichtner
224b5d8247 www: util.inc is provided by guiconfig.inc for #1065 2016-07-22 07:12:21 +02:00
Ad Schellevis
4e3b66c257 zapp pfsense-utils.inc 2016-06-20 16:59:19 +02:00
Ad Schellevis
65aa038255 (legacy) move is_private_ip() to util.inc 2016-06-20 14:33:30 +02:00
Franco Fichtner
f6b554f87e www: consistent use of <?=, some escapes while at it; closes #986 2016-06-11 07:45:49 +02:00
Fabian Franz
6bfb694241 translation and coding style status_interfaces.php 2016-05-06 22:07:07 +02:00
Franco Fichtner
1ed6b9986f interfaces: assorted UI tweaks and corrections 2016-04-07 08:41:09 +02:00
Ad Schellevis
61cb3745be collapse issue when using Edge, https://forum.opnsense.org/index.php?topic=2210.msg7136 2016-02-17 20:53:23 +01:00
Ad Schellevis
a9fa3d528b (legacy) add collapse for status_interfaces.php, closes https://github.com/opnsense/core/issues/583 2016-02-09 14:59:13 +01:00
Franco Fichtner
d41b5a7456 src: reindent copyright block to four spaces 2015-12-29 20:22:41 +01:00
Ad Schellevis
4394192666 (legacy) refactor status_interfaces.php 2015-12-22 14:53:07 +01:00
Franco Fichtner
86d50f8793 www: remove the need for manual $pgtitle #461 2015-12-08 19:45:59 +01:00
Franco Fichtner
166c571b5e www: another batch for #461 2015-12-05 08:24:21 +01:00
Franco Fichtner
ec86345d36 interfaces: unify release/renew/connect/disconnect button style 2015-11-23 08:37:41 +01:00
Franco Fichtner
4f06b9bd29 menu: eradicate the top diagnostics section 2015-10-13 21:29:02 +02:00
Ad Schellevis
e556c306b7 (legacy) fix dependencies, related to crashreport "PHP Fatal error: Call to undefined function services_dnsmasq_configure() in /usr/local/etc/inc/interfaces.inc on line 3098" 2015-08-12 06:52:26 +00:00
Ad Schellevis
01645087f5 (legacy) add missing dependencies 2015-07-24 10:07:47 +00:00
Ad Schellevis
020ce673cd (legacy) more dependency cleanups 2015-07-23 09:45:57 +00:00
Ad Schellevis
4075a285eb (legacy) move openvpn.inc out of interfaces.inc 2015-07-23 08:27:56 +00:00
Ad Schellevis
ea5dd43a31 (legacy) move pfsense-utils.inc dependency 2015-07-22 15:09:18 +00:00
Ad Schellevis
cbcf5927ca (legacy) more dependency moves, slowly pouring functions.inc empty.... 2015-07-22 13:08:05 +00:00