diff -r 299a90e28abc -r 87e08a6e4fec plugins/SpecialUserFuncs.php --- a/plugins/SpecialUserFuncs.php Thu Jan 03 18:39:19 2008 -0500 +++ b/plugins/SpecialUserFuncs.php Wed Jan 16 13:55:49 2008 -0500 @@ -502,6 +502,8 @@ $email = ''; $realname = ''; + $terms = getConfig('register_tou'); + if(getConfig('account_activation') == 'disable' && ( ( $session->user_level >= USER_LEVEL_ADMIN && !isset($_GET['IWannaPlayToo']) ) || $session->user_level < USER_LEVEL_ADMIN || !$session->user_logged_in )) { $s = ($session->user_level >= USER_LEVEL_ADMIN) ? '
' . $lang->get('user_reg_err_disabled_body_adminblurb', array( 'reg_link' => makeUrl($paths->page, 'IWannaPlayToo&coppa=no', true) )) . '
' : ''; @@ -527,6 +529,10 @@ { $s = 'Invalid COPPA input'; } + else if ( !empty($terms) && !isset($_POST['tou_agreed']) ) + { + $s = $lang->get('user_reg_err_accept_tou'); + } else { $coppa = ( isset($_POST['coppa']) && $_POST['coppa'] == 'yes' ); @@ -723,10 +729,44 @@ + + + + ++ +
+