From 149816cba90024cb5b104d12ec11e2106fa306ef Mon Sep 17 00:00:00 2001 From: doktornotor Date: Thu, 9 Mar 2017 19:41:09 +0100 Subject: Add reason to write_config() call --- src/usr/local/www/wizards/openvpn_wizard.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/usr/local/www/wizards/openvpn_wizard.inc b/src/usr/local/www/wizards/openvpn_wizard.inc index 259d279..afd88b2 100644 --- a/src/usr/local/www/wizards/openvpn_wizard.inc +++ b/src/usr/local/www/wizards/openvpn_wizard.inc @@ -662,7 +662,7 @@ function step12_submitphpaction() { $config['openvpn']['openvpn-server'][] = $server; openvpn_resync('server', $server); - write_config(); + write_config(gettext("OpenVPN configuration saved via OpenVPN Remote Access Server setup wizard.")); header("Location: vpn_openvpn_server.php"); exit; } -- cgit v1.1 From 4f36a53c86f1de21edb937a29453faed715d2031 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Thu, 9 Mar 2017 19:48:17 +0100 Subject: Add reason to write_config() calls --- src/usr/local/www/wizards/setup_wizard.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/wizards/setup_wizard.xml b/src/usr/local/www/wizards/setup_wizard.xml index ba6382a..ba9148c 100644 --- a/src/usr/local/www/wizards/setup_wizard.xml +++ b/src/usr/local/www/wizards/setup_wizard.xml @@ -556,7 +556,7 @@ } else { $_POST['ipaddress'] = $_POST['selectedtype']; $config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype']; - write_config(); + write_config(gettext("WAN interface configuration saved via pfSense setup wizard.")); } if (!$config['interfaces']['lan']) { header("Location: /wizard.php?xml=setup_wizard.xml&stepid=6&next=Next"); @@ -684,7 +684,7 @@ $admin_user =& getUserEntryByUID(0); local_user_set_password($admin_user, $_POST['adminpassword']); local_user_set($admin_user); - write_config(); + write_config(gettext("Admin WebGUI password saved via pfSense setup wizard.")); } else { print_info_box("Passwords do not match! Please press back in the browser window and correct."); die; @@ -747,7 +747,7 @@ } } unset($config['wizardtemp']); - write_config(); + write_config(gettext("Configuration saved on completion of the pfSense setup wizard.")); reload_all(); mwexec_bg("/etc/rc.update_bogons.sh now"); ]]> -- cgit v1.1 From a29f2ee6394a6c6f57d12e03c678d694d4e5f24a Mon Sep 17 00:00:00 2001 From: doktornotor Date: Thu, 9 Mar 2017 19:52:42 +0100 Subject: Add reason to write_config() call --- src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc index 6bd7a05..24c3a42 100644 --- a/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc +++ b/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc @@ -1635,7 +1635,7 @@ function apply_all_chosen_items() { } } } - write_config(); + write_config(gettext("Shaper configuration saved via pfSense traffic shaper wizard.")); } function wizard_get_bandwidthtype_scale($type = "b") { -- cgit v1.1 From 9df2adfcc73c350295e9f82e8e91484536b34b7a Mon Sep 17 00:00:00 2001 From: doktornotor Date: Thu, 9 Mar 2017 19:53:35 +0100 Subject: Add reason to write_config() call --- src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc index e14bc18..1e069d2 100644 --- a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -1727,7 +1727,7 @@ function apply_all_chosen_items() { } } } - write_config(); + write_config(gettext("Shaper configuration saved via pfSense traffic shaper wizard.")); } function wizard_get_bandwidthtype_scale($type = "b") { -- cgit v1.1 From fc0f1121114c18c6fdb91ee61fc870b509c149d1 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 13 Mar 2017 17:22:23 +0100 Subject: Fix broken includes --- src/usr/local/www/wizards/openvpn_wizard.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/usr/local/www/wizards/openvpn_wizard.inc b/src/usr/local/www/wizards/openvpn_wizard.inc index afd88b2..a46f27d 100644 --- a/src/usr/local/www/wizards/openvpn_wizard.inc +++ b/src/usr/local/www/wizards/openvpn_wizard.inc @@ -19,7 +19,11 @@ * limitations under the License. */ +require_once("auth.inc"); +require_once("certs.inc"); +require_once("config.inc"); require_once("openvpn.inc"); +require_once("util.inc"); function has_special_chars($text) { return preg_match('/[^A-Za-z0-9 _-]/', $text); -- cgit v1.1 From 227f3f2dfc49b196d54f79c06f059098e850bd23 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 13 Mar 2017 17:28:10 +0100 Subject: Fix missing includes --- src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc index 24c3a42..f1b4a1a 100644 --- a/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc +++ b/src/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc @@ -19,6 +19,10 @@ * limitations under the License. */ +require_once("config.inc"); +require_once("interfaces.inc"); +require_once("util.inc"); + function step1_stepbeforeformdisplay() { global $stepid, $savemsg, $pkg; -- cgit v1.1 From 32c3804796f13499524bd4a4b8f0f3fe6a0a5158 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Mon, 13 Mar 2017 17:29:54 +0100 Subject: Add missing includes --- src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc index 1e069d2..6c03ecd 100644 --- a/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/src/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -19,6 +19,9 @@ * limitations under the License. */ +require_once("config.inc"); +require_once("interfaces.inc"); +require_once("util.inc"); function step1_stepbeforeformdisplay() { global $stepid, $savemsg, $pkg; -- cgit v1.1