diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-14 13:42:18 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-14 13:42:18 +0000 |
commit | bfc4775e06354f1fd8a97ff28ebb00d640b85988 (patch) | |
tree | 19e417ba8c1d2a6d435a4c673206db84fba3654e /wp-inst/wp-newblog.php | |
parent | 724f06cf7ac8810db7f33a6b4f55f382c26a6b1c (diff) | |
download | wordpress-mu-bfc4775e06354f1fd8a97ff28ebb00d640b85988.tar.gz wordpress-mu-bfc4775e06354f1fd8a97ff28ebb00d640b85988.tar.xz wordpress-mu-bfc4775e06354f1fd8a97ff28ebb00d640b85988.zip |
first stab at using WP-hashcash to protect the reg page.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@24 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-newblog.php')
-rw-r--r-- | wp-inst/wp-newblog.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/wp-inst/wp-newblog.php b/wp-inst/wp-newblog.php index 8ca7ef0..c065072 100644 --- a/wp-inst/wp-newblog.php +++ b/wp-inst/wp-newblog.php @@ -2,6 +2,7 @@ require('wp-config.php'); do_action( "newblogheader", "" ); +include( "wp-newblog.inc.php" ); get_header(); ?> @@ -24,7 +25,7 @@ function displayInitialForm( $weblog_id = '', $weblog_title = '', $admin_email = print "<p>There was a problem, please correct the form below and try again.</p>"; } print ' - <form name="setup" id="setup" method="post" action="wp-newblog.php"> + <form name="setupform" id="setupform" method="post" action="wp-newblog.php"> <input type="hidden" name="stage" value="1"> <table border="0" width="100%">'; if( isset( $errormsg[ 'weblog_id' ] ) == true ) { @@ -68,7 +69,7 @@ function displayInitialForm( $weblog_id = '', $weblog_title = '', $admin_email = print ' <tr> <th scope="row"> </th> - <td><input type="submit" name="Submit" class="submit" value="Sign Up »" /></td> + <td><input id="submit" type="submit" name="Submit" class="submit" value="Sign Up »" /></td> </tr>'; do_action( "newblogform", "" ); print ' @@ -126,6 +127,8 @@ switch( $_POST[ 'stage' ] ) if( empty( $weblog_title ) ) $errormsg[ 'weblog_title' ] = true; + $newBlogID = apply_filters( "newblog_id", $newBlogID ); + if( is_array( $errormsg ) ) { displayInitialForm( $_POST[ 'weblog_id' ], $weblog_title, $_POST[ 'admin_email' ], $_POST[ 'admin_login' ], 'userform', $errormsg ); } elseif( isset($newBlogID) && ($newBlogID !='' )) { |