From 43357c9f7a2a6bc8fc2b53ea6599ffae78054894 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 18 Aug 2019 16:10:05 -0600 Subject: [PATCH] Update contact_edit.php --- app/contacts/contact_edit.php | 97 ++++++++++++++++++----------------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/app/contacts/contact_edit.php b/app/contacts/contact_edit.php index ce1fc462d4..308500036c 100644 --- a/app/contacts/contact_edit.php +++ b/app/contacts/contact_edit.php @@ -365,19 +365,19 @@ $time_start = $database->select($sql, $parameters, 'column'); $btn_mod = $time_start != '' ? "style='background-color: #3693df; background-image: none;'" : null; unset($sql, $parameters); - echo " \n"; + echo " \n"; } echo " \n"; - echo " \n"; + echo " \n"; } if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/invoices')) { - echo " \n"; + echo " \n"; } if ($action == "update" && is_dir($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH.'/app/certificates')) { - echo " \n"; + echo " \n"; } if ($action == "update" && permission_exists('user_edit') && is_uuid($contact_user_uuid)) { - echo " \n"; + echo " \n"; } echo " \n"; echo "\n"; @@ -407,8 +407,8 @@ sort($_SESSION["contact"]["type"]); echo " \n"; } @@ -428,8 +428,8 @@ echo " \n"; echo " \n"; } -// echo "
\n"; -// echo $text['description-contact_type']."\n"; + //echo "
\n"; + //echo $text['description-contact_type']."\n"; echo "\n"; echo "\n"; @@ -439,8 +439,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_organization']."\n"; + //echo "
\n"; + //echo $text['description-contact_organization']."\n"; echo "\n"; echo "\n"; @@ -450,8 +450,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_name_prefix']."\n"; + //echo "
\n"; + //echo $text['description-contact_name_prefix']."\n"; echo "\n"; echo "\n"; @@ -461,8 +461,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_name_given']."\n"; + //echo "
\n"; + //echo $text['description-contact_name_given']."\n"; echo "\n"; echo "\n"; @@ -472,8 +472,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_name_middle']."\n"; + //echo "
\n"; + //echo $text['description-contact_name_middle']."\n"; echo "\n"; echo "\n"; @@ -483,8 +483,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_name_family']."\n"; + //echo "
\n"; + //echo $text['description-contact_name_family']."\n"; echo "\n"; echo "\n"; @@ -494,8 +494,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_name_suffix']."\n"; + //echo "
\n"; + //echo $text['description-contact_name_suffix']."\n"; echo "\n"; echo "\n"; @@ -505,8 +505,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_nickname']."\n"; + //echo "
\n"; + //echo $text['description-contact_nickname']."\n"; echo "\n"; echo "\n"; @@ -519,16 +519,16 @@ sort($_SESSION["contact"]["title"]); echo " \n"; } else { echo " \n"; } -// echo "
\n"; -// echo $text['description-contact_title']."\n"; + //echo "
\n"; + //echo $text['description-contact_title']."\n"; echo "\n"; echo "\n"; @@ -541,16 +541,16 @@ sort($_SESSION["contact"]["category"]); echo " \n"; } else { echo " \n"; } -// echo "
\n"; -// echo $text['description-contact_category']."\n"; + //echo "
\n"; + //echo $text['description-contact_category']."\n"; echo "\n"; echo "\n"; @@ -563,16 +563,16 @@ sort($_SESSION["contact"]["role"]); echo " \n"; } else { echo " \n"; } -// echo "
\n"; -// echo $text['description-contact_role']."\n"; + //echo "
\n"; + //echo $text['description-contact_role']."\n"; echo "\n"; echo "\n"; @@ -582,8 +582,8 @@ echo "\n"; echo "\n"; echo " \n"; -// echo "
\n"; -// echo $text['description-contact_time_zone']."\n"; + //echo "
\n"; + //echo $text['description-contact_time_zone']."\n"; echo "\n"; echo "\n"; @@ -598,7 +598,7 @@ echo " ".escape($field['username'])."\n"; echo " \n"; if (permission_exists('contact_user_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo " \n"; echo " \n"; @@ -650,10 +650,10 @@ foreach($result as $field) { if (strlen($field['group_name']) > 0) { echo "\n"; - echo " ".$field['group_name']."\n"; + echo " ".escape($field['group_name'])."\n"; echo " \n"; if (permission_exists('contact_group_delete') || if_group("superadmin")) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo " \n"; echo "\n"; @@ -709,15 +709,16 @@ } echo "\n"; - echo "\n"; - echo " ".$text['label-contact_note']."\n"; - echo "\n"; - echo "\n"; - echo " \n"; -// echo "
\n"; -// echo $text['description-contact_note']."\n"; - echo "\n"; + echo " \n"; + echo " ".$text['label-contact_note']."\n"; + echo " \n"; + echo " \n"; + echo " \n"; + //echo "
\n"; + //echo $text['description-contact_note']."\n"; + echo " \n"; echo "\n"; + echo " \n"; echo " \n"; if ($action == "update") {