define( 'MS_FILES_REQUEST', true
);
define( 'SHORTINIT', true
);
require_once dirname( __DIR__
) . '/wp-load.php';
if ( !
is_multisite() ) { die( 'Multisite support not enabled'
);
}ms_file_constants();
if ( '1' ==
$current_blog->archived || '1' ==
$current_blog->spam || '1' ==
$current_blog->deleted
) { status_header( 404
);
die( '404 — File not found.'
);
}$file =
rtrim( BLOGUPLOADDIR, '/'
) . '/' .
str_replace( '..', '',
$_GET['file'
] );
if ( !
is_file( $file ) ) { status_header( 404
);
die( '404 — File not found.'
);
}