mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Use boolean setting as true boolean (#7284)
* use boolean setting as true boolean * Update settings class to use the php filter_var function for boolean Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested. I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here. * Update settings class to use the php filter_var function for boolean Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested. I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.
This commit is contained in:
@@ -353,7 +353,7 @@ if (is_array($activity)) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//unregistered extension
|
//unregistered extension
|
||||||
if (!empty($_SESSION['operator_panel']['show_unregistered']['boolean']) && $_SESSION['operator_panel']['show_unregistered']['boolean'] == 'true') {
|
if (filter_var($_SESSION['operator_panel']['show_unregistered']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
$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'], FILTER_VALIDATE_BOOLEAN)) {
|
} elseif (!empty($ext['call_group']) && filter_var($_SESSION['operator_panel']['group_extensions']['boolean'] ?? false, FILTER_VALIDATE_BOOLEAN)) {
|
||||||
$grouped_extensions[$ext['call_group']][] = $block;
|
$grouped_extensions[$ext['call_group']][] = $block;
|
||||||
} else {
|
} else {
|
||||||
$other_extensions[] = $block;
|
$other_extensions[] = $block;
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['bridges'])) {
|
if (!empty($_POST['bridges'])) {
|
||||||
@@ -226,7 +226,7 @@
|
|||||||
echo th_order_by('bridge_destination', $text['label-bridge_destination'], $order_by, $order);
|
echo th_order_by('bridge_destination', $text['label-bridge_destination'], $order_by, $order);
|
||||||
echo th_order_by('bridge_enabled', $text['label-bridge_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('bridge_enabled', $text['label-bridge_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-bridge_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-bridge_description']."</th>\n";
|
||||||
if (permission_exists('bridge_edit') && !empty($list_row_edit_button) && $list_row_edit_button == 'true') {
|
if (permission_exists('bridge_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['bridge_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['bridge_description'])."</td>\n";
|
||||||
if (permission_exists('bridge_edit') && !empty($list_row_edit_button) && $list_row_edit_button == 'true') {
|
if (permission_exists('bridge_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['call_blocks'])) {
|
if (!empty($_POST['call_blocks'])) {
|
||||||
@@ -301,7 +301,7 @@
|
|||||||
echo th_order_by('call_block_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('call_block_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('insert_date', $text['label-date-added'], $order_by, $order, null, "class='shrink no-wrap'");
|
echo th_order_by('insert_date', $text['label-date-added'], $order_by, $order, null, "class='shrink no-wrap'");
|
||||||
echo "<th class='hide-md-dn pct-20'>".$text['label-description']."</th>\n";
|
echo "<th class='hide-md-dn pct-20'>".$text['label-description']."</th>\n";
|
||||||
if (permission_exists('call_block_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_block_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -385,7 +385,7 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='no-wrap'>".$row['date_formatted']." <span class='hide-sm-dn'>".$row['time_formatted']."</span></td>\n";
|
echo " <td class='no-wrap'>".$row['date_formatted']." <span class='hide-sm-dn'>".$row['time_formatted']."</span></td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".escape($row['call_block_description'])."</td>\n";
|
echo " <td class='description overflow hide-md-dn'>".escape($row['call_block_description'])."</td>\n";
|
||||||
if (permission_exists('call_block_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_block_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['call_broadcasts'])) {
|
if (!empty($_POST['call_broadcasts'])) {
|
||||||
@@ -219,7 +219,7 @@
|
|||||||
echo th_order_by('broadcast_concurrent_limit', $text['label-concurrent-limit'], $order_by, $order);
|
echo th_order_by('broadcast_concurrent_limit', $text['label-concurrent-limit'], $order_by, $order);
|
||||||
echo th_order_by('broadcast_start_time', $text['label-start_time'], $order_by, $order);
|
echo th_order_by('broadcast_start_time', $text['label-start_time'], $order_by, $order);
|
||||||
echo th_order_by('broadcast_description', $text['label-description'], $order_by, $order);
|
echo th_order_by('broadcast_description', $text['label-description'], $order_by, $order);
|
||||||
if (permission_exists('call_broadcast_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_broadcast_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
}
|
}
|
||||||
echo " <td>".escape($broadcast_start_time ?? '')."</td>\n";
|
echo " <td>".escape($broadcast_start_time ?? '')."</td>\n";
|
||||||
echo " <td class='description overflow hide-xs'>".escape($row['broadcast_description'])."</td>\n";
|
echo " <td class='description overflow hide-xs'>".escape($row['broadcast_description'])."</td>\n";
|
||||||
if (permission_exists('call_broadcast_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_broadcast_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['call_center_agents'])) {
|
if (!empty($_POST['call_center_agents'])) {
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
//echo th_order_by('agent_wrap_up_time', $text['label-wrap_up_time'], $order_by, $order);
|
//echo th_order_by('agent_wrap_up_time', $text['label-wrap_up_time'], $order_by, $order);
|
||||||
//echo th_order_by('agent_reject_delay_time', $text['label-reject_delay_time'], $order_by, $order);
|
//echo th_order_by('agent_reject_delay_time', $text['label-reject_delay_time'], $order_by, $order);
|
||||||
//echo th_order_by('agent_busy_delay_time', $text['label-busy_delay_time'], $order_by, $order);
|
//echo th_order_by('agent_busy_delay_time', $text['label-busy_delay_time'], $order_by, $order);
|
||||||
if (permission_exists('call_center_agent_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_center_agent_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
//echo " <td>".$row[agent_wrap_up_time]."</td>\n";
|
//echo " <td>".$row[agent_wrap_up_time]."</td>\n";
|
||||||
//echo " <td>".$row[agent_reject_delay_time]."</td>\n";
|
//echo " <td>".$row[agent_reject_delay_time]."</td>\n";
|
||||||
//echo " <td>".$row[agent_busy_delay_time]."</td>\n";
|
//echo " <td>".$row[agent_busy_delay_time]."</td>\n";
|
||||||
if (permission_exists('call_center_agent_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_center_agent_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['call_center_queues']) && is_array($_POST['call_center_queues'])) {
|
if (!empty($_POST['call_center_queues']) && is_array($_POST['call_center_queues'])) {
|
||||||
@@ -219,7 +219,7 @@
|
|||||||
//echo th_order_by('queue_abandoned_resume_allowed', $text['label-abandoned_resume_allowed'], $order_by, $order);
|
//echo th_order_by('queue_abandoned_resume_allowed', $text['label-abandoned_resume_allowed'], $order_by, $order);
|
||||||
//echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order);
|
//echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order);
|
||||||
echo th_order_by('queue_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('queue_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('call_center_queue_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_center_queue_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -273,7 +273,7 @@
|
|||||||
//echo " <td>".escape($row[queue_abandoned_resume_allowed])." </td>\n";
|
//echo " <td>".escape($row[queue_abandoned_resume_allowed])." </td>\n";
|
||||||
//echo " <td>".escape($row[queue_tier_rule_wait_multiply_level])." </td>\n";
|
//echo " <td>".escape($row[queue_tier_rule_wait_multiply_level])." </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['queue_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['queue_description'])."</td>\n";
|
||||||
if (permission_exists('call_center_queue_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_center_queue_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get search
|
//get search
|
||||||
$search = $_REQUEST['search'] ?? null;
|
$search = $_REQUEST['search'] ?? null;
|
||||||
@@ -235,7 +235,7 @@
|
|||||||
}
|
}
|
||||||
echo th_order_by('call_flow_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('call_flow_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('call_flow_description', $text['label-call_flow_description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('call_flow_description', $text['label-call_flow_description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('call_flow_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_flow_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -291,7 +291,7 @@
|
|||||||
echo escape($row['call_flow_enabled']);
|
echo escape($row['call_flow_enabled']);
|
||||||
}
|
}
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['call_flow_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['call_flow_description'])." </td>\n";
|
||||||
if (permission_exists('call_flow_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('call_flow_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -296,8 +296,8 @@
|
|||||||
echo " <th>" . $text['label-dnd'] . "</th>\n";
|
echo " <th>" . $text['label-dnd'] . "</th>\n";
|
||||||
}
|
}
|
||||||
echo " <th class='" . ($is_included ? 'hide-md-dn' : 'hide-sm-dn') . "'>" . $text['label-description'] . "</th>\n";
|
echo " <th class='" . ($is_included ? 'hide-md-dn' : 'hide-sm-dn') . "'>" . $text['label-description'] . "</th>\n";
|
||||||
$list_row_edit_button = $_SESSION['theme']['list_row_edit_button']['boolean'] ?? 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
if ( $list_row_edit_button === 'true') {
|
if ($list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -402,7 +402,7 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
}
|
}
|
||||||
echo " <td class='description overflow " . ($is_included ? 'hide-md-dn' : 'hide-sm-dn') . "'>" . escape($row['description']) . " </td>\n";
|
echo " <td class='description overflow " . ($is_included ? 'hide-md-dn' : 'hide-sm-dn') . "'>" . escape($row['description']) . " </td>\n";
|
||||||
if ($list_row_edit_button === 'true') {
|
if ($list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type' => 'button', 'title' => $text['button-edit'], 'icon' => $_SESSION['theme']['button_icon_edit'], 'link' => $list_row_url]);
|
echo button::create(['type' => 'button', 'title' => $text['button-edit'], 'icon' => $_SESSION['theme']['button_icon_edit'], 'link' => $list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -341,7 +341,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
//send feature event notify to the phone
|
//send feature event notify to the phone
|
||||||
if (!empty($_SESSION['device']['feature_sync']['boolean']) && $_SESSION['device']['feature_sync']['boolean'] == "true") {
|
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
$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'];
|
||||||
@@ -358,7 +358,7 @@
|
|||||||
else {
|
else {
|
||||||
$feature_event_notify->forward_all_destination = $forward_all_destination;
|
$feature_event_notify->forward_all_destination = $forward_all_destination;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($forward_busy_destination == "") {
|
if ($forward_busy_destination == "") {
|
||||||
$feature_event_notify->forward_busy_destination = "0";
|
$feature_event_notify->forward_busy_destination = "0";
|
||||||
}
|
}
|
||||||
@@ -504,7 +504,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//prepare the autocomplete
|
//prepare the autocomplete
|
||||||
if(!empty($_SESSION['follow_me']['follow_me_autocomplete']['boolean']) && $_SESSION['follow_me']['follow_me_autocomplete']['boolean'] == 'true') {
|
if(filter_var($_SESSION['follow_me']['follow_me_autocomplete']['boolean'] ?? false, FILTER_VALIDATE_BOOLEAN)) {
|
||||||
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 (!empty($_SESSION['device']['feature_sync']['boolean']) && $_SESSION['device']['feature_sync']['boolean'] == "true") {
|
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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 (!empty($_SESSION['device']['feature_sync']['boolean']) && $_SESSION['device']['feature_sync']['boolean'] == "true") {
|
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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 (!empty($_SESSION['device']['feature_sync']['boolean']) && $_SESSION['device']['feature_sync']['boolean'] == "true") {
|
if (filter_var($_SESSION['device']['feature_sync']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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'];
|
||||||
|
|||||||
@@ -84,8 +84,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['conference_centers'])) {
|
if (!empty($_POST['conference_centers'])) {
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
echo th_order_by('conference_center_pin_length', $text['label-conference_center_pin_length'], $order_by, $order, null, "class='center shrink'");
|
echo th_order_by('conference_center_pin_length', $text['label-conference_center_pin_length'], $order_by, $order, null, "class='center shrink'");
|
||||||
echo th_order_by('conference_center_enabled', $text['label-conference_center_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('conference_center_enabled', $text['label-conference_center_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('conference_center_description', $text['label-conference_center_description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('conference_center_description', $text['label-conference_center_description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('conference_center_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_center_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -266,7 +266,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['conference_center_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['conference_center_description'])." </td>\n";
|
||||||
if (permission_exists('conference_center_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_center_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -49,7 +49,7 @@
|
|||||||
$search = $_GET["search"] ?? null;
|
$search = $_GET["search"] ?? null;
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['conference_rooms'])) {
|
if (!empty($_POST['conference_rooms'])) {
|
||||||
@@ -300,7 +300,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('conference_room_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_room_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -490,7 +490,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
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('conference_room_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_room_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//set variables from the http values
|
//set variables from the http values
|
||||||
$order_by = $_GET["order_by"] ?? '' ? $_GET["order_by"] : 'start_epoch';
|
$order_by = $_GET["order_by"] ?? '' ? $_GET["order_by"] : 'start_epoch';
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
echo "<th>".$text['label-time']."</th>\n";
|
echo "<th>".$text['label-time']."</th>\n";
|
||||||
echo th_order_by('start_epoch', $text['label-start'], $order_by, $order);
|
echo th_order_by('start_epoch', $text['label-start'], $order_by, $order);
|
||||||
echo th_order_by('end_epoch', $text['label-end'], $order_by, $order);
|
echo th_order_by('end_epoch', $text['label-end'], $order_by, $order);
|
||||||
if (permission_exists('conference_session_details') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_session_details') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
echo " <td>".$time_difference." </td>\n";
|
echo " <td>".$time_difference." </td>\n";
|
||||||
echo " <td>".$start_date." </td>\n";
|
echo " <td>".$start_date." </td>\n";
|
||||||
echo " <td>".$end_date." </td>\n";
|
echo " <td>".$end_date." </td>\n";
|
||||||
if (permission_exists('conference_session_details') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_session_details') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['conference_sessions'])) {
|
if (!empty($_POST['conference_sessions'])) {
|
||||||
@@ -172,7 +172,7 @@
|
|||||||
echo th_order_by('profile', $text['label-profile'], $order_by, $order);
|
echo th_order_by('profile', $text['label-profile'], $order_by, $order);
|
||||||
//echo th_order_by('recording', $text['label-recording'], $order_by, $order);
|
//echo th_order_by('recording', $text['label-recording'], $order_by, $order);
|
||||||
echo "<th>".$text['label-tools']."</th>\n";
|
echo "<th>".$text['label-tools']."</th>\n";
|
||||||
if ($list_row_edit_button == 'true') {
|
if ($list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -232,7 +232,7 @@
|
|||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
if ($list_row_edit_button == 'true') {
|
if ($list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['conference_control_details'])) {
|
if (!empty($_POST['conference_control_details'])) {
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
echo th_order_by('control_action', $text['label-control_action'], $order_by, $order, null, null, $param);
|
echo th_order_by('control_action', $text['label-control_action'], $order_by, $order, null, null, $param);
|
||||||
echo th_order_by('control_data', $text['label-control_data'], $order_by, $order, null, "class='pct-50 hide-xs'", $param);
|
echo th_order_by('control_data', $text['label-control_data'], $order_by, $order, null, "class='pct-50 hide-xs'", $param);
|
||||||
echo th_order_by('control_enabled', $text['label-control_enabled'], $order_by, $order, null, "class='center'", $param);
|
echo th_order_by('control_enabled', $text['label-control_enabled'], $order_by, $order, null, "class='center'", $param);
|
||||||
if (permission_exists('conference_control_detail_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_control_detail_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -200,7 +200,7 @@
|
|||||||
echo $text['label-'.$row['control_enabled']];
|
echo $text['label-'.$row['control_enabled']];
|
||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
if (permission_exists('conference_control_detail_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_control_detail_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['conference_controls'])) {
|
if (!empty($_POST['conference_controls'])) {
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
echo th_order_by('control_name', $text['label-control_name'], $order_by, $order);
|
echo th_order_by('control_name', $text['label-control_name'], $order_by, $order);
|
||||||
echo th_order_by('control_enabled', $text['label-control_enabled'], $order_by, $order, null, "class='center shrink'");
|
echo th_order_by('control_enabled', $text['label-control_enabled'], $order_by, $order, null, "class='center shrink'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-control_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-control_description']."</th>\n";
|
||||||
if (permission_exists('conference_control_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_control_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -215,7 +215,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['control_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['control_description'])."</td>\n";
|
||||||
if (permission_exists('conference_control_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_control_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['conference_profile_params'])) {
|
if (!empty($_POST['conference_profile_params'])) {
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
echo th_order_by('profile_param_value', $text['label-profile_param_value'], $order_by, $order, null, "class='pct-40'", $param);
|
echo th_order_by('profile_param_value', $text['label-profile_param_value'], $order_by, $order, null, "class='pct-40'", $param);
|
||||||
echo th_order_by('profile_param_enabled', $text['label-profile_param_enabled'], $order_by, $order, null, "class='center'", $param);
|
echo th_order_by('profile_param_enabled', $text['label-profile_param_enabled'], $order_by, $order, null, "class='center'", $param);
|
||||||
echo th_order_by('profile_param_description', $text['label-profile_param_description'], $order_by, $order, null, "class='hide-sm-dn'", $param);
|
echo th_order_by('profile_param_description', $text['label-profile_param_description'], $order_by, $order, null, "class='hide-sm-dn'", $param);
|
||||||
if (permission_exists('conference_profile_param_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_profile_param_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -189,7 +189,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['profile_param_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['profile_param_description'])." </td>\n";
|
||||||
if (permission_exists('conference_profile_param_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_profile_param_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
$search = $_GET["search"] ?? '';
|
$search = $_GET["search"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['conference_profiles'])) {
|
if (!empty($_POST['conference_profiles'])) {
|
||||||
@@ -175,7 +175,7 @@
|
|||||||
echo th_order_by('profile_name', $text['label-profile_name'], $order_by, $order);
|
echo th_order_by('profile_name', $text['label-profile_name'], $order_by, $order);
|
||||||
echo th_order_by('profile_enabled', $text['label-profile_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('profile_enabled', $text['label-profile_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-profile_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-profile_description']."</th>\n";
|
||||||
if (permission_exists('conference_profile_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_profile_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['profile_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['profile_description'])."</td>\n";
|
||||||
if (permission_exists('conference_profile_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_profile_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['conferences'])) {
|
if (!empty($_POST['conferences'])) {
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
echo "<th style='text-align: center;'>".$text['label-tools']."</th>\n";
|
echo "<th style='text-align: center;'>".$text['label-tools']."</th>\n";
|
||||||
echo th_order_by('conference_enabled', $text['table-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('conference_enabled', $text['table-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('conference_description', $text['table-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('conference_description', $text['table-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('conference_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -281,7 +281,7 @@
|
|||||||
echo $text['label-'.$row['conference_enabled']];
|
echo $text['label-'.$row['conference_enabled']];
|
||||||
}
|
}
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['conference_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['conference_description'])." </td>\n";
|
||||||
if (permission_exists('conference_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('conference_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('conference_interactive_view') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
$order = $_GET["order"] ?? '';
|
$order = $_GET["order"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$button_icon_view = !empty($_SESSION['theme']['button_icon_view']) ? $_SESSION['theme']['button_icon_view'] : '';
|
$button_icon_view = !empty($_SESSION['theme']['button_icon_view']) ? $_SESSION['theme']['button_icon_view'] : '';
|
||||||
|
|
||||||
//add the user filter and search term
|
//add the user filter and search term
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
echo th_order_by('transaction_address', $text['label-transaction_address'], $order_by, $order);
|
echo th_order_by('transaction_address', $text['label-transaction_address'], $order_by, $order);
|
||||||
echo th_order_by('transaction_type', $text['label-transaction_type'], $order_by, $order);
|
echo th_order_by('transaction_type', $text['label-transaction_type'], $order_by, $order);
|
||||||
echo th_order_by('transaction_date', $text['label-transaction_date'], $order_by, $order);
|
echo th_order_by('transaction_date', $text['label-transaction_date'], $order_by, $order);
|
||||||
if (permission_exists('database_transaction_edit') && !empty($list_row_edit_button) && $list_row_edit_button == 'true') {
|
if (permission_exists('database_transaction_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -210,7 +210,7 @@
|
|||||||
echo " <td>".escape($row['transaction_address'])." </td>\n";
|
echo " <td>".escape($row['transaction_address'])." </td>\n";
|
||||||
echo " <td>".escape($row['transaction_type'])." </td>\n";
|
echo " <td>".escape($row['transaction_type'])." </td>\n";
|
||||||
echo " <td>".escape($row['transaction_date'])." </td>\n";
|
echo " <td>".escape($row['transaction_date'])." </td>\n";
|
||||||
if (permission_exists('database_transaction_edit') && !empty($list_row_edit_button) && $list_row_edit_button == 'true') {
|
if (permission_exists('database_transaction_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -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 ($_SESSION['destinations']['dialplan_details']['boolean'] == "true") {
|
if (filter_var($_SESSION['destinations']['dialplan_details']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
|
|
||||||
//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;
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
$order = $_GET["order"] ?? '';
|
$order = $_GET["order"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//prepare to page the results
|
//prepare to page the results
|
||||||
$sql = "select count(*) from v_destinations ";
|
$sql = "select count(*) from v_destinations ";
|
||||||
@@ -365,7 +365,7 @@
|
|||||||
}
|
}
|
||||||
echo th_order_by('destination_enabled', $text['label-destination_enabled'], $order_by, $order, $param);
|
echo th_order_by('destination_enabled', $text['label-destination_enabled'], $order_by, $order, $param);
|
||||||
echo th_order_by('destination_description', $text['label-destination_description'], $order_by, $order, $param, "class='hide-sm-dn'");
|
echo th_order_by('destination_description', $text['label-destination_description'], $order_by, $order, $param, "class='hide-sm-dn'");
|
||||||
if (permission_exists('destination_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('destination_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -434,9 +434,9 @@
|
|||||||
}
|
}
|
||||||
echo " <td>".escape($text['label-'.$row['destination_enabled']])." </td>\n";
|
echo " <td>".escape($text['label-'.$row['destination_enabled']])." </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['destination_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['destination_description'])." </td>\n";
|
||||||
if (permission_exists('destination_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('destination_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$list_row_edit_button,'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|||||||
@@ -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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('device_profile_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('device_profile_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('device_vendor_function_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('device_vendor_function_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('device_vendor_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('device_vendor_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -181,9 +181,9 @@
|
|||||||
// load editor preferences/defaults
|
// load editor preferences/defaults
|
||||||
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
||||||
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
||||||
$setting_invisibles = isset($_SESSION["editor"]["invisibles"]["boolean"]) && $_SESSION["editor"]["invisibles"]["boolean"] != '' ? $_SESSION["editor"]["invisibles"]["boolean"] : 'false';
|
$setting_invisibles = filter_var($_SESSION["editor"]["invisibles"]["boolean"] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$setting_indenting = isset($_SESSION["editor"]["indent_guides"]["boolean"]) && $_SESSION["editor"]["indent_guides"]["boolean"] != '' ? $_SESSION["editor"]["indent_guides"]["boolean"] : 'false';
|
$setting_indenting = filter_var($_SESSION["editor"]["indent_guides"]["boolean"] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$setting_numbering = isset($_SESSION["editor"]["line_numbers"]["boolean"]) && $_SESSION["editor"]["line_numbers"]["boolean"] != '' ? $_SESSION["editor"]["line_numbers"]["boolean"] : 'true';
|
$setting_numbering = filter_var($_SESSION["editor"]["line_numbers"]["boolean"] ?? true, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//create token
|
//create token
|
||||||
$object = new token;
|
$object = new token;
|
||||||
|
|||||||
@@ -134,15 +134,15 @@
|
|||||||
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$button_icon_add = !empty($_SESSION['theme']['button_icon_add']) ? $_SESSION['theme']['button_icon_add'] : '';
|
$button_icon_add = $_SESSION['theme']['button_icon_add'] ?? '';
|
||||||
$button_icon_copy = !empty($_SESSION['theme']['button_icon_copy']) ? $_SESSION['theme']['button_icon_copy'] : '';
|
$button_icon_copy = $_SESSION['theme']['button_icon_copy'] ?? '';
|
||||||
$button_icon_toggle = !empty($_SESSION['theme']['button_icon_toggle']) ? $_SESSION['theme']['button_icon_toggle'] : '';
|
$button_icon_toggle = $_SESSION['theme']['button_icon_toggle'] ?? '';
|
||||||
$button_icon_all = !empty($_SESSION['theme']['button_icon_all']) ? $_SESSION['theme']['button_icon_all'] : '';
|
$button_icon_all = $_SESSION['theme']['button_icon_all'] ?? '';
|
||||||
$button_icon_delete = !empty($_SESSION['theme']['button_icon_delete']) ? $_SESSION['theme']['button_icon_delete'] : '';
|
$button_icon_delete = $_SESSION['theme']['button_icon_delete'] ?? '';
|
||||||
$button_icon_search = !empty($_SESSION['theme']['button_icon_search']) ? $_SESSION['theme']['button_icon_search'] : '';
|
$button_icon_search = $_SESSION['theme']['button_icon_search'] ?? '';
|
||||||
$button_icon_edit = !empty($_SESSION['theme']['button_icon_edit']) ? $_SESSION['theme']['button_icon_edit'] : '';
|
$button_icon_edit = $_SESSION['theme']['button_icon_edit'] ?? '';
|
||||||
$button_icon_reset = !empty($_SESSION['theme']['button_icon_reset']) ? $_SESSION['theme']['button_icon_reset'] : '';
|
$button_icon_reset = $_SESSION['theme']['button_icon_reset'] ?? '';
|
||||||
|
|
||||||
//get the number of rows in the dialplan
|
//get the number of rows in the dialplan
|
||||||
$sql = "select count(*) from v_dialplans ";
|
$sql = "select count(*) from v_dialplans ";
|
||||||
@@ -541,7 +541,7 @@
|
|||||||
($app_uuid == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
($app_uuid == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
||||||
($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7" && permission_exists('fifo_edit')) ||
|
($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7" && permission_exists('fifo_edit')) ||
|
||||||
($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) ||
|
($app_uuid == "4b821450-926b-175a-af93-a03c441818b1" && permission_exists('time_condition_edit')) ||
|
||||||
permission_exists('dialplan_edit')) && $list_row_edit_button == 'true'
|
permission_exists('dialplan_edit')) && $list_row_edit_button
|
||||||
) {
|
) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
@@ -625,7 +625,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['dialplan_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['dialplan_description'])." </td>\n";
|
||||||
if ($list_row_edit_button == 'true' && (
|
if ($list_row_edit_button && (
|
||||||
(!is_uuid($app_uuid) && permission_exists('dialplan_edit')) ||
|
(!is_uuid($app_uuid) && permission_exists('dialplan_edit')) ||
|
||||||
($row['app_uuid'] == "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4" && permission_exists('inbound_route_edit')) ||
|
($row['app_uuid'] == "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4" && permission_exists('inbound_route_edit')) ||
|
||||||
($row['app_uuid'] == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
($row['app_uuid'] == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3" && permission_exists('outbound_route_edit')) ||
|
||||||
|
|||||||
@@ -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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('email_queue_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('email_queue_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -236,9 +236,9 @@
|
|||||||
//load editor preferences/defaults
|
//load editor preferences/defaults
|
||||||
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
||||||
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
||||||
$setting_invisibles = !empty($_SESSION["editor"]["invisibles"]["boolean"]) ? $_SESSION["editor"]["invisibles"]["boolean"] : 'false';
|
$setting_invisibles = filter_var($_SESSION["editor"]["invisibles"]["boolean"] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$setting_indenting = !empty($_SESSION["editor"]["indent_guides"]["boolean"]) ? $_SESSION["editor"]["indent_guides"]["boolean"] : 'false';
|
$setting_indenting = filter_var($_SESSION["editor"]["indent_guides"]["boolean"] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$setting_numbering = !empty($_SESSION["editor"]["line_numbers"]["boolean"]) ? $_SESSION["editor"]["line_numbers"]["boolean"] : 'true';
|
$setting_numbering = filter_var($_SESSION["editor"]["line_numbers"]["boolean"] ?? true, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//create token
|
//create token
|
||||||
$object = new token;
|
$object = new token;
|
||||||
@@ -518,7 +518,7 @@
|
|||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
if ($_SESSION['email_queue']['save_response']['boolean'] == 'true') {
|
if (filter_var($_SESSION['email_queue']['save_response']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo " ".$text['label-email_response']."\n";
|
echo " ".$text['label-email_response']."\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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('event_guard_log_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('event_guard_log_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
$id = '';
|
$id = '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['extension_settings'])) {
|
if (!empty($_POST['extension_settings'])) {
|
||||||
@@ -272,7 +272,7 @@
|
|||||||
echo " <th class='center'>".$text['label-extension_setting_enabled']."</th>\n";
|
echo " <th class='center'>".$text['label-extension_setting_enabled']."</th>\n";
|
||||||
|
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-extension_setting_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-extension_setting_description']."</th>\n";
|
||||||
if (permission_exists('extension_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('extension_setting_edit') && $list_row_edit_button) {
|
||||||
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['extension_setting_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['extension_setting_description'])."</td>\n";
|
||||||
if (permission_exists('extension_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('extension_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('fax_extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('fax_extension_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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 (!empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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 (!empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get total gateway count from the database
|
//get total gateway count from the database
|
||||||
$sql = "select count(*) from v_gateways where true ";
|
$sql = "select count(*) from v_gateways where true ";
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
echo th_order_by('hostname', $text['label-hostname'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('hostname', $text['label-hostname'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
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('gateway_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('gateway_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -371,9 +371,9 @@
|
|||||||
}
|
}
|
||||||
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('gateway_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('gateway_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$list_row_edit_button,'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|||||||
@@ -349,7 +349,7 @@
|
|||||||
$dialplan_xml = "<extension name=\"".xml::sanitize($ivr_menu_name)."\" continue=\"false\" uuid=\"".xml::sanitize($dialplan_uuid)."\">\n";
|
$dialplan_xml = "<extension name=\"".xml::sanitize($ivr_menu_name)."\" continue=\"false\" uuid=\"".xml::sanitize($dialplan_uuid)."\">\n";
|
||||||
$dialplan_xml .= " <condition field=\"destination_number\" expression=\"^".xml::sanitize($ivr_menu_extension)."\$\">\n";
|
$dialplan_xml .= " <condition field=\"destination_number\" expression=\"^".xml::sanitize($ivr_menu_extension)."\$\">\n";
|
||||||
$dialplan_xml .= " <action application=\"ring_ready\" data=\"\"/>\n";
|
$dialplan_xml .= " <action application=\"ring_ready\" data=\"\"/>\n";
|
||||||
if ($_SESSION['ivr_menu']['answer']['boolean'] == 'true') {
|
if (filter_var($_SESSION['ivr_menu']['answer']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
$dialplan_xml .= " <action application=\"answer\" data=\"\"/>\n";
|
$dialplan_xml .= " <action application=\"answer\" data=\"\"/>\n";
|
||||||
}
|
}
|
||||||
$dialplan_xml .= " <action application=\"sleep\" data=\"1000\"/>\n";
|
$dialplan_xml .= " <action application=\"sleep\" data=\"1000\"/>\n";
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//prepare to page the results
|
//prepare to page the results
|
||||||
$sql = "select count(*) from v_ivr_menus ";
|
$sql = "select count(*) from v_ivr_menus ";
|
||||||
@@ -228,7 +228,7 @@
|
|||||||
echo th_order_by('ivr_menu_extension', $text['label-extension'], $order_by, $order);
|
echo th_order_by('ivr_menu_extension', $text['label-extension'], $order_by, $order);
|
||||||
echo th_order_by('ivr_menu_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('ivr_menu_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('ivr_menu_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('ivr_menu_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('ivr_menu_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('ivr_menu_edit') && $list_row_edit_button) {
|
||||||
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-sm-dn'>".escape($row['ivr_menu_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['ivr_menu_description'])." </td>\n";
|
||||||
if (permission_exists('ivr_menu_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('ivr_menu_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//process the http post data by action
|
//process the http post data by action
|
||||||
if ($action != '' && is_array($modules) && @sizeof($modules) != 0) {
|
if ($action != '' && is_array($modules) && @sizeof($modules) != 0) {
|
||||||
@@ -185,7 +185,7 @@
|
|||||||
}
|
}
|
||||||
echo "<th class='center'>".$text['label-enabled']."</th>\n";
|
echo "<th class='center'>".$text['label-enabled']."</th>\n";
|
||||||
echo "<th class='hide-sm-dn' style='min-width: 40%;'>".$text['label-description']."</th>\n";
|
echo "<th class='hide-sm-dn' style='min-width: 40%;'>".$text['label-description']."</th>\n";
|
||||||
if (permission_exists('module_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('module_edit') && $list_row_edit_button) {
|
||||||
echo "<td class='action-button'> </td>\n";
|
echo "<td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row["module_description"])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row["module_description"])." </td>\n";
|
||||||
if (permission_exists('module_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('module_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -87,8 +87,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = Waveform::$singlePhase === true ? false : (empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false); // combine channels into single axis
|
Waveform::$singleAxis = Waveform::$singlePhase === true ? false : (filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL)); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$search = $_GET["search"] ?? '';
|
$search = $_GET["search"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['number_translations'])) {
|
if (!empty($_POST['number_translations'])) {
|
||||||
@@ -217,7 +217,7 @@
|
|||||||
echo th_order_by('number_translation_name', $text['label-number_translation_name'], $order_by, $order);
|
echo th_order_by('number_translation_name', $text['label-number_translation_name'], $order_by, $order);
|
||||||
echo th_order_by('number_translation_enabled', $text['label-number_translation_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('number_translation_enabled', $text['label-number_translation_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-number_translation_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-number_translation_description']."</th>\n";
|
||||||
if (permission_exists('number_translation_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('number_translation_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['number_translation_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['number_translation_description'])."</td>\n";
|
||||||
if (permission_exists('number_translation_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('number_translation_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('phrase_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('phrase_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -181,7 +181,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') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('pin_number_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -222,7 +222,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') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('pin_number_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -94,8 +94,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,13 +234,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 (!empty($_SESSION['registrations']['list_row_button_unregister']['boolean']) && $_SESSION['registrations']['list_row_button_unregister']['boolean'] == 'true') {
|
if (filter_var($_SESSION['registrations']['list_row_button_unregister']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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 (!empty($_SESSION['registrations']['list_row_button_provision']['boolean']) && $_SESSION['registrations']['list_row_button_provision']['boolean'] == 'true') {
|
if (filter_var($_SESSION['registrations']['list_row_button_provision']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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 (!empty($_SESSION['registrations']['list_row_button_reboot']['boolean']) && $_SESSION['registrations']['list_row_button_reboot']['boolean'] == 'true') {
|
if (filter_var($_SESSION['registrations']['list_row_button_reboot']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('ring_group_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('ring_group_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get order and order by
|
//get order and order by
|
||||||
if (isset($_GET["order_by"])) {
|
if (isset($_GET["order_by"])) {
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
echo th_order_by('sip_profile_hostname', $text['label-sip_profile_hostname'], $order_by, $order);
|
echo th_order_by('sip_profile_hostname', $text['label-sip_profile_hostname'], $order_by, $order);
|
||||||
echo th_order_by('sip_profile_enabled', $text['label-sip_profile_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('sip_profile_enabled', $text['label-sip_profile_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('sip_profile_description', $text['label-sip_profile_description'], $order_by, $order, null, "class='hide-sm-dn pct-70'");
|
echo th_order_by('sip_profile_description', $text['label-sip_profile_description'], $order_by, $order, null, "class='hide-sm-dn pct-70'");
|
||||||
if (permission_exists('sip_profile_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('sip_profile_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -221,7 +221,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['sip_profile_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['sip_profile_description'])." </td>\n";
|
||||||
if (permission_exists('sip_profile_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('sip_profile_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
$search = '';
|
$search = '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['sofia_global_settings'])) {
|
if (!empty($_POST['sofia_global_settings'])) {
|
||||||
@@ -201,7 +201,7 @@
|
|||||||
echo th_order_by('global_setting_value', $text['label-global_setting_value'], $order_by, $order);
|
echo th_order_by('global_setting_value', $text['label-global_setting_value'], $order_by, $order);
|
||||||
echo th_order_by('global_setting_enabled', $text['label-global_setting_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('global_setting_enabled', $text['label-global_setting_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-global_setting_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-global_setting_description']."</th>\n";
|
||||||
if (permission_exists('sofia_global_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('sofia_global_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -243,7 +243,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['global_setting_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['global_setting_description'])."</td>\n";
|
||||||
if (permission_exists('sofia_global_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('sofia_global_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('stream_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('stream_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -260,8 +260,8 @@
|
|||||||
|
|
||||||
//get the domain active and inactive counts
|
//get the domain active and inactive counts
|
||||||
$sql = "select ";
|
$sql = "select ";
|
||||||
$sql .= "(select count(*) from v_domains where domain_enabled = 'true') as active, ";
|
$sql .= "(select count(domain_uuid) from v_domains where domain_enabled = 'true') as active, ";
|
||||||
$sql .= "(select count(*) from v_domains where domain_enabled = 'false') as inactive; ";
|
$sql .= "(select count(domain_uuid) from v_domains where domain_enabled = 'false') as inactive; ";
|
||||||
$row = $database->select($sql, null, 'row');
|
$row = $database->select($sql, null, 'row');
|
||||||
$domain_active = $row['active'];
|
$domain_active = $row['active'];
|
||||||
$domain_inactive = $row['inactive'];
|
$domain_inactive = $row['inactive'];
|
||||||
|
|||||||
@@ -49,9 +49,9 @@
|
|||||||
if (permission_exists("system_view_support")) {
|
if (permission_exists("system_view_support")) {
|
||||||
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
||||||
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
||||||
$setting_invisibles = !empty($_SESSION["editor"]["invisibles"]["boolean"]) ? $_SESSION["editor"]["invisibles"]["boolean"] : 'false';
|
$setting_invisibles = filter_var($_SESSION["editor"]["invisibles"]["boolean"] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$setting_indenting = !empty($_SESSION["editor"]["indent_guides"]["boolean"]) ? $_SESSION["editor"]["indent_guides"]["boolean"] : 'false';
|
$setting_indenting = filter_var($_SESSION["editor"]["indent_guides"]["boolean"] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$setting_numbering = !empty($_SESSION["editor"]["line_numbers"]["boolean"]) ? $_SESSION["editor"]["line_numbers"]["boolean"] : 'true';
|
$setting_numbering = filter_var($_SESSION["editor"]["line_numbers"]["boolean"] ?? true, FILTER_VALIDATE_BOOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
|
|||||||
@@ -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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('time_condition_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('time_condition_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
$order = $_GET["order"] ?? '';
|
$order = $_GET["order"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the count
|
//get the count
|
||||||
$sql = "select count(var_uuid) from v_vars ";
|
$sql = "select count(var_uuid) from v_vars ";
|
||||||
@@ -207,7 +207,7 @@
|
|||||||
echo th_order_by('var_hostname', $text['label-hostname'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('var_hostname', $text['label-hostname'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
echo th_order_by('var_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('var_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo "<th class='hide-sm-dn'>".$text['label-description']."</th>\n";
|
echo "<th class='hide-sm-dn'>".$text['label-description']."</th>\n";
|
||||||
if (permission_exists('var_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('var_edit') && $list_row_edit_button) {
|
||||||
echo "<td class='action-button'> </td>\n";
|
echo "<td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -263,7 +263,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['var_description'] ?? '')."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['var_description'] ?? '')."</td>\n";
|
||||||
if (permission_exists('var_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('var_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -424,7 +424,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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('voicemail_greeting_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -497,7 +497,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') && !empty($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('voicemail_greeting_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -103,8 +103,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($greeting_dir.'/'.$temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($greeting_dir.'/'.$temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,8 +152,8 @@
|
|||||||
if ($action == "add" && permission_exists('voicemail_add')) {
|
if ($action == "add" && permission_exists('voicemail_add')) {
|
||||||
$voicemail_uuid = uuid();
|
$voicemail_uuid = uuid();
|
||||||
//if adding a mailbox and don't have the transcription permission, set the default transcribe behavior
|
//if adding a mailbox and don't have the transcription permission, set the default transcribe behavior
|
||||||
if (!permission_exists('voicemail_transcription_enabled') && isset($_SESSION['voicemail']['transcription_enabled_default']['boolean'])) {
|
if (!permission_exists('voicemail_transcription_enabled')) {
|
||||||
$voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean'] ?? 'false';
|
$voicemail_transcription_enabled = filter_var($_SESSION['voicemail']['transcription_enabled_default']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -353,7 +353,7 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$voicemail_file = $_SESSION['voicemail']['voicemail_file']['text'];
|
$voicemail_file = $_SESSION['voicemail']['voicemail_file']['text'];
|
||||||
$voicemail_local_after_email = $_SESSION['voicemail']['keep_local']['boolean'];
|
$voicemail_local_after_email = filter_var($_SESSION['voicemail']['keep_local']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//remove the spaces
|
//remove the spaces
|
||||||
@@ -364,7 +364,7 @@
|
|||||||
//set the defaults
|
//set the defaults
|
||||||
if (empty($voicemail_local_after_email)) { $voicemail_local_after_email = 'true'; }
|
if (empty($voicemail_local_after_email)) { $voicemail_local_after_email = 'true'; }
|
||||||
if (empty($voicemail_enabled)) { $voicemail_enabled = 'true'; }
|
if (empty($voicemail_enabled)) { $voicemail_enabled = 'true'; }
|
||||||
if (empty($voicemail_transcription_enabled)) { $voicemail_transcription_enabled = $_SESSION['voicemail']['transcription_enabled_default']['boolean']; }
|
if (empty($voicemail_transcription_enabled)) { $voicemail_transcription_enabled = filter_var($_SESSION['voicemail']['transcription_enabled_default']['boolean'] ?? false, FILTER_VALIDATE_BOOL); }
|
||||||
if (empty($voicemail_tutorial)) { $voicemail_tutorial = 'false'; }
|
if (empty($voicemail_tutorial)) { $voicemail_tutorial = 'false'; }
|
||||||
if (empty($voicemail_recording_instructions)) { $voicemail_recording_instructions = 'true'; }
|
if (empty($voicemail_recording_instructions)) { $voicemail_recording_instructions = 'true'; }
|
||||||
if (empty($voicemail_recording_options)) { $voicemail_recording_options = 'true'; }
|
if (empty($voicemail_recording_options)) { $voicemail_recording_options = 'true'; }
|
||||||
@@ -469,8 +469,8 @@
|
|||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
|
|
||||||
//password complexity
|
//password complexity
|
||||||
$password_complexity = $_SESSION['voicemail']['password_complexity']['boolean'] ?? '';
|
$password_complexity = filter_var($_SESSION['voicemail']['password_complexity']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
if ($password_complexity == "true") {
|
if ($password_complexity) {
|
||||||
echo "<script>\n";
|
echo "<script>\n";
|
||||||
$req['length'] = $_SESSION['voicemail']['password_min_length']['numeric'];
|
$req['length'] = $_SESSION['voicemail']['password_min_length']['numeric'];
|
||||||
echo " function check_password_strength(pwd) {\n";
|
echo " function check_password_strength(pwd) {\n";
|
||||||
@@ -536,7 +536,7 @@
|
|||||||
if ($action == "update" && (permission_exists('voicemail_delete') || permission_exists('voicemail_option_delete'))) {
|
if ($action == "update" && (permission_exists('voicemail_delete') || permission_exists('voicemail_option_delete'))) {
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
|
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'name'=>'btn_delete','style'=>'margin-left: 15px;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
|
||||||
}
|
}
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save','style'=>'margin-left: 15px;','onclick'=>($password_complexity == "true" ? "if (check_password_strength(document.getElementById('password').value)) { submit_form(); } else { this.blur(); return false; }" : 'submit_form();')]);
|
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'id'=>'btn_save','style'=>'margin-left: 15px;','onclick'=>($password_complexity ? "if (check_password_strength(document.getElementById('password').value)) { submit_form(); } else { this.blur(); return false; }" : 'submit_form();')]);
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
echo " <div style='clear: both;'></div>\n";
|
echo " <div style='clear: both;'></div>\n";
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
@@ -833,7 +833,7 @@
|
|||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (permission_exists('voicemail_transcription_enabled') && ($_SESSION['transcribe']['enabled']['boolean'] ?? '') == "true") {
|
if (permission_exists('voicemail_transcription_enabled') && filter_var($_SESSION['transcribe']['enabled']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||||
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
echo " ".$text['label-voicemail_transcription_enabled']."\n";
|
||||||
|
|||||||
@@ -225,8 +225,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -369,7 +369,7 @@ if (!class_exists('xml_cdr')) {
|
|||||||
|
|
||||||
//skip call detail records for calls blocked by call block
|
//skip call detail records for calls blocked by call block
|
||||||
if (isset($xml->variables->call_block) && !empty($this->settings->get('call_block', 'save_call_detail_record'))) {
|
if (isset($xml->variables->call_block) && !empty($this->settings->get('call_block', 'save_call_detail_record'))) {
|
||||||
if ($xml->variables->call_block == 'true' && $this->settings->get('call_block', 'save_call_detail_record') == 'false') {
|
if ($xml->variables->call_block == 'true' && $this->settings->get('call_block', 'save_call_detail_record', false) !== true) {
|
||||||
//delete the xml cdr file
|
//delete the xml cdr file
|
||||||
if (!empty($this->settings->get('switch', 'log'))) {
|
if (!empty($this->settings->get('switch', 'log'))) {
|
||||||
$xml_cdr_dir = $this->settings->get('switch', 'log').'/xml_cdr';
|
$xml_cdr_dir = $this->settings->get('switch', 'log').'/xml_cdr';
|
||||||
|
|||||||
@@ -188,9 +188,9 @@
|
|||||||
"&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'] ?? '').
|
"&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'] ?? '').
|
||||||
"&src=".urlencode($_SESSION['user']['extension'][0]['user'] ?? '').
|
"&src=".urlencode($_SESSION['user']['extension'][0]['user'] ?? '').
|
||||||
"&dest=".urlencode($row['caller_id_number'] ?? '').
|
"&dest=".urlencode($row['caller_id_number'] ?? '').
|
||||||
"&rec=".(isset($_SESSION['click_to_call']['record']['boolean']) ? $_SESSION['click_to_call']['record']['boolean'] : "false").
|
"&rec=".(filter_var($_SESSION['click_to_call']['record']['boolean'] ?? false, FILTER_VALIDATE_BOOL) ? "true" : "false").
|
||||||
"&ringback=".(isset($_SESSION['click_to_call']['ringback']['text']) ? $_SESSION['click_to_call']['ringback']['text'] : "us-ring").
|
"&ringback=".(isset($_SESSION['click_to_call']['ringback']['text']) ? $_SESSION['click_to_call']['ringback']['text'] : "us-ring").
|
||||||
"&auto_answer=".(isset($_SESSION['click_to_call']['auto_answer']['boolean']) ? $_SESSION['click_to_call']['auto_answer']['boolean'] : "true").
|
"&auto_answer=".(filter_var($_SESSION['click_to_call']['auto_answer']['boolean'] ?? false, FILTER_VALIDATE_BOOL) ? "true" : "false").
|
||||||
"');\" ".
|
"');\" ".
|
||||||
"style='cursor: pointer;'";
|
"style='cursor: pointer;'";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,9 +206,9 @@
|
|||||||
"&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'] ?? '').
|
"&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'] ?? '').
|
||||||
"&src=".urlencode($_SESSION['user']['extension'][0]['user'] ?? '').
|
"&src=".urlencode($_SESSION['user']['extension'][0]['user'] ?? '').
|
||||||
"&dest=".urlencode($dest ?? '').
|
"&dest=".urlencode($dest ?? '').
|
||||||
"&rec=".(isset($_SESSION['click_to_call']['record']['boolean']) ? $_SESSION['click_to_call']['record']['boolean'] : "false").
|
"&rec=".(filter_var($_SESSION['click_to_call']['record']['boolean'] ?? false, FILTER_VALIDATE_BOOL) ? 'true' : 'false').
|
||||||
"&ringback=".(isset($_SESSION['click_to_call']['ringback']['text']) ? $_SESSION['click_to_call']['ringback']['text'] : "us-ring").
|
"&ringback=".(isset($_SESSION['click_to_call']['ringback']['text']) ? $_SESSION['click_to_call']['ringback']['text'] : "us-ring").
|
||||||
"&auto_answer=".(isset($_SESSION['click_to_call']['auto_answer']['boolean']) ? $_SESSION['click_to_call']['auto_answer']['boolean'] : "true").
|
"&auto_answer=".(filter_var($_SESSION['click_to_call']['auto_answer']['boolean'] ?? false, FILTER_VALIDATE_BOOL) ? 'true' : 'false').
|
||||||
"');\" ".
|
"');\" ".
|
||||||
"style='cursor: pointer;'";
|
"style='cursor: pointer;'";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,8 +84,8 @@
|
|||||||
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
Waveform::$colorB = !empty($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_b_leg']['text']) : [0,125,232,0.6]; // array rgba, right (b-leg) wave color
|
||||||
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
Waveform::$backgroundColor = !empty($_SESSION['theme']['audio_player_waveform_color_background']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_background']['text']) : [0,0,0,0]; // array rgba, default: transparent
|
||||||
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
Waveform::$axisColor = !empty($_SESSION['theme']['audio_player_waveform_color_axis']['text']) ? color_to_rgba_array($_SESSION['theme']['audio_player_waveform_color_axis']['text']) : [0,0,0,0.3]; // array rgba
|
||||||
Waveform::$singlePhase = empty($_SESSION['theme']['audio_player_waveform_single_phase']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] !== 'true' ? false : true; // positive phase only - left (a-leg) top, right (b-leg) bottom
|
Waveform::$singlePhase = filter_var($_SESSION['theme']['audio_player_waveform_single_phase']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // positive phase only - left (a-leg) top, right (b-leg) bottom
|
||||||
Waveform::$singleAxis = empty($_SESSION['theme']['audio_player_waveform_single_axis']['boolean']) || $_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] !== 'false' ? true : false; // combine channels into single axis
|
Waveform::$singleAxis = filter_var($_SESSION['theme']['audio_player_waveform_single_axis']['boolean'] ?? false, FILTER_VALIDATE_BOOL); // combine channels into single axis
|
||||||
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
$height = !empty($_SESSION['theme']['audio_player_waveform_height']['text']) && is_numeric(str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text'])) ? 2.2 * (int) str_replace('px','',$_SESSION['theme']['audio_player_waveform_height']['text']) : null;
|
||||||
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
$wf = $waveform->getWaveform($temp_filename, 1600, $height ?? 180); // input: png filename returns boolean true/false, or 'base64' returns base64 string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -633,7 +633,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sql = str_replace(" ", " ", $sql);
|
$sql = str_replace(" ", " ", $sql);
|
||||||
if ($archive_request && $_SESSION['cdr']['archive_database']['boolean'] == 'true') {
|
if ($archive_request && filter_var($_SESSION['cdr']['archive_database']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
$database->driver = $_SESSION['cdr']['archive_database_driver']['text'];
|
$database->driver = $_SESSION['cdr']['archive_database_driver']['text'];
|
||||||
$database->host = $_SESSION['cdr']['archive_database_host']['text'];
|
$database->host = $_SESSION['cdr']['archive_database_host']['text'];
|
||||||
$database->type = $_SESSION['cdr']['archive_database_type']['text'];
|
$database->type = $_SESSION['cdr']['archive_database_type']['text'];
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//set the uuid
|
//set the uuid
|
||||||
if (!empty($_GET['id']) && is_uuid($_GET['id'])) {
|
if (!empty($_GET['id']) && is_uuid($_GET['id'])) {
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the contact attachment list
|
//get the contact attachment list
|
||||||
$sql = "select *, length(decode(attachment_content,'base64')) as attachment_size from v_contact_attachments ";
|
$sql = "select *, length(decode(attachment_content,'base64')) as attachment_size from v_contact_attachments ";
|
||||||
|
|||||||
@@ -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 = ($_SESSION['contact']['permissions']['boolean'] == "true") ? ($_POST["contact_user_uuid"] ?? $_SESSION["user_uuid"]) : ($contact_user_uuid = $_POST["contact_user_uuid"] ?? null);
|
$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_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 ($_SESSION['contact']['permissions']['boolean'] == "true") {
|
if (filter_var($_SESSION['contact']['permissions']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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";
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the contact list
|
//get the contact list
|
||||||
$sql = "select * from v_contact_emails ";
|
$sql = "select * from v_contact_emails ";
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
echo "<th class='pct-15'>".$text['label-email_label']."</th>\n";
|
echo "<th class='pct-15'>".$text['label-email_label']."</th>\n";
|
||||||
echo "<th>".$text['label-email_address']."</th>\n";
|
echo "<th>".$text['label-email_address']."</th>\n";
|
||||||
echo "<th class='hide-md-dn'>".$text['label-email_description']."</th>\n";
|
echo "<th class='hide-md-dn'>".$text['label-email_description']."</th>\n";
|
||||||
if (permission_exists('contact_email_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_email_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
echo " <td>".escape($row['email_label'])." ".($row['email_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['email_label'])." ".($row['email_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'><a href='mailto:".escape($row['email_address'])."'>".escape($row['email_address'])."</a> </td>\n";
|
echo " <td class='no-link'><a href='mailto:".escape($row['email_address'])."'>".escape($row['email_address'])."</a> </td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".escape($row['email_description'])." </td>\n";
|
echo " <td class='description overflow hide-md-dn'>".escape($row['email_description'])." </td>\n";
|
||||||
if (permission_exists('contact_email_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_email_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the extension list
|
//get the extension list
|
||||||
$sql = "select e.extension_uuid, e.extension, e.enabled, e.description ";
|
$sql = "select e.extension_uuid, e.extension, e.enabled, e.description ";
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
echo "<th>".$text['label-extension']."</th>\n";
|
echo "<th>".$text['label-extension']."</th>\n";
|
||||||
echo "<th class='center'>".$text['label-enabled']."</th>\n";
|
echo "<th class='center'>".$text['label-enabled']."</th>\n";
|
||||||
echo "<th class='hide-md-dn'>".$text['label-description']."</th>\n";
|
echo "<th class='hide-md-dn'>".$text['label-description']."</th>\n";
|
||||||
if (permission_exists('extension_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('extension_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='center'>".$text['label-'.escape($row['enabled'])]." </td>\n";
|
echo " <td class='center'>".$text['label-'.escape($row['enabled'])]." </td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".$row['description']." </td>\n";
|
echo " <td class='description overflow hide-md-dn'>".$row['description']." </td>\n";
|
||||||
if (permission_exists('extension_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('extension_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\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') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('contact_phone_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('contact_phone_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the related contacts
|
//get the related contacts
|
||||||
$sql = "select ";
|
$sql = "select ";
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
echo "<th>".$text['label-contact_relation_label']."</th>\n";
|
echo "<th>".$text['label-contact_relation_label']."</th>\n";
|
||||||
echo "<th>".$text['label-contact_relation_organization']."</th>\n";
|
echo "<th>".$text['label-contact_relation_organization']."</th>\n";
|
||||||
echo "<th>".$text['label-contact_relation_name']."</th>\n";
|
echo "<th>".$text['label-contact_relation_name']."</th>\n";
|
||||||
if (permission_exists('contact_relation_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_relation_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -110,7 +110,7 @@
|
|||||||
echo " <td>".escape($row['relation_label'])." </td>\n";
|
echo " <td>".escape($row['relation_label'])." </td>\n";
|
||||||
echo " <td class='no-link'><a href='contact_edit.php?id=".urlencode($row['contact_uuid'])."'>".escape($row['contact_organization'])."</a> </td>\n";
|
echo " <td class='no-link'><a href='contact_edit.php?id=".urlencode($row['contact_uuid'])."'>".escape($row['contact_organization'])."</a> </td>\n";
|
||||||
echo " <td class='no-link'><a href='contact_edit.php?id=".urlencode($row['contact_uuid'])."'>".escape($row['contact_name_given']).((!empty($row['contact_name_given']) && !empty($row['contact_name_family'])) ? ' ' : null).escape($row['contact_name_family'])."</a> </td>\n";
|
echo " <td class='no-link'><a href='contact_edit.php?id=".urlencode($row['contact_uuid'])."'>".escape($row['contact_name_given']).((!empty($row['contact_name_given']) && !empty($row['contact_name_family'])) ? ' ' : null).escape($row['contact_name_family'])."</a> </td>\n";
|
||||||
if (permission_exists('contact_relation_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_relation_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the list
|
//get the list
|
||||||
$sql = "select * from v_contact_settings ";
|
$sql = "select * from v_contact_settings ";
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
echo "<th>".$text['label-contact_setting_value']."</th>";
|
echo "<th>".$text['label-contact_setting_value']."</th>";
|
||||||
echo "<th class='center'>".$text['label-enabled']."</th>";
|
echo "<th class='center'>".$text['label-enabled']."</th>";
|
||||||
echo "<th class='hide-md-dn'>".$text['label-description']."</th>";
|
echo "<th class='hide-md-dn'>".$text['label-description']."</th>";
|
||||||
if (permission_exists('contact_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='center'>".$text['label-'.escape($row['contact_setting_enabled'])]." </td>\n";
|
echo " <td class='center'>".$text['label-'.escape($row['contact_setting_enabled'])]." </td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".$row['contact_setting_description']." </td>\n";
|
echo " <td class='description overflow hide-md-dn'>".$row['contact_setting_description']." </td>\n";
|
||||||
if (permission_exists('contact_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//set the uuid
|
//set the uuid
|
||||||
if (!empty($_GET['id']) && is_uuid($_GET['id'])) {
|
if (!empty($_GET['id']) && is_uuid($_GET['id'])) {
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
echo "<th class='pct-20'>".$text['label-time_start']."</th>\n";
|
echo "<th class='pct-20'>".$text['label-time_start']."</th>\n";
|
||||||
echo "<th class='pct-20'>".$text['label-time_duration']."</th>\n";
|
echo "<th class='pct-20'>".$text['label-time_duration']."</th>\n";
|
||||||
echo "<th class='pct-40 hide-md-dn'>".$text['label-time_description']."</th>\n";
|
echo "<th class='pct-40 hide-md-dn'>".$text['label-time_description']."</th>\n";
|
||||||
if (permission_exists('contact_time_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_time_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
echo " <td>".$time_start." </td>\n";
|
echo " <td>".$time_start." </td>\n";
|
||||||
echo " <td>".$time." </td>\n";
|
echo " <td>".$time." </td>\n";
|
||||||
echo " <td class='description overflow hide-md-dn'>".escape($row['time_description'])." </td>\n";
|
echo " <td class='description overflow hide-md-dn'>".escape($row['time_description'])." </td>\n";
|
||||||
if (permission_exists('contact_time_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('contact_time_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['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') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('contact_url_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('contact_url_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['contacts'])) {
|
if (!empty($_POST['contacts'])) {
|
||||||
@@ -387,7 +387,7 @@
|
|||||||
echo th_order_by('contact_title', $text['label-contact_title'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('contact_title', $text['label-contact_title'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
echo th_order_by('contact_role', $text['label-contact_role'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('contact_role', $text['label-contact_role'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
echo "<th class='shrink hide-sm-dn'> </th>\n";
|
echo "<th class='shrink hide-sm-dn'> </th>\n";
|
||||||
if ($list_row_edit_button == 'true') {
|
if ($list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -439,7 +439,7 @@
|
|||||||
echo " ";
|
echo " ";
|
||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
if ($list_row_edit_button == 'true') {
|
if ($list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'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') && isset($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('dashboard_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
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') && isset($_SESSION['theme']['list_row_edit_button']['boolean']) && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
|
if (permission_exists('dashboard_edit') && filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['databases'])) {
|
if (!empty($_POST['databases'])) {
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
echo th_order_by('database_host', $text['label-host'], $order_by, $order);
|
echo th_order_by('database_host', $text['label-host'], $order_by, $order);
|
||||||
echo th_order_by('database_name', $text['label-name'], $order_by, $order);
|
echo th_order_by('database_name', $text['label-name'], $order_by, $order);
|
||||||
echo th_order_by('database_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
echo th_order_by('database_description', $text['label-description'], $order_by, $order, null, "class='hide-sm-dn'");
|
||||||
if (permission_exists('database_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('database_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -178,7 +178,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['database_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['database_description'])." </td>\n";
|
||||||
if (permission_exists('database_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('database_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//build the query string
|
//build the query string
|
||||||
$query_string = '';
|
$query_string = '';
|
||||||
@@ -458,7 +458,7 @@
|
|||||||
echo th_order_by('default_setting_value', $text['label-value'], $order_by, $order, null, "class='pct-30'");
|
echo th_order_by('default_setting_value', $text['label-value'], $order_by, $order, null, "class='pct-30'");
|
||||||
echo th_order_by('default_setting_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('default_setting_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='pct-25 hide-sm-dn'>".$text['label-description']."</th>\n";
|
echo " <th class='pct-25 hide-sm-dn'>".$text['label-description']."</th>\n";
|
||||||
if ($permission['default_setting_edit'] && $list_row_edit_button == 'true') {
|
if ($permission['default_setting_edit'] && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -603,7 +603,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn' title=\"".escape($row['default_setting_description'])."\">".escape($row['default_setting_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn' title=\"".escape($row['default_setting_description'])."\">".escape($row['default_setting_description'])."</td>\n";
|
||||||
if ($permission['default_setting_edit'] && $list_row_edit_button == 'true') {
|
if ($permission['default_setting_edit'] && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['action'])) {
|
if (!empty($_POST['action'])) {
|
||||||
@@ -259,7 +259,7 @@
|
|||||||
echo th_order_by('domain_setting_value', $text['label-value'], $order_by, $order, null, "class='pct-30'");
|
echo th_order_by('domain_setting_value', $text['label-value'], $order_by, $order, null, "class='pct-30'");
|
||||||
echo th_order_by('domain_setting_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('domain_setting_enabled', $text['label-enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='pct-25 hide-sm-dn'>".$text['label-description']."</th>\n";
|
echo " <th class='pct-25 hide-sm-dn'>".$text['label-description']."</th>\n";
|
||||||
if (permission_exists('domain_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('domain_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -389,7 +389,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn' title=\"".escape($row['domain_setting_description'])."\">".escape($row['domain_setting_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn' title=\"".escape($row['domain_setting_description'])."\">".escape($row['domain_setting_description'])." </td>\n";
|
||||||
if (permission_exists('domain_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('domain_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
$show = $_GET["show"] ?? '';
|
$show = $_GET["show"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//add the search string
|
//add the search string
|
||||||
if (!empty($search)) {
|
if (!empty($search)) {
|
||||||
@@ -241,7 +241,7 @@
|
|||||||
echo "<th class='center'>".$text['label-tools']."</th>";
|
echo "<th class='center'>".$text['label-tools']."</th>";
|
||||||
echo th_order_by('domain_enabled', $text['label-domain_enabled'], $order_by, $order, null, "class='center'");
|
echo th_order_by('domain_enabled', $text['label-domain_enabled'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-domain_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-domain_description']."</th>\n";
|
||||||
if (permission_exists('domain_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('domain_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -289,7 +289,7 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
}
|
}
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['domain_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['domain_description'])."</td>\n";
|
||||||
if (permission_exists('domain_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('domain_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -180,9 +180,9 @@
|
|||||||
//load editor preferences/defaults
|
//load editor preferences/defaults
|
||||||
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
||||||
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
||||||
$setting_invisibles = !empty($_SESSION["editor"]["invisibles"]["boolean"]) ? $_SESSION["editor"]["invisibles"]["boolean"] : 'false';
|
$setting_invisibles = filter_var($_SESSION["editor"]["invisibles"]["boolean"] ?? false, FILTER_VALIDATE_BOOL) ? 'true' : 'false';
|
||||||
$setting_indenting = !empty($_SESSION["editor"]["indent_guides"]["boolean"]) ? $_SESSION["editor"]["indent_guides"]["boolean"] : 'false';
|
$setting_indenting = filter_var($_SESSION["editor"]["indent_guides"]["boolean"] ?? false, FILTER_VALIDATE_BOOL) ? 'true' : 'false';
|
||||||
$setting_numbering = !empty($_SESSION["editor"]["line_numbers"]["boolean"]) ? $_SESSION["editor"]["line_numbers"]["boolean"] : 'true';
|
$setting_numbering = filter_var($_SESSION["editor"]["line_numbers"]["boolean"] ?? true, FILTER_VALIDATE_BOOL) ? 'true' : 'false';
|
||||||
|
|
||||||
//create token
|
//create token
|
||||||
$object = new token;
|
$object = new token;
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get posted data
|
//get posted data
|
||||||
if (!empty($_POST['email_templates'])) {
|
if (!empty($_POST['email_templates'])) {
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
echo th_order_by('template_type', $text['label-template_type'], $order_by, $order, null, null, $param);
|
echo th_order_by('template_type', $text['label-template_type'], $order_by, $order, null, null, $param);
|
||||||
echo th_order_by('template_enabled', $text['label-template_enabled'], $order_by, $order, null, "class='center pct-10'", $param);
|
echo th_order_by('template_enabled', $text['label-template_enabled'], $order_by, $order, null, "class='center pct-10'", $param);
|
||||||
echo th_order_by('template_description', $text['label-template_description'], $order_by, $order, null, "class='hide-sm-dn'", $param);
|
echo th_order_by('template_description', $text['label-template_description'], $order_by, $order, null, "class='hide-sm-dn'", $param);
|
||||||
if (permission_exists('email_template_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('email_template_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -303,7 +303,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['template_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['template_description'])."</td>\n";
|
||||||
if (permission_exists('email_template_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('email_template_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>";
|
echo " <td class='action-button'>";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -88,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//get the count
|
//get the count
|
||||||
$sql = "select count(*) from view_groups \n";
|
$sql = "select count(*) from view_groups \n";
|
||||||
@@ -204,7 +204,7 @@
|
|||||||
echo th_order_by('group_level', $text['label-group_level'], $order_by, $order, null, "class='center'");
|
echo th_order_by('group_level', $text['label-group_level'], $order_by, $order, null, "class='center'");
|
||||||
echo th_order_by('group_protected', $text['label-group_protected'], $order_by, $order, null, "class='center'");
|
echo th_order_by('group_protected', $text['label-group_protected'], $order_by, $order, null, "class='center'");
|
||||||
echo " <th class='pct-30 hide-sm-dn'>".$text['label-group_description']."</th>\n";
|
echo " <th class='pct-30 hide-sm-dn'>".$text['label-group_description']."</th>\n";
|
||||||
if (permission_exists('group_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('group_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -246,7 +246,7 @@ echo " <td>".escape($row['domain_name'])."</td>\n";
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['group_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['group_description'])."</td>\n";
|
||||||
if (permission_exists('group_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('group_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -48,8 +48,8 @@
|
|||||||
$search = $_GET["search"] ?? '';
|
$search = $_GET["search"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$button_icon_add = !empty($_SESSION['theme']['button_icon_add']) ? $_SESSION['theme']['button_icon_add'] : '';
|
$button_icon_add = $_SESSION['theme']['button_icon_add'] ?? '';
|
||||||
|
|
||||||
//get the http post data
|
//get the http post data
|
||||||
if (!empty($_POST['menus'])) {
|
if (!empty($_POST['menus'])) {
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
echo th_order_by('menu_name', $text['label-menu_name'], $order_by, $order);
|
echo th_order_by('menu_name', $text['label-menu_name'], $order_by, $order);
|
||||||
echo th_order_by('menu_language', $text['label-menu_language'], $order_by, $order);
|
echo th_order_by('menu_language', $text['label-menu_language'], $order_by, $order);
|
||||||
echo " <th class='hide-sm-dn'>".$text['label-menu_description']."</th>\n";
|
echo " <th class='hide-sm-dn'>".$text['label-menu_description']."</th>\n";
|
||||||
if (permission_exists('menu_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('menu_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -182,7 +182,7 @@
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td>".escape($row['menu_language'])."</td>\n";
|
echo " <td>".escape($row['menu_language'])."</td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn'>".escape($row['menu_description'])."</td>\n";
|
echo " <td class='description overflow hide-sm-dn'>".escape($row['menu_description'])."</td>\n";
|
||||||
if (permission_exists('menu_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('menu_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$button_icon_edit,'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$button_icon_edit,'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
$order = $_GET["order"] ?? '';
|
$order = $_GET["order"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//set the initial value
|
//set the initial value
|
||||||
$tmp_menu_item_order = 0;
|
$tmp_menu_item_order = 0;
|
||||||
@@ -192,7 +192,7 @@
|
|||||||
//}
|
//}
|
||||||
//echo "</td>";
|
//echo "</td>";
|
||||||
|
|
||||||
if (permission_exists('menu_item_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('menu_item_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
@@ -278,7 +278,7 @@
|
|||||||
echo " <th class='no-wrap center shrink'>".$text['label-category']."</th>";
|
echo " <th class='no-wrap center shrink'>".$text['label-category']."</th>";
|
||||||
echo " <th class='no-wrap center shrink'>".$text['label-protected']."</th>";
|
echo " <th class='no-wrap center shrink'>".$text['label-protected']."</th>";
|
||||||
echo " <th class='no-wrap center shrink'>".$text['label-menu_order']."</th>";
|
echo " <th class='no-wrap center shrink'>".$text['label-menu_order']."</th>";
|
||||||
if (permission_exists('menu_item_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('menu_item_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -380,7 +380,7 @@
|
|||||||
//}
|
//}
|
||||||
//echo "</td>";
|
//echo "</td>";
|
||||||
|
|
||||||
if (permission_exists('menu_item_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('menu_item_edit') && $list_row_edit_button) {
|
||||||
echo "<td class='action-button'>\n";
|
echo "<td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo "</td>\n";
|
echo "</td>\n";
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
$order = $_GET["order"] ?? '';
|
$order = $_GET["order"] ?? '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL) ? 'true' : 'false';
|
||||||
$button_icon_back = !empty($_SESSION['theme']['button_icon_back']) ? $_SESSION['theme']['button_icon_back'] : '';
|
$button_icon_back = !empty($_SESSION['theme']['button_icon_back']) ? $_SESSION['theme']['button_icon_back'] : '';
|
||||||
$button_icon_add = !empty($_SESSION['theme']['button_icon_add']) ? $_SESSION['theme']['button_icon_add'] : '';
|
$button_icon_add = !empty($_SESSION['theme']['button_icon_add']) ? $_SESSION['theme']['button_icon_add'] : '';
|
||||||
$button_icon_copy = !empty($_SESSION['theme']['button_icon_copy']) ? $_SESSION['theme']['button_icon_copy'] : '';
|
$button_icon_copy = !empty($_SESSION['theme']['button_icon_copy']) ? $_SESSION['theme']['button_icon_copy'] : '';
|
||||||
@@ -259,7 +259,7 @@
|
|||||||
echo "<th class='pct-30'>".$text['label-value']."</th>";
|
echo "<th class='pct-30'>".$text['label-value']."</th>";
|
||||||
echo "<th class='center'>".$text['label-enabled']."</th>";
|
echo "<th class='center'>".$text['label-enabled']."</th>";
|
||||||
echo "<th class='pct-25 hide-sm-dn'>".$text['label-description']."</th>";
|
echo "<th class='pct-25 hide-sm-dn'>".$text['label-description']."</th>";
|
||||||
if (permission_exists('user_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('user_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -383,7 +383,7 @@
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td class='description overflow hide-sm-dn' title=\"".escape($row['user_setting_description'])."\">".escape($row['user_setting_description'])." </td>\n";
|
echo " <td class='description overflow hide-sm-dn' title=\"".escape($row['user_setting_description'])."\">".escape($row['user_setting_description'])." </td>\n";
|
||||||
if (permission_exists('user_setting_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('user_setting_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$button_icon_edit,'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$button_icon_edit,'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -105,10 +105,10 @@
|
|||||||
//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'] = $_SESSION['users']['password_length']['numeric'];
|
||||||
$required['number'] = ($_SESSION['users']['password_number']['boolean'] == 'true') ? true : false;
|
$required['number'] = filter_var($_SESSION['users']['password_number']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$required['lowercase'] = ($_SESSION['users']['password_lowercase']['boolean'] == 'true') ? true : false;
|
$required['lowercase'] = filter_var($_SESSION['users']['password_lowercase']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$required['uppercase'] = ($_SESSION['users']['password_uppercase']['boolean'] == 'true') ? true : false;
|
$required['uppercase'] = filter_var($_SESSION['users']['password_uppercase']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$required['special'] = ($_SESSION['users']['password_special']['boolean'] == 'true') ? true : false;
|
$required['special'] = filter_var($_SESSION['users']['password_special']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//prepare the data
|
//prepare the data
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
$show = !empty($_GET["show"]) ? $_GET["show"] : '';
|
||||||
|
|
||||||
//set from session variables
|
//set from session variables
|
||||||
$list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';
|
$list_row_edit_button = filter_var($_SESSION['theme']['list_row_edit_button']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
|
|
||||||
//add the search string
|
//add the search string
|
||||||
if (!empty($search)) {
|
if (!empty($search)) {
|
||||||
@@ -251,7 +251,7 @@
|
|||||||
//echo th_order_by('add_date', $text['label-add_date'], $order_by, $order);
|
//echo th_order_by('add_date', $text['label-add_date'], $order_by, $order);
|
||||||
echo th_order_by('contact_note', $text['label-contact_note'], $order_by, $order, null, "class='center'", $param);
|
echo th_order_by('contact_note', $text['label-contact_note'], $order_by, $order, null, "class='center'", $param);
|
||||||
echo th_order_by('user_enabled', $text['label-user_enabled'], $order_by, $order, null, "class='center'", $param);
|
echo th_order_by('user_enabled', $text['label-user_enabled'], $order_by, $order, null, "class='center'", $param);
|
||||||
if (permission_exists('user_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('user_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'> </td>\n";
|
echo " <td class='action-button'> </td>\n";
|
||||||
}
|
}
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -300,7 +300,7 @@
|
|||||||
echo $text['label-'.$row['user_enabled']];
|
echo $text['label-'.$row['user_enabled']];
|
||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
if (permission_exists('user_edit') && $list_row_edit_button == 'true') {
|
if (permission_exists('user_edit') && $list_row_edit_button) {
|
||||||
echo " <td class='action-button'>\n";
|
echo " <td class='action-button'>\n";
|
||||||
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]);
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
//check for login return preference
|
//check for login return preference
|
||||||
if (!empty($_SESSION["user_uuid"])) {
|
if (!empty($_SESSION["user_uuid"])) {
|
||||||
if (isset($_SESSION['login']['destination_last']) && ($_SESSION['login']['destination_last']['boolean'] == 'true')) {
|
if (isset($_SESSION['login']['destination_last']) && filter_var($_SESSION['login']['destination_last']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
if ($_SERVER['HTTP_REFERER'] != '') {
|
if ($_SERVER['HTTP_REFERER'] != '') {
|
||||||
//convert to relative path
|
//convert to relative path
|
||||||
$referrer = substr($_SERVER['HTTP_REFERER'], strpos($_SERVER['HTTP_REFERER'], $_SERVER["HTTP_HOST"]) + strlen($_SERVER["HTTP_HOST"]));
|
$referrer = substr($_SERVER['HTTP_REFERER'], strpos($_SERVER['HTTP_REFERER'], $_SERVER["HTTP_HOST"]) + strlen($_SERVER["HTTP_HOST"]));
|
||||||
|
|||||||
@@ -166,8 +166,8 @@ class settings {
|
|||||||
* @param string $uuid uuid of the setting if available. If set to an empty string then a new uuid will be created.
|
* @param string $uuid uuid of the setting if available. If set to an empty string then a new uuid will be created.
|
||||||
* @param string $category Category of the setting.
|
* @param string $category Category of the setting.
|
||||||
* @param string $subcategory Subcategory of the setting.
|
* @param string $subcategory Subcategory of the setting.
|
||||||
* @param string $type Type of the setting (array, numeric, text, etc)
|
|
||||||
* @param string $value (optional) Value to set. Default is empty string.
|
* @param string $value (optional) Value to set. Default is empty string.
|
||||||
|
* @param string $type Type of the setting (array, numeric, text, etc)
|
||||||
* @param bool $enabled (optional) True or False. Default is True.
|
* @param bool $enabled (optional) True or False. Default is True.
|
||||||
* @param string $description (optional) Description. Default is empty string.
|
* @param string $description (optional) Description. Default is empty string.
|
||||||
*/
|
*/
|
||||||
@@ -248,17 +248,7 @@ class settings {
|
|||||||
$subcategory = $row['default_setting_subcategory'];
|
$subcategory = $row['default_setting_subcategory'];
|
||||||
if (isset($row['default_setting_value']) && $row['default_setting_value'] !== '') {
|
if (isset($row['default_setting_value']) && $row['default_setting_value'] !== '') {
|
||||||
if ($name == "boolean") {
|
if ($name == "boolean") {
|
||||||
if (gettype($row['default_setting_value']) === 'string') {
|
$this->settings[$category][$subcategory] = filter_var($row['default_setting_value'], FILTER_VALIDATE_BOOLEAN);
|
||||||
if ($row['default_setting_value'] === 'true') {
|
|
||||||
$this->settings[$category][$subcategory] = true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$this->settings[$category][$subcategory] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif (gettype($row['default_setting_value']) === 'boolean') {
|
|
||||||
$this->settings[$category][$subcategory] = $row['default_setting_value'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
elseif ($name == "array") {
|
elseif ($name == "array") {
|
||||||
if (!isset($this->settings[$category][$subcategory]) || !is_array($this->settings[$category][$subcategory])) {
|
if (!isset($this->settings[$category][$subcategory]) || !is_array($this->settings[$category][$subcategory])) {
|
||||||
@@ -318,17 +308,7 @@ class settings {
|
|||||||
$subcategory = $row['domain_setting_subcategory'];
|
$subcategory = $row['domain_setting_subcategory'];
|
||||||
if (isset($row['domain_setting_value']) && $row['domain_setting_value'] !== '') {
|
if (isset($row['domain_setting_value']) && $row['domain_setting_value'] !== '') {
|
||||||
if ($name == "boolean") {
|
if ($name == "boolean") {
|
||||||
if (gettype($row['domain_setting_value']) === 'string') {
|
$this->settings[$category][$subcategory] = filter_var($row['domain_setting_value'], FILTER_VALIDATE_BOOLEAN);
|
||||||
if ($row['domain_setting_value'] === 'true') {
|
|
||||||
$this->settings[$category][$subcategory] = true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$this->settings[$category][$subcategory] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif (gettype($row['domain_setting_value']) === 'boolean') {
|
|
||||||
$this->settings[$category][$subcategory] = $row['domain_setting_value'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if ($name == "array") {
|
if ($name == "array") {
|
||||||
if (!isset($this->settings[$category][$subcategory]) || !is_array($this->settings[$category][$subcategory])) {
|
if (!isset($this->settings[$category][$subcategory]) || !is_array($this->settings[$category][$subcategory])) {
|
||||||
@@ -377,17 +357,7 @@ class settings {
|
|||||||
$subcategory = $row['user_setting_subcategory'];
|
$subcategory = $row['user_setting_subcategory'];
|
||||||
if (isset($row['user_setting_value']) && $row['user_setting_value'] !== '') {
|
if (isset($row['user_setting_value']) && $row['user_setting_value'] !== '') {
|
||||||
if ($name == "boolean") {
|
if ($name == "boolean") {
|
||||||
if (gettype($row['user_setting_value']) === 'string') {
|
$this->settings[$category][$subcategory] = filter_var($row['user_setting_value'], FILTER_VALIDATE_BOOLEAN);
|
||||||
if ($row['user_setting_value'] === 'true') {
|
|
||||||
$this->settings[$category][$subcategory] = true;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$this->settings[$category][$subcategory] = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
elseif (gettype($row['user_setting_value']) === 'boolean') {
|
|
||||||
$this->settings[$category][$subcategory] = $row['user_setting_value'];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
elseif ($name == "array") {
|
elseif ($name == "array") {
|
||||||
$this->settings[$category][$subcategory][] = $row['user_setting_value'];
|
$this->settings[$category][$subcategory][] = $row['user_setting_value'];
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
ob_end_clean(); //clean the buffer
|
ob_end_clean(); //clean the buffer
|
||||||
|
|
||||||
//clear the template
|
//clear the template
|
||||||
//if (isset($_SESSION['theme']['cache']['boolean']) && $_SESSION['theme']['cache']['boolean'] == "false") {
|
//if (!filter_var($_SESSION['theme']['cache']['boolean'] ?? false, FILTER_VALIDATE_BOOL)) {
|
||||||
// $_SESSION["template_content"] = '';
|
// $_SESSION["template_content"] = '';
|
||||||
//}
|
//}
|
||||||
|
|
||||||
@@ -285,7 +285,7 @@
|
|||||||
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') &&
|
||||||
$_SESSION['security']['session_timer_enabled']['boolean'] == 'true'
|
filter_var($_SESSION['security']['session_timer_enabled']['boolean'] ?? false, FILTER_VALIDATE_BOOL)
|
||||||
) {
|
) {
|
||||||
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) && $_SESSION['security']['session_rotate']['boolean'] == "true") {
|
if (array_key_exists('security',$_SESSION) && filter_var($_SESSION['security']['session_rotate']['boolean'] ?? true, FILTER_VALIDATE_BOOL)) {
|
||||||
$_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();
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ $input_shadow_outer_color_focus = isset($_SESSION['theme']['input_shadow_outer_c
|
|||||||
$input_toggle_style = $_SESSION['theme']['input_toggle_style']['text'] ?? 'switch_round';
|
$input_toggle_style = $_SESSION['theme']['input_toggle_style']['text'] ?? 'switch_round';
|
||||||
$input_toggle_switch_background_color_true = $_SESSION['theme']['input_toggle_switch_background_color_true']['text'] ?? '#2e82d0';
|
$input_toggle_switch_background_color_true = $_SESSION['theme']['input_toggle_switch_background_color_true']['text'] ?? '#2e82d0';
|
||||||
$input_toggle_switch_background_color_false = $_SESSION['theme']['input_toggle_switch_background_color_false']['text'] ?? $input_border_color;
|
$input_toggle_switch_background_color_false = $_SESSION['theme']['input_toggle_switch_background_color_false']['text'] ?? $input_border_color;
|
||||||
$input_toggle_switch_handle_symbol = $_SESSION['theme']['input_toggle_switch_handle_symbol']['boolean'] ?? 'false';
|
$input_toggle_switch_handle_symbol = filter_var($_SESSION['theme']['input_toggle_switch_handle_symbol']['boolean'] ?? false, FILTER_VALIDATE_BOOL);
|
||||||
$input_toggle_switch_handle_color = $_SESSION['theme']['input_toggle_switch_handle_color']['text'] ?? '#ffffff';
|
$input_toggle_switch_handle_color = $_SESSION['theme']['input_toggle_switch_handle_color']['text'] ?? '#ffffff';
|
||||||
$login_body_top = $_SESSION['theme']['login_body_top']['text'] ?? '50%';
|
$login_body_top = $_SESSION['theme']['login_body_top']['text'] ?? '50%';
|
||||||
$login_body_left = $_SESSION['theme']['login_body_left']['text'] ?? '50%';
|
$login_body_left = $_SESSION['theme']['login_body_left']['text'] ?? '50%';
|
||||||
@@ -317,7 +317,7 @@ $modal_message_color = $_SESSION['theme']['modal_message_color']['text'] ?? '#44
|
|||||||
$modal_message_alignment = $_SESSION['theme']['modal_message_alignment']['text'] ?? 'left';
|
$modal_message_alignment = $_SESSION['theme']['modal_message_alignment']['text'] ?? 'left';
|
||||||
$modal_message_margin = $_SESSION['theme']['modal_message_margin']['text'] ?? '0 0 20px 0';
|
$modal_message_margin = $_SESSION['theme']['modal_message_margin']['text'] ?? '0 0 20px 0';
|
||||||
$audio_player_indicator_color = $_SESSION['theme']['audio_player_indicator_color']['text'] ?? '#b90004';
|
$audio_player_indicator_color = $_SESSION['theme']['audio_player_indicator_color']['text'] ?? '#b90004';
|
||||||
$audio_player_waveform_enabled = $_SESSION['theme']['audio_player_waveform_enabled']['boolean'] ?? 'false';
|
$audio_player_waveform_enabled = filter_var($_SESSION['theme']['audio_player_waveform_enabled']['boolean'] ?? true, FILTER_VALIDATE_BOOL);
|
||||||
$audio_player_waveform_height = $_SESSION['theme']['audio_player_waveform_height']['text'] ?? '70px';
|
$audio_player_waveform_height = $_SESSION['theme']['audio_player_waveform_height']['text'] ?? '70px';
|
||||||
$custom_css_code = $_SESSION['theme']['custom_css_code']['text'] ?? null;
|
$custom_css_code = $_SESSION['theme']['custom_css_code']['text'] ?? null;
|
||||||
|
|
||||||
@@ -354,29 +354,29 @@ if (!empty($_SESSION['theme'])) {
|
|||||||
$background_images_enabled = false;
|
$background_images_enabled = false;
|
||||||
if (!empty($_SESSION['username'])) {
|
if (!empty($_SESSION['username'])) {
|
||||||
//logged in - use standard background images
|
//logged in - use standard background images
|
||||||
if (!empty($_SESSION['theme']['background_image_enabled']) && $_SESSION['theme']['background_image_enabled']['boolean'] == 'true' && is_array($_SESSION['theme']['background_image'])) {
|
if (filter_var($_SESSION['theme']['background_image_enabled']['boolean'] ?? false, FILTER_VALIDATE_BOOL) && is_array($_SESSION['theme']['background_image'])) {
|
||||||
$background_images_enabled = true;
|
$background_images_enabled = true;
|
||||||
$background_images = $_SESSION['theme']['background_image'];
|
$background_images = $_SESSION['theme']['background_image'];
|
||||||
}
|
}
|
||||||
|
|
||||||
//logged in - use standard background colors
|
//logged in - use standard background colors
|
||||||
if (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
|
if (filter_var($_SESSION['theme']['background_color_enabled']['boolean'] ?? true, FILTER_VALIDATE_BOOL) && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
|
||||||
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
||||||
$background_colors[1] = $_SESSION['theme']['background_color'][1];
|
$background_colors[1] = $_SESSION['theme']['background_color'][1];
|
||||||
}
|
}
|
||||||
elseif (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0])) {
|
elseif (filter_var($_SESSION['theme']['background_color_enabled']['boolean'] ?? true, FILTER_VALIDATE_BOOL) && !empty($_SESSION['theme']['background_color'][0])) {
|
||||||
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//not logged in - try using login background images
|
//not logged in - try using login background images
|
||||||
if (isset($_SESSION['theme']['login_background_image_enabled']['boolean']) && $_SESSION['theme']['login_background_image_enabled']['boolean'] == 'true' && is_array($_SESSION['theme']['login_background_image'])) {
|
if (filter_var($_SESSION['theme']['login_background_image_enabled']['boolean'] ?? false, FILTER_VALIDATE_BOOL) && is_array($_SESSION['theme']['login_background_image'])) {
|
||||||
$background_images_enabled = true;
|
$background_images_enabled = true;
|
||||||
$background_images = $_SESSION['theme']['login_background_image'];
|
$background_images = $_SESSION['theme']['login_background_image'];
|
||||||
}
|
}
|
||||||
|
|
||||||
//otherwise, use standard background images
|
//otherwise, use standard background images
|
||||||
if (!empty($_SESSION['theme']['background_image_enabled']['boolean']) && $_SESSION['theme']['background_image_enabled']['boolean'] == 'true' && is_array($_SESSION['theme']['background_image'])) {
|
if (filter_var($_SESSION['theme']['background_image_enabled']['boolean'] ?? true, FILTER_VALIDATE_BOOL) && is_array($_SESSION['theme']['background_image'])) {
|
||||||
$background_images_enabled = true;
|
$background_images_enabled = true;
|
||||||
$background_images = $_SESSION['theme']['background_image'];
|
$background_images = $_SESSION['theme']['background_image'];
|
||||||
}
|
}
|
||||||
@@ -389,11 +389,11 @@ else {
|
|||||||
elseif (!empty($_SESSION['theme']['login_background_color']) && !empty($_SESSION['theme']['login_background_color'][0])) {
|
elseif (!empty($_SESSION['theme']['login_background_color']) && !empty($_SESSION['theme']['login_background_color'][0])) {
|
||||||
$background_colors[0] = $_SESSION['theme']['login_background_color'][0];
|
$background_colors[0] = $_SESSION['theme']['login_background_color'][0];
|
||||||
}
|
}
|
||||||
elseif (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
|
elseif (filter_var($_SESSION['theme']['background_color_enabled']['boolean'] ?? true, FILTER_VALIDATE_BOOL) && !empty($_SESSION['theme']['background_color'][0]) && !empty($_SESSION['theme']['background_color'][1])) {
|
||||||
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
||||||
$background_colors[1] = $_SESSION['theme']['background_color'][1];
|
$background_colors[1] = $_SESSION['theme']['background_color'][1];
|
||||||
}
|
}
|
||||||
elseif (!empty($_SESSION['theme']['background_color_enabled']) && $_SESSION['theme']['background_color_enabled']['boolean'] == 'true' && !empty($_SESSION['theme']['background_color'][0])) {
|
elseif (filter_var($_SESSION['theme']['background_color_enabled']['boolean'] ?? true, FILTER_VALIDATE_BOOL) && !empty($_SESSION['theme']['background_color'][0])) {
|
||||||
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
$background_colors[0] = $_SESSION['theme']['background_color'][0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user