Update destinations.php

This commit is contained in:
FusionPBX 2017-04-04 23:39:51 -06:00 committed by GitHub
parent 5f15324d1f
commit bccf01cd19
1 changed files with 18 additions and 14 deletions

View File

@ -17,22 +17,26 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2015
Portions created by the Initial Developer are Copyright (C) 2008-2017
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('destination_view')) {
//access granted
}
else {
echo "access denied";
exit;
}
//includes
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('destination_view')) {
//access granted
}
else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text;
@ -55,7 +59,7 @@ else {
$sql .= "where ";
}
} else {
$sql .= "where domain_uuid = '".$domain_uuid."' ";
$sql .= "where (domain_uuid = '".$domain_uuid."' or domain_uuid is null) ";
if (strlen($search) > 0) {
$sql .= "and ";
}
@ -97,7 +101,7 @@ else {
$sql .= " where ";
}
} else {
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "where (domain_uuid = '".$domain_uuid."' or domain_uuid is null) ";
if (strlen($search) > 0) {
$sql .= " and ";
}
@ -225,4 +229,4 @@ else {
//include the footer
require_once "resources/footer.php";
?>
?>