mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Deprecate device_time_zone the better way to do this is set the time zone information in the default, domains or device settings.
This commit is contained in:
@@ -201,6 +201,7 @@
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_time_zone";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['deprecated'] = "true";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_description";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_description";
|
||||
|
||||
@@ -216,17 +216,6 @@
|
||||
$text['description-password']['pt-pt'] = "Introduza a password.";
|
||||
$text['description-password']['fr-fr'] = "Entrez le mot de passe.";
|
||||
|
||||
|
||||
$text['label-device_time_zone']['en-us'] = "Time Zone";
|
||||
$text['label-device_time_zone']['es-cl'] = "Zona Horaria";
|
||||
$text['label-device_time_zone']['pt-pt'] = "Time Zone";
|
||||
$text['label-device_time_zone']['fr-fr'] = "Fuseau Horaire";
|
||||
|
||||
$text['description-device_time_zone']['en-us'] = "Enter the time zone.";
|
||||
$text['description-device_time_zone']['es-cl'] = "Ingrese una zona horaria.";
|
||||
$text['description-device_time_zone']['pt-pt'] = "Introduza o time zone.";
|
||||
$text['description-device_time_zone']['fr-fr'] = "Entrez le fuseau horaire.";
|
||||
|
||||
$text['label-device_description']['en-us'] = "Description";
|
||||
$text['label-device_description']['es-cl'] = "Descripción";
|
||||
$text['label-device_description']['pt-pt'] = "Descrição";
|
||||
|
||||
@@ -66,7 +66,6 @@ require_once "resources/require.php";
|
||||
$device_firmware_version = check_str($_POST["device_firmware_version"]);
|
||||
$device_provision_enable = check_str($_POST["device_provision_enable"]);
|
||||
$device_template = check_str($_POST["device_template"]);
|
||||
$device_time_zone = check_str($_POST["device_time_zone"]);
|
||||
$device_description = check_str($_POST["device_description"]);
|
||||
//lines
|
||||
$line_number = check_str($_POST["line_number"]);
|
||||
@@ -112,7 +111,6 @@ require_once "resources/require.php";
|
||||
//if (strlen($device_template) == 0) { $msg .= "Please provide: Template<br>\n"; }
|
||||
//if (strlen($device_username) == 0) { $msg .= "Please provide: Username<br>\n"; }
|
||||
//if (strlen($device_password) == 0) { $msg .= "Please provide: Password<br>\n"; }
|
||||
//if (strlen($device_time_zone) == 0) { $msg .= "Please provide: Time Zone<br>\n"; }
|
||||
//if (strlen($device_description) == 0) { $msg .= "Please provide: Description<br>\n"; }
|
||||
if (strlen($msg) > 0) {
|
||||
require_once "resources/header.php";
|
||||
@@ -264,7 +262,6 @@ require_once "resources/require.php";
|
||||
$device_firmware_version = $row["device_firmware_version"];
|
||||
$device_provision_enable = $row["device_provision_enable"];
|
||||
$device_template = $row["device_template"];
|
||||
$device_time_zone = $row["device_time_zone"];
|
||||
$device_description = $row["device_description"];
|
||||
}
|
||||
unset ($prep_statement);
|
||||
@@ -959,17 +956,6 @@ require_once "resources/require.php";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-device_time_zone'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_time_zone' maxlength='255' value=\"$device_time_zone\">\n";
|
||||
echo "<br />\n";
|
||||
echo $text['description-device_time_zone']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-device_description'].":\n";
|
||||
|
||||
Reference in New Issue
Block a user