X7ROOT File Manager
Current Path:
/home/greejped/nwswater.com/wp-admin
home
/
greejped
/
nwswater.com
/
wp-admin
/
ðŸ“
..
📄
.htaccess
(199 B)
📄
about.php
(24.63 KB)
📄
admin-ajax.php
(4.56 KB)
📄
admin-footer.php
(2.76 KB)
📄
admin-functions.php
(409 B)
📄
admin-header.php
(8.02 KB)
📄
admin-post.php
(1.65 KB)
📄
admin.php
(11.85 KB)
📄
async-upload.php
(3.73 KB)
📄
comment.php
(10.75 KB)
📄
credits.php
(5.18 KB)
ðŸ“
css
📄
custom-background.php
(419 B)
📄
custom-header.php
(429 B)
📄
customize.php
(9.41 KB)
📄
edit-comments.php
(13.87 KB)
📄
edit-form-advanced.php
(28.13 KB)
📄
edit-form-blocks.php
(13.18 KB)
📄
edit-form-comment.php
(7.62 KB)
📄
edit-link-form.php
(6.08 KB)
📄
edit-tag-form.php
(9.3 KB)
📄
edit-tags.php
(20.99 KB)
📄
edit.php
(17.47 KB)
📄
erase-personal-data.php
(3.17 KB)
📄
error_log
(124.61 KB)
📄
export-personal-data.php
(3.14 KB)
📄
export.php
(10.69 KB)
📄
freedoms.php
(4.6 KB)
ðŸ“
images
📄
import.php
(7.35 KB)
ðŸ“
includes
📄
index.php
(5.76 KB)
📄
install-helper.php
(5.77 KB)
📄
install.php
(16.5 KB)
ðŸ“
js
📄
link-add.php
(727 B)
📄
link-manager.php
(4.09 KB)
📄
link-parse-opml.php
(2.54 KB)
📄
link.php
(2.68 KB)
📄
load-scripts.php
(1.67 KB)
📄
load-styles.php
(2.26 KB)
ðŸ“
maint
📄
media-new.php
(3.14 KB)
📄
media-upload.php
(3.3 KB)
📄
media.php
(5.48 KB)
📄
menu-header.php
(9.51 KB)
📄
menu.php
(14.15 KB)
📄
moderation.php
(322 B)
📄
ms-admin.php
(211 B)
📄
ms-delete-site.php
(4.1 KB)
📄
ms-edit.php
(231 B)
📄
ms-options.php
(238 B)
📄
ms-sites.php
(230 B)
📄
ms-themes.php
(232 B)
📄
ms-upgrade-network.php
(234 B)
📄
ms-users.php
(230 B)
📄
my-sites-view.php
(998 B)
📄
my-sites.php
(4.55 KB)
📄
nav-menus.php
(42.81 KB)
ðŸ“
network
📄
network.php
(5.28 KB)
📄
options-discussion.php
(14.95 KB)
📄
options-general.php
(14.6 KB)
📄
options-head.php
(492 B)
📄
options-media.php
(6.1 KB)
📄
options-permalink.php
(18.51 KB)
📄
options-privacy.php
(7.9 KB)
📄
options-reading.php
(9.48 KB)
📄
options-writing-add.php
(349 B)
📄
options-writing.php
(8.43 KB)
📄
options.php
(11.91 KB)
📄
plugin-editor.php
(13.05 KB)
📄
plugin-install.php
(6.25 KB)
📄
plugins.php
(23.8 KB)
📄
post-new.php
(2.65 KB)
📄
post.php
(9.44 KB)
📄
press-this.php
(2.35 KB)
📄
privacy-policy-guide.php
(852 B)
📄
privacy.php
(2.5 KB)
📄
profile.php
(298 B)
📄
revision.php
(5.09 KB)
📄
setup-config.php
(15.54 KB)
📄
site-health-info.php
(5.65 KB)
📄
site-health.php
(5.23 KB)
📄
term.php
(2.21 KB)
📄
theme-editor.php
(14.73 KB)
📄
theme-install.php
(14.86 KB)
📄
themes.php
(23.15 KB)
📄
tools.php
(3.39 KB)
📄
update-core.php
(32.94 KB)
📄
update.php
(10.7 KB)
📄
upgrade-functions.php
(344 B)
📄
upgrade.php
(5.43 KB)
📄
upload.php
(13.59 KB)
ðŸ“
user
📄
user-edit.php
(28.57 KB)
📄
user-new.php
(21.76 KB)
📄
users.php
(19.42 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( dirname( __FILE__ ) ) . '/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'] ) { include( 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.' ) ); } if ( ! current_user_can( 'edit_post', $id ) ) { wp_die( __( 'Sorry, you are not allowed to edit this item.' ) ); } 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="" />'; } echo '<a class="edit-attachment" href="' . esc_url( get_edit_post_link( $id ) ) . '" target="_blank">' . _x( 'Edit', 'media item' ) . '</a>'; // 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