Make WordPress Core


Ignore:
Timestamp:
04/03/2010 11:15:51 AM (14 years ago)
Author:
nacin
Message:

Some more MS cleanups. see #12460

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/ms-admin.php

    r13379 r13965  
    11<?php
    2 require_once('admin.php');
     2require_once( './admin.php' );
    33
    44if ( !is_multisite() )
    5     wp_die( __('Multisite support is not enabled.') );
     5    wp_die( __( 'Multisite support is not enabled.' ) );
    66
    7 $title = __('Network Admin');
     7if ( ! current_user_can( 'manage_network' ) )
     8    wp_die( __( 'You do not have permission to access this page.' ) );
     9
     10$title = __( 'Network Admin' );
    811$parent_file = 'ms-admin.php';
    912
    10 function index_css() {
    11     wp_admin_css( 'css/dashboard' );
    12 }
    13 add_action( 'admin_head', 'index_css' );
     13require_once( './admin-header.php' );
    1414
    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;
    2115$c_users = get_user_count();
    2216$c_blogs = get_blog_count();
     
    3327
    3428    <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>
    3731    </ul>
    38     <br clear='all' />
     32    <br class="clear" />
    3933
    4034    <p class="youhave"><?php echo $sentence; ?></p>
    41     <?php do_action('wpmuadminresult', ''); ?>
     35    <?php do_action( 'wpmuadminresult', '' ); ?>
    4236
    4337    <form name="searchform" action="ms-users.php" method="get">
     
    4539            <input type="hidden" name="action" value="users" />
    4640            <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' ); ?>" />
    4842        </p>
    4943    </form>
     
    5347            <input type="hidden" name="action" value="blogs" />
    5448            <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' ); ?>" />
    5650        </p>
    5751    </form>
     
    5953    <?php do_action( 'mu_rightnow_end' ); ?>
    6054    <?php do_action( 'mu_activity_box_end' ); ?>
    61     </div><!-- rightnow -->
    6255</div>
    6356
    64 <?php include('admin-footer.php'); ?>
     57<?php include( './admin-footer.php' ); ?>
Note: See TracChangeset for help on using the changeset viewer.