fusionpbx/app/conference_controls/conference_control_detail_d...

43 lines
1.0 KiB
PHP
Raw Normal View History

<?php
//includes
require_once "root.php";
require_once "resources/require.php";
//check permissions
require_once "resources/check_auth.php";
if (permission_exists('conference_control_detail_delete')) {
//access granted
}
else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text;
$text = $language->get();
//delete the data
2019-07-07 00:37:13 +02:00
if (is_uuid($_GET["id"]) && is_uuid($_GET["conference_control_uuid"])) {
$conference_control_detail_uuid = $_GET["id"];
$conference_control_uuid = $_GET["conference_control_uuid"];
//delete conference_control_detail
2019-07-07 00:37:13 +02:00
$array['conference_control_details'][0]['conference_control_detail_uuid'] = $conference_control_detail_uuid;
$database = new database;
$database->app_name = 'conference_controls';
$database->app_uuid = 'e1ad84a2-79e1-450c-a5b1-7507a043e048';
$database->delete($array);
unset($array);
//set message
message::add($text['message-delete']);
}
//redirect the user
2019-07-07 00:37:13 +02:00
header('Location: conference_control_edit.php?id='.$conference_control_uuid);
2016-07-17 23:12:15 +02:00
?>