From 7418af459bbcc3a04cfb6929da2aa10d5f06fc3c Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 6 Jul 2015 16:58:36 +0000 Subject: [PATCH] (legacy) add additional check on $input_errors as part of cleanup notices --- src/www/diag_authentication.php | 2 +- src/www/diag_backup.php | 2 +- src/www/diag_dns.php | 2 +- src/www/diag_gmirror.php | 2 +- src/www/diag_ipsec.php | 2 +- src/www/diag_ipsec_leases.php | 2 +- src/www/diag_ipsec_sad.php | 2 +- src/www/diag_ipsec_spd.php | 2 +- src/www/diag_limiter_info.php | 2 +- src/www/diag_logs.php | 2 +- src/www/diag_logs_auth.php | 2 +- src/www/diag_logs_dhcp.php | 2 +- src/www/diag_logs_filter.php | 2 +- src/www/diag_logs_filter_dynamic.php | 2 +- src/www/diag_logs_filter_summary.php | 2 +- src/www/diag_logs_gateways.php | 2 +- src/www/diag_logs_ipsec.php | 2 +- src/www/diag_logs_ntpd.php | 2 +- src/www/diag_logs_openvpn.php | 2 +- src/www/diag_logs_ppp.php | 2 +- src/www/diag_logs_relayd.php | 2 +- src/www/diag_logs_resolver.php | 2 +- src/www/diag_logs_routing.php | 2 +- src/www/diag_logs_settings.php | 2 +- src/www/diag_logs_vpn.php | 2 +- src/www/diag_logs_wireless.php | 2 +- src/www/diag_packet_capture.php | 2 +- src/www/diag_pf_info.php | 2 +- src/www/diag_ping.php | 2 +- src/www/diag_resetstate.php | 2 +- src/www/diag_routes.php | 2 +- src/www/diag_smart.php | 2 +- src/www/diag_sockets.php | 2 +- src/www/diag_system_activity.php | 2 +- src/www/diag_system_pftop.php | 2 +- src/www/diag_testport.php | 2 +- src/www/diag_traceroute.php | 2 +- src/www/easyrule.php | 2 +- src/www/firewall_aliases_edit.php | 2 +- src/www/firewall_aliases_import.php | 2 +- src/www/firewall_nat_1to1_edit.php | 2 +- src/www/firewall_nat_edit.php | 2 +- src/www/firewall_nat_npt_edit.php | 2 +- src/www/firewall_nat_out_edit.php | 2 +- src/www/firewall_rules_edit.php | 2 +- src/www/firewall_schedule_edit.php | 2 +- src/www/firewall_virtual_ip.php | 2 +- src/www/firewall_virtual_ip_edit.php | 2 +- src/www/interfaces.php | 2 +- src/www/interfaces_assign.php | 2 +- src/www/interfaces_bridge.php | 2 +- src/www/interfaces_bridge_edit.php | 2 +- src/www/interfaces_gif.php | 2 +- src/www/interfaces_gif_edit.php | 2 +- src/www/interfaces_gre.php | 2 +- src/www/interfaces_gre_edit.php | 2 +- src/www/interfaces_groups_edit.php | 2 +- src/www/interfaces_lagg.php | 2 +- src/www/interfaces_lagg_edit.php | 2 +- src/www/interfaces_ppps.php | 2 +- src/www/interfaces_ppps_edit.php | 2 +- src/www/interfaces_qinq.php | 2 +- src/www/interfaces_qinq_edit.php | 2 +- src/www/interfaces_vlan.php | 2 +- src/www/interfaces_vlan_edit.php | 2 +- src/www/interfaces_wireless.php | 2 +- src/www/interfaces_wireless_edit.php | 2 +- src/www/load_balancer_monitor.php | 2 +- src/www/load_balancer_monitor_edit.php | 2 +- src/www/load_balancer_pool.php | 2 +- src/www/load_balancer_pool_edit.php | 2 +- src/www/load_balancer_relay_action.php | 2 +- src/www/load_balancer_relay_action_edit.php | 2 +- src/www/load_balancer_relay_protocol.php | 2 +- src/www/load_balancer_relay_protocol_edit.php | 2 +- src/www/load_balancer_setting.php | 2 +- src/www/load_balancer_virtual_server.php | 2 +- src/www/load_balancer_virtual_server_edit.php | 2 +- src/www/services_captiveportal.php | 2 +- src/www/services_captiveportal_filemanager.php | 2 +- src/www/services_captiveportal_ip_edit.php | 2 +- src/www/services_captiveportal_mac_edit.php | 2 +- src/www/services_captiveportal_vouchers.php | 2 +- src/www/services_captiveportal_vouchers_edit.php | 2 +- src/www/services_captiveportal_zones_edit.php | 2 +- src/www/services_dhcp.php | 2 +- src/www/services_dhcp_edit.php | 2 +- src/www/services_dhcp_relay.php | 2 +- src/www/services_dhcpv6.php | 2 +- src/www/services_dhcpv6_edit.php | 2 +- src/www/services_dhcpv6_relay.php | 2 +- src/www/services_dnsmasq.php | 2 +- src/www/services_dnsmasq_domainoverride_edit.php | 2 +- src/www/services_dnsmasq_edit.php | 2 +- src/www/services_dyndns.php | 2 +- src/www/services_dyndns_edit.php | 2 +- src/www/services_igmpproxy_edit.php | 2 +- src/www/services_ntpd.php | 2 +- src/www/services_ntpd_gps.php | 2 +- src/www/services_ntpd_pps.php | 2 +- src/www/services_opendns.php | 2 +- src/www/services_rfc2136.php | 2 +- src/www/services_rfc2136_edit.php | 2 +- src/www/services_router_advertisements.php | 2 +- src/www/services_snmp.php | 2 +- src/www/services_unbound.php | 2 +- src/www/services_unbound_acls.php | 2 +- src/www/services_unbound_advanced.php | 2 +- src/www/services_unbound_domainoverride_edit.php | 2 +- src/www/services_unbound_host_edit.php | 2 +- src/www/services_wol.php | 2 +- src/www/services_wol_edit.php | 2 +- src/www/status_filter_reload.php | 2 +- src/www/status_gateway_groups.php | 2 +- src/www/status_gateways.php | 2 +- src/www/status_graph.php | 2 +- src/www/status_rrd_graph_settings.php | 2 +- src/www/system_advanced_admin.php | 2 +- src/www/system_advanced_firewall.php | 2 +- src/www/system_advanced_misc.php | 2 +- src/www/system_advanced_network.php | 2 +- src/www/system_advanced_notifications.php | 2 +- src/www/system_advanced_sysctl.php | 2 +- src/www/system_authservers.php | 2 +- src/www/system_camanager.php | 2 +- src/www/system_certmanager.php | 2 +- src/www/system_crlmanager.php | 2 +- src/www/system_gateway_groups_edit.php | 2 +- src/www/system_gateways.php | 4 ++-- src/www/system_gateways_edit.php | 2 +- src/www/system_general.php | 2 +- src/www/system_groupmanager.php | 2 +- src/www/system_groupmanager_addprivs.php | 2 +- src/www/system_routes_edit.php | 2 +- src/www/system_usermanager.php | 2 +- src/www/system_usermanager_addprivs.php | 2 +- src/www/system_usermanager_passwordmg.php | 2 +- src/www/system_usermanager_settings.php | 2 +- src/www/vpn_ipsec_keys_edit.php | 2 +- src/www/vpn_ipsec_mobile.php | 2 +- src/www/vpn_ipsec_phase1.php | 2 +- src/www/vpn_ipsec_phase2.php | 2 +- src/www/vpn_ipsec_settings.php | 2 +- src/www/vpn_l2tp.php | 2 +- src/www/vpn_l2tp_users_edit.php | 2 +- src/www/vpn_openvpn_client.php | 2 +- src/www/vpn_openvpn_csc.php | 2 +- src/www/vpn_openvpn_export.php | 2 +- src/www/vpn_openvpn_export_shared.php | 2 +- src/www/vpn_openvpn_server.php | 2 +- src/www/vpn_pppoe_edit.php | 2 +- src/www/vpn_pptp.php | 4 ++-- src/www/vpn_pptp_users_edit.php | 2 +- src/www/wizard.php | 2 +- 154 files changed, 156 insertions(+), 156 deletions(-) diff --git a/src/www/diag_authentication.php b/src/www/diag_authentication.php index 24cc32cf0..d6412e385 100644 --- a/src/www/diag_authentication.php +++ b/src/www/diag_authentication.php @@ -71,7 +71,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors);?>
diff --git a/src/www/diag_backup.php b/src/www/diag_backup.php index 18ef3c060..e4a225ca6 100644 --- a/src/www/diag_backup.php +++ b/src/www/diag_backup.php @@ -588,7 +588,7 @@ function backuparea_change(obj) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_dns.php b/src/www/diag_dns.php index e0343624d..05041cbdc 100644 --- a/src/www/diag_dns.php +++ b/src/www/diag_dns.php @@ -175,7 +175,7 @@ include("head.inc"); ?>
- + 0) print_input_errors($input_errors); ?>

diff --git a/src/www/diag_gmirror.php b/src/www/diag_gmirror.php index e0bd655ac..5f7ba5d75 100644 --- a/src/www/diag_gmirror.php +++ b/src/www/diag_gmirror.php @@ -157,7 +157,7 @@ foreach ($unused_disks as $disk) {
0) print_input_errors($input_errors); if ($_GET["error"] && ($_GET["error"] != 0)) print_info_box(gettext("There was an error performing the chosen mirror operation. Check the System Log for details.")); diff --git a/src/www/diag_ipsec.php b/src/www/diag_ipsec.php index 42a1dc15a..4b39a25da 100644 --- a/src/www/diag_ipsec.php +++ b/src/www/diag_ipsec.php @@ -80,7 +80,7 @@ $status = ipsec_smp_dump_status();
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_ipsec_leases.php b/src/www/diag_ipsec_leases.php index a063567f6..3064f745b 100644 --- a/src/www/diag_ipsec_leases.php +++ b/src/www/diag_ipsec_leases.php @@ -44,7 +44,7 @@ $mobile = ipsec_dump_mobile();
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_ipsec_sad.php b/src/www/diag_ipsec_sad.php index 46fe04efa..a011f83f3 100644 --- a/src/www/diag_ipsec_sad.php +++ b/src/www/diag_ipsec_sad.php @@ -46,7 +46,7 @@ $sad = ipsec_dump_sad();
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_ipsec_spd.php b/src/www/diag_ipsec_spd.php index 0b5eb9e1e..6285587a9 100644 --- a/src/www/diag_ipsec_spd.php +++ b/src/www/diag_ipsec_spd.php @@ -45,7 +45,7 @@ $spd = ipsec_dump_spd();
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_limiter_info.php b/src/www/diag_limiter_info.php index ad20fb052..4ad17c030 100644 --- a/src/www/diag_limiter_info.php +++ b/src/www/diag_limiter_info.php @@ -84,7 +84,7 @@ include("head.inc"); print_info_box($savemsg); echo "
"; } - if (isset($input_errors)) + if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> diff --git a/src/www/diag_logs.php b/src/www/diag_logs.php index d17809b74..77f3c418c 100644 --- a/src/www/diag_logs.php +++ b/src/www/diag_logs.php @@ -66,7 +66,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_auth.php b/src/www/diag_logs_auth.php index b9007b6c5..3223318ab 100644 --- a/src/www/diag_logs_auth.php +++ b/src/www/diag_logs_auth.php @@ -54,7 +54,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_dhcp.php b/src/www/diag_logs_dhcp.php index c6873da06..8a99e9013 100644 --- a/src/www/diag_logs_dhcp.php +++ b/src/www/diag_logs_dhcp.php @@ -56,7 +56,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_filter.php b/src/www/diag_logs_filter.php index b8fda7818..0d339c965 100644 --- a/src/www/diag_logs_filter.php +++ b/src/www/diag_logs_filter.php @@ -122,7 +122,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_filter_dynamic.php b/src/www/diag_logs_filter_dynamic.php index 75d064bf1..99725b613 100644 --- a/src/www/diag_logs_filter_dynamic.php +++ b/src/www/diag_logs_filter_dynamic.php @@ -85,7 +85,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_filter_summary.php b/src/www/diag_logs_filter_summary.php index 309d8a679..50b4f8233 100644 --- a/src/www/diag_logs_filter_summary.php +++ b/src/www/diag_logs_filter_summary.php @@ -182,7 +182,7 @@ include("head.inc"); ?>
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_gateways.php b/src/www/diag_logs_gateways.php index 28bc195df..c9b2432e4 100644 --- a/src/www/diag_logs_gateways.php +++ b/src/www/diag_logs_gateways.php @@ -68,7 +68,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_ipsec.php b/src/www/diag_logs_ipsec.php index b894e3db7..cd5960eb9 100644 --- a/src/www/diag_logs_ipsec.php +++ b/src/www/diag_logs_ipsec.php @@ -58,7 +58,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_ntpd.php b/src/www/diag_logs_ntpd.php index 7d0e53784..e4a5ec348 100644 --- a/src/www/diag_logs_ntpd.php +++ b/src/www/diag_logs_ntpd.php @@ -55,7 +55,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_openvpn.php b/src/www/diag_logs_openvpn.php index c9070fc5e..36a59e4c3 100644 --- a/src/www/diag_logs_openvpn.php +++ b/src/www/diag_logs_openvpn.php @@ -57,7 +57,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_ppp.php b/src/www/diag_logs_ppp.php index 2b87ac46c..6d461ec31 100644 --- a/src/www/diag_logs_ppp.php +++ b/src/www/diag_logs_ppp.php @@ -54,7 +54,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_relayd.php b/src/www/diag_logs_relayd.php index e455b0450..5cb60aa03 100644 --- a/src/www/diag_logs_relayd.php +++ b/src/www/diag_logs_relayd.php @@ -56,7 +56,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_resolver.php b/src/www/diag_logs_resolver.php index 806d3d971..914b78888 100644 --- a/src/www/diag_logs_resolver.php +++ b/src/www/diag_logs_resolver.php @@ -68,7 +68,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_routing.php b/src/www/diag_logs_routing.php index 94dcd1174..63dac4f38 100644 --- a/src/www/diag_logs_routing.php +++ b/src/www/diag_logs_routing.php @@ -54,7 +54,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_settings.php b/src/www/diag_logs_settings.php index 8678ed740..2655bbb64 100644 --- a/src/www/diag_logs_settings.php +++ b/src/www/diag_logs_settings.php @@ -245,7 +245,7 @@ function check_everything() {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_vpn.php b/src/www/diag_logs_vpn.php index d2962afd3..5e2652090 100644 --- a/src/www/diag_logs_vpn.php +++ b/src/www/diag_logs_vpn.php @@ -110,7 +110,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_logs_wireless.php b/src/www/diag_logs_wireless.php index 065850504..0dafd9bd1 100644 --- a/src/www/diag_logs_wireless.php +++ b/src/www/diag_logs_wireless.php @@ -56,7 +56,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_packet_capture.php b/src/www/diag_packet_capture.php index f90b6b8a1..cb8171cd6 100644 --- a/src/www/diag_packet_capture.php +++ b/src/www/diag_packet_capture.php @@ -220,7 +220,7 @@ include("fbegin.inc");
- + 0) print_input_errors($input_errors); ?>

diff --git a/src/www/diag_pf_info.php b/src/www/diag_pf_info.php index d810b59ca..a1fba694f 100644 --- a/src/www/diag_pf_info.php +++ b/src/www/diag_pf_info.php @@ -79,7 +79,7 @@ jQuery(document).ready(function() {setTimeout('getpfinfo()', 5000);}); print_info_box($savemsg); echo "
"; } - if (isset($input_errors)) + if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> diff --git a/src/www/diag_ping.php b/src/www/diag_ping.php index d4bded324..bd6380092 100644 --- a/src/www/diag_ping.php +++ b/src/www/diag_ping.php @@ -77,7 +77,7 @@ include("head.inc"); ?>
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_resetstate.php b/src/www/diag_resetstate.php index 711582d01..491b7aec9 100644 --- a/src/www/diag_resetstate.php +++ b/src/www/diag_resetstate.php @@ -77,7 +77,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?> diff --git a/src/www/diag_routes.php b/src/www/diag_routes.php index 8b96d05ce..52c03f82e 100644 --- a/src/www/diag_routes.php +++ b/src/www/diag_routes.php @@ -153,7 +153,7 @@ include('head.inc');
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_smart.php b/src/www/diag_smart.php index f9d662a54..d6f8f8b0a 100644 --- a/src/www/diag_smart.php +++ b/src/www/diag_smart.php @@ -276,7 +276,7 @@ switch($action) { - + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_sockets.php b/src/www/diag_sockets.php index fe6fb54e0..006840226 100644 --- a/src/www/diag_sockets.php +++ b/src/www/diag_sockets.php @@ -53,7 +53,7 @@ $showAllOption = $showAll ? "" : "?showAll";

For explanation about the meaning of the information listed for each socket click here.


To show information about both listening and connected sockets click this.

- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_system_activity.php b/src/www/diag_system_activity.php index d973d57dc..4780aa09f 100644 --- a/src/www/diag_system_activity.php +++ b/src/www/diag_system_activity.php @@ -78,7 +78,7 @@ include("head.inc"); print_info_box($savemsg); echo "
"; } - if (isset($input_errors)) + if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> diff --git a/src/www/diag_system_pftop.php b/src/www/diag_system_pftop.php index 269e506ca..999d5ac01 100644 --- a/src/www/diag_system_pftop.php +++ b/src/www/diag_system_pftop.php @@ -170,7 +170,7 @@ if($_REQUEST['sorttype'] && in_array($_REQUEST['sorttype'], $sorttypes) print_info_box($savemsg); echo "
"; } - if (isset($input_errors)) + if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> diff --git a/src/www/diag_testport.php b/src/www/diag_testport.php index 572c2e567..4ccd80d14 100644 --- a/src/www/diag_testport.php +++ b/src/www/diag_testport.php @@ -92,7 +92,7 @@ include("head.inc"); ?>


- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/diag_traceroute.php b/src/www/diag_traceroute.php index a21c4e436..3dbb6e358 100644 --- a/src/www/diag_traceroute.php +++ b/src/www/diag_traceroute.php @@ -85,7 +85,7 @@ if (!isset($do_traceroute)) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/easyrule.php b/src/www/easyrule.php index a1c0f6552..c7ce44f3e 100644 --- a/src/www/easyrule.php +++ b/src/www/easyrule.php @@ -63,7 +63,7 @@ include("head.inc"); ?>
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_aliases_edit.php b/src/www/firewall_aliases_edit.php index b98c13fb7..1eefbe265 100644 --- a/src/www/firewall_aliases_edit.php +++ b/src/www/firewall_aliases_edit.php @@ -607,7 +607,7 @@ EOD;
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_aliases_import.php b/src/www/firewall_aliases_import.php index 4a5b04c64..06ae5dda9 100644 --- a/src/www/firewall_aliases_import.php +++ b/src/www/firewall_aliases_import.php @@ -157,7 +157,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_nat_1to1_edit.php b/src/www/firewall_nat_1to1_edit.php index 25a3f2745..59da05526 100644 --- a/src/www/firewall_nat_1to1_edit.php +++ b/src/www/firewall_nat_1to1_edit.php @@ -282,7 +282,7 @@ include("head.inc");
0) print_input_errors($input_errors); ?> diff --git a/src/www/firewall_nat_edit.php b/src/www/firewall_nat_edit.php index 38df5433b..68a3e2938 100644 --- a/src/www/firewall_nat_edit.php +++ b/src/www/firewall_nat_edit.php @@ -447,7 +447,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_nat_npt_edit.php b/src/www/firewall_nat_npt_edit.php index 5b05ce2a1..ebe971c50 100644 --- a/src/www/firewall_nat_npt_edit.php +++ b/src/www/firewall_nat_npt_edit.php @@ -145,7 +145,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_nat_out_edit.php b/src/www/firewall_nat_out_edit.php index 40e0de1f4..dc8715d9b 100644 --- a/src/www/firewall_nat_out_edit.php +++ b/src/www/firewall_nat_out_edit.php @@ -432,7 +432,7 @@ function poolopts_change() {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_rules_edit.php b/src/www/firewall_rules_edit.php index 3468e8e43..ab008a4d5 100644 --- a/src/www/firewall_rules_edit.php +++ b/src/www/firewall_rules_edit.php @@ -726,7 +726,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_schedule_edit.php b/src/www/firewall_schedule_edit.php index a053ac1ef..8d0b37c73 100644 --- a/src/www/firewall_schedule_edit.php +++ b/src/www/firewall_schedule_edit.php @@ -764,7 +764,7 @@ EOD;
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/firewall_virtual_ip.php b/src/www/firewall_virtual_ip.php index df3f63b0b..a0b882c04 100644 --- a/src/www/firewall_virtual_ip.php +++ b/src/www/firewall_virtual_ip.php @@ -190,7 +190,7 @@ $main_buttons = array(
0) print_input_errors($input_errors); else if (isset($savemsg)) diff --git a/src/www/firewall_virtual_ip_edit.php b/src/www/firewall_virtual_ip_edit.php index d3f858ec9..3078d036a 100644 --- a/src/www/firewall_virtual_ip_edit.php +++ b/src/www/firewall_virtual_ip_edit.php @@ -323,7 +323,7 @@ function typesel_change() {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces.php b/src/www/interfaces.php index 7eeedf497..65f8a3c5b 100644 --- a/src/www/interfaces.php +++ b/src/www/interfaces.php @@ -1561,7 +1561,7 @@ $types6 = array("none" => gettext("None"), "staticv6" => gettext("Static IPv6"),
- + 0) print_input_errors($input_errors); ?>

".gettext("You must apply the changes in order for them to take effect.")."

".gettext("Don't forget to adjust the DHCP Server range if needed after applying."));?>
diff --git a/src/www/interfaces_assign.php b/src/www/interfaces_assign.php index a5f3b625f..8123d5402 100644 --- a/src/www/interfaces_assign.php +++ b/src/www/interfaces_assign.php @@ -444,7 +444,7 @@ if(file_exists("/var/run/interface_mismatch_reboot_needed")) } elseif($savemsg) print_info_box($savemsg); - if (isset($input_errors)) + if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); ?> diff --git a/src/www/interfaces_bridge.php b/src/www/interfaces_bridge.php index 1cbd5cd95..286018bf3 100644 --- a/src/www/interfaces_bridge.php +++ b/src/www/interfaces_bridge.php @@ -93,7 +93,7 @@ $main_buttons = array(

- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_bridge_edit.php b/src/www/interfaces_bridge_edit.php index ce44e5f65..35f476a19 100644 --- a/src/www/interfaces_bridge_edit.php +++ b/src/www/interfaces_bridge_edit.php @@ -261,7 +261,7 @@ function show_source_port_range() {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gif.php b/src/www/interfaces_gif.php index 118455de6..fb4c10b97 100644 --- a/src/www/interfaces_gif.php +++ b/src/www/interfaces_gif.php @@ -81,7 +81,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gif_edit.php b/src/www/interfaces_gif_edit.php index 0838df84f..82d414902 100644 --- a/src/www/interfaces_gif_edit.php +++ b/src/www/interfaces_gif_edit.php @@ -134,7 +134,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gre.php b/src/www/interfaces_gre.php index 9ab150ec5..0d6bfc9b2 100644 --- a/src/www/interfaces_gre.php +++ b/src/www/interfaces_gre.php @@ -82,7 +82,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_gre_edit.php b/src/www/interfaces_gre_edit.php index ad83d4e23..e8c01c03c 100644 --- a/src/www/interfaces_gre_edit.php +++ b/src/www/interfaces_gre_edit.php @@ -130,7 +130,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_groups_edit.php b/src/www/interfaces_groups_edit.php index 4b4750060..eb4d48cce 100644 --- a/src/www/interfaces_groups_edit.php +++ b/src/www/interfaces_groups_edit.php @@ -233,7 +233,7 @@ function removeRow(el) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_lagg.php b/src/www/interfaces_lagg.php index 54127e6dc..b20cbe78b 100644 --- a/src/www/interfaces_lagg.php +++ b/src/www/interfaces_lagg.php @@ -87,7 +87,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_lagg_edit.php b/src/www/interfaces_lagg_edit.php index c1bf26ae8..5c16b8117 100644 --- a/src/www/interfaces_lagg_edit.php +++ b/src/www/interfaces_lagg_edit.php @@ -135,7 +135,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_ppps.php b/src/www/interfaces_ppps.php index 0a5f5a9e8..88a8b573f 100644 --- a/src/www/interfaces_ppps.php +++ b/src/www/interfaces_ppps.php @@ -83,7 +83,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_ppps_edit.php b/src/www/interfaces_ppps_edit.php index a32346bb6..2b232a5fd 100644 --- a/src/www/interfaces_ppps_edit.php +++ b/src/www/interfaces_ppps_edit.php @@ -400,7 +400,7 @@ $types = array("select" => gettext("Select"), "ppp" => "PPP", "pppoe" => "PPPoE"
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_qinq.php b/src/www/interfaces_qinq.php index ea4aa2653..20acb64fb 100644 --- a/src/www/interfaces_qinq.php +++ b/src/www/interfaces_qinq.php @@ -91,7 +91,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_qinq_edit.php b/src/www/interfaces_qinq_edit.php index b56497c73..24eff3983 100644 --- a/src/www/interfaces_qinq_edit.php +++ b/src/www/interfaces_qinq_edit.php @@ -277,7 +277,7 @@ function removeRow(el) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_vlan.php b/src/www/interfaces_vlan.php index b62c2ec61..8fba2ce7d 100644 --- a/src/www/interfaces_vlan.php +++ b/src/www/interfaces_vlan.php @@ -91,7 +91,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_vlan_edit.php b/src/www/interfaces_vlan_edit.php index ed1b395ae..9036c5540 100644 --- a/src/www/interfaces_vlan_edit.php +++ b/src/www/interfaces_vlan_edit.php @@ -153,7 +153,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_wireless.php b/src/www/interfaces_wireless.php index 49ea9c968..b872f4e0a 100644 --- a/src/www/interfaces_wireless.php +++ b/src/www/interfaces_wireless.php @@ -81,7 +81,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/interfaces_wireless_edit.php b/src/www/interfaces_wireless_edit.php index a28784fb0..c3584c1f5 100644 --- a/src/www/interfaces_wireless_edit.php +++ b/src/www/interfaces_wireless_edit.php @@ -147,7 +147,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_monitor.php b/src/www/load_balancer_monitor.php index cdbaf81c6..f782a8e6d 100644 --- a/src/www/load_balancer_monitor.php +++ b/src/www/load_balancer_monitor.php @@ -90,7 +90,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_monitor_edit.php b/src/www/load_balancer_monitor_edit.php index 1bb220d66..afe51f152 100644 --- a/src/www/load_balancer_monitor_edit.php +++ b/src/www/load_balancer_monitor_edit.php @@ -220,7 +220,7 @@ $types = array("icmp" => gettext("ICMP"), "tcp" => gettext("TCP"), "http" => get
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_pool.php b/src/www/load_balancer_pool.php index f4711fd4f..6214113a1 100644 --- a/src/www/load_balancer_pool.php +++ b/src/www/load_balancer_pool.php @@ -100,7 +100,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_pool_edit.php b/src/www/load_balancer_pool_edit.php index b2317a680..466010d2f 100644 --- a/src/www/load_balancer_pool_edit.php +++ b/src/www/load_balancer_pool_edit.php @@ -184,7 +184,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_relay_action.php b/src/www/load_balancer_relay_action.php index 87d25cd1c..7c46c88d6 100644 --- a/src/www/load_balancer_relay_action.php +++ b/src/www/load_balancer_relay_action.php @@ -104,7 +104,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>

You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_relay_action_edit.php b/src/www/load_balancer_relay_action_edit.php index 8211227c4..09e913b56 100644 --- a/src/www/load_balancer_relay_action_edit.php +++ b/src/www/load_balancer_relay_action_edit.php @@ -395,7 +395,7 @@ jQuery(document).ready(function() {

- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_relay_protocol.php b/src/www/load_balancer_relay_protocol.php index 10bbbd454..446df4f79 100644 --- a/src/www/load_balancer_relay_protocol.php +++ b/src/www/load_balancer_relay_protocol.php @@ -99,7 +99,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>

" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_relay_protocol_edit.php b/src/www/load_balancer_relay_protocol_edit.php index ea1fc5ffd..0735dee90 100644 --- a/src/www/load_balancer_relay_protocol_edit.php +++ b/src/www/load_balancer_relay_protocol_edit.php @@ -179,7 +179,7 @@ jQuery(document).ready(function(){

- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/load_balancer_setting.php b/src/www/load_balancer_setting.php index 7c7c7a188..ea3e0b7e9 100644 --- a/src/www/load_balancer_setting.php +++ b/src/www/load_balancer_setting.php @@ -95,7 +95,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_virtual_server.php b/src/www/load_balancer_virtual_server.php index 962ab7c8f..84878d8a8 100644 --- a/src/www/load_balancer_virtual_server.php +++ b/src/www/load_balancer_virtual_server.php @@ -100,7 +100,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/load_balancer_virtual_server_edit.php b/src/www/load_balancer_virtual_server_edit.php index a5ad2a97f..a928cadc0 100644 --- a/src/www/load_balancer_virtual_server_edit.php +++ b/src/www/load_balancer_virtual_server_edit.php @@ -150,7 +150,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_captiveportal.php b/src/www/services_captiveportal.php index 8d2f1e621..120a19c3f 100644 --- a/src/www/services_captiveportal.php +++ b/src/www/services_captiveportal.php @@ -479,7 +479,7 @@ function enable_change(enable_change) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_captiveportal_filemanager.php b/src/www/services_captiveportal_filemanager.php index 32a1f1b0f..199691cde 100644 --- a/src/www/services_captiveportal_filemanager.php +++ b/src/www/services_captiveportal_filemanager.php @@ -142,7 +142,7 @@ $main_buttons = array(
- 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/services_captiveportal_ip_edit.php b/src/www/services_captiveportal_ip_edit.php index a46c92ebd..ab204303a 100644 --- a/src/www/services_captiveportal_ip_edit.php +++ b/src/www/services_captiveportal_ip_edit.php @@ -173,7 +173,7 @@ include("head.inc");
- 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/services_captiveportal_mac_edit.php b/src/www/services_captiveportal_mac_edit.php index 3b12bc148..bbbe22c00 100644 --- a/src/www/services_captiveportal_mac_edit.php +++ b/src/www/services_captiveportal_mac_edit.php @@ -179,7 +179,7 @@ include("head.inc");
- 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/services_captiveportal_vouchers.php b/src/www/services_captiveportal_vouchers.php index 70a0fefda..cc36d3efb 100644 --- a/src/www/services_captiveportal_vouchers.php +++ b/src/www/services_captiveportal_vouchers.php @@ -353,7 +353,7 @@ function enable_change(enable_change) {
- 0) { print_input_errors($input_errors); } ?> - 0) { print_input_errors($input_errors); } ?> - 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/services_dhcp.php b/src/www/services_dhcp.php index 3699526a7..a2c427611 100644 --- a/src/www/services_dhcp.php +++ b/src/www/services_dhcp.php @@ -679,7 +679,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_dhcp_edit.php b/src/www/services_dhcp_edit.php index 8668167c7..c4168856d 100644 --- a/src/www/services_dhcp_edit.php +++ b/src/www/services_dhcp_edit.php @@ -345,7 +345,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dhcp_relay.php b/src/www/services_dhcp_relay.php index 12f737a72..af3c3a215 100644 --- a/src/www/services_dhcp_relay.php +++ b/src/www/services_dhcp_relay.php @@ -119,7 +119,7 @@ function enable_change(enable_over) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dhcpv6.php b/src/www/services_dhcpv6.php index 9615ec15f..064f3c1a5 100644 --- a/src/www/services_dhcpv6.php +++ b/src/www/services_dhcpv6.php @@ -442,7 +442,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>

" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_dhcpv6_edit.php b/src/www/services_dhcpv6_edit.php index e2e836f8e..4234bc9f2 100644 --- a/src/www/services_dhcpv6_edit.php +++ b/src/www/services_dhcpv6_edit.php @@ -177,7 +177,7 @@ include("head.inc");

- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dhcpv6_relay.php b/src/www/services_dhcpv6_relay.php index 63646b5c1..d3f595704 100644 --- a/src/www/services_dhcpv6_relay.php +++ b/src/www/services_dhcpv6_relay.php @@ -120,7 +120,7 @@ function enable_change(enable_over) {
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dnsmasq.php b/src/www/services_dnsmasq.php index d64202655..daa5f1279 100644 --- a/src/www/services_dnsmasq.php +++ b/src/www/services_dnsmasq.php @@ -169,7 +169,7 @@ function show_advanced_dns() {
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_dnsmasq_domainoverride_edit.php b/src/www/services_dnsmasq_domainoverride_edit.php index df021be9a..bd582b4de 100644 --- a/src/www/services_dnsmasq_domainoverride_edit.php +++ b/src/www/services_dnsmasq_domainoverride_edit.php @@ -120,7 +120,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dnsmasq_edit.php b/src/www/services_dnsmasq_edit.php index 55e510640..ca43e9276 100644 --- a/src/www/services_dnsmasq_edit.php +++ b/src/www/services_dnsmasq_edit.php @@ -184,7 +184,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dyndns.php b/src/www/services_dyndns.php index b5c9e8ea0..6f358ec80 100644 --- a/src/www/services_dyndns.php +++ b/src/www/services_dyndns.php @@ -64,7 +64,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_dyndns_edit.php b/src/www/services_dyndns_edit.php index c6d8f1d52..4c14d5fed 100644 --- a/src/www/services_dyndns_edit.php +++ b/src/www/services_dyndns_edit.php @@ -226,7 +226,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_igmpproxy_edit.php b/src/www/services_igmpproxy_edit.php index c57734b4f..6756a6060 100644 --- a/src/www/services_igmpproxy_edit.php +++ b/src/www/services_igmpproxy_edit.php @@ -143,7 +143,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_ntpd.php b/src/www/services_ntpd.php index 7ee200f84..aa3425458 100644 --- a/src/www/services_ntpd.php +++ b/src/www/services_ntpd.php @@ -211,7 +211,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_ntpd_gps.php b/src/www/services_ntpd_gps.php index 6735614f2..005e2caef 100644 --- a/src/www/services_ntpd_gps.php +++ b/src/www/services_ntpd_gps.php @@ -351,7 +351,7 @@ SureGPS = #Sure Electronics SKG16B
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_ntpd_pps.php b/src/www/services_ntpd_pps.php index ce852f123..fcf3f3a8b 100644 --- a/src/www/services_ntpd_pps.php +++ b/src/www/services_ntpd_pps.php @@ -99,7 +99,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_opendns.php b/src/www/services_opendns.php index 25e0f8e7c..b8fa3d334 100644 --- a/src/www/services_opendns.php +++ b/src/www/services_opendns.php @@ -107,7 +107,7 @@ include 'head.inc';
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/services_rfc2136.php b/src/www/services_rfc2136.php index 94742149f..dc9cc03d5 100644 --- a/src/www/services_rfc2136.php +++ b/src/www/services_rfc2136.php @@ -58,7 +58,7 @@ $main_buttons = array(
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_rfc2136_edit.php b/src/www/services_rfc2136_edit.php index a851e799e..c90a8165f 100644 --- a/src/www/services_rfc2136_edit.php +++ b/src/www/services_rfc2136_edit.php @@ -125,7 +125,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_router_advertisements.php b/src/www/services_router_advertisements.php index bd5155428..0a0f911a3 100644 --- a/src/www/services_router_advertisements.php +++ b/src/www/services_router_advertisements.php @@ -191,7 +191,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_snmp.php b/src/www/services_snmp.php index 5f5fed224..ffb215aa7 100644 --- a/src/www/services_snmp.php +++ b/src/www/services_snmp.php @@ -271,7 +271,7 @@ function enable_change(whichone) {
- + 0) print_input_errors($input_errors); ?> diff --git a/src/www/services_unbound.php b/src/www/services_unbound.php index b064ce174..0c63e482a 100644 --- a/src/www/services_unbound.php +++ b/src/www/services_unbound.php @@ -185,7 +185,7 @@ function show_advanced_dns() {
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_unbound_acls.php b/src/www/services_unbound_acls.php index db9387548..a2f977d80 100644 --- a/src/www/services_unbound_acls.php +++ b/src/www/services_unbound_acls.php @@ -166,7 +166,7 @@ include("head.inc"); if (!$savemsg) $savemsg = ""; - if (isset($input_errors)) + if (isset($input_errors) && count($input_errors) > 0) print_input_errors($input_errors); if (isset($savemsg)) diff --git a/src/www/services_unbound_advanced.php b/src/www/services_unbound_advanced.php index 9bf22f726..667ca0b93 100644 --- a/src/www/services_unbound_advanced.php +++ b/src/www/services_unbound_advanced.php @@ -126,7 +126,7 @@ include_once("head.inc");
- + 0) print_input_errors($input_errors); ?>
" . gettext("You must apply the changes in order for them to take effect."));?>
diff --git a/src/www/services_unbound_domainoverride_edit.php b/src/www/services_unbound_domainoverride_edit.php index 8d63b286c..1ad30de5a 100644 --- a/src/www/services_unbound_domainoverride_edit.php +++ b/src/www/services_unbound_domainoverride_edit.php @@ -115,7 +115,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_unbound_host_edit.php b/src/www/services_unbound_host_edit.php index 9d9d1d3d1..703ff6382 100644 --- a/src/www/services_unbound_host_edit.php +++ b/src/www/services_unbound_host_edit.php @@ -184,7 +184,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_wol.php b/src/www/services_wol.php index 51d3e8205..0f447ce2e 100644 --- a/src/www/services_wol.php +++ b/src/www/services_wol.php @@ -115,7 +115,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/services_wol_edit.php b/src/www/services_wol_edit.php index 8a2d036d1..f5f634bf5 100644 --- a/src/www/services_wol_edit.php +++ b/src/www/services_wol_edit.php @@ -115,7 +115,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_filter_reload.php b/src/www/status_filter_reload.php index dfdad4f15..c340f87b7 100644 --- a/src/www/status_filter_reload.php +++ b/src/www/status_filter_reload.php @@ -67,7 +67,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_gateway_groups.php b/src/www/status_gateway_groups.php index 0f136ae40..d7ac560e8 100644 --- a/src/www/status_gateway_groups.php +++ b/src/www/status_gateway_groups.php @@ -56,7 +56,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_gateways.php b/src/www/status_gateways.php index 964eab7af..60e7b4fca 100644 --- a/src/www/status_gateways.php +++ b/src/www/status_gateways.php @@ -48,7 +48,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_graph.php b/src/www/status_graph.php index 34c6eaeae..8ebb43d5c 100644 --- a/src/www/status_graph.php +++ b/src/www/status_graph.php @@ -191,7 +191,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/status_rrd_graph_settings.php b/src/www/status_rrd_graph_settings.php index 507a34cee..8510f42a5 100644 --- a/src/www/status_rrd_graph_settings.php +++ b/src/www/status_rrd_graph_settings.php @@ -111,7 +111,7 @@ include("head.inc");
- + 0) print_input_errors($input_errors); ?>
diff --git a/src/www/system_advanced_admin.php b/src/www/system_advanced_admin.php index 21c457baa..1376b2d50 100644 --- a/src/www/system_advanced_admin.php +++ b/src/www/system_advanced_admin.php @@ -300,7 +300,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_advanced_firewall.php b/src/www/system_advanced_firewall.php index dca7c7940..2c2f773ab 100644 --- a/src/www/system_advanced_firewall.php +++ b/src/www/system_advanced_firewall.php @@ -259,7 +259,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_advanced_misc.php b/src/www/system_advanced_misc.php index cebc05e83..a166b4bd6 100644 --- a/src/www/system_advanced_misc.php +++ b/src/www/system_advanced_misc.php @@ -263,7 +263,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_advanced_network.php b/src/www/system_advanced_network.php index 363c5477f..79283cd73 100644 --- a/src/www/system_advanced_network.php +++ b/src/www/system_advanced_network.php @@ -166,7 +166,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_advanced_notifications.php b/src/www/system_advanced_notifications.php index 15881824e..c1f0cbf20 100644 --- a/src/www/system_advanced_notifications.php +++ b/src/www/system_advanced_notifications.php @@ -178,7 +178,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_advanced_sysctl.php b/src/www/system_advanced_sysctl.php index 1cbd164de..e7238c992 100644 --- a/src/www/system_advanced_sysctl.php +++ b/src/www/system_advanced_sysctl.php @@ -130,7 +130,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_authservers.php b/src/www/system_authservers.php index 6b3852900..1e382c0b2 100644 --- a/src/www/system_authservers.php +++ b/src/www/system_authservers.php @@ -455,7 +455,7 @@ endif; ?>
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_camanager.php b/src/www/system_camanager.php index aa615c8f3..7f8b59316 100644 --- a/src/www/system_camanager.php +++ b/src/www/system_camanager.php @@ -369,7 +369,7 @@ function method_change() {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_certmanager.php b/src/www/system_certmanager.php index 461a76c96..12f62c6e3 100644 --- a/src/www/system_certmanager.php +++ b/src/www/system_certmanager.php @@ -607,7 +607,7 @@ endif; ?>
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_crlmanager.php b/src/www/system_crlmanager.php index 0c969feb7..602fafb86 100644 --- a/src/www/system_crlmanager.php +++ b/src/www/system_crlmanager.php @@ -283,7 +283,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_gateway_groups_edit.php b/src/www/system_gateway_groups_edit.php index d8ca14290..777d941a3 100644 --- a/src/www/system_gateway_groups_edit.php +++ b/src/www/system_gateway_groups_edit.php @@ -225,7 +225,7 @@ jQuery(function ($) {
- 0) { print_input_errors($input_errors); } ?>
diff --git a/src/www/system_gateways.php b/src/www/system_gateways.php index dde75dfbc..4c2d050cc 100644 --- a/src/www/system_gateways.php +++ b/src/www/system_gateways.php @@ -95,7 +95,7 @@ function can_delete_gateway_item($id) } } - if (isset($input_errors)) { + if (isset($input_errors) && count($input_errors) > 0) { return false; } @@ -204,7 +204,7 @@ $main_buttons = array(
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_gateways_edit.php b/src/www/system_gateways_edit.php index 8f9a8074c..9285d45ae 100644 --- a/src/www/system_gateways_edit.php +++ b/src/www/system_gateways_edit.php @@ -659,7 +659,7 @@ function enable_change() {
- 0) { print_input_errors($input_errors); } ?>
diff --git a/src/www/system_general.php b/src/www/system_general.php index dcf19a5ea..e68235e8d 100644 --- a/src/www/system_general.php +++ b/src/www/system_general.php @@ -288,7 +288,7 @@ include("head.inc");
0) print_input_errors($input_errors); if (isset($savemsg)) print_info_box($savemsg); ?>
diff --git a/src/www/system_groupmanager.php b/src/www/system_groupmanager.php index ed05e0be0..36bad5b97 100644 --- a/src/www/system_groupmanager.php +++ b/src/www/system_groupmanager.php @@ -242,7 +242,7 @@ function presubmit() {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_groupmanager_addprivs.php b/src/www/system_groupmanager_addprivs.php index 6e1ff4795..d7941f2d0 100644 --- a/src/www/system_groupmanager_addprivs.php +++ b/src/www/system_groupmanager_addprivs.php @@ -155,7 +155,7 @@ function update_description() {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_routes_edit.php b/src/www/system_routes_edit.php index 98fe8c600..cfdb3e7b4 100644 --- a/src/www/system_routes_edit.php +++ b/src/www/system_routes_edit.php @@ -237,7 +237,7 @@ include("head.inc");
- 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/system_usermanager.php b/src/www/system_usermanager.php index ef95e3a74..1d1160e4f 100644 --- a/src/www/system_usermanager.php +++ b/src/www/system_usermanager.php @@ -425,7 +425,7 @@ function sshkeyClicked(obj) {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_usermanager_addprivs.php b/src/www/system_usermanager_addprivs.php index b26e67995..47c2e361b 100644 --- a/src/www/system_usermanager_addprivs.php +++ b/src/www/system_usermanager_addprivs.php @@ -136,7 +136,7 @@ function update_description() {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_usermanager_passwordmg.php b/src/www/system_usermanager_passwordmg.php index 2031777b6..065645e66 100644 --- a/src/www/system_usermanager_passwordmg.php +++ b/src/www/system_usermanager_passwordmg.php @@ -86,7 +86,7 @@ include("head.inc");
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/system_usermanager_settings.php b/src/www/system_usermanager_settings.php index 0c6968359..e2b9579f2 100644 --- a/src/www/system_usermanager_settings.php +++ b/src/www/system_usermanager_settings.php @@ -101,7 +101,7 @@ if ($save_and_test) {
- 0) { print_input_errors($input_errors); }?>
- 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/vpn_ipsec_mobile.php b/src/www/vpn_ipsec_mobile.php index 0942eb542..feb641d10 100644 --- a/src/www/vpn_ipsec_mobile.php +++ b/src/www/vpn_ipsec_mobile.php @@ -372,7 +372,7 @@ function login_banner_change() { if ($pconfig['enable'] && !$ph1found) { print_info_box_np(gettext("Support for IPsec Mobile clients is enabled but a Phase1 definition was not found") . ".
" . gettext("Please click Create to define one."), gettext("create"), gettext("Create Phase1")); } - if (isset($input_errors)) { + if (isset($input_errors) && count($input_errors) > 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/vpn_ipsec_phase1.php b/src/www/vpn_ipsec_phase1.php index ec7b6cf35..39049698f 100644 --- a/src/www/vpn_ipsec_phase1.php +++ b/src/www/vpn_ipsec_phase1.php @@ -572,7 +572,7 @@ function dpdchkbox_change() {
0) { print_input_errors($input_errors); } ?> diff --git a/src/www/vpn_ipsec_phase2.php b/src/www/vpn_ipsec_phase2.php index 7a493e6f0..61c7db7f5 100644 --- a/src/www/vpn_ipsec_phase2.php +++ b/src/www/vpn_ipsec_phase2.php @@ -510,7 +510,7 @@ function change_protocol() { 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/vpn_ipsec_settings.php b/src/www/vpn_ipsec_settings.php index 359d130f1..00c873d8f 100644 --- a/src/www/vpn_ipsec_settings.php +++ b/src/www/vpn_ipsec_settings.php @@ -140,7 +140,7 @@ function maxmss_checked(obj) { if (isset($savemsg)) { print_info_box($savemsg); } - if (isset($input_errors)) { + if (isset($input_errors) && count($input_errors) > 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/vpn_l2tp.php b/src/www/vpn_l2tp.php index 526421854..51df95785 100644 --- a/src/www/vpn_l2tp.php +++ b/src/www/vpn_l2tp.php @@ -282,7 +282,7 @@ function enable_change(enable_over) {
- 0) { print_input_errors($input_errors); } ?>
- 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/vpn_openvpn_client.php b/src/www/vpn_openvpn_client.php index a9b8bec3b..ea5c978ac 100644 --- a/src/www/vpn_openvpn_client.php +++ b/src/www/vpn_openvpn_client.php @@ -471,7 +471,7 @@ endif; ?> $savemsg = ""; } - if (isset($input_errors)) { + if (isset($input_errors) && count($input_errors) > 0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/vpn_openvpn_csc.php b/src/www/vpn_openvpn_csc.php index de6d4ecf1..f1f77859e 100644 --- a/src/www/vpn_openvpn_csc.php +++ b/src/www/vpn_openvpn_csc.php @@ -337,7 +337,7 @@ if ($act!="new" && $act!="edit") {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/vpn_openvpn_export.php b/src/www/vpn_openvpn_export.php index ad10fe0b9..e9a84c9ea 100644 --- a/src/www/vpn_openvpn_export.php +++ b/src/www/vpn_openvpn_export.php @@ -614,7 +614,7 @@ function useproxy_changed(obj) { //]]> 0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/vpn_openvpn_export_shared.php b/src/www/vpn_openvpn_export_shared.php index 815b17739..f64077b9c 100644 --- a/src/www/vpn_openvpn_export_shared.php +++ b/src/www/vpn_openvpn_export_shared.php @@ -290,7 +290,7 @@ function useproxy_changed(obj) { //]]> 0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/vpn_openvpn_server.php b/src/www/vpn_openvpn_server.php index aeac5273e..0bb0c44b4 100644 --- a/src/www/vpn_openvpn_server.php +++ b/src/www/vpn_openvpn_server.php @@ -801,7 +801,7 @@ function tuntap_change() { $savemsg = ""; } - if (isset($input_errors)) { + if (isset($input_errors) && count($input_errors) > 0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/vpn_pppoe_edit.php b/src/www/vpn_pppoe_edit.php index 476e8201e..928b5cf63 100644 --- a/src/www/vpn_pppoe_edit.php +++ b/src/www/vpn_pppoe_edit.php @@ -370,7 +370,7 @@ function enable_change(enable_over) {
0) { print_input_errors($input_errors); } if (isset($savemsg)) { diff --git a/src/www/vpn_pptp.php b/src/www/vpn_pptp.php index 04f3727ff..ec063eb43 100644 --- a/src/www/vpn_pptp.php +++ b/src/www/vpn_pptp.php @@ -62,7 +62,7 @@ $pconfig['radius_acct_update'] = $pptpcfg['radius']['acct_update']; $pconfig['radius_nasip'] = $pptpcfg['radius']['nasip']; if ($_POST) { - if (isset($input_errors)) { + if (isset($input_errors) && count($input_errors) > 0) { unset($input_errors); } $pconfig = $_POST; @@ -302,7 +302,7 @@ function enable_change(enable_over) {
- 0) { print_input_errors($input_errors); } ?> - 0) { print_input_errors($input_errors); } ?> diff --git a/src/www/wizard.php b/src/www/wizard.php index 68de4df8c..7ca63de1d 100644 --- a/src/www/wizard.php +++ b/src/www/wizard.php @@ -301,7 +301,7 @@ function showchange() {
0) print_input_errors($input_errors); if (isset($savemsg)) print_info_box($savemsg);