From 86d431a89d920f64dda5e7e1821f720daf6e067b Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 10 Jul 2016 00:56:52 -0500 Subject: Remove input_errors2Ajax calls, was never implemented. Ticket #3027 --- src/usr/local/www/system_advanced_sysctl.php | 12 ------------ src/usr/local/www/system_authservers.php | 6 ------ src/usr/local/www/system_camanager.php | 6 ------ src/usr/local/www/system_certmanager.php | 12 ------------ src/usr/local/www/system_crlmanager.php | 6 ------ src/usr/local/www/system_groupmanager_addprivs.php | 6 ------ src/usr/local/www/system_usermanager.php | 6 ------ src/usr/local/www/system_usermanager_addprivs.php | 6 ------ src/usr/local/www/vpn_l2tp.php | 12 ------------ src/usr/local/www/vpn_l2tp_users_edit.php | 6 ------ 10 files changed, 78 deletions(-) (limited to 'src/usr') diff --git a/src/usr/local/www/system_advanced_sysctl.php b/src/usr/local/www/system_advanced_sysctl.php index 6b03686..614a563 100644 --- a/src/usr/local/www/system_advanced_sysctl.php +++ b/src/usr/local/www/system_advanced_sysctl.php @@ -103,12 +103,6 @@ if ($act == "edit") { if ($act == "del") { if ($a_tunable[$id]) { - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { unset($a_tunable[$id]); write_config(); @@ -123,12 +117,6 @@ if ($_POST) { unset($input_errors); $pconfig = $_POST; - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if ($_POST['apply']) { $retval = 0; system_setup_sysctl(); diff --git a/src/usr/local/www/system_authservers.php b/src/usr/local/www/system_authservers.php index b300638..360a941 100644 --- a/src/usr/local/www/system_authservers.php +++ b/src/usr/local/www/system_authservers.php @@ -323,12 +323,6 @@ if ($_POST) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { $server = array(); $server['refid'] = uniqid(); diff --git a/src/usr/local/www/system_camanager.php b/src/usr/local/www/system_camanager.php index f9c9a47..6c06213 100644 --- a/src/usr/local/www/system_camanager.php +++ b/src/usr/local/www/system_camanager.php @@ -268,12 +268,6 @@ if ($_POST) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - /* save modifications */ if (!$input_errors) { $ca = array(); diff --git a/src/usr/local/www/system_certmanager.php b/src/usr/local/www/system_certmanager.php index 8fd1d6f..5a4f024 100644 --- a/src/usr/local/www/system_certmanager.php +++ b/src/usr/local/www/system_certmanager.php @@ -394,12 +394,6 @@ if ($_POST) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - /* save modifications */ if (!$input_errors) { @@ -532,12 +526,6 @@ if ($_POST) { $subject_mismatch = true; } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - /* save modifications */ if (!$input_errors) { diff --git a/src/usr/local/www/system_crlmanager.php b/src/usr/local/www/system_crlmanager.php index b5aea41..b147cf0 100644 --- a/src/usr/local/www/system_crlmanager.php +++ b/src/usr/local/www/system_crlmanager.php @@ -245,12 +245,6 @@ if ($_POST) { array_push($input_errors, "The field 'Descriptive Name' contains invalid characters."); } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - /* save modifications */ if (!$input_errors) { $result = false; diff --git a/src/usr/local/www/system_groupmanager_addprivs.php b/src/usr/local/www/system_groupmanager_addprivs.php index 5ce9ce9..c773ffb 100644 --- a/src/usr/local/www/system_groupmanager_addprivs.php +++ b/src/usr/local/www/system_groupmanager_addprivs.php @@ -100,12 +100,6 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { if (!is_array($pconfig['sysprivs'])) { diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php index b21581b..9a7fd3b 100644 --- a/src/usr/local/www/system_usermanager.php +++ b/src/usr/local/www/system_usermanager.php @@ -307,12 +307,6 @@ if ($_POST['save']) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { conf_mount_rw(); diff --git a/src/usr/local/www/system_usermanager_addprivs.php b/src/usr/local/www/system_usermanager_addprivs.php index f363e3c..923e9ac 100644 --- a/src/usr/local/www/system_usermanager_addprivs.php +++ b/src/usr/local/www/system_usermanager_addprivs.php @@ -105,12 +105,6 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { if (!is_array($pconfig['sysprivs'])) { diff --git a/src/usr/local/www/vpn_l2tp.php b/src/usr/local/www/vpn_l2tp.php index bc13378..859db05 100644 --- a/src/usr/local/www/vpn_l2tp.php +++ b/src/usr/local/www/vpn_l2tp.php @@ -127,12 +127,6 @@ if ($_POST) { $input_errors[] = gettext("Number of L2TP users must be between 1 and 255"); } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { $_POST['remoteip'] = $pconfig['remoteip'] = gen_subnet($_POST['remoteip'], $_POST['l2tp_subnet']); if (is_inrange_v4($_POST['localip'], $_POST['remoteip'], ip_after($_POST['remoteip'], $_POST['n_l2tp_units'] - 1))) { @@ -144,12 +138,6 @@ if ($_POST) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { $l2tpcfg['remoteip'] = $_POST['remoteip']; $l2tpcfg['localip'] = $_POST['localip']; diff --git a/src/usr/local/www/vpn_l2tp_users_edit.php b/src/usr/local/www/vpn_l2tp_users_edit.php index c1f49bd..270ab12 100644 --- a/src/usr/local/www/vpn_l2tp_users_edit.php +++ b/src/usr/local/www/vpn_l2tp_users_edit.php @@ -138,12 +138,6 @@ if ($_POST) { } } - /* if this is an AJAX caller then handle via JSON */ - if (isAjax() && is_array($input_errors)) { - input_errors2Ajax($input_errors); - exit; - } - if (!$input_errors) { if (isset($id) && $a_secret[$id]) { -- cgit v1.1