Changeset 13965
- Timestamp:
- 04/03/2010 11:15:51 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/ms-admin.php
r13379 r13965 1 1 <?php 2 require_once( 'admin.php');2 require_once( './admin.php' ); 3 3 4 4 if ( !is_multisite() ) 5 wp_die( __( 'Multisite support is not enabled.') );5 wp_die( __( 'Multisite support is not enabled.' ) ); 6 6 7 $title = __('Network Admin'); 7 if ( ! current_user_can( 'manage_network' ) ) 8 wp_die( __( 'You do not have permission to access this page.' ) ); 9 10 $title = __( 'Network Admin' ); 8 11 $parent_file = 'ms-admin.php'; 9 12 10 function index_css() { 11 wp_admin_css( 'css/dashboard' ); 12 } 13 add_action( 'admin_head', 'index_css' ); 13 require_once( './admin-header.php' ); 14 14 15 require_once('admin-header.php');16 17 if ( ! current_user_can( 'manage_network' ) )18 wp_die( __('You do not have permission to access this page.') );19 20 global $wpdb;21 15 $c_users = get_user_count(); 22 16 $c_blogs = get_blog_count(); … … 33 27 34 28 <ul class="subsubsub"> 35 <li><a href="ms-sites.php#form-add- blog" class="rbutton"><strong><?php _e('Create a New Site'); ?></strong></a> |</li>36 <li><a href="ms-users.php#form-add-user" class="rbutton"><?php _e('Create a New User'); ?></a></li>29 <li><a href="ms-sites.php#form-add-site"><?php _e( 'Create a New Site' ); ?></a> |</li> 30 <li><a href="ms-users.php#form-add-user"><?php _e( 'Create a New User' ); ?></a></li> 37 31 </ul> 38 <br cl ear='all'/>32 <br class="clear" /> 39 33 40 34 <p class="youhave"><?php echo $sentence; ?></p> 41 <?php do_action( 'wpmuadminresult', ''); ?>35 <?php do_action( 'wpmuadminresult', '' ); ?> 42 36 43 37 <form name="searchform" action="ms-users.php" method="get"> … … 45 39 <input type="hidden" name="action" value="users" /> 46 40 <input type="text" name="s" value="" size="17" /> 47 <input class="button" type="submit" name="submit" value="<?php esc_attr_e( "Search Users"); ?>" />41 <input class="button" type="submit" name="submit" value="<?php esc_attr_e( 'Search Users' ); ?>" /> 48 42 </p> 49 43 </form> … … 53 47 <input type="hidden" name="action" value="blogs" /> 54 48 <input type="text" name="s" value="" size="17" /> 55 <input class="button" type="submit" name="blog_name" value="<?php esc_attr_e( "Search Sites"); ?>" />49 <input class="button" type="submit" name="blog_name" value="<?php esc_attr_e( 'Search Sites' ); ?>" /> 56 50 </p> 57 51 </form> … … 59 53 <?php do_action( 'mu_rightnow_end' ); ?> 60 54 <?php do_action( 'mu_activity_box_end' ); ?> 61 </div><!-- rightnow -->62 55 </div> 63 56 64 <?php include( 'admin-footer.php'); ?>57 <?php include( './admin-footer.php' ); ?> -
trunk/wp-admin/ms-sites.php
r13953 r13965 119 119 <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr( $details->last_updated ) ?>" size="40" /></td> 120 120 </tr> 121 <?php 122 if ( $is_main_site ) 123 $checked_fields = array( 'public' => __( 'Public' ) ); 124 else 125 $checked_fields = array( 126 'public' => __('Public'), 127 'archived' => __('Archived'), 128 'spam' => __('Spam'), 129 'deleted' => __('Deleted'), 130 'mature' => __('Mature'), 131 ); 132 133 foreach ( $checked_fields as $field_key => $field_label ) { 134 ?> 121 135 <tr class="form-field"> 122 <th scope="row"><?php _e('Public') ?></th> 123 <td> 124 <label><input type="radio" style="width:20px;" name="blog[public]" value="1" <?php checked( $details->public, 1 ); ?> /> <?php _e( 'Yes' ) ?></label> 125 <label><input type="radio" style="width:20px;" name="blog[public]" value="0" <?php checked( $details->public, 0 ); ?> /> <?php _e( 'No' ) ?></label> 126 </td> 127 </tr> 128 <?php if ( ! $is_main_site ) { ?> 129 <tr class="form-field"> 130 <th scope="row"><?php _e( 'Archived' ); ?></th> 131 <td> 132 <label><input type="radio" style="width:20px;" name="blog[archived]" value="1" <?php checked( $details->archived, 1 ); ?> /> <?php _e( 'Yes' ) ?></label> 133 <label><input type="radio" style="width:20px;" name="blog[archived]" value="0" <?php checked( $details->archived, 0 ); ?> /> <?php _e( 'No' ) ?></label> 134 </td> 135 </tr> 136 <tr class="form-field"> 137 <th scope="row"><?php _e( 'Spam' ); ?></th> 138 <td> 139 <label><input type="radio" style="width:20px;" name="blog[spam]" value="1" <?php checked( $details->spam, 1 ); ?> /> <?php _e( 'Yes' ) ?></label> 140 <label><input type="radio" style="width:20px;" name="blog[spam]" value="0" <?php checked( $details->spam, 0 ); ?> /> <?php _e( 'No' ) ?></label> 141 </td> 142 </tr> 143 <tr class="form-field"> 144 <th scope="row"><?php _e( 'Deleted' ); ?></th> 145 <td> 146 <label><input type="radio" style="width:20px;" name="blog[deleted]" value="1" <?php checked( $details->deleted, 1 ); ?> /> <?php _e( 'Yes' ) ?></label> 147 <label><input type="radio" style="width:20px;" name="blog[deleted]" value="0" <?php checked( $details->deleted, 0 ); ?> /> <?php _e( 'No' ) ?></label> 148 </td> 149 </tr> 150 <tr class="form-field"> 151 <th scope="row"><?php _e( 'Mature' ); ?></th> 152 <td> 153 <label><input type="radio" style="width:20px;" name="blog[mature]" value="1" <?php checked( $details->mature, 1 ); ?> /> <?php _e( 'Yes' ) ?></label> 154 <label><input type="radio" style="width:20px;" name="blog[mature]" value="0" <?php checked( $details->mature, 0); ?> /> <?php _e( 'No' ) ?></label> 155 </td> 136 <th scope="row"><label for="blog_<?php echo $field_key; ?>"><?php echo $field_label; ?></label></th> 137 <td><input type="checkbox" name="blog[<?php echo $field_key; ?>]" id="blog_<?php echo $field_key; ?>" value="<?php echo $details->$field_key; ?>"<?php checked( $details->$field_key ); ?> /></td> 156 138 </tr> 157 139 <?php } ?> … … 692 674 </div> 693 675 694 <div class="wrap"> 695 <a name="form-add-site"></a> 696 <h2><?php _e( 'Add Site' ) ?></h2> 676 <div id="form-add-site" class="wrap"> 677 <h3><?php _e( 'Add Site' ) ?></h3> 697 678 <form method="post" action="ms-edit.php?action=addblog"> 698 679 <?php wp_nonce_field( 'add-blog' ) ?> -
trunk/wp-admin/ms-users.php
r13953 r13965 331 331 if ( apply_filters( 'show_adduser_fields', true ) ) : 332 332 ?> 333 <div class="wrap" >334 <h 2><?php _e( 'Add user' ) ?></h2>335 <form action="ms-edit.php?action=adduser" method="post" id="form-add-user">333 <div class="wrap" id="form-add-user"> 334 <h3><?php _e( 'Add User' ) ?></h3> 335 <form action="ms-edit.php?action=adduser" method="post"> 336 336 <table class="form-table"> 337 337 <tr class="form-field form-required">
Note: See TracChangeset
for help on using the changeset viewer.