Update device_settings.php
This commit is contained in:
parent
b98aba1bb8
commit
a8a5a7a6cf
|
|
@ -17,34 +17,43 @@
|
||||||
|
|
||||||
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-2012
|
Portions created by the Initial Developer are Copyright (C) 2008-2019
|
||||||
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>
|
||||||
*/
|
*/
|
||||||
require_once "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
require_once "root.php";
|
||||||
if (permission_exists('device_setting_view')) {
|
require_once "resources/require.php";
|
||||||
//access granted
|
require_once "resources/check_auth.php";
|
||||||
}
|
|
||||||
else {
|
//check permissions
|
||||||
echo "access denied";
|
if (permission_exists('device_setting_view')) {
|
||||||
exit;
|
//access granted
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
$text = $language->get();
|
$text = $language->get();
|
||||||
|
|
||||||
require_once "resources/header.php";
|
//additional includes
|
||||||
require_once "resources/paging.php";
|
require_once "resources/header.php";
|
||||||
|
require_once "resources/paging.php";
|
||||||
|
|
||||||
//get variables used to control the order
|
//get variables used to control the order
|
||||||
$order_by = $_GET["order_by"];
|
$order_by = $_GET["order_by"];
|
||||||
$order = $_GET["order"];
|
$order = $_GET["order"];
|
||||||
$device_uuid = $_GET["id"];
|
|
||||||
|
//get the uuid
|
||||||
|
if (is_uuid($_GET['id'])) {
|
||||||
|
$device_uuid = $_GET['id'];
|
||||||
|
}
|
||||||
|
|
||||||
//show the content
|
//show the content
|
||||||
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
|
||||||
|
|
@ -107,7 +116,7 @@ require_once "resources/paging.php";
|
||||||
echo th_order_by('device_setting_description', $text['label-description'], $order_by, $order);
|
echo th_order_by('device_setting_description', $text['label-description'], $order_by, $order);
|
||||||
echo "<td align='right' width='42'>\n";
|
echo "<td align='right' width='42'>\n";
|
||||||
if (permission_exists('device_setting_add')) {
|
if (permission_exists('device_setting_add')) {
|
||||||
echo " <a href='device_setting_edit.php?device_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
echo " <a href='device_setting_edit.php?device_uuid=".urlencode($device_uuid)."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo " \n";
|
echo " \n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue