2010-01-05 23:02:57 -05:00
< ? php
2010-04-04 09:29:35 -04:00
/**
* Multisite administration panel .
*
* @ package WordPress
* @ subpackage Multisite
* @ since 3.0 . 0
*/
2010-04-03 07:15:51 -04:00
require_once ( './admin.php' );
2010-01-05 23:02:57 -05:00
2010-01-06 15:19:35 -05:00
if ( ! is_multisite () )
2010-04-03 07:15:51 -04:00
wp_die ( __ ( 'Multisite support is not enabled.' ) );
2010-01-06 15:19:35 -05:00
2010-04-03 07:15:51 -04:00
if ( ! current_user_can ( 'manage_network' ) )
wp_die ( __ ( 'You do not have permission to access this page.' ) );
2010-01-05 23:02:57 -05:00
2010-04-03 07:15:51 -04:00
$title = __ ( 'Network Admin' );
$parent_file = 'ms-admin.php' ;
2010-01-05 23:02:57 -05:00
2010-06-02 16:04:07 -04:00
add_contextual_help ( $current_screen ,
2010-05-27 17:20:23 -04:00
'<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>' .
2010-05-29 12:16:40 -04:00
'<ul><li>' . __ ( 'Site Admin is now Super Admin (we highly encourage you to get yourself a cape!).' ) . '</li>' .
'<li>' . __ ( 'Blogs are now called Sites; Site is now called Network.' ) . '</li></ul>' .
2010-05-27 17:20:23 -04:00
'<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>' .
'<p><strong>' . __ ( 'For more information:' ) . '</strong></p>' .
2010-06-03 23:42:43 -04:00
'<p>' . __ ( '<a href="http://codex.wordpress.org/Super_Admin_Super_Admin_Menu" target="_blank">Documentation on Super Admin Menu</a>' ) . '</p>' .
'<p>' . __ ( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>'
2010-05-27 17:20:23 -04:00
);
2010-04-03 07:15:51 -04:00
require_once ( './admin-header.php' );
2010-01-05 23:02:57 -05:00
2010-02-13 12:10:50 -05:00
$c_users = get_user_count ();
$c_blogs = get_blog_count ();
2010-01-05 23:02:57 -05:00
2010-01-20 18:01:09 -05:00
$user_text = sprintf ( _n ( '%s user' , '%s users' , $c_users ), number_format_i18n ( $c_users ) );
2010-02-24 14:56:10 -05:00
$blog_text = sprintf ( _n ( '%s site' , '%s sites' , $c_blogs ), number_format_i18n ( $c_blogs ) );
2010-01-05 23:02:57 -05:00
$sentence = sprintf ( __ ( 'You have %1$s and %2$s.' ), $blog_text , $user_text );
?>
< div class = " wrap " >
2010-01-20 17:35:21 -05:00
< ? php screen_icon (); ?>
2010-01-19 12:01:39 -05:00
< h2 >< ? php echo esc_html ( $title ); ?> </h2>
2010-01-05 23:02:57 -05:00
< ul class = " subsubsub " >
2010-04-03 07:15:51 -04:00
< li >< a href = " ms-sites.php#form-add-site " >< ? php _e ( 'Create a New Site' ); ?> </a> |</li>
< li >< a href = " ms-users.php#form-add-user " >< ? php _e ( 'Create a New User' ); ?> </a></li>
2010-01-05 23:02:57 -05:00
</ ul >
2010-04-03 07:15:51 -04:00
< br class = " clear " />
2010-01-05 23:02:57 -05:00
< p class = " youhave " >< ? php echo $sentence ; ?> </p>
2010-04-03 07:15:51 -04:00
< ? php do_action ( 'wpmuadminresult' , '' ); ?>
2010-01-05 23:02:57 -05:00
2010-01-06 19:30:53 -05:00
< form name = " searchform " action = " ms-users.php " method = " get " >
2010-01-05 23:02:57 -05:00
< p >
< input type = " hidden " name = " action " value = " users " />
2010-01-06 23:27:46 -05:00
< input type = " text " name = " s " value = " " size = " 17 " />
2010-04-03 07:15:51 -04:00
< input class = " button " type = " submit " name = " submit " value = " <?php esc_attr_e( 'Search Users' ); ?> " />
2010-01-06 23:27:46 -05:00
</ p >
2010-01-05 23:02:57 -05:00
</ form >
2010-01-14 14:42:55 -05:00
< form name = " searchform " action = " ms-sites.php " method = " get " >
2010-01-05 23:02:57 -05:00
< p >
< input type = " hidden " name = " action " value = " blogs " />
2010-05-24 17:31:37 -04:00
< input type = " hidden " name = " searchaction " value = " name " />
2010-01-05 23:02:57 -05:00
< input type = " text " name = " s " value = " " size = " 17 " />
2010-04-03 07:15:51 -04:00
< input class = " button " type = " submit " name = " blog_name " value = " <?php esc_attr_e( 'Search Sites' ); ?> " />
2010-01-05 23:02:57 -05:00
</ p >
</ form >
< ? php do_action ( 'mu_rightnow_end' ); ?>
< ? php do_action ( 'mu_activity_box_end' ); ?>
</ div >
2010-04-03 07:15:51 -04:00
< ? php include ( './admin-footer.php' ); ?>