diff --git a/app/devices/device_vendor_delete.php b/app/devices/device_vendor_delete.php deleted file mode 100644 index 38bad7a33a..0000000000 --- a/app/devices/device_vendor_delete.php +++ /dev/null @@ -1,68 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2016 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -//includes - require_once "root.php"; - require_once "resources/require.php"; - -//check permissions - require_once "resources/check_auth.php"; - if (permission_exists('device_vendor_delete')) { - //access granted - } - else { - echo "access denied"; - exit; - } - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//get the id - $device_vendor_uuid = $_GET["id"]; - -//delete the data - if (is_uuid($device_vendor_uuid)) { - //create array - $array['device_vendors'][0]['device_vendor_uuid'] = $device_vendor_uuid; - - //execute - $database = new database; - $database->app_name = 'devices'; - $database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - $database->delete($array); - unset($array); - - //set message - message::add($text['message-delete']); - } - -//redirect the user - header('Location: device_vendors.php'); - exit; - -?> \ No newline at end of file diff --git a/app/devices/device_vendor_function_delete.php b/app/devices/device_vendor_function_delete.php deleted file mode 100644 index 8f7fdefbc1..0000000000 --- a/app/devices/device_vendor_function_delete.php +++ /dev/null @@ -1,73 +0,0 @@ - - Portions created by the Initial Developer are Copyright (C) 2016 - the Initial Developer. All Rights Reserved. - - Contributor(s): - Mark J Crane -*/ - -//includes - require_once "root.php"; - require_once "resources/require.php"; - -//check permissions - require_once "resources/check_auth.php"; - if (permission_exists('device_vendor_function_delete')) { - //access granted - } - else { - echo "access denied"; - exit; - } - -//add multi-lingual support - $language = new text; - $text = $language->get(); - -//get the id - $device_vendor_function_uuid = $_GET["id"]; - $device_vendor_uuid = $_GET["device_vendor_uuid"]; - -//delete the data - if (is_uuid($device_vendor_function_uuid) && is_uuid($device_vendor_uuid)) { - //create array - $array['device_vendor_functions'][0]['device_vendor_function_uuid'] = $device_vendor_function_uuid; - - //execute delete - $database = new database; - $database->app_name = 'devices'; - $database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - $database->delete($array); - unset($array); - - //set message - message::add($text['message-delete']); - - //redirect the user - header('Location: device_vendor_edit.php?id='.$device_vendor_uuid); - exit; - } - -//default redirect - header('Location: device_vendors.php'); - exit; - -?> \ No newline at end of file