2
# Mantis - a php based bugtracking system
3
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
4
# This program is distributed under the terms and conditions of the GPL
5
# See the README and LICENSE files for details
8
# Remove the bugnote and bugnote text and redirect back to
11
<?php include( "core_API.php" ) ?>
12
<?php login_cookie_check() ?>
14
db_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
15
project_access_check( $f_id );
16
check_access( REPORTER );
17
check_bugnote_exists( $f_id );
19
# grab the bugnote text id
20
$query = "SELECT bugnote_text_id
21
FROM $g_mantis_bugnote_table
22
WHERE id='$f_bugnote_id'";
23
$result = db_query( $query );
24
$t_bugnote_text_id = db_result( $result, 0, 0 );
28
FROM $g_mantis_bugnote_table
29
WHERE id='$f_bugnote_id'";
30
$result = db_query( $query );
32
# Remove the bugnote text
34
FROM $g_mantis_bugnote_text_table
35
WHERE id='$t_bugnote_text_id'";
36
$result = db_query( $query );
38
# Determine which view page to redirect back to.
39
$t_redirect_url = get_view_redirect_url( $f_id );
41
print_header_redirect( $t_redirect_url );
43
print_mantis_error( ERROR_GENERIC );
b'\\ No newline at end of file'