3 * Multisite administration panel.
6 * @subpackage Multisite
10 require_once( './admin.php' );
12 if ( !is_multisite() )
13 wp_die( __( 'Multisite support is not enabled.' ) );
15 if ( ! current_user_can( 'manage_network' ) )
16 wp_die( __( 'You do not have permission to access this page.' ) );
18 $title = __( 'Network Admin' );
19 $parent_file = 'ms-admin.php';
21 add_contextual_help($current_screen,
22 '<p>' . __('Until WordPress 3.0, running multiple sites required using WordPress MU instead of regular WordPress. In version 3.0, these applications have merged. If you are a former MU user, you should be aware of the following changes:') . '</p>' .
23 '<ul><li>' . __('Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).') . '</li>' .
24 '<li>' . __('Blogs are now called Sites; Site is now called Network.') . '</li></ul>' .
25 '<p>' . __('This screen provides the network administrator with links to the screens for Sites and Users to either create a new site or user, or to search existing users and sites. Those screens are also accessible through the left-hand navigation in the Super Admin section.') . '</p>' .
26 '<p><strong>' . __('For more information:') . '</strong></p>' .
27 '<p>' . __('<a href="http://codex.wordpress.org/Super_Admin_Super_Admin_Menu" target="_blank">Documentation on Super Admin Menu</a>') . '</p>' .
28 '<p>' . __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
31 require_once( './admin-header.php' );
33 $c_users = get_user_count();
34 $c_blogs = get_blog_count();
36 $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
37 $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );
39 $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
43 <?php screen_icon(); ?>
44 <h2><?php echo esc_html( $title ); ?></h2>
46 <ul class="subsubsub">
47 <li><a href="ms-sites.php#form-add-site"><?php _e( 'Create a New Site' ); ?></a> |</li>
48 <li><a href="ms-users.php#form-add-user"><?php _e( 'Create a New User' ); ?></a></li>
52 <p class="youhave"><?php echo $sentence; ?></p>
53 <?php do_action( 'wpmuadminresult', '' ); ?>
55 <form name="searchform" action="ms-users.php" method="get">
57 <input type="hidden" name="action" value="users" />
58 <input type="text" name="s" value="" size="17" />
59 <input class="button" type="submit" name="submit" value="<?php esc_attr_e( 'Search Users' ); ?>" />
63 <form name="searchform" action="ms-sites.php" method="get">
65 <input type="hidden" name="action" value="blogs" />
66 <input type="hidden" name="searchaction" value="name" />
67 <input type="text" name="s" value="" size="17" />
68 <input class="button" type="submit" name="blog_name" value="<?php esc_attr_e( 'Search Sites' ); ?>" />
72 <?php do_action( 'mu_rightnow_end' ); ?>
73 <?php do_action( 'mu_activity_box_end' ); ?>
76 <?php include( './admin-footer.php' ); ?>