From ee214c220f14d5a95b74e03f7d440475e3dd352f Mon Sep 17 00:00:00 2001 From: donncha Date: Mon, 25 Aug 2008 11:15:05 +0000 Subject: CSS Upgrade for the activate script thanks to momo360modena, fixes #724 git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1434 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-activate.php | 136 +++++++++++++++++++++++++++----------------------------- 1 file changed, 66 insertions(+), 70 deletions(-) (limited to 'wp-activate.php') diff --git a/wp-activate.php b/wp-activate.php index 2623dbb..c6599f0 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -7,86 +7,82 @@ require( dirname(__FILE__) . '/wp-load.php' ); require( 'wp-blog-header.php' ); require_once( ABSPATH . WPINC . '/registration.php'); -if( is_object( $wp_object_cache ) ) $wp_object_cache->cache_enabled = false; +if( is_object( $wp_object_cache ) ) + $wp_object_cache->cache_enabled = false; do_action("activate_header"); +function wpmu_activate_stylesheet() { + ?> + + +
- - -

-
- - - - - - - - - -
 
-
- + +

+
+

+ +
+

+

+ +

+
+ + get_error_code() || 'blog_taken' == $result->get_error_code() ) { - $signup = $result->get_error_data(); - _e( '

Your account is now active!

' ); - if( $signup->domain . $signup->path == '' ) { - printf(__('

Your account has been activated. You may now login to the site using your chosen username of "%2$s". Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.

'), 'http://' . $current_site->domain . $current_site->path . 'wp-login.php', $signup->user_login, $signup->user_email, 'http://' . $current_site->domain . $current_site->path . 'wp-login.php?action=lostpassword'); + $key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key']; + $result = wpmu_activate_signup($key); + if ( is_wp_error($result) ) { + if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) { + $signup = $result->get_error_data(); + ?> +

+ domain . $signup->path == '' ) { + printf(__('

Your account has been activated. You may now login to the site using your chosen username of "%2$s". Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.

'), 'http://' . $current_site->domain . $current_site->path . 'wp-login.php', $signup->user_login, $signup->user_email, 'http://' . $current_site->domain . $current_site->path . 'wp-login.php?action=lostpassword'); + } else { + printf(__('

Your blog at %2$s is active. You may now login to your blog using your chosen username of "%3$s". Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.

'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, 'http://' . $current_site->domain . $current_site->path . 'wp-login.php?action=lostpassword'); + } } else { - printf(__('

Your blog at %2$s is active. You may now login to your blog using your chosen username of "%3$s". Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.

'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, 'http://' . $current_site->domain . $current_site->path . 'wp-login.php?action=lostpassword'); + ?> +

+ '.$result->get_error_message().'

'; } } else { - echo $result->get_error_message(); - } - } else { - extract($result); - $url = get_blogaddress_by_id($blog_id); - $user = new WP_User($user_id); -?> -

- - - - - -
-

:

-

user_login ?>

-

:

-

-
- domain . $current_site->path ) { ?> -

View your site or Login'), $url, $url . 'wp-login.php' ); ?>

Login or go back to the homepage.' ), 'http://' . $current_site->domain . $current_site->path . 'wp-login.php', 'http://' . $current_site->domain . $current_site->path ); ?>

+

+ +
+

user_login ?>

+

+
+ + domain . $current_site->path ) : ?> +

View your site or Login'), $url, $url . 'wp-login.php' ); ?>

+ +

Login or go back to the homepage.' ), 'http://' . $current_site->domain . $current_site->path . 'wp-login.php', 'http://' . $current_site->domain . $current_site->path ); ?>

+ + ?>
+ -- cgit