mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 09:03:49 +00:00
Add the email_queue.
This commit is contained in:
41
app/email_queue/email_queue_delete.php
Normal file
41
app/email_queue/email_queue_delete.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
//includes
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('email_queue_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//delete the message
|
||||
message::add($text['message-delete']);
|
||||
|
||||
//delete the data
|
||||
if (isset($_GET["id"]) && is_uuid($_GET["id"])) {
|
||||
|
||||
//get the id
|
||||
$id = $_GET["id"];
|
||||
|
||||
//delete the data
|
||||
$array['email_queue'][]['email_queue_uuid'] = $id;
|
||||
$database = new database;
|
||||
$database->delete($array);
|
||||
unset($array);
|
||||
|
||||
//redirect the user
|
||||
header('Location: email_queues.php');
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user