71 Commits

Author SHA1 Message Date
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
Franco Fichtner
54410fe38f interfaces: auto-lock problematic interfaces; closes #2002 2018-01-04 14:06:45 +00:00
Ad Schellevis
c14000892b Merge pull request #1766 from opnsense/license_generate
License overview generation for GitHub
2017-08-09 22:49:25 +02:00
Franco Fichtner
81aed9877d interfaces: add ability to lock vital interfaces
They will prevent any interface mismatch and individual deletion
from the GUI on the assignment page.

PR: https://forum.opnsense.org/index.php?topic=5667.0
2017-08-07 06:07:45 +02:00
Franco Fichtner
968a3afc8e src: four errors in the copyrights
* interfaces_assign.php: creation year addition for Jim McBeath
* filter_log.inc: spurious attribution via 96899e89f0c
* diag_traceroute.php: typo in split via d87c6ff556
* Manuel Kasper e-mail missing in a few pages
2017-08-05 20:40:53 +02:00
Ad Schellevis
46c460bb3f cleanup, move link_interface_to_vlans to interfaces_assign.php and remove unused code 2017-07-14 22:10:48 +02:00
Ad Schellevis
093895e37e Networking, side affects. when an "other type" interface is configured it's automatically created, but if the interface got unconfigured it's dropped,leading to broken laggs for example.
We should trust the "other type" create/drop to handle the interface itself and interface_bring_down() should only unconfigure it, so possible parent/child interfaces won't break for no reason.
Fixes part of https://github.com/opnsense/core/issues/1709
2017-07-14 09:42:54 +02:00
Ad Schellevis
24c62ed5b3 call overhead in interfaces_assign.php for https://github.com/opnsense/core/issues/1662 2017-05-27 16:28:11 +02:00
Franco Fichtner
99a3caf36b interfaces: when there are no interfaces to assign...
... the save button can still be useful.
2017-04-26 19:20:28 +02:00
Franco Fichtner
c7a488dcb5 rrd: naming conventions and a side note
We have a function pair rrd_import() / rrd_export() now, which do
wildly different things even though they've been used for a single
purpose:

(1) rrd_export() writes a string, appends it to the config.xml

(2) rrd_import() takes a parsed config portion, but not as an
    argument, rather as a global config element

(3) There was also an older backup clue which exported files, but
    simply packed them up for restore after boot

If we can get the system to unify the usage we'll end up with a
neat way of backing, restoring and migrating RRD data, although
I'm not sure if this can be fully compatible with the old files.
2017-03-28 01:06:53 +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
Franco Fichtner
ba56f1683b interfaces: strip development code nobody works on 2016-11-07 18:56:31 +01:00
Franco Fichtner
152141866b interfaces: url_safe() redirects for #1168 2016-10-09 18:26:39 +02:00
Ad Schellevis
14d53f5b8d (legacy) ditch compare_interface_friendly_names 2016-08-11 10:58:44 +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
3940688682 interfaces: tweaks after table-layout changes
o Allow to delete WAN, LAN is worse :P
o Zap spurious 4th column
o Shorten assign text prompt
o remove margianlly helpful message
2016-06-11 13:33:56 +02:00
Ad Schellevis
fd8c6d465a (legacy) wrap $config['interfaces'] in interfaces_assign.php 2016-05-26 16:08:59 +02:00
Ad Schellevis
408bab1a37 (legacy) fix previous commit, interfaces_assign.php wasn't supposed to be in yet. 2016-05-26 15:42:09 +02:00
Ad Schellevis
75eec3cfe8 (config) set description when empty in legacy_config_get_interfaces 2016-05-26 15:41:13 +02:00
Franco Fichtner
9989097dd8 src: second part of restyle done 2016-04-01 16:05:35 +02:00
Franco Fichtner
d0419d15ed interfaces: fixup previous 2016-03-26 13:14:03 +01:00
Franco Fichtner
4e95140f55 interfaces: wireless parents can't be assigned #411
And the clones are picked up by the config section...
2016-03-26 13:09:45 +01:00
Franco Fichtner
c9b7076609 plugins: don't need so many includes 2016-02-21 20:09:07 +01:00
Franco Fichtner
d7df9ecf10 src: move ipsec.inc require to top pages
For now plugins.inc and ipsec.inc will coexist on pages that
may need only one or none to avoid unefined function errors.
This will be pruned after investigating the contents of both
files...
2016-02-21 20:09:07 +01:00
Franco Fichtner
f79fac8f25 src: first shuffling for splitting off plugins from core 2016-02-21 20:09:07 +01:00
Franco Fichtner
de2b543d11 interfaces: fix crash report 2016-02-02 10:40:25 +01:00
Ad Schellevis
5936b4e1f1 (legacy) p2p interface assignments, closes https://github.com/opnsense/core/issues/678 2016-01-19 20:03:44 +01:00
Ad Schellevis
bb223225d0 (legacy) bring down interface on change in interfaces_assign.php, related to https://github.com/opnsense/core/issues/654 2016-01-19 17:42:37 +01:00
Manuel Faux
cea23f8cae UX: moved tooltip position to top for most tooltips 2016-01-10 12:06:48 +01:00
Manuel Faux
87014246c0 UX: changed delete icon from "X" to "trash" 2016-01-10 12:06:48 +01:00
Fabian Franz
1d0f083d96 change dialog style 2015-12-31 18:00:31 +01:00
Franco Fichtner
d41b5a7456 src: reindent copyright block to four spaces 2015-12-29 20:22:41 +01:00
Ad Schellevis
ccb91eb0ec (legacy) handle empty interface description in interfaces_assign.php 2015-12-28 18:17:57 +01:00
Ad Schellevis
1cc0860b0a (legacy) reorder filter configure and rrd in interfaces_assign.php 2015-12-28 13:25:38 +01:00
Ad Schellevis
e4752fac80 (legacy) some more cleanups interfaces_assign.php 2015-12-27 12:53:33 +01:00
Ad Schellevis
617535696d (legacy) refactor interfaces_assign.php 2015-12-24 18:18:22 +01:00
Franco Fichtner
ab3beeb087 interafces: fix gap in last table row 2015-12-13 20:28:49 +01:00
Franco Fichtner
86d50f8793 www: remove the need for manual $pgtitle #461 2015-12-08 19:45:59 +01:00
Franco Fichtner
0d2272ff37 www: interface and dns tools tabs gone for #461
Starting to get a life of its own...
2015-12-05 08:59:08 +01:00
Franco Fichtner
50d01becf9 src: do not reorder sprintf arguments by default
(Already had issues in the code that were obvious, some may still
linger in there.  Also uselessly confuses our dedicated translators.)
2015-11-10 13:22:52 +01:00
Franco Fichtner
1b03f583a7 www: transform $input_error strings to gettext()
Spotted by: @fabianfrz
2015-11-07 21:52:56 +01:00
Franco Fichtner
5e5e6c2f27 captive portal: bye bye my love
The captive portal is being replaced!  This hooks up the
new page into the services section while ditching most of
the old code.  There'll be no migration, if you use package
`opnsense-devel' and the captive portal you'll have to switch
to `opnsense' or migrate to the new code.  Beware that the
new captive portal is going to be a huge step forward but
features will trickle in week after week until it is stable
enough to merge it.  Latest release date is going to be 16.1.
2015-10-15 23:48:23 +02:00
Franco Fichtner
98a0662d07 interfaces: zap legacy shortcuts 2015-10-15 00:04:12 +02:00
Ad Schellevis
a7ac26237f (legacy) remove unused parameter in get_std_save_message 2015-08-17 08:27:34 +00:00
Michael Burtscher
9a5c232432 added tun0 interface (required for sixxs-aiccu)
This is a temporary solution to allow using sixxs-aiccu service without
manual code change until the aiccu service is correctly included in the
web interface.
2015-08-03 13:06:05 +02: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