Update domain_setting_delete.php
This commit is contained in:
@@ -17,22 +17,25 @@
|
|||||||
|
|
||||||
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";
|
//includes
|
||||||
require_once "resources/require.php";
|
require_once "root.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/require.php";
|
||||||
if (permission_exists('domain_setting_delete')) {
|
require_once "resources/check_auth.php";
|
||||||
//access granted
|
|
||||||
}
|
//check permissions
|
||||||
else {
|
if (permission_exists('domain_setting_delete')) {
|
||||||
echo "access denied";
|
//access granted
|
||||||
exit;
|
}
|
||||||
}
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
@@ -40,9 +43,9 @@ else {
|
|||||||
|
|
||||||
//delete the record
|
//delete the record
|
||||||
if (is_uuid($_GET["id"]) && is_uuid($_GET["domain_uuid"])) {
|
if (is_uuid($_GET["id"]) && is_uuid($_GET["domain_uuid"])) {
|
||||||
|
//set the variables
|
||||||
$domain_setting_uuid = $_GET["id"];
|
$domain_setting_uuid = $_GET["id"];
|
||||||
$domain_uuid = $_GET["domain_uuid"];
|
$domain_uuid = $_GET["domain_uuid"];
|
||||||
|
|
||||||
//delete domain_setting
|
//delete domain_setting
|
||||||
$array['domain_settings'][0]['domain_setting_uuid'] = $domain_setting_uuid;
|
$array['domain_settings'][0]['domain_setting_uuid'] = $domain_setting_uuid;
|
||||||
@@ -59,7 +62,7 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//redirect the user
|
//redirect the user
|
||||||
header("Location: domain_edit.php?id=".$domain_uuid);
|
header("Location: ".PROJECT_PATH."core/domains/domain_edit.php?id=".$domain_uuid);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user