Changeset 1068

Show
Ignore:
Timestamp:
10/12/07 16:03:22 (11 months ago)
Author:
donncha
Message:

Added headers.
Add big ugly notice for site admins

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-signup.php

    r1062 r1068  
    22define( "WP_INSTALLING", true ); 
    33require( 'wp-config.php' ); 
     4 
     5add_action( 'wp_head', 'signuppageheaders' ) ; 
     6 
    47require( 'wp-blog-header.php' ); 
    58require_once( ABSPATH . WPINC . '/registration.php' ); 
     
    1114 
    1215do_action("signup_header"); 
     16 
     17function signuppageheaders() { 
     18        echo "<meta name='robots' content='noindex,nofollow'>\n"; 
     19} 
    1320 
    1421if( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) { 
     
    374381$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user" 
    375382 
     383if( is_site_admin() ) { 
     384        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>"; 
     385} 
     386 
    376387$newblogname = isset($_GET['new']) ? strtolower(preg_replace('/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'])) : null; 
    377388if( $_POST['blog_public'] != 1 )