Changeset 946
- Timestamp:
- 03/28/07 17:05:40 (2 years ago)
- Files:
-
- trunk/wp-signup.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-signup.php
r926 r946 1 1 <?php 2 3 2 define( "WP_INSTALLING", true ); 4 require ('wp-config.php'); 5 require('./wp-blog-header.php'); 6 7 require_once( ABSPATH . WPINC . '/registration.php'); 3 require( 'wp-config.php' ); 4 require( 'wp-blog-header.php' ); 5 require_once( ABSPATH . WPINC . '/registration.php' ); 8 6 9 7 do_action("signup_header"); 8 10 9 if( $current_blog->domain != $current_site->domain ) { 11 10 header( "Location: http://" . $current_site->domain . $current_site->path . "wp-signup.php" ); … … 15 14 get_header(); 16 15 ?> 17 <div id="content" class="widecolumn">18 16 <style type="text/css"> 19 17 form { margin-top: 2em; } … … 26 24 } 27 25 </style> 26 <div id="content" class="widecolumn"> 28 27 <?php 29 28 function show_blog_form($blog_id = '', $blog_title = '', $errors = '') { … … 168 167 <p><?php _e("If you’re not going to use a great blog domain, leave it for a new user. Now have at it!") ?></p> 169 168 <form name="setupform" id="setupform" method="post" action="wp-signup.php"> 170 <input type="hidden" name="stage" value="gimmeanotherblog" >169 <input type="hidden" name="stage" value="gimmeanotherblog" /> 171 170 <?php do_action( "signup_hidden_fields" ); ?> 172 171 <table border="0" width="100%" cellpadding="9"> … … 215 214 $errors = new WP_Error(); 216 215 if( isset( $_POST[ 'signup_for' ] ) ) { 217 $signup[ wp_specialchars( $_POST[ 'signup_for' ] ) ] = 'checked ';218 } else { 219 $signup[ 'blog' ] = 'checked ';216 $signup[ wp_specialchars( $_POST[ 'signup_for' ] ) ] = 'checked="checked"'; 217 } else { 218 $signup[ 'blog' ] = 'checked="checked"'; 220 219 } 221 220 … … 229 228 <p><?php _e( "Fill out this one-step form and you'll be blogging seconds later!" ); ?></p> 230 229 <form name="setupform" id="setupform" method="post" action="wp-signup.php"> 231 <input type="hidden" name="stage" value="validate-user-signup" >230 <input type="hidden" name="stage" value="validate-user-signup" /> 232 231 <?php do_action( "signup_hidden_fields" ); ?> 233 232 <table border="0" width="100%" cellpadding="9" cellspacing="4"> 234 233 <?php show_user_form($user_name, $user_email, $errors); ?> 234 <tr> 235 235 <th scope="row" valign="top"> </th> 236 236 <td> … … 298 298 ?> 299 299 <form name="setupform" id="setupform" method="post" action="wp-signup.php"> 300 <input type="hidden" name="stage" value="validate-blog-signup" >301 <input type="hidden" name="user_name" value="<?php echo $user_name ?>" >302 <input type="hidden" name="user_email" value="<?php echo $user_email ?>" >300 <input type="hidden" name="stage" value="validate-blog-signup" /> 301 <input type="hidden" name="user_name" value="<?php echo $user_name ?>" /> 302 <input type="hidden" name="user_email" value="<?php echo $user_email ?>" /> 303 303 <?php do_action( "signup_hidden_fields" ); ?> 304 304 <table border="0" width="100%" cellpadding="9">
