summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-12 16:03:22 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-10-12 16:03:22 +0000
commitb83c34a7010faee0223f6037025c350da12e05e6 (patch)
tree167a2f425b647619dd07014d749083e8294984d0
parentd56d78df31bea4849162fd0ea5dc8a46e7e1d50c (diff)
downloadwordpress-mu-b83c34a7010faee0223f6037025c350da12e05e6.tar.gz
wordpress-mu-b83c34a7010faee0223f6037025c350da12e05e6.tar.xz
wordpress-mu-b83c34a7010faee0223f6037025c350da12e05e6.zip
Added headers.
Add big ugly notice for site admins git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1068 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-signup.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/wp-signup.php b/wp-signup.php
index f243c02..2b6df24 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -1,6 +1,9 @@
<?php
define( "WP_INSTALLING", true );
require( 'wp-config.php' );
+
+add_action( 'wp_head', 'signuppageheaders' ) ;
+
require( 'wp-blog-header.php' );
require_once( ABSPATH . WPINC . '/registration.php' );
@@ -11,6 +14,10 @@ if( is_array( get_site_option( 'illegal_names' )) && $_GET[ 'new' ] != '' && in_
do_action("signup_header");
+function signuppageheaders() {
+ echo "<meta name='robots' content='noindex,nofollow'>\n";
+}
+
if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
header( "Location: http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
die();
@@ -373,6 +380,10 @@ if( !$active_signup )
$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"
+if( is_site_admin() ) {
+ echo "<div style='background: #faf; font-weight: bold; border: 1px solid #333; margin: 2px; padding: 2px'>Greetings Site Administrator! You are currently allowing '$active_signup' registrations. To change or disable registration go to your <a href='wp-admin/wpmu-options.php'>Options page</a>.</div>";
+}
+
$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null;
if( $_POST['blog_public'] != 1 )
$_POST['blog_public'] = 0;