Portions created by the Initial Developer are Copyright (C) 2008-2012 the Initial Developer. All Rights Reserved. Contributor(s): Mark J Crane James Rose */ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; if (permission_exists('script_editor_save')) { //access granted } else { echo "access denied"; exit; } //add multi-lingual support $language = new text; $text = $language->get(); //get the uuid from http values $clip_uuid = check_str($_GET["id"]); //delete the clip if (strlen($_GET["id"])>0) { $sql = "delete from v_clips "; $sql .= "where clip_uuid = '".$clip_uuid."' "; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); unset($sql,$db); } //redirect the browser header("Location: clipoptions.php"); ?>