diff --git a/app/bridges/bridge_edit.php b/app/bridges/bridge_edit.php
index a63b1fbbe..e1539152c 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 06c3d5c8e..c9f1e4e54 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 b00ea7634..226851708 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 53fe664ce..429b9ab9b 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 6756e8845..90ddf3491 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 bbb26f359..1cf6aba71 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 221afa89c..baf95f7df 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 64fd79824..3641f7617 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 a46a44700..8c92ab054 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 8aeddee70..3653b4821 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 bcef853a2..45df38306 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 7f0023a5c..f28cea1db 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 ccc44a52a..8d9a86bd7 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 5bc467343..d794b5ea0 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 9bc07ddf2..8f19a0d81 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 4be971bc8..edc20d379 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 4683a1035..ce67432dc 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 acdad9f7a..1c908b18a 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 ee44291ca..d3f7520c7 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 51f7105f8..eb65d5269 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 4d64c2bf8..6f91546f0 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 9d43030c5..25eeeb51e 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 632f0ba68..5d67fdeb0 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 9fa4c936f..97f037975 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 cc40bd94d..243d6e951 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 118831f40..c8e7b6d6a 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 63db468ee..1eefa278f 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";