mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use the settings class get method
This commit is contained in:
@@ -353,7 +353,7 @@ if (is_array($activity)) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//unregistered extension
|
//unregistered extension
|
||||||
if (filter_var($_SESSION['operator_panel']['show_unregistered']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('operator_panel', 'show_unregistered', false)) {
|
||||||
$css_class = "ur_ext";
|
$css_class = "ur_ext";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -551,7 +551,7 @@ if (is_array($activity)) {
|
|||||||
|
|
||||||
if (in_array($extension, $_SESSION['user']['extensions'])) {
|
if (in_array($extension, $_SESSION['user']['extensions'])) {
|
||||||
$user_extensions[] = $block;
|
$user_extensions[] = $block;
|
||||||
} elseif (!empty($ext['call_group']) && filter_var($_SESSION['operator_panel']['group_extensions']['boolean'] ?? false, FILTER_VALIDATE_BOOLEAN)) {
|
} elseif (!empty($ext['call_group']) && $settings->get('operator_panel', 'group_extensions', false)) {
|
||||||
$grouped_extensions[$ext['call_group']][] = $block;
|
$grouped_extensions[$ext['call_group']][] = $block;
|
||||||
} else {
|
} else {
|
||||||
$other_extensions[] = $block;
|
$other_extensions[] = $block;
|
||||||
|
|||||||
@@ -341,7 +341,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//send feature event notify to the phone
|
//send feature event notify to the phone
|
||||||
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('device', 'feature_sync', false)) {
|
||||||
$ring_count = ceil($call_timeout / 6);
|
$ring_count = ceil($call_timeout / 6);
|
||||||
$feature_event_notify = new feature_event_notify;
|
$feature_event_notify = new feature_event_notify;
|
||||||
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
||||||
@@ -503,7 +503,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//prepare the autocomplete
|
//prepare the autocomplete
|
||||||
if(filter_var($_SESSION['follow_me']['follow_me_autocomplete']['boolean'] ?? false, FILTER_VALIDATE_BOOLEAN)) {
|
if ($settings->get('follow_me', 'follow_me_autocomplete', false)) {
|
||||||
echo "<link rel=\"stylesheet\" href=\"".PROJECT_PATH."/resources/jquery/jquery-ui.min.css\" />\n";
|
echo "<link rel=\"stylesheet\" href=\"".PROJECT_PATH."/resources/jquery/jquery-ui.min.css\" />\n";
|
||||||
echo "<script src=\"".PROJECT_PATH."/resources/jquery/jquery-ui.min.js\"></script>\n";
|
echo "<script src=\"".PROJECT_PATH."/resources/jquery/jquery-ui.min.js\"></script>\n";
|
||||||
echo "<script type=\"text/javascript\">\n";
|
echo "<script type=\"text/javascript\">\n";
|
||||||
|
|||||||
@@ -227,7 +227,7 @@
|
|||||||
$p->delete('extension_edit', 'temp');
|
$p->delete('extension_edit', 'temp');
|
||||||
|
|
||||||
//send feature event notify to the phone
|
//send feature event notify to the phone
|
||||||
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('device', 'feature_sync', false)) {
|
||||||
foreach ($extensions as $uuid => $extension) {
|
foreach ($extensions as $uuid => $extension) {
|
||||||
$feature_event_notify = new feature_event_notify;
|
$feature_event_notify = new feature_event_notify;
|
||||||
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
||||||
|
|||||||
@@ -240,7 +240,7 @@
|
|||||||
$p->delete('extension_edit', 'temp');
|
$p->delete('extension_edit', 'temp');
|
||||||
|
|
||||||
//send feature event notify to the phone
|
//send feature event notify to the phone
|
||||||
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('device', 'feature_sync', false)) {
|
||||||
foreach ($extensions as $uuid => $extension) {
|
foreach ($extensions as $uuid => $extension) {
|
||||||
$feature_event_notify = new feature_event_notify;
|
$feature_event_notify = new feature_event_notify;
|
||||||
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
||||||
|
|||||||
@@ -405,7 +405,7 @@
|
|||||||
$p->delete('follow_me_edit', 'temp');
|
$p->delete('follow_me_edit', 'temp');
|
||||||
|
|
||||||
//send feature event notify to the phone
|
//send feature event notify to the phone
|
||||||
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('device', 'feature_sync', false)) {
|
||||||
foreach ($extensions as $uuid => $extension) {
|
foreach ($extensions as $uuid => $extension) {
|
||||||
$feature_event_notify = new feature_event_notify;
|
$feature_event_notify = new feature_event_notify;
|
||||||
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
$feature_event_notify->domain_name = $_SESSION['domain_name'];
|
||||||
|
|||||||
@@ -144,7 +144,7 @@
|
|||||||
echo " <td>".escape($conference_extension)."</td>\n";
|
echo " <td>".escape($conference_extension)."</td>\n";
|
||||||
echo " <td>".escape($participant_pin)."</td>\n";
|
echo " <td>".escape($participant_pin)."</td>\n";
|
||||||
echo " <td class='center'>".escape($member_count)."</td>\n";
|
echo " <td class='center'>".escape($member_count)."</td>\n";
|
||||||
if (permission_exists('conference_interactive_view') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('conference_interactive_view') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$settings->get('theme', 'button_icon_view'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$settings->get('theme', 'button_icon_view'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
@@ -159,3 +159,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
@@ -334,7 +334,7 @@
|
|||||||
$array["dialplans"][$row_id]["dialplan_xml"] .= "</extension>\n";
|
$array["dialplans"][$row_id]["dialplan_xml"] .= "</extension>\n";
|
||||||
|
|
||||||
//dialplan details
|
//dialplan details
|
||||||
if (filter_var($_SESSION['destinations']['dialplan_details']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('destinations', 'dialplan_details', false)) {
|
||||||
|
|
||||||
//check the destination number
|
//check the destination number
|
||||||
$array["dialplans"][$row_id]["dialplan_details"][$y]["domain_uuid"] = $domain_uuid;
|
$array["dialplans"][$row_id]["dialplan_details"][$y]["domain_uuid"] = $domain_uuid;
|
||||||
|
|||||||
@@ -229,7 +229,7 @@
|
|||||||
echo th_order_by('device_profile_name', $text['label-device_profile_name'], $order_by, $order);
|
echo th_order_by('device_profile_name', $text['label-device_profile_name'], $order_by, $order);
|
||||||
echo th_order_by('device_profile_enabled', $text['label-device_profile_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('device_profile_enabled', $text['label-device_profile_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('device_profile_description', $text['label-device_profile_description'], $order_by, $order, null, "class='hide-xs'");
|
echo th_order_by('device_profile_description', $text['label-device_profile_description'], $order_by, $order, null, "class='hide-xs'");
|
||||||
if (permission_exists('device_profile_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('device_profile_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-xs'>".escape($row['device_profile_description'])." </td>\n";
|
echo " <td class='description overflow hide-xs'>".escape($row['device_profile_description'])." </td>\n";
|
||||||
if (permission_exists('device_profile_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('device_profile_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -176,7 +176,7 @@
|
|||||||
echo "<th class='hide-sm-dn'>".$text['label-groups']."</th>\n";
|
echo "<th class='hide-sm-dn'>".$text['label-groups']."</th>\n";
|
||||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('device_vendor_function_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('device_vendor_function_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -256,7 +256,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['description'])."</td>\n";
|
||||||
if (permission_exists('device_vendor_function_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('device_vendor_function_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -170,7 +170,7 @@
|
|||||||
echo th_order_by('name', $text['label-name'], $order_by, $order);
|
echo th_order_by('name', $text['label-name'], $order_by, $order);
|
||||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-xs'");
|
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-xs'");
|
||||||
if (permission_exists('device_vendor_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('device_vendor_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -202,7 +202,7 @@
|
|||||||
echo $text['label-'.$row['enabled']];
|
echo $text['label-'.$row['enabled']];
|
||||||
}
|
}
|
||||||
echo " <td class='description overflow hide-xs'>".escape($row['description'])." </td>\n";
|
echo " <td class='description overflow hide-xs'>".escape($row['description'])." </td>\n";
|
||||||
if (permission_exists('device_vendor_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('device_vendor_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -329,7 +329,7 @@
|
|||||||
echo th_order_by('email_retry_count', $text['label-email_retry_count'], $order_by, $order);
|
echo th_order_by('email_retry_count', $text['label-email_retry_count'], $order_by, $order);
|
||||||
//echo th_order_by('email_action_before', $text['label-email_action_before'], $order_by, $order);
|
//echo th_order_by('email_action_before', $text['label-email_action_before'], $order_by, $order);
|
||||||
echo "<th class='hide-md-dn'>".$text['label-email_action_after']."</th>\n";
|
echo "<th class='hide-md-dn'>".$text['label-email_action_after']."</th>\n";
|
||||||
if (permission_exists('email_queue_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('email_queue_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
echo " <td>".escape($row['email_retry_count'])."</td>\n";
|
echo " <td>".escape($row['email_retry_count'])."</td>\n";
|
||||||
//echo " <td>".escape($row['email_action_before'])."</td>\n";
|
//echo " <td>".escape($row['email_action_before'])."</td>\n";
|
||||||
echo " <td class='hide-md-dn'>".escape($row['email_action_after'])."</td>\n";
|
echo " <td class='hide-md-dn'>".escape($row['email_action_after'])."</td>\n";
|
||||||
if (permission_exists('email_queue_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('email_queue_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -236,7 +236,7 @@
|
|||||||
echo th_order_by('extension', $text['label-extension'], $order_by, $order);
|
echo th_order_by('extension', $text['label-extension'], $order_by, $order);
|
||||||
echo "<th class='hide-md-dn'>".$text['label-user_agent']."</th>\n";
|
echo "<th class='hide-md-dn'>".$text['label-user_agent']."</th>\n";
|
||||||
echo th_order_by('log_status', $text['label-log_status'], $order_by, $order);
|
echo th_order_by('log_status', $text['label-log_status'], $order_by, $order);
|
||||||
if (permission_exists('event_guard_log_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('event_guard_log_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -277,7 +277,7 @@
|
|||||||
echo " <td>".escape($row['extension'])."</td>\n";
|
echo " <td>".escape($row['extension'])."</td>\n";
|
||||||
echo " <td class='hide-md-dn'>".escape($row['user_agent'])."</td>\n";
|
echo " <td class='hide-md-dn'>".escape($row['user_agent'])."</td>\n";
|
||||||
echo " <td>".escape($text['label-'.$row['log_status']])."</td>\n";
|
echo " <td>".escape($text['label-'.$row['log_status']])."</td>\n";
|
||||||
if (permission_exists('event_guard_log_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('event_guard_log_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -331,7 +331,7 @@
|
|||||||
}
|
}
|
||||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('extension_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -425,7 +425,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['description'])."</td>\n";
|
||||||
if (permission_exists('extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('extension_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -239,7 +239,7 @@
|
|||||||
echo th_order_by('fax_email', $text['label-email'], $order_by, $order);
|
echo th_order_by('fax_email', $text['label-email'], $order_by, $order);
|
||||||
echo " <th>".$text['label-tools']."</th>";
|
echo " <th>".$text['label-tools']."</th>";
|
||||||
echo th_order_by('fax_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('fax_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('fax_extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('fax_extension_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -305,7 +305,7 @@
|
|||||||
|
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['fax_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['fax_description'])." </td>\n";
|
||||||
if (permission_exists('fax_extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('fax_extension_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -179,7 +179,7 @@
|
|||||||
//echo th_order_by('fax_retry_sleep', $text['label-fax_retry_sleep'], $order_by, $order);
|
//echo th_order_by('fax_retry_sleep', $text['label-fax_retry_sleep'], $order_by, $order);
|
||||||
echo th_order_by('fax_uri', $text['label-fax_destination'], $order_by, $order, null, null, "&id=".$fax_uuid);
|
echo th_order_by('fax_uri', $text['label-fax_destination'], $order_by, $order, null, null, "&id=".$fax_uuid);
|
||||||
//echo th_order_by('fax_epoch', $text['label-fax_epoch'], $order_by, $order);
|
//echo th_order_by('fax_epoch', $text['label-fax_epoch'], $order_by, $order);
|
||||||
if (filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
//echo " <td>".$row['fax_retry_sleep']." </td>\n";
|
//echo " <td>".$row['fax_retry_sleep']." </td>\n";
|
||||||
echo " <td>".basename($row['fax_uri'])." </td>\n";
|
echo " <td>".basename($row['fax_uri'])." </td>\n";
|
||||||
//echo " <td>".$row['fax_epoch']." </td>\n";
|
//echo " <td>".$row['fax_epoch']." </td>\n";
|
||||||
if (filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$settings->get('theme', 'button_icon_view'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$settings->get('theme', 'button_icon_view'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -203,7 +203,7 @@
|
|||||||
echo th_order_by('phrase_language', $text['label-language'], $order_by, $order);
|
echo th_order_by('phrase_language', $text['label-language'], $order_by, $order);
|
||||||
echo th_order_by('phrase_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('phrase_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('phrase_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn' style='min-width: 40%;'");
|
echo th_order_by('phrase_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn' style='min-width: 40%;'");
|
||||||
if (permission_exists('phrase_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('phrase_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -253,7 +253,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['phrase_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['phrase_description'])." </td>\n";
|
||||||
if (permission_exists('phrase_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('phrase_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -182,7 +182,7 @@
|
|||||||
echo th_order_by('accountcode', $text['label-accountcode'], $order_by, $order);
|
echo th_order_by('accountcode', $text['label-accountcode'], $order_by, $order);
|
||||||
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('pin_number_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('pin_number_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['description'])." </td>\n";
|
||||||
if (permission_exists('pin_number_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('pin_number_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -233,13 +233,13 @@
|
|||||||
echo " <td class='hide-md-dn'>".escape($row['ping-time'])."</td>\n";
|
echo " <td class='hide-md-dn'>".escape($row['ping-time'])."</td>\n";
|
||||||
echo " <td class='hide-md-dn' nowrap='nowrap'>".escape($row['sip_profile_name'])."</td>\n";
|
echo " <td class='hide-md-dn' nowrap='nowrap'>".escape($row['sip_profile_name'])."</td>\n";
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
if (filter_var($_SESSION['registrations']['list_row_button_unregister']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('registrations', 'list_row_button_unregister', false)) {
|
||||||
echo button::create(['type'=>'submit','title'=>$text['button-unregister'],'icon'=>'user-slash fa-fw','style'=>'margin-left: 2px; margin-right: 0;','onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('unregister'); list_form_submit('form_list')"]);
|
echo button::create(['type'=>'submit','title'=>$text['button-unregister'],'icon'=>'user-slash fa-fw','style'=>'margin-left: 2px; margin-right: 0;','onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('unregister'); list_form_submit('form_list')"]);
|
||||||
}
|
}
|
||||||
if (filter_var($_SESSION['registrations']['list_row_button_provision']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('registrations', 'list_row_button_provision', false)) {
|
||||||
echo button::create(['type'=>'submit','title'=>$text['button-provision'],'icon'=>'fax fa-fw','style'=>'margin-left: 2px; margin-right: 0;','onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('provision'); list_form_submit('form_list')"]);
|
echo button::create(['type'=>'submit','title'=>$text['button-provision'],'icon'=>'fax fa-fw','style'=>'margin-left: 2px; margin-right: 0;','onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('provision'); list_form_submit('form_list')"]);
|
||||||
}
|
}
|
||||||
if (filter_var($_SESSION['registrations']['list_row_button_reboot']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('registrations', 'list_row_button_reboot', false)) {
|
||||||
echo button::create(['type'=>'submit','title'=>$text['button-reboot'],'icon'=>'power-off fa-fw','style'=>'margin-left: 2px; margin-right: 0;','onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('reboot'); list_form_submit('form_list')"]);
|
echo button::create(['type'=>'submit','title'=>$text['button-reboot'],'icon'=>'power-off fa-fw','style'=>'margin-left: 2px; margin-right: 0;','onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('reboot'); list_form_submit('form_list')"]);
|
||||||
}
|
}
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
|
|||||||
@@ -249,7 +249,7 @@
|
|||||||
echo th_order_by('ring_group_forward_enabled', $text['label-forwarding'], $order_by, $order);
|
echo th_order_by('ring_group_forward_enabled', $text['label-forwarding'], $order_by, $order);
|
||||||
echo th_order_by('ring_group_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('ring_group_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('ring_group_description', $text['header-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('ring_group_description', $text['header-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('ring_group_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('ring_group_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -295,7 +295,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['ring_group_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['ring_group_description'])." </td>\n";
|
||||||
if (permission_exists('ring_group_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('ring_group_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -240,7 +240,7 @@
|
|||||||
echo " <th class='pct-60'>".$text['label-play']."</th>\n";
|
echo " <th class='pct-60'>".$text['label-play']."</th>\n";
|
||||||
echo th_order_by('stream_enabled', $text['label-stream_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('stream_enabled', $text['label-stream_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('stream_description', $text['label-stream_description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('stream_description', $text['label-stream_description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('stream_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('stream_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -297,7 +297,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['stream_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['stream_description'])." </td>\n";
|
||||||
if (permission_exists('stream_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('stream_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -210,7 +210,7 @@
|
|||||||
echo th_order_by('dialplan_order', $text['label-order'], $order_by, $order, null, "class='center'", ($search != '' ? "search=".$search : null));
|
echo th_order_by('dialplan_order', $text['label-order'], $order_by, $order, null, "class='center'", ($search != '' ? "search=".$search : null));
|
||||||
echo th_order_by('dialplan_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'", ($search != '' ? "search=".$search : null));
|
echo th_order_by('dialplan_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'", ($search != '' ? "search=".$search : null));
|
||||||
echo th_order_by('dialplan_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'", ($search != '' ? "search=".$search : null));
|
echo th_order_by('dialplan_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'", ($search != '' ? "search=".$search : null));
|
||||||
if (permission_exists('time_condition_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('time_condition_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".$row['dialplan_description']." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".$row['dialplan_description']." </td>\n";
|
||||||
if (permission_exists('time_condition_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('time_condition_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -411,7 +411,7 @@
|
|||||||
}
|
}
|
||||||
echo th_order_by('greeting_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn pct-25'", "id=".urlencode($voicemail_id));
|
echo th_order_by('greeting_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn pct-25'", "id=".urlencode($voicemail_id));
|
||||||
$col_count++;
|
$col_count++;
|
||||||
if (permission_exists('voicemail_greeting_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('voicemail_greeting_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -484,7 +484,7 @@
|
|||||||
echo " <td class='center no-wrap hide-xs'>".$file_date."</td>\n";
|
echo " <td class='center no-wrap hide-xs'>".$file_date."</td>\n";
|
||||||
}
|
}
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['greeting_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['greeting_description'])." </td>\n";
|
||||||
if (permission_exists('voicemail_greeting_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('voicemail_greeting_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -654,15 +654,16 @@
|
|||||||
$parameters['offset'] = intval($offset);
|
$parameters['offset'] = intval($offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$settings->get('cdr', 'archive_database_driver')
|
||||||
$sql = str_replace(" ", " ", $sql);
|
$sql = str_replace(" ", " ", $sql);
|
||||||
if ($archive_request && filter_var($_SESSION['cdr']['archive_database']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('cdr', 'archive_database', false)) {
|
||||||
$database->driver = $_SESSION['cdr']['archive_database_driver']['text'];
|
$database->driver = $settings->get('cdr', 'archive_database_driver');
|
||||||
$database->host = $_SESSION['cdr']['archive_database_host']['text'];
|
$database->host = $settings->get('cdr', 'archive_database_host');
|
||||||
$database->type = $_SESSION['cdr']['archive_database_type']['text'];
|
$database->type = $settings->get('cdr', 'archive_database_type');
|
||||||
$database->port = $_SESSION['cdr']['archive_database_port']['text'];
|
$database->port = $settings->get('cdr', 'archive_database_port');
|
||||||
$database->db_name = $_SESSION['cdr']['archive_database_name']['text'];
|
$database->db_name = $settings->get('cdr', 'archive_database_name');
|
||||||
$database->username = $_SESSION['cdr']['archive_database_username']['text'];
|
$database->username = $settings->get('cdr', 'archive_database_username');
|
||||||
$database->password = $_SESSION['cdr']['archive_database_password']['text'];
|
$database->password = $settings->get('cdr', 'archive_database_password');
|
||||||
}
|
}
|
||||||
$result = $database->select($sql, $parameters, 'all');
|
$result = $database->select($sql, $parameters, 'all');
|
||||||
$result_count = is_array($result) ? sizeof($result) : 0;
|
$result_count = is_array($result) ? sizeof($result) : 0;
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
//$contact_users = $_POST["contact_users"];
|
//$contact_users = $_POST["contact_users"];
|
||||||
//$contact_groups = $_POST["contact_groups"];
|
//$contact_groups = $_POST["contact_groups"];
|
||||||
$contact_user_uuid = filter_var($_SESSION['contact']['permissions']['boolean'] ?? false, FILTER_VALIDATE_BOOLEAN) ? ($_POST["contact_user_uuid"] ?? $_SESSION["user_uuid"]) : ($contact_user_uuid = $_POST["contact_user_uuid"] ?? null);
|
$contact_user_uuid = $settings->get('contact', 'permissions', false) ? ($_POST["contact_user_uuid"] ?? $_SESSION["user_uuid"]) : ($contact_user_uuid = $_POST["contact_user_uuid"] ?? null);
|
||||||
$contact_group_uuid = $_POST["contact_group_uuid"] ?? null;
|
$contact_group_uuid = $_POST["contact_group_uuid"] ?? null;
|
||||||
|
|
||||||
$contact_phones = $_POST["contact_phones"];
|
$contact_phones = $_POST["contact_phones"];
|
||||||
@@ -1529,7 +1529,7 @@ echo " </div>\n";
|
|||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
unset($contact_note);
|
unset($contact_note);
|
||||||
|
|
||||||
if (filter_var($_SESSION['contact']['permissions']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if ($settings->get('contact', 'permissions', false)) {
|
||||||
if (permission_exists('contact_user_view') || permission_exists('contact_group_view')) {
|
if (permission_exists('contact_user_view') || permission_exists('contact_group_view')) {
|
||||||
echo " <div class='form_set card'>\n";
|
echo " <div class='form_set card'>\n";
|
||||||
echo " <div class='heading'>\n";
|
echo " <div class='heading'>\n";
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
echo "<th>".$text['label-phone_type']."</th>\n";
|
echo "<th>".$text['label-phone_type']."</th>\n";
|
||||||
echo "<th>".$text['label-phone_tools']."</th>\n";
|
echo "<th>".$text['label-phone_tools']."</th>\n";
|
||||||
echo "<th class='hide-md-dn'>".$text['label-phone_description']."</th>\n";
|
echo "<th class='hide-md-dn'>".$text['label-phone_description']."</th>\n";
|
||||||
if (permission_exists('contact_phone_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('contact_phone_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".escape($row['phone_description'])." </td>\n";
|
echo " <td class='description overflow hide-md-dn'>".escape($row['phone_description'])." </td>\n";
|
||||||
if (permission_exists('contact_phone_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('contact_phone_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
echo "<th class='pct-15'>".$text['label-url_label']."</th>\n";
|
echo "<th class='pct-15'>".$text['label-url_label']."</th>\n";
|
||||||
echo "<th>".$text['label-url_address']."</th>\n";
|
echo "<th>".$text['label-url_address']."</th>\n";
|
||||||
echo "<th class='hide-md-dn'>".$text['label-url_description']."</th>\n";
|
echo "<th class='hide-md-dn'>".$text['label-url_description']."</th>\n";
|
||||||
if (permission_exists('contact_url_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('contact_url_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
echo " <td>".escape($row['url_label'])." ".($row['url_primary'] ? " <i class='fas fa-star fa-xs' style='float: right; margin-top: 0.5em; margin-right: -0.5em;' title=\"".$text['label-primary']."\"></i>" : null)."</td>\n";
|
echo " <td>".escape($row['url_label'])." ".($row['url_primary'] ? " <i class='fas fa-star fa-xs' style='float: right; margin-top: 0.5em; margin-right: -0.5em;' title=\"".$text['label-primary']."\"></i>" : null)."</td>\n";
|
||||||
echo " <td class='no-link overflow no-wrap'><a href='".escape($row['url_address'])."' target='_blank'>".str_replace("http://", "", str_replace("https://", "", escape($row['url_address'])))."</a></td>\n";
|
echo " <td class='no-link overflow no-wrap'><a href='".escape($row['url_address'])."' target='_blank'>".str_replace("http://", "", str_replace("https://", "", escape($row['url_address'])))."</a></td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".escape($row['url_description'])." </td>\n";
|
echo " <td class='description overflow hide-md-dn'>".escape($row['url_description'])." </td>\n";
|
||||||
if (permission_exists('contact_url_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('contact_url_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -194,7 +194,7 @@
|
|||||||
echo th_order_by('dashboard_order', $text['label-dashboard_order'], $order_by, $order);
|
echo th_order_by('dashboard_order', $text['label-dashboard_order'], $order_by, $order);
|
||||||
echo th_order_by('dashboard_enabled', $text['label-dashboard_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('dashboard_enabled', $text['label-dashboard_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-dashboard_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-dashboard_description']."</th>\n";
|
||||||
if (permission_exists('dashboard_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('dashboard_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -238,7 +238,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['dashboard_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['dashboard_description'])."</td>\n";
|
||||||
if (permission_exists('dashboard_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
if (permission_exists('dashboard_edit') && $settings->get('theme', 'list_row_edit_button', false)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$settings->get('theme', 'button_icon_edit'),'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -104,11 +104,11 @@
|
|||||||
|
|
||||||
//retrieve password requirements
|
//retrieve password requirements
|
||||||
if (permission_exists('user_password')) {
|
if (permission_exists('user_password')) {
|
||||||
$required['length'] = $_SESSION['users']['password_length']['numeric'];
|
$required['length'] = $settings->get('users', 'password_length', 12);
|
||||||
$required['number'] = filter_var($_SESSION['users']['password_number']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
$required['number'] = $settings->get('users', 'password_number', false);
|
||||||
$required['lowercase'] = filter_var($_SESSION['users']['password_lowercase']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
$required['lowercase'] = $settings->get('users', 'password_lowercase', false);
|
||||||
$required['uppercase'] = filter_var($_SESSION['users']['password_uppercase']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
$required['uppercase'] = $settings->get('users', 'password_uppercase', false);
|
||||||
$required['special'] = filter_var($_SESSION['users']['password_special']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
$required['special'] = $settings->get('users', 'password_special', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare the data
|
//prepare the data
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
ob_end_clean(); //clean the buffer
|
ob_end_clean(); //clean the buffer
|
||||||
|
|
||||||
//clear the template
|
//clear the template
|
||||||
//if (!filter_var($_SESSION['theme']['cache']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
//if (!$settings->get('theme', 'cache', false)) {
|
||||||
// $_SESSION["template_content"] = '';
|
// $_SESSION["template_content"] = '';
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@@ -290,10 +290,9 @@
|
|||||||
//messages
|
//messages
|
||||||
$view->assign('messages', message::html(true, ' '));
|
$view->assign('messages', message::html(true, ' '));
|
||||||
//session timer
|
//session timer
|
||||||
if (
|
if ($authenticated &&
|
||||||
$authenticated &&
|
|
||||||
file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH.'/app/session_timer/session_timer.php') &&
|
file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH.'/app/session_timer/session_timer.php') &&
|
||||||
filter_var($_SESSION['security']['session_timer_enabled']['boolean'] ?? false, FILTER_VALIDATE_BOOL)
|
$settings->get('security', 'session_timer_enabled', false)
|
||||||
) {
|
) {
|
||||||
include_once PROJECT_PATH.'app/session_timer/session_timer.php';
|
include_once PROJECT_PATH.'app/session_timer/session_timer.php';
|
||||||
$view->assign('session_timer', $session_timer);
|
$view->assign('session_timer', $session_timer);
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//regenerate sessions to avoid session id attacks such as session fixation
|
//regenerate sessions to avoid session id attacks such as session fixation
|
||||||
if (array_key_exists('security',$_SESSION) && filter_var($_SESSION['security']['session_rotate']['boolean'] ?? true, FILTER_VALIDATE_BOOL)) {
|
if (array_key_exists('security',$_SESSION) && $settings->get('security', 'session_rotate', false)) {
|
||||||
$_SESSION['session']['last_activity'] = time();
|
$_SESSION['session']['last_activity'] = time();
|
||||||
if (!isset($_SESSION['session']['created'])) {
|
if (!isset($_SESSION['session']['created'])) {
|
||||||
$_SESSION['session']['created'] = time();
|
$_SESSION['session']['created'] = time();
|
||||||
|
|||||||
Reference in New Issue
Block a user