diff --git a/app/bridges/bridge_edit.php b/app/bridges/bridge_edit.php
index a63b1fbbe2..e1539152c3 100644
--- a/app/bridges/bridge_edit.php
+++ b/app/bridges/bridge_edit.php
@@ -54,7 +54,7 @@
$bridge_uuid = $_POST["bridge_uuid"];
$bridge_name = $_POST["bridge_name"];
$bridge_destination = $_POST["bridge_destination"];
- $bridge_enabled = $_POST["bridge_enabled"] ?: 'false';
+ $bridge_enabled = $_POST["bridge_enabled"];
$bridge_description = $_POST["bridge_description"];
}
@@ -226,8 +226,8 @@
}
else {
echo " \n";
}
echo "
\n";
diff --git a/app/call_block/call_block_edit.php b/app/call_block/call_block_edit.php
index 06c3d5c8e7..c9f1e4e545 100644
--- a/app/call_block/call_block_edit.php
+++ b/app/call_block/call_block_edit.php
@@ -504,8 +504,8 @@ if (permission_exists('call_block_all') || permission_exists('call_block_ring_gr
}
else {
echo " \n";
}
echo "
\n";
diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php
index b00ea7634f..226851708f 100644
--- a/app/call_flows/call_flow_edit.php
+++ b/app/call_flows/call_flow_edit.php
@@ -76,7 +76,7 @@
$call_flow_alternate_sound = $_POST["call_flow_alternate_sound"];
$call_flow_alternate_destination = $_POST["call_flow_alternate_destination"];
$call_flow_context = $_POST["call_flow_context"];
- $call_flow_enabled = $_POST["call_flow_enabled"] ?: 'false';
+ $call_flow_enabled = $_POST["call_flow_enabled"];
$call_flow_description = $_POST["call_flow_description"];
//seperate the action and the param
@@ -725,8 +725,8 @@
}
else {
echo " \n";
}
echo "
\n";
echo "| ".$text['label-enabled']." | \n";
echo "\n";
- echo " \n";
echo " \n";
echo "\n";
echo " | \n";
diff --git a/app/conference_controls/conference_control_detail_edit.php b/app/conference_controls/conference_control_detail_edit.php
index 53fe664ce8..429b9ab9b1 100644
--- a/app/conference_controls/conference_control_detail_edit.php
+++ b/app/conference_controls/conference_control_detail_edit.php
@@ -198,8 +198,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/conference_controls/conference_control_edit.php b/app/conference_controls/conference_control_edit.php
index 6756e88453..90ddf34911 100644
--- a/app/conference_controls/conference_control_edit.php
+++ b/app/conference_controls/conference_control_edit.php
@@ -33,7 +33,7 @@
//get http post variables and set them to php variables
if (is_array($_POST)) {
$control_name = $_POST["control_name"];
- $control_enabled = $_POST["control_enabled"] ?: 'false';
+ $control_enabled = $_POST["control_enabled"];
$control_description = $_POST["control_description"];
}
@@ -169,8 +169,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/conference_profiles/conference_profile_edit.php b/app/conference_profiles/conference_profile_edit.php
index bbb26f3591..1cf6aba71c 100644
--- a/app/conference_profiles/conference_profile_edit.php
+++ b/app/conference_profiles/conference_profile_edit.php
@@ -159,7 +159,7 @@
echo "\n";
echo "\n";
echo " \n";
- echo " \n";
+ echo " \n";
echo " \n";
echo " \n";
echo " \n";
@@ -194,4 +194,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/conference_profiles/conference_profile_param_edit.php b/app/conference_profiles/conference_profile_param_edit.php
index 221afa89cd..baf95f7df3 100644
--- a/app/conference_profiles/conference_profile_param_edit.php
+++ b/app/conference_profiles/conference_profile_param_edit.php
@@ -39,7 +39,7 @@
if (count($_POST)>0) {
$profile_param_name = $_POST["profile_param_name"];
$profile_param_value = $_POST["profile_param_value"];
- $profile_param_enabled = $_POST["profile_param_enabled"];
+ $profile_param_enabled = $_POST["profile_param_enabled"] ?: 'false';
$profile_param_description = $_POST["profile_param_description"];
}
@@ -177,10 +177,18 @@
echo " ".$text['label-profile_param_enabled']."\n";
echo " | \n";
echo "\n";
- echo " \n";
- echo " \n";
- echo " \n";
- echo " \n";
+ if (substr($_SESSION['theme']['input_toggle_style']['text'], 0, 6) == 'switch') {
+ echo " \n";
+ }
+ else {
+ echo " \n";
+ echo " \n";
+ echo " \n";
+ echo " \n";
+ }
echo " \n";
echo $text['description-profile_param_enabled']."\n";
echo " | \n";
@@ -211,4 +219,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php
index 64fd79824b..3641f7617f 100644
--- a/app/conferences/conference_edit.php
+++ b/app/conferences/conference_edit.php
@@ -529,8 +529,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/devices/device_edit.php b/app/devices/device_edit.php
index a46a44700e..8c92ab0546 100644
--- a/app/devices/device_edit.php
+++ b/app/devices/device_edit.php
@@ -1870,8 +1870,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php
index 8aeddee706..3653b48218 100644
--- a/app/devices/device_profile_edit.php
+++ b/app/devices/device_profile_edit.php
@@ -80,7 +80,7 @@
$device_profile_name = $_POST["device_profile_name"];
$device_profile_keys = $_POST["device_profile_keys"];
$device_profile_settings = $_POST["device_profile_settings"];
- $device_profile_enabled = $_POST["device_profile_enabled"];
+ $device_profile_enabled = $_POST["device_profile_enabled"] ?: 'false';
$device_profile_description = $_POST["device_profile_description"];
$device_profile_keys_delete = $_POST["device_profile_keys_delete"];
$device_profile_settings_delete = $_POST["device_profile_settings_delete"];
@@ -724,10 +724,18 @@
echo " ".$text['label-device_profile_enabled']."\n";
echo "\n";
echo "\n";
- echo " \n";
- echo " \n";
- echo " \n";
- echo " \n";
+ if (substr($_SESSION['theme']['input_toggle_style']['text'], 0, 6) == 'switch') {
+ echo " \n";
+ }
+ else {
+ echo " \n";
+ echo " \n";
+ echo " \n";
+ echo " \n";
+ }
echo " \n";
echo $text['description-device_profile_enabled']."\n";
echo " | \n";
diff --git a/app/devices/device_vendor_edit.php b/app/devices/device_vendor_edit.php
index bcef853a22..45df383066 100644
--- a/app/devices/device_vendor_edit.php
+++ b/app/devices/device_vendor_edit.php
@@ -57,7 +57,7 @@
//get http post variables and set them to php variables
if (count($_POST)>0) {
$name = $_POST["name"];
- $enabled = $_POST["enabled"];
+ $enabled = $_POST["enabled"] ?: 'false';
$description = $_POST["description"];
}
@@ -178,10 +178,18 @@
echo " ".$text['label-enabled']."\n";
echo "\n";
echo "\n";
- echo " \n";
- echo " \n";
- echo " \n";
- echo " \n";
+ if (substr($_SESSION['theme']['input_toggle_style']['text'], 0, 6) == 'switch') {
+ echo " \n";
+ }
+ else {
+ echo " \n";
+ echo " \n";
+ echo " \n";
+ echo " \n";
+ }
echo " \n";
echo $text['description-enabled']."\n";
echo " | \n";
@@ -216,4 +224,4 @@
//include the footer
require_once "resources/footer.php";
-?>
\ No newline at end of file
+?>
diff --git a/app/email_templates/email_template_edit.php b/app/email_templates/email_template_edit.php
index 7f0023a5c9..f28cea1dbe 100644
--- a/app/email_templates/email_template_edit.php
+++ b/app/email_templates/email_template_edit.php
@@ -60,7 +60,7 @@
$template_subject = $_POST["template_subject"];
$template_body = $_POST["template_body"];
$template_type = $_POST["template_type"];
- $template_enabled = $_POST["template_enabled"] ?: 'false';
+ $template_enabled = $_POST["template_enabled"];
$template_description = $_POST["template_description"];
}
@@ -438,8 +438,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/extensions/extension_edit.php b/app/extensions/extension_edit.php
index ccc44a52ad..8d9a86bd78 100644
--- a/app/extensions/extension_edit.php
+++ b/app/extensions/extension_edit.php
@@ -2177,8 +2177,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/gateways/gateway_edit.php b/app/gateways/gateway_edit.php
index 5bc4673431..d794b5ea07 100644
--- a/app/gateways/gateway_edit.php
+++ b/app/gateways/gateway_edit.php
@@ -884,8 +884,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/modules/module_edit.php b/app/modules/module_edit.php
index 9bc07ddf23..8f19a0d81c 100644
--- a/app/modules/module_edit.php
+++ b/app/modules/module_edit.php
@@ -250,8 +250,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "\n";
@@ -270,8 +270,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "\n";
diff --git a/app/number_translations/number_translation_edit.php b/app/number_translations/number_translation_edit.php
index 4be971bc8d..edc20d3790 100644
--- a/app/number_translations/number_translation_edit.php
+++ b/app/number_translations/number_translation_edit.php
@@ -352,8 +352,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/phrases/phrase_edit.php b/app/phrases/phrase_edit.php
index 4683a10350..ce67432dc1 100644
--- a/app/phrases/phrase_edit.php
+++ b/app/phrases/phrase_edit.php
@@ -614,8 +614,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/ring_groups/ring_group_edit.php b/app/ring_groups/ring_group_edit.php
index acdad9f7aa..1c908b18a2 100644
--- a/app/ring_groups/ring_group_edit.php
+++ b/app/ring_groups/ring_group_edit.php
@@ -1114,8 +1114,8 @@
}
else {
echo " \n";
- echo " \n";
- echo " \n";
+ echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php
index ee44291ca3..d3f7520c70 100644
--- a/app/sip_profiles/sip_profile_edit.php
+++ b/app/sip_profiles/sip_profile_edit.php
@@ -568,8 +568,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/streams/stream_edit.php b/app/streams/stream_edit.php
index 51f7105f8a..eb65d5269d 100644
--- a/app/streams/stream_edit.php
+++ b/app/streams/stream_edit.php
@@ -58,7 +58,7 @@
$stream_uuid = $_POST["stream_uuid"];
$stream_name = $_POST["stream_name"];
$stream_location = $_POST["stream_location"];
- $stream_enabled = $_POST["stream_enabled"] ?: 'false';
+ $stream_enabled = $_POST["stream_enabled"];
$stream_description = $_POST["stream_description"];
}
@@ -217,8 +217,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/time_conditions/time_condition_edit.php b/app/time_conditions/time_condition_edit.php
index 4d64c2bf83..6f91546f03 100644
--- a/app/time_conditions/time_condition_edit.php
+++ b/app/time_conditions/time_condition_edit.php
@@ -1279,8 +1279,8 @@ if ($action == 'update') {
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/vars/var_edit.php b/app/vars/var_edit.php
index 9d43030c53..25eeeb51e5 100644
--- a/app/vars/var_edit.php
+++ b/app/vars/var_edit.php
@@ -284,8 +284,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php
index 632f0ba683..5d67fdeb02 100644
--- a/app/voicemails/voicemail_edit.php
+++ b/app/voicemails/voicemail_edit.php
@@ -768,8 +768,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/core/default_settings/default_setting_edit.php b/core/default_settings/default_setting_edit.php
index 9fa4c936f8..97f037975b 100644
--- a/core/default_settings/default_setting_edit.php
+++ b/core/default_settings/default_setting_edit.php
@@ -62,7 +62,7 @@
$default_setting_name = strtolower($_POST["default_setting_name"]);
$default_setting_value = $_POST["default_setting_value"];
$default_setting_order = $_POST["default_setting_order"];
- $default_setting_enabled = $_POST["default_setting_enabled"] ?: 'false';
+ $default_setting_enabled = $_POST["default_setting_enabled"];
$default_setting_description = $_POST["default_setting_description"];
}
@@ -793,8 +793,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/core/domains/domain_edit.php b/core/domains/domain_edit.php
index cc40bd94d5..243d6e9514 100644
--- a/core/domains/domain_edit.php
+++ b/core/domains/domain_edit.php
@@ -701,8 +701,8 @@
}
else {
echo " \n";
- echo " \n";
echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/core/user_settings/user_setting_edit.php b/core/user_settings/user_setting_edit.php
index 118831f407..c8e7b6d6ad 100644
--- a/core/user_settings/user_setting_edit.php
+++ b/core/user_settings/user_setting_edit.php
@@ -767,8 +767,8 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
}
else {
echo " \n";
- echo " \n";
- echo " \n";
+ echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";
diff --git a/core/users/user_edit.php b/core/users/user_edit.php
index 63db468ee1..1eefa278f4 100644
--- a/core/users/user_edit.php
+++ b/core/users/user_edit.php
@@ -1062,8 +1062,8 @@
}
else {
echo " \n";
- echo " \n";
- echo " \n";
+ echo " \n";
+ echo " \n";
echo " \n";
}
echo "
\n";