X7ROOT File Manager
Current Path:
/home/bloomi9/realworks1.com/landsale-ebook/wp-admin
home
/
bloomi9
/
realworks1.com
/
landsale-ebook
/
wp-admin
/
📁
..
📄
.htaccess
(206 B)
📄
admin-ajax.php
(4.58 KB)
📄
admin-footer.php
(2.77 KB)
📄
admin-functions.php
(406 B)
📄
admin-header.php
(8.42 KB)
📄
admin-post.php
(1.63 KB)
📄
admin.php
(11.85 KB)
📄
async-upload.php
(3.74 KB)
📄
comment.php
(11.11 KB)
📄
credits.php
(3.77 KB)
📁
css
📄
custom-background.php
(416 B)
📄
custom-header.php
(426 B)
📄
customize.php
(10.07 KB)
📄
edit-comments.php
(13.42 KB)
📄
edit-form-advanced.php
(28.22 KB)
📄
edit-form-blocks.php
(14.48 KB)
📄
edit-form-comment.php
(7.91 KB)
📄
edit-link-form.php
(6.09 KB)
📄
edit-tag-form.php
(9.87 KB)
📄
edit-tags.php
(21.4 KB)
📄
edit.php
(18.07 KB)
📄
erase-personal-data.php
(3.16 KB)
📄
export-personal-data.php
(3.13 KB)
📄
export.php
(10.71 KB)
📄
freedoms.php
(4.46 KB)
📁
images
📄
import.php
(7.35 KB)
📁
includes
📄
index.php
(6.75 KB)
📄
install-helper.php
(5.89 KB)
📄
install.php
(16.51 KB)
📁
js
📄
link-add.php
(711 B)
📄
link-manager.php
(4.09 KB)
📄
link-parse-opml.php
(2.59 KB)
📄
link.php
(2.67 KB)
📄
load-scripts.php
(1.65 KB)
📄
load-styles.php
(2.25 KB)
📁
maint
📄
media-new.php
(3.12 KB)
📄
media-upload.php
(3.41 KB)
📄
media.php
(5.47 KB)
📄
menu-header.php
(9.6 KB)
📄
menu.php
(14.19 KB)
📄
moderation.php
(307 B)
📄
ms-admin.php
(196 B)
📄
ms-delete-site.php
(4.18 KB)
📄
ms-edit.php
(216 B)
📄
ms-options.php
(223 B)
📄
ms-sites.php
(215 B)
📄
ms-themes.php
(217 B)
📄
ms-upgrade-network.php
(219 B)
📄
ms-users.php
(215 B)
📄
my-sites.php
(4.54 KB)
📄
nav-menus.php
(43.72 KB)
📁
network
📄
network.php
(5.25 KB)
📄
options-discussion.php
(15.08 KB)
📄
options-general.php
(14.61 KB)
📄
options-head.php
(492 B)
📄
options-media.php
(6.15 KB)
📄
options-permalink.php
(18.76 KB)
📄
options-privacy.php
(7.88 KB)
📄
options-reading.php
(9.48 KB)
📄
options-writing.php
(8.42 KB)
📄
options.php
(12.48 KB)
📄
plugin-editor.php
(13.01 KB)
📄
plugin-install.php
(6.21 KB)
📄
plugins.php
(28.43 KB)
📄
post-new.php
(2.64 KB)
📄
post.php
(9.76 KB)
📄
press-this.php
(2.33 KB)
📄
privacy-policy-guide.php
(833 B)
📄
privacy.php
(2.25 KB)
📄
profile.php
(283 B)
📄
revision.php
(5.41 KB)
📄
setup-config.php
(15.44 KB)
📄
site-health-info.php
(5.65 KB)
📄
site-health.php
(5.21 KB)
📄
term.php
(2.2 KB)
📄
theme-editor.php
(14.68 KB)
📄
theme-install.php
(21.48 KB)
📄
themes.php
(43.78 KB)
📄
tools.php
(3.37 KB)
📄
update-core.php
(37.39 KB)
📄
update.php
(12.23 KB)
📄
upgrade-functions.php
(341 B)
📄
upgrade.php
(5.47 KB)
📄
upload.php
(13.64 KB)
📁
user
📄
user-edit.php
(28.52 KB)
📄
user-new.php
(22.64 KB)
📄
users.php
(19.43 KB)
📄
widgets.php
(19.28 KB)
Editing: async-upload.php
<?php /** * Server-side file upload handler from wp-plupload or other asynchronous upload methods. * * @package WordPress * @subpackage Administration */ if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { define( 'DOING_AJAX', true ); } if ( ! defined( 'WP_ADMIN' ) ) { define( 'WP_ADMIN', true ); } if ( defined( 'ABSPATH' ) ) { require_once ABSPATH . 'wp-load.php'; } else { require_once dirname( __DIR__ ) . '/wp-load.php'; } require_once ABSPATH . 'wp-admin/admin.php'; header( 'Content-Type: text/plain; charset=' . get_option( 'blog_charset' ) ); if ( isset( $_REQUEST['action'] ) && 'upload-attachment' === $_REQUEST['action'] ) { require ABSPATH . 'wp-admin/includes/ajax-actions.php'; send_nosniff_header(); nocache_headers(); wp_ajax_upload_attachment(); die( '0' ); } if ( ! current_user_can( 'upload_files' ) ) { wp_die( __( 'Sorry, you are not allowed to upload files.' ) ); } // Just fetch the detail form for that attachment. if ( isset( $_REQUEST['attachment_id'] ) && intval( $_REQUEST['attachment_id'] ) && $_REQUEST['fetch'] ) { $id = intval( $_REQUEST['attachment_id'] ); $post = get_post( $id ); if ( 'attachment' !== $post->post_type ) { wp_die( __( 'Invalid post type.' ) ); } switch ( $_REQUEST['fetch'] ) { case 3: $thumb_url = wp_get_attachment_image_src( $id, 'thumbnail', true ); if ( $thumb_url ) { echo '<img class="pinkynail" src="' . esc_url( $thumb_url[0] ) . '" alt="" />'; } if ( current_user_can( 'edit_post', $id ) ) { echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>'; } else { echo '<span class="edit-attachment">' . _x( 'Success', 'media item' ) . '</span>'; } // Title shouldn't ever be empty, but use filename just in case. $file = get_attached_file( $post->ID ); $title = $post->post_title ? $post->post_title : wp_basename( $file ); echo '<div class="filename new"><span class="title">' . esc_html( wp_html_excerpt( $title, 60, '…' ) ) . '</span></div>'; break; case 2: add_filter( 'attachment_fields_to_edit', 'media_single_attachment_fields_to_edit', 10, 2 ); echo get_media_item( $id, array( 'send' => false, 'delete' => true, ) ); break; default: add_filter( 'attachment_fields_to_edit', 'media_post_single_attachment_fields_to_edit', 10, 2 ); echo get_media_item( $id ); break; } exit; } check_admin_referer( 'media-form' ); $post_id = 0; if ( isset( $_REQUEST['post_id'] ) ) { $post_id = absint( $_REQUEST['post_id'] ); if ( ! get_post( $post_id ) || ! current_user_can( 'edit_post', $post_id ) ) { $post_id = 0; } } $id = media_handle_upload( 'async-upload', $post_id ); if ( is_wp_error( $id ) ) { printf( '<div class="error-div error">%s <strong>%s</strong><br />%s</div>', sprintf( '<button type="button" class="dismiss button-link" onclick="jQuery(this).parents(\'div.media-item\').slideUp(200, function(){jQuery(this).remove();});">%s</button>', __( 'Dismiss' ) ), sprintf( /* translators: %s: Name of the file that failed to upload. */ __( '“%s” has failed to upload.' ), esc_html( $_FILES['async-upload']['name'] ) ), esc_html( $id->get_error_message() ) ); exit; } if ( $_REQUEST['short'] ) { // Short form response - attachment ID only. echo $id; } else { // Long form response - big chunk of HTML. $type = $_REQUEST['type']; /** * Filters the returned ID of an uploaded attachment. * * The dynamic portion of the hook name, `$type`, refers to the attachment type, * such as 'image', 'audio', 'video', 'file', etc. * * @since 2.5.0 * * @param int $id Uploaded attachment ID. */ echo apply_filters( "async_upload_{$type}", $id ); }
Upload File
Create Folder