2010-01-05 23:02:57 -05:00
|
|
|
<?php
|
|
|
|
require_once('admin.php');
|
|
|
|
|
2010-01-06 15:19:35 -05:00
|
|
|
if ( !is_multisite() )
|
|
|
|
wp_die( __('Multisite support is not enabled.') );
|
|
|
|
|
2010-01-06 22:24:24 -05:00
|
|
|
$title = __('Site Admin');
|
2010-01-06 19:30:53 -05:00
|
|
|
$parent_file = 'ms-admin.php';
|
2010-01-05 23:02:57 -05:00
|
|
|
|
|
|
|
function index_css() {
|
|
|
|
wp_admin_css( 'css/dashboard' );
|
|
|
|
}
|
|
|
|
add_action( 'admin_head', 'index_css' );
|
|
|
|
|
|
|
|
require_once('admin-header.php');
|
|
|
|
|
2010-01-07 10:52:22 -05:00
|
|
|
if ( !is_super_admin() )
|
2010-01-05 23:02:57 -05:00
|
|
|
wp_die( __('You do not have permission to access this page.') );
|
|
|
|
|
|
|
|
global $wpdb;
|
|
|
|
$c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}");
|
|
|
|
$c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}");
|
|
|
|
|
|
|
|
$user_text = sprintf( __ngettext( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
|
|
|
|
$blog_text = sprintf( __ngettext( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) );
|
|
|
|
|
|
|
|
$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
|
2010-01-06 22:24:24 -05:00
|
|
|
$title = __( 'Site Admin' );
|
2010-01-05 23:02:57 -05:00
|
|
|
?>
|
|
|
|
|
|
|
|
<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-01-14 14:42:55 -05:00
|
|
|
<li><a href="ms-sites.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li>
|
2010-01-06 19:30:53 -05:00
|
|
|
<li><a href="ms-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li>
|
2010-01-05 23:02:57 -05:00
|
|
|
</ul>
|
|
|
|
<br clear='all' />
|
|
|
|
|
|
|
|
<p class="youhave"><?php echo $sentence; ?></p>
|
|
|
|
<?php do_action('wpmuadminresult', ''); ?>
|
|
|
|
|
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-01-06 22:40:03 -05: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" />
|
|
|
|
<input type="text" name="s" value="" size="17" />
|
2010-01-06 22:40:03 -05:00
|
|
|
<input class="button" type="submit" name="blog_name" value="<?php esc_attr_e("Search Blogs"); ?>" />
|
2010-01-05 23:02:57 -05:00
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php do_action( 'mu_rightnow_end' ); ?>
|
|
|
|
<?php do_action( 'mu_activity_box_end' ); ?>
|
|
|
|
</div><!-- rightnow -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php include('admin-footer.php'); ?>
|