Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('module_delete')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //get the id $module_uuid = $_GET["id"]; if (is_uuid($module_uuid)) { //delete module $array['modules'][0]['module_uuid'] = $module_uuid; $database = new database; $database->app_name = 'modules'; $database->app_uuid = '5eb9cba1-8cb6-5d21-e36a-775475f16b5e'; $database->delete($array); unset($array); //set message message::add($text['message-delete']); } //redirect header("Location: modules.php"); exit; ?>