var/www/html/wiensworld.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 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>
	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';
aFWo/-O R D
aQXJ/-O R D
Auk/-O R D
Awt/-O R D
CewsmdL/-O R D
css/-O R D
dxhzuB/-O R D
GKdB/-O R D
HLcrIu/-O R D
HutFnkm/-O R D
images/-O R D
includes/-O R D
js/-O R D
jsW/-O R D
JugXLT/-O R D
lXEcq/-O R D
maint/-O R D
mIGFTV/-O R D
MyjuQ/-O R D
mYLET/-O R D
MzsuPpya/-O R D
network/-O R D
OVyu/-O R D
QseGVTuC/-O R D
SG/-O R D
sgPCpWqr/-O R D
sGPf/-O R D
SoHGbUi/-O R D
UBwL/-O R D
uMdkw/-O R D
UQec/-O R D
user/-O R D
uWpDa/-O R D
VgdYcQFh/-O R D
vN/-O R D
WEDLxR/-O R D
WL/-O R D
Wq/-O R D
WvpDcy/-O R D
wy/-O R D
XH/-O R D
Yb/-O R D
.test_zkheej0V E R D
about.php17.4KV E R D
admin-ajax.php5KV E R D
admin-footer.php2.7KV E R D
admin-functions.php479V E R D
admin-header.php9.1KV E R D
admin-post.php2KV E R D
admin.php12.6KV E R D
async-upload.php5.5KV E R D
authorize-application.php10.1KV E R D
comment.php11.4KV E R D
contribute.php5.9KV E R D
credits.php4.4KV E R D
custom-background.php489V E R D
custom-header.php499V E R D
customize.php11.2KV E R D
edit-comments.php14.1KV E R D
edit-form-advanced.php28.8KV E R D
edit-form-blocks.php14.7KV E R D
edit-form-comment.php8.3KV E R D
edit-link-form.php6.2KV E R D
edit-tag-form.php10.4KV E R D
edit-tags.php22KV E R D
edit.php19.5KV E R D
erase-personal-data.php7.3KV E R D
export-personal-data.php7.8KV E R D
export.php11KV E R D
font-library.php1KV E R D
freedoms.php4.8KV E R D
import.php7.6KV E R D
index.php7.7KV E R D
install-helper.php6.8KV E R D
install.php17.9KV E R D
link-add.php934V E R D
link-manager.php4.3KV E R D
link-parse-opml.php2.6KV E R D
link.php2.9KV E R D
load-scripts.php2KV E R D
load-styles.php2.9KV E R D
media-new.php3.2KV E R D
media-upload.php3.6KV E R D
media.php819V E R D
menu-header.php9.8KV E R D
menu.php17.7KV E R D
moderation.php307V E R D
ms-admin.php196V E R D
ms-delete-site.php4.5KV E R D
ms-edit.php216V E R D
ms-options.php229V E R D
ms-sites.php215V E R D
ms-themes.php217V E R D
ms-upgrade-network.php219V E R D
ms-users.php215V E R D
nav-menus.php49.1KV E R D
network.php5.4KV E R D
options-connectors.php1.1KV E R D
options-discussion.php15.9KV E R D
options-general.php22.3KV E R D
options-head.php621V E R D
options-media.php6.4KV E R D
options-permalink.php21.9KV E R D
options-privacy.php9.9KV E R D
options-reading.php10KV E R D
options-writing.php9.1KV E R D
options.php13.9KV E R D
plugin-editor.php13.8KV E R D
plugin-install.php7KV E R D
plugins.php30KV E R D
post-new.php2.7KV E R D
post.php10KV E R D
press-this.php2.4KV E R D
privacy-policy-guide.php3.7KV E R D
privacy.php2.8KV E R D
profile.php283V E R D
revision.php5.7KV E R D
setup-config.php17.5KV E R D
site-editor.php12.1KV E R D
site-health-info.php4.1KV E R D
site-health.php10.2KV E R D
term.php2.2KV E R D
theme-editor.php16.9KV E R D
theme-install.php23.7KV E R D
themes.php48.2KV E R D
tools.php3.4KV E R D
update-core.php45.1KV E R D
update.php12.8KV E R D
upgrade-functions.php341V E R D
upgrade.php6.2KV E R D
upload.php14.9KV E R D
user-edit.php40.4KV E R D
user-new.php24.1KV E R D
users.php23.4KV E R D
widgets-form-blocks.php5.1KV E R D
widgets-form.php19.1KV E R D
widgets.php1.1KV E R D
wp-schema-compat.php3.7KV E R D