var
/
www
/
html
/
servotec-doerpen.de
/
wp-admin
| uid:33
media-new.php
[X]
<?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 */ /** 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.' ) ); } wp_enqueue_script( 'plupload-handlers' ); $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; } } if ( $_POST ) { if ( isset( $_POST['html-upload'] ) && ! empty( $_FILES ) ) { check_admin_referer( 'media-form' ); // Upload File button was clicked. $upload_id = media_handle_upload( 'async-upload', $post_id ); if ( is_wp_error( $upload_id ) ) { wp_die( $upload_id ); } } wp_redirect( admin_url( 'upload.php' ) ); exit; } // Used in the HTML title tag. $title = __( 'Upload New Media' ); $parent_file = 'upload.php'; get_current_screen()->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => '<p>' . __( 'You can upload media files here without creating a post first. This allows you to upload files to use with posts and pages later and/or to get a web link for a particular file that you can share. There are three options for uploading files:' ) . '</p>' . '<ul>' . '<li>' . __( '<strong>Drag and drop</strong> your files into the area below. Multiple files are allowed.' ) . '</li>' . '<li>' . __( 'Clicking <strong>Select Files</strong> opens a navigation window showing you files in your operating system. Selecting <strong>Open</strong> after clicking on the file you want activates a progress bar on the uploader screen.' ) . '</li>' . '<li>' . __( 'Revert to the <strong>Browser Uploader</strong> by clicking the link below the drag and drop box.' ) . '</li>' . '</ul>', ) ); get_current_screen()->set_help_sidebar( '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . '<p>' . __( '<a href="https://wordpress.org/documentation/article/media-add-new-screen/">Documentation on Uploading Media Files</a>' ) . '</p>' . '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' ); require_once ABSPATH . 'wp-admin/admin-header.php'; $form_class = 'wp-upload-form media-upload-form type-form validate'; if ( get_user_setting( 'uploader' ) || isset( $_GET['browser-uploader'] ) ) { $form_class .= ' html-uploader'; } ?> <div class="wrap"> <h1><?php echo esc_html( $title ); ?></h1> <form enctype="multipart/form-data" method="post" action="<?php echo esc_url( admin_url( 'media-new.php' ) ); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form"> <?php media_upload_form(); ?> <script type="text/javascript"> var post_id = <?php echo absint( $post_id ); ?>, shortform = 3; </script> <input type="hidden" name="post_id" id="post_id" value="<?php echo absint( $post_id ); ?>" /> <?php wp_nonce_field( 'media-form' ); ?> <div id="media-items" class="hide-if-no-js"></div> </form> </div> <?php require_once ABSPATH . 'wp-admin/admin-footer.php';
css/
-
O
R
D
images/
-
O
R
D
includes/
-
O
R
D
js/
-
O
R
D
maint/
-
O
R
D
network/
-
O
R
D
user/
-
O
R
D
about.php
17.7K
V
E
R
D
admin-ajax.php
5K
V
E
R
D
admin-footer.php
2.8K
V
E
R
D
admin-functions.php
479
V
E
R
D
admin-header.php
9.1K
V
E
R
D
admin-post.php
2K
V
E
R
D
admin.php
12.3K
V
E
R
D
async-upload.php
5.5K
V
E
R
D
authorize-application.php
10.1K
V
E
R
D
comment.php
11.3K
V
E
R
D
contribute.php
5.9K
V
E
R
D
credits.php
4.4K
V
E
R
D
custom-header.php
499
V
E
R
D
customize.php
11K
V
E
R
D
edit-comments.php
14.4K
V
E
R
D
edit-form-advanced.php
28.8K
V
E
R
D
edit-form-blocks.php
14.6K
V
E
R
D
edit-form-comment.php
8.3K
V
E
R
D
edit-link-form.php
6.2K
V
E
R
D
edit-tag-form.php
10.4K
V
E
R
D
edit-tags.php
22K
V
E
R
D
edit.php
19.5K
V
E
R
D
erase-personal-data.php
7.3K
V
E
R
D
export-personal-data.php
7.8K
V
E
R
D
export.php
11K
V
E
R
D
freedoms.php
4.8K
V
E
R
D
import.php
7.6K
V
E
R
D
index.php
7.7K
V
E
R
D
install-helper.php
6.8K
V
E
R
D
install.php
17.8K
V
E
R
D
link-add.php
934
V
E
R
D
link-manager.php
4.3K
V
E
R
D
link-parse-opml.php
2.7K
V
E
R
D
link.php
2.9K
V
E
R
D
load-scripts.php
2K
V
E
R
D
load-styles.php
2.9K
V
E
R
D
media-new.php
3.2K
V
E
R
D
media-upload.php
3.6K
V
E
R
D
menu-header.php
9.8K
V
E
R
D
menu.php
17.5K
V
E
R
D
moderation.php
307
V
E
R
D
ms-admin.php
196
V
E
R
D
ms-delete-site.php
4.5K
V
E
R
D
ms-edit.php
216
V
E
R
D
ms-options.php
229
V
E
R
D
ms-sites.php
215
V
E
R
D
ms-themes.php
217
V
E
R
D
ms-users.php
215
V
E
R
D
my-sites.php
4.7K
V
E
R
D
nav-menus.php
48.2K
V
E
R
D
network.php
5.4K
V
E
R
D
options-discussion.php
15.9K
V
E
R
D
options-general.php
21.6K
V
E
R
D
options-head.php
621
V
E
R
D
options-media.php
6.4K
V
E
R
D
options-permalink.php
21.2K
V
E
R
D
options-privacy.php
10K
V
E
R
D
options-reading.php
9.9K
V
E
R
D
options-writing.php
9.1K
V
E
R
D
options.php
13.6K
V
E
R
D
plugin-editor.php
13.8K
V
E
R
D
plugin-install.php
7K
V
E
R
D
plugins.php
30K
V
E
R
D
post-new.php
2.7K
V
E
R
D
post.php
10K
V
E
R
D
press-this.php
2.3K
V
E
R
D
privacy-policy-guide.php
3.7K
V
E
R
D
privacy.php
2.8K
V
E
R
D
revision.php
5.7K
V
E
R
D
setup-config.php
17.5K
V
E
R
D
site-editor.php
12K
V
E
R
D
site-health-info.php
4K
V
E
R
D
site-health.php
10.2K
V
E
R
D
term.php
2.2K
V
E
R
D
theme-editor.php
16.9K
V
E
R
D
theme-install.php
23.4K
V
E
R
D
themes.php
47.9K
V
E
R
D
tools.php
3.4K
V
E
R
D
update-core.php
45.4K
V
E
R
D
update.php
12.8K
V
E
R
D
upgrade-functions.php
341
V
E
R
D
upgrade.php
6.3K
V
E
R
D
upload.php
14.9K
V
E
R
D
user-edit.php
40.4K
V
E
R
D
user-new.php
24K
V
E
R
D
users.php
23.3K
V
E
R
D
widgets-form-blocks.php
5.1K
V
E
R
D
widgets-form.php
19.3K
V
E
R
D
widgets.php
1.1K
V
E
R
D