|
@@ -396,12 +396,12 @@
|
|
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif');\"";
|
|
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_active.gif');\"";
|
|
}
|
|
}
|
|
echo "<tr>\n";
|
|
echo "<tr>\n";
|
|
- echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
|
|
|
|
|
|
+ echo "<td class='".$row_style[$c]."' $style_alternate>".escape($extension)."</td>\n";
|
|
if ($_SESSION['user_status_display'] == "false") {
|
|
if ($_SESSION['user_status_display'] == "false") {
|
|
//hide the user_status when it is set to false
|
|
//hide the user_status when it is set to false
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- echo "<td class='".$row_style[$c]."' $style_alternate>".$user_array[$extension]['user_status']." </td>\n";
|
|
|
|
|
|
+ echo "<td class='".$row_style[$c]."' $style_alternate>".escape($user_array[$extension]['user_status'])." </td>\n";
|
|
}
|
|
}
|
|
echo "<td class='".$row_style[$c]."' $style_alternate width='20px;'>".$call_length."</td>\n";
|
|
echo "<td class='".$row_style[$c]."' $style_alternate width='20px;'>".$call_length."</td>\n";
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
@@ -411,8 +411,8 @@
|
|
}
|
|
}
|
|
$url = str_replace ("{cid_num}", $cid_num, $url);
|
|
$url = str_replace ("{cid_num}", $cid_num, $url);
|
|
$url = str_replace ("{cid_name}", $cid_name, $url);
|
|
$url = str_replace ("{cid_name}", $cid_name, $url);
|
|
- echo "<td class='".$row_style[$c]."' $style_alternate><a href='".$url."' style='color: #444444;' target='_blank'>".$cid_name."</a></td>\n";
|
|
|
|
- echo "<td class='".$row_style[$c]."' $style_alternate><a href='".$url."' style='color: #444444;' target='_blank'>".$cid_num."</a></td>\n";
|
|
|
|
|
|
+ echo "<td class='".$row_style[$c]."' $style_alternate><a href='".escape($url)."' style='color: #444444;' target='_blank'>".escape($cid_name)."</a></td>\n";
|
|
|
|
+ echo "<td class='".$row_style[$c]."' $style_alternate><a href='".escape($url)."' style='color: #444444;' target='_blank'>".escape($cid_num)."</a></td>\n";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
@@ -437,12 +437,12 @@
|
|
else {
|
|
else {
|
|
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_light.gif');\"";
|
|
$style_alternate = "style=\"color: #444444; background-image: url('".PROJECT_PATH."/themes/".$_SESSION['domain']['template']['name']."/images/background_cell_light.gif');\"";
|
|
echo "<tr>\n";
|
|
echo "<tr>\n";
|
|
- echo "<td class='".$row_style[$c]."' $style_alternate>$extension</td>\n";
|
|
|
|
|
|
+ echo "<td class='".$row_style[$c]."' $style_alternate>".escape($extension)."</td>\n";
|
|
if ($_SESSION['user_status_display'] == "false") {
|
|
if ($_SESSION['user_status_display'] == "false") {
|
|
//hide the user_status when it is set to false
|
|
//hide the user_status when it is set to false
|
|
}
|
|
}
|
|
else {
|
|
else {
|
|
- echo "<td class='".$row_style[$c]."' $style_alternate>".$user_array[$extension]['user_status']." </td>\n";
|
|
|
|
|
|
+ echo "<td class='".$row_style[$c]."' $style_alternate>".escape($user_array[$extension]['user_status'])." </td>\n";
|
|
}
|
|
}
|
|
echo "<td class='".$row_style[$c]."' $style_alternate> </td>\n";
|
|
echo "<td class='".$row_style[$c]."' $style_alternate> </td>\n";
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
@@ -544,10 +544,10 @@
|
|
// if (strlen($row['extension']) > 0) {
|
|
// if (strlen($row['extension']) > 0) {
|
|
// if ($row['context'] == $_SESSION['domain_name'] || $row['context'] == "default") {
|
|
// if ($row['context'] == $_SESSION['domain_name'] || $row['context'] == "default") {
|
|
// echo "<tr>\n";
|
|
// echo "<tr>\n";
|
|
- // echo "<td valign='top' class='".$row_style[$c]."' >*".$row['extension']."</td>\n";
|
|
|
|
- // echo "<td valign='top' class='".$row_style[$c]."' >".$row['call_length']."</td>\n";
|
|
|
|
- // echo "<td valign='top' class='".$row_style[$c]."' >".$row['cid_name']."</td>\n";
|
|
|
|
- // echo "<td valign='top' class='".$row_style[$c]."' >".$row['cid_num']."</td>\n";
|
|
|
|
|
|
+ // echo "<td valign='top' class='".$row_style[$c]."' >*".escape($row['extension'])."</td>\n";
|
|
|
|
+ // echo "<td valign='top' class='".$row_style[$c]."' >".escape($row['call_length'])."</td>\n";
|
|
|
|
+ // echo "<td valign='top' class='".$row_style[$c]."' >".escape($row['cid_name'])."</td>\n";
|
|
|
|
+ // echo "<td valign='top' class='".$row_style[$c]."' >".escape($row['cid_num'])."</td>\n";
|
|
// echo "</tr>\n";
|
|
// echo "</tr>\n";
|
|
// }
|
|
// }
|
|
// }
|
|
// }
|
|
@@ -562,7 +562,7 @@
|
|
$user_status = "Available_On_Demand";
|
|
$user_status = "Available_On_Demand";
|
|
}
|
|
}
|
|
$user_status = str_replace(" ", "_", $user_status);
|
|
$user_status = str_replace(" ", "_", $user_status);
|
|
- echo "<span id='db_user_status' style='visibility:hidden;'>$user_status</span>\n";
|
|
|
|
|
|
+ echo "<span id='db_user_status' style='visibility:hidden;'>".escape($user_status)."</span>\n";
|
|
echo "<div id='cmd_reponse'>\n";
|
|
echo "<div id='cmd_reponse'>\n";
|
|
echo "</div>\n";
|
|
echo "</div>\n";
|
|
}
|
|
}
|