mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-03 18:33:49 +00:00
fixed detection of timezone on debian
removed add_new_switch temporarily, currently not supported
This commit is contained in:
@@ -78,21 +78,6 @@ if (!if_group("superadmin")) {
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
|
||||
echo "<form name='frm' method='post' action='/core/install/install_add_switch.php'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<tr>\n";
|
||||
echo " <td width='30%' class='vncell'>\n";
|
||||
echo " <input id='do_add-switch' type='submit' class='btn' value='".$text['label-add-switch']."'/>";
|
||||
echo " </td>\n";
|
||||
echo " <td width='70%' class='vtable' style='height: 50px;'>\n";
|
||||
echo " <label for='do_add-switch'>";
|
||||
echo " ".$text['description-add-switch'];
|
||||
echo " </label>\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "</table>\n";
|
||||
echo "</form>\n";
|
||||
|
||||
echo "<br><br>";
|
||||
|
||||
echo "<p>WiP</p>";
|
||||
|
||||
@@ -63,7 +63,7 @@ if (is_link('/etc/localtime')) {
|
||||
// Ubuntu / Debian.
|
||||
$data = file_get_contents('/etc/timezone');
|
||||
if ($data) {
|
||||
$timezone = $data;
|
||||
$timezone = rtrim($data);
|
||||
}
|
||||
} elseif (file_exists('/etc/sysconfig/clock')) {
|
||||
// RHEL / CentOS
|
||||
|
||||
Reference in New Issue
Block a user