|
From: Bart v. B. <ba...@us...> - 2002-03-24 20:03:25
|
Update of /cvsroot/phpbb/phpBB2/includes
In directory usw-pr-cvs1:/tmp/cvs-serv6900
Modified Files:
usercp_register.php
Log Message:
Some extra comments and removed a redundant if
Index: usercp_register.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/includes/usercp_register.php,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** usercp_register.php 24 Mar 2002 13:08:20 -0000 1.15
--- usercp_register.php 24 Mar 2002 20:03:20 -0000 1.16
***************
*** 64,81 ****
if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
! if ( !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
! {
! include($phpbb_root_path . 'includes/page_header.'.$phpEx);
!
! show_coppa($coppa);
! include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! }
}
$coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == 'register' ) ? 0 : TRUE;
! if ( isset($HTTP_POST_VARS['submit']) || isset($HTTP_POST_VARS['avatargallery']) || isset($HTTP_POST_VARS['submitavatar']) || isset($HTTP_POST_VARS['cancelavatar']) || $mode == 'register' )
{
include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
--- 64,85 ----
if ( $mode == 'register' && !isset($HTTP_POST_VARS['agreed']) && !isset($HTTP_GET_VARS['agreed']) )
{
! include($phpbb_root_path . 'includes/page_header.'.$phpEx);
! show_coppa($coppa);
! include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
$coppa = ( ( !$HTTP_POST_VARS['coppa'] && !$HTTP_GET_VARS['coppa'] ) || $mode == 'register' ) ? 0 : TRUE;
! //
! // Check and initialize some variables if needed
! //
! if (
! isset($HTTP_POST_VARS['submit']) ||
! isset($HTTP_POST_VARS['avatargallery']) ||
! isset($HTTP_POST_VARS['submitavatar']) ||
! isset($HTTP_POST_VARS['cancelavatar']) ||
! $mode == 'register' )
{
include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
***************
*** 186,189 ****
--- 190,196 ----
}
+ //
+ // Did the user submit? In this case build a query to update the users profile in the DB
+ //
if ( isset($HTTP_POST_VARS['submit']) )
{
***************
*** 586,590 ****
} // if mode == register
}
! }
if ( $error )
--- 593,598 ----
} // if mode == register
}
! } // End of submit
!
if ( $error )
***************
*** 912,914 ****
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! ?>
\ No newline at end of file
--- 920,922 ----
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
! ?>
|