Ticket #11644: 11644.3.diff
| File 11644.3.diff, 2.3 KB (added by , 16 years ago) |
|---|
-
ms-admin.php
14 14 15 15 require_once('admin-header.php'); 16 16 17 if ( is_site_admin() == false ) {17 if ( !is_super_admin() ) 18 18 wp_die( __('You do not have permission to access this page.') ); 19 }20 19 21 20 global $wpdb; 22 21 $c_users = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->users}"); -
ms-edit.php
4 4 if ( !is_multisite() ) 5 5 wp_die( __('Multisite support is not enabled.') ); 6 6 7 if ( is_site_admin() == false ) {7 if ( !is_super_admin() ) 8 8 wp_die( __('You do not have permission to access this page.') ); 9 }10 9 11 10 do_action('wpmuadminedit', ''); 12 11 -
ms-sites.php
10 10 wp_enqueue_script( 'admin-forms' ); 11 11 12 12 require_once('admin-header.php'); 13 if( is_site_admin() == false ) { 14 wp_die( __('You do not have permission to access this page.') ); 15 } 13 14 if ( !is_super_admin() ) 15 wp_die( __('You do not have permission to access this page.') ); 16 16 17 $id = intval( $_GET['id'] ); 17 18 $protocol = is_ssl() ? 'https://' : 'http://'; 18 19 -
ms-upgrade-site.php
10 10 $parent_file = 'ms-admin.php'; 11 11 require_once('admin-header.php'); 12 12 13 if ( is_site_admin() == false ) { 14 wp_die( __('You do not have permission to access this page.') ); 15 } 13 if ( !is_super_admin() ) 14 wp_die( __('You do not have permission to access this page.') ); 16 15 17 16 echo '<div class="wrap">'; 18 17 echo '<h2>'.__('Upgrade Site').'</h2>'; -
ms-users.php
11 11 12 12 require_once('admin-header.php'); 13 13 14 if ( is_site_admin() == false ) {14 if ( !is_super_admin() ) 15 15 wp_die( __('You do not have permission to access this page.') ); 16 }17 16 18 17 if ( $_GET['updated'] == 'true' ) { 19 18 ?>