| [ Root ] [ Search ] [ Index ] |
PHP Cross Reference of WordPress MU 2.9.2Provided by Yoast |
[Summary view] [Print] [Text view]
1 <?php 2 require_once ('admin.php'); 3 4 $title = __('WordPress MU › Admin'); 5 $parent_file = 'wpmu-admin.php'; 6 7 function index_css() { 8 wp_admin_css( 'css/dashboard' ); 9 } 10 add_action( 'admin_head', 'index_css' ); 11 12 require_once ('admin-header.php'); 13 14 if( is_site_admin() == false ) { 15 wp_die( __('You do not have permission to access this page.') ); 16 } 17 18 global $wpdb; 19 $c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}"); 20 $c_blogs = $wpdb->get_var("SELECT COUNT(blog_id) FROM {$wpdb->blogs}"); 21 22 $user_text = sprintf( __ngettext( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) ); 23 $blog_text = sprintf( __ngettext( '%s blog', '%s blogs', $c_blogs ), number_format_i18n( $c_blogs ) ); 24 25 $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text ); 26 $title = __( 'WordPress MU : Admin' ); 27 ?> 28 29 <div class="wrap"> 30 <h2><?php echo wp_specialchars( $title ); ?></h2> 31 32 <ul class="subsubsub"> 33 <li><a href="wpmu-blogs.php#form-add-blog" class="rbutton"><strong><?php _e('Create a New Blog'); ?></strong></a> | </li> 34 <li><a href="wpmu-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li> 35 </ul> 36 <br clear='all' /> 37 38 <p class="youhave"><?php echo $sentence; ?></p> 39 <?php do_action('wpmuadminresult', ''); ?> 40 41 <form name="searchform" action="wpmu-users.php" method="get"> 42 <p> 43 <input type="hidden" name="action" value="users" /> 44 <input type="text" name="s" value="" size="17" /> 45 <input class="button" type="submit" name="submit" value="<?php _e("Search Users »"); ?>" /> 46 </p> 47 </form> 48 49 <form name="searchform" action="wpmu-blogs.php" method="get"> 50 <p> 51 <input type="hidden" name="action" value="blogs" /> 52 <input type="text" name="s" value="" size="17" /> 53 <input class="button" type="submit" name="blog_name" value="<?php _e("Search Blogs »"); ?>" /> 54 </p> 55 </form> 56 57 <?php do_action( 'mu_rightnow_end' ); ?> 58 <?php do_action( 'mu_activity_box_end' ); ?> 59 </div><!-- rightnow --> 60 </div> 61 62 <?php include ('admin-footer.php'); ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon May 3 12:25:32 2010 | Cross-referenced by PHPXref 0.7 |