diff --git a/ChangeLog b/ChangeLog index 16b99bcc01..429a72871a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ To Do: * Add postgreSQL support and a Database abstraction layer * Refine viewing preferences * Add profiles for each user + * Refine viewing news archives XX.XX.2000 - 0.10.2 diff --git a/account_update.php3 b/account_update.php3 index 829a1881b4..2e955bd19b 100644 --- a/account_update.php3 +++ b/account_update.php3 @@ -9,32 +9,34 @@ db_mysql_connect( $g_hostname, $g_db_username, $g_db_password, $g_database_name ); - if ( $f_action=="update" ) { - $query = "UPDATE $g_mantis_user_table - SET username='$f_username', email='$f_email' - WHERE id='$f_id'"; - $result = mysql_query( $query ); + if ( $f_protected!="on" ) { ### only if not protected + if ( $f_action=="update" ) { + $query = "UPDATE $g_mantis_user_table + SET username='$f_username', email='$f_email' + WHERE id='$f_id'"; + $result = mysql_query( $query ); - ### lets change the password - if ( !empty( $f_password ) ) { - if ( $f_password==$f_password_confirm ) { - $t_password = crypt( $f_password ); - $query = "UPDATE $g_mantis_user_table - SET password='$t_password' - WHERE id='$f_id'"; - $result = mysql_query( $query ); - } + ### lets change the password + if ( !empty( $f_password ) ) { + if ( $f_password==$f_password_confirm ) { + $t_password = crypt( $f_password ); + $query = "UPDATE $g_mantis_user_table + SET password='$t_password' + WHERE id='$f_id'"; + $result = mysql_query( $query ); + } + } + } + else if ( $f_action=="delete" ) { + $query = "DELETE + FROM $g_mantis_user_table + WHERE id='$f_id'"; + $result = mysql_query( $query ); + header( "Location: $g_logout_page" ); + } + else { + echo "ERROR: INVALID ACTION"; } - } - else if ( $f_action=="delete" ) { - $query = "DELETE - FROM $g_mantis_user_table - WHERE id='$f_id'"; - $result = mysql_query( $query ); - header( "Location: $g_logout_page" ); - } - else { - echo "ERROR: INVALID ACTION"; } ?> print_html_top() ?> @@ -59,6 +61,9 @@ ### SUCCESS if ( $result ) { PRINT "Your account has been successfully updated...
"; + if ( $f_protected=="on" ) { + PRINT "Account protected. Cannot change some settings.
"; + } } ### FAILURE else { diff --git a/bug_update_page.php3 b/bug_update_page.php3 index ca1d1e77c1..7d2ea3ca38 100644 --- a/bug_update_page.php3 +++ b/bug_update_page.php3 @@ -21,10 +21,16 @@
print_menu( $g_menu_include_file ) ?> + + if ( $g_show_advanced_update==1 ) { +?>
print_menu( $g_menu_include_file ) ?> + + if ( $g_show_advanced_report==1 ) { +?>