Wordpress 3.7
[autoinstalls/wordpress.git] / wp-admin / network / users.php
index 1318355448add4d3eaf4a33e0bc729dafef80d1e..415b0c2104571a39a9bda0a2016b659e0e0f5e4b 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 /** Load WordPress Administration Bootstrap */
-require_once( './admin.php' );
+require_once( dirname( __FILE__ ) . '/admin.php' );
 
 if ( ! is_multisite() )
        wp_die( __( 'Multisite support is not enabled.' ) );
@@ -101,11 +101,11 @@ if ( isset( $_GET['action'] ) ) {
                                $_POST['allusers'] = array( $id ); // confirm_delete_users() can only handle with arrays
                                $title = __( 'Users' );
                                $parent_file = 'users.php';
-                               require_once( '../admin-header.php' );
+                               require_once( ABSPATH . 'wp-admin/admin-header.php' );
                                echo '<div class="wrap">';
                                confirm_delete_users( $_POST['allusers'] );
                                echo '</div>';
-                   require_once( '../admin-footer.php' );
+                   require_once( ABSPATH . 'wp-admin/admin-footer.php' );
                        } else {
                                wp_redirect( network_admin_url( 'users.php' ) );
                        }
@@ -130,11 +130,11 @@ if ( isset( $_GET['action'] ) ) {
                                                                        wp_die( __( 'You do not have permission to access this page.' ) );
                                                                $title = __( 'Users' );
                                                                $parent_file = 'users.php';
-                                                               require_once( '../admin-header.php' );
+                                                               require_once( ABSPATH . 'wp-admin/admin-header.php' );
                                                                echo '<div class="wrap">';
                                                                confirm_delete_users( $_POST['allusers'] );
                                                                echo '</div>';
-                                                               require_once( '../admin-footer.php' );
+                                                               require_once( ABSPATH . 'wp-admin/admin-footer.php' );
                                                                exit();
                                                        break;
 
@@ -245,7 +245,7 @@ get_current_screen()->set_help_sidebar(
        '<p>' . __('<a href="http://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
 );
 
-require_once( '../admin-header.php' );
+require_once( ABSPATH . 'wp-admin/admin-header.php' );
 
 if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty( $_REQUEST['action'] ) ) {
        ?>
@@ -296,4 +296,4 @@ if ( isset( $_REQUEST['updated'] ) && $_REQUEST['updated'] == 'true' && ! empty(
        </form>
 </div>
 
-<?php require_once( '../admin-footer.php' ); ?>
+<?php require_once( ABSPATH . 'wp-admin/admin-footer.php' ); ?>