From: Glenn H. <thr...@us...> - 2005-07-17 21:56:32
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv545 Modified Files: account_page.php core.php Log Message: fix for 0005655: Problems creating a new account (similar to #5653) fix for 0005949: signing up is a bit too restrictive - don't increment last visit on account_update.php in case there is an error Now going "back" will work - move page name check to utility_api.php Index: core.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core.php,v retrieving revision 1.45 retrieving revision 1.46 diff -u -d -r1.45 -r1.46 --- core.php 14 Jul 2005 21:38:00 -0000 1.45 +++ core.php 17 Jul 2005 21:56:21 -0000 1.46 @@ -46,7 +46,7 @@ require_once( dirname( __FILE__ ).DIRECTORY_SEPARATOR.'config_inc.php' ); } else { # if not found, redirect to the admin page to install the system - if ( ! stristr ( $_SERVER['PHP_SELF'], 'admin' ) ) { + if ( ! is_page_name( 'admin' ) ) { if ( OFF == $g_use_iis ) { header( 'Status: 302' ); } Index: account_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/account_page.php,v retrieving revision 1.50 retrieving revision 1.51 diff -u -d -r1.50 -r1.51 --- account_page.php 11 Jul 2005 19:08:14 -0000 1.50 +++ account_page.php 17 Jul 2005 21:56:21 -0000 1.51 @@ -60,7 +60,7 @@ # note if we are being included by a script of a different name, if so, # this is a mandatory password change request - $t_force_pw_reset = ( isset( $_SERVER['PHP_SELF'] ) && ( 0 < strpos( $_SERVER['PHP_SELF'], 'verify.php' ) ) ); + $t_force_pw_reset = is_page_name( 'verify.php' ); html_page_top1( lang_get( 'account_link' ) ); html_page_top2(); |