Update fax.php
This commit is contained in:
+19
-14
@@ -17,22 +17,26 @@
|
|||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
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.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
include "root.php";
|
||||||
if (permission_exists('fax_extension_view')) {
|
require_once "resources/require.php";
|
||||||
//access granted
|
require_once "resources/check_auth.php";
|
||||||
}
|
|
||||||
else {
|
//check permissions
|
||||||
echo "access denied";
|
if (permission_exists('fax_extension_view')) {
|
||||||
exit;
|
//access granted
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
require_once "resources/header.php";
|
require_once "resources/header.php";
|
||||||
@@ -135,7 +139,8 @@ else {
|
|||||||
if ($num_rows > 0) {
|
if ($num_rows > 0) {
|
||||||
foreach($result as $row) {
|
foreach($result as $row) {
|
||||||
//remove the backslash
|
//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
|
//show the fax extensions
|
||||||
$tr_link = (permission_exists('fax_extension_edit')) ? "href='fax_edit.php?id=".$row['fax_uuid']."'" : null;
|
$tr_link = (permission_exists('fax_extension_edit')) ? "href='fax_edit.php?id=".$row['fax_uuid']."'" : null;
|
||||||
echo "<tr ".$tr_link.">\n";
|
echo "<tr ".$tr_link.">\n";
|
||||||
@@ -148,7 +153,7 @@ else {
|
|||||||
}
|
}
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['fax_extension']."</td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$row['fax_extension']."</td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row['fax_email']." </td>\n";
|
echo " <td valign='top' class='".$row_style[$c]."'>".$fax_email." </td>\n";
|
||||||
echo " <td valign='top' class='".$row_style[$c]." tr_link_void'>";
|
echo " <td valign='top' class='".$row_style[$c]." tr_link_void'>";
|
||||||
if (permission_exists('fax_send')) {
|
if (permission_exists('fax_send')) {
|
||||||
echo " <a href='fax_send.php?id=".$row['fax_uuid']."'>".$text['label-new']."</a> ";
|
echo " <a href='fax_send.php?id=".$row['fax_uuid']."'>".$text['label-new']."</a> ";
|
||||||
@@ -210,4 +215,4 @@ else {
|
|||||||
|
|
||||||
//show the footer
|
//show the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user