Changeset 1165
- Timestamp:
- 12/04/07 12:56:45 (1 year ago)
- Files:
-
- trunk/wp-signup.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-signup.php
r1145 r1165 392 392 $newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 393 393 394 $current_user = wp_get_current_user(); 394 395 if( $active_signup == "none" ) { 395 396 _e( "Registration has been disabled." ); 396 397 } else { 397 switch ($_POST['stage']) { 398 if( $active_signup == 'blog' && !is_user_logged_in() ) { 399 wp_die( 'You must be logged in to register a blog.' ); 400 } 401 switch ($_POST['stage']) { 398 402 case 'validate-user-signup' : 399 403 if( $active_signup == 'all' || $_POST[ 'signup_for' ] == 'blog' && $active_signup == 'blog' || $_POST[ 'signup_for' ] == 'user' && $active_signup == 'user' ) … … 432 436 } 433 437 break; 434 }438 } 435 439 } 436 440 ?>
