Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (56 sloc) 1.68 kB
<?
# Mantis - a php based bugtracking system
# Copyright (C) 2000 Kenzaburo Ito - kenito@300baud.org
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
?>
<? include( "core_API.php" ) ?>
<? login_cookie_check() ?>
<?
db_mysql_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name );
### Update all fields
$query = "UPDATE $g_mantis_bug_table
SET category='$f_category', severity='$f_severity',
reproducibility='$f_reproducibility',
priority='$f_priority', status='$f_status',
projection='$f_projection', duplicate_id='$f_duplicate_id',
resolution='$f_resolution', handler_id='$f_handler_id',
last_updated=NOW(), eta='$f_eta',
handler_id='$f_handler_id'
WHERE id='$f_id'";
$result = mysql_query($query);
?>
<? print_html_top() ?>
<? print_head_top() ?>
<? print_title( $g_window_title ) ?>
<? print_css( $g_css_include_file ) ?>
<?
if ( $result ) {
print_meta_redirect( "$g_view_bug_page?f_id=$f_id", $g_wait_time );
}
?>
<? include( $g_meta_include_file ) ?>
<? print_head_bottom() ?>
<? print_body_top() ?>
<? print_header( $g_page_title ) ?>
<p>
<? print_menu( $g_menu_include_file ) ?>
<p>
<div align=center>
<?
### SUCCESS
if ( $result ) {
PRINT "Bug has been successfully updated...<p>";
}
### FAILURE
else {
PRINT "ERROR DETECTED: Report this sql statement to <a href=\"<? echo $g_administrator_email ?>\">administrator</a><p>";
echo $query;
}
?>
<p>
<a href="<? echo $g_view_bug_page ?>?f_id=<? echo $f_id ?>">Click here to proceed</a>
</div>
<? print_footer() ?>
<? print_body_bottom() ?>
<? print_html_bottom() ?>
Jump to Line
Something went wrong with that request. Please try again.