From 258f0f759f8ca92cba34f08f0656cccca1c71c6d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 2 Dec 2016 01:16:38 -0700 Subject: [PATCH] Update fax.php --- app/fax/fax.php | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/app/fax/fax.php b/app/fax/fax.php index 8a937ef6cc..f93da65b07 100644 --- a/app/fax/fax.php +++ b/app/fax/fax.php @@ -17,22 +17,26 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2014 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ -include "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('fax_extension_view')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + include "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('fax_extension_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //additional includes require_once "resources/header.php"; @@ -135,7 +139,8 @@ else { if ($num_rows > 0) { foreach($result as $row) { //remove the backslash - $row['fax_email'] = str_replace("\\", "", $row['fax_email']); + $fax_email = str_replace("\\", "", $row['fax_email']); + $fax_email = substr($fax_email, 0, 50); //show the fax extensions $tr_link = (permission_exists('fax_extension_edit')) ? "href='fax_edit.php?id=".$row['fax_uuid']."'" : null; echo "\n"; @@ -148,7 +153,7 @@ else { } echo " \n"; echo " ".$row['fax_extension']."\n"; - echo " ".$row['fax_email']." \n"; + echo " ".$fax_email." \n"; echo " "; if (permission_exists('fax_send')) { echo " ".$text['label-new']."  "; @@ -210,4 +215,4 @@ else { //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>