Update conference_room_delete.php

Improve the code indentation and comments
This commit is contained in:
FusionPBX 2016-10-17 14:12:25 -06:00 committed by GitHub
parent 28e052c353
commit 714cd3290b
1 changed files with 59 additions and 54 deletions

View File

@ -17,33 +17,38 @@
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-2016
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('conference_room_delete')) {
//includes
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('conference_room_delete')) {
//access granted
}
else {
}
else {
echo "access denied";
exit;
}
}
//add multi-lingual support
$language = new text;
$text = $language->get();
//get the id
if (count($_GET)>0) {
if (count($_GET) > 0) {
$id = check_str($_GET["id"]);
}
if (strlen($id)>0) {
//delete the data
if (strlen($id) > 0) {
//get the meeting_uuid
if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
$conference_room_uuid = check_str($_GET["id"]);
@ -82,11 +87,11 @@ if (strlen($id)>0) {
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql);
}
}
$_SESSION["message"] = $text['message-delete'];
header("Location: conference_rooms.php");
return;
//redirect the user
$_SESSION["message"] = $text['message-delete'];
header("Location: conference_rooms.php");
return;
?>