", '');
printf( __('Back to %1$sRole Scoper Options%2$s', 'scoper'), "", '');
?>
|
';
_e("Role Scoper can limit direct URL access to files linked from your posts and pages,
but only if the following requirements are met:", 'scoper');
echo '
- ';
_e( 'Your WP content directory must be a branch of the WordPress directory tree (i.e. wp-config.php must not be customized to separate WP_CONTENT_DIR and WP_CONTENT_URL from the main WordPress folder).', 'scoper');
echo '
- ';
$search_replace_url = awp_plugin_search_url('replace');
if ( false !== strpos( $upload_path, 'http://www.' ) )
$www_msg = __('Note that to be detected as attachments, your file references must include www.');
else
$www_msg = __('Note that to be detected as attachments, your file references must NOT include www.');
require_once( SCOPER_ABSPATH . '/uploads_rs.php' );
$uploads = scoper_get_upload_info();
printf(__('Files linked from WP Posts and Pages must be in %1$s (or a subdirectory of it) to be filtered. After moving files, you may use %2$s a search and replace plugin%3$s to conveniently update the URLs stored in your Post / Page content. %4$s', 'scoper'), '' . $uploads['baseurl'] . '', "", '', $www_msg);
echo '
- ';
_e( 'Files which are already appropriately located and linked must also have their post-file attachment relationship stored to the WP database. This is normally accomplished by clicking the "Insert into Post" button in the WP file uploader / Media Library. Files which were instead uploaded manually via FTP or CPanel can receive their attachment record via this utility.', 'scoper');
echo '
';
if ( ! empty($_POST['rs_run_utility']) ) {
scoper_attach_linked_uploads( true );
}
?>