Minor update to a few files in the menu.

This commit is contained in:
Mark Crane
2015-05-09 20:29:26 +00:00
parent 461872c726
commit a99552f484
3 changed files with 11 additions and 13 deletions
+9 -11
View File
@@ -17,7 +17,7 @@
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-2015
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
@@ -38,34 +38,32 @@ else {
$language = new text; $language = new text;
$text = $language->get(); $text = $language->get();
if (count($_GET)>0) { //set the variables
$id = check_str($_GET["id"]); if (count($_GET)>0) {
$menu_uuid = check_str($_GET["menu_uuid"]); $id = check_str($_GET["id"]);
} $menu_uuid = check_str($_GET["menu_uuid"]);
}
if (strlen($id)>0) { if (strlen($id)>0) {
//start the database transaction //start the database transaction
$db->beginTransaction(); $db->beginTransaction();
//delete the menu //delete the menu
$sql = ""; $sql = "delete from v_menus ";
$sql .= "delete from v_menus ";
$sql .= "where menu_uuid = '$menu_uuid' "; $sql .= "where menu_uuid = '$menu_uuid' ";
$prep_statement = $db->prepare(check_sql($sql)); $prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute(); $prep_statement->execute();
unset($sql); unset($sql);
//delete the items in the menu //delete the items in the menu
$sql = ""; $sql = "delete from v_menu_items ";
$sql .= "delete from v_menu_items ";
$sql .= "where menu_uuid = '$menu_uuid' "; $sql .= "where menu_uuid = '$menu_uuid' ";
$prep_statement = $db->prepare(check_sql($sql)); $prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute(); $prep_statement->execute();
unset($sql); unset($sql);
//delete the menu permissions //delete the menu permissions
$sql = ""; $sql = "delete from v_menu_item_groups ";
$sql .= "delete from v_menu_item_groups ";
$sql .= "where menu_uuid = '$menu_uuid' "; $sql .= "where menu_uuid = '$menu_uuid' ";
$prep_statement = $db->prepare(check_sql($sql)); $prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute(); $prep_statement->execute();
+1 -1
View File
@@ -17,7 +17,7 @@
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-2015
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
+1 -1
View File
@@ -17,7 +17,7 @@
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-2015
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):