Update domain_setting_delete.php
This commit is contained in:
parent
9ef25b0b81
commit
5358ac0076
|
|
@ -17,22 +17,25 @@
|
|||
|
||||
The Initial Developer of the Original Code is
|
||||
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.
|
||||
|
||||
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('domain_setting_delete')) {
|
||||
//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('domain_setting_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
|
|
@ -40,9 +43,9 @@ else {
|
|||
|
||||
//delete the record
|
||||
if (is_uuid($_GET["id"]) && is_uuid($_GET["domain_uuid"])) {
|
||||
|
||||
$domain_setting_uuid = $_GET["id"];
|
||||
$domain_uuid = $_GET["domain_uuid"];
|
||||
//set the variables
|
||||
$domain_setting_uuid = $_GET["id"];
|
||||
$domain_uuid = $_GET["domain_uuid"];
|
||||
|
||||
//delete domain_setting
|
||||
$array['domain_settings'][0]['domain_setting_uuid'] = $domain_setting_uuid;
|
||||
|
|
@ -59,7 +62,7 @@ else {
|
|||
}
|
||||
|
||||
//redirect the user
|
||||
header("Location: domain_edit.php?id=".$domain_uuid);
|
||||
header("Location: ".PROJECT_PATH."core/domains/domain_edit.php?id=".$domain_uuid);
|
||||
return;
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue