From 85e815bf00f6a27fbe1ed1fb3e0d3e2a2a7fe040 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 16 Apr 2008 14:40:34 +0000 Subject: Applied patch in #590 by momo360modena and fixed a minor bug with blog searching git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1237 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/wpmu-admin.php | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-) (limited to 'wp-admin/wpmu-admin.php') diff --git a/wp-admin/wpmu-admin.php b/wp-admin/wpmu-admin.php index 3079ea0..ac70271 100644 --- a/wp-admin/wpmu-admin.php +++ b/wp-admin/wpmu-admin.php @@ -3,28 +3,48 @@ require_once('admin.php'); $title = __('WordPress MU › Admin'); $parent_file = 'wpmu-admin.php'; + +function index_css() { + wp_admin_css( 'css/dashboard' ); +} +add_action( 'admin_head', 'index_css' ); + require_once('admin-header.php'); if( is_site_admin() == false ) { wp_die( __('

You do not have permission to access this page.

') ); } -if (isset($_GET['updated'])) { - ?> -

- 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 ); ?>

+ +
+

+ + + + +
+

+ +

- " /> + " />

@@ -32,9 +52,13 @@ if (isset($_GET['updated'])) {

- " /> + " />

+ + + +
- \ No newline at end of file + -- cgit