WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-admin / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-admin/authorize-application.php (10.09 KB)
<?php
/**
 * Authorize Application Screen
 *
 * @package WordPress
 * @subpackage Administration
 */

/** WordPress Administration Bootstrap */
require_once __DIR__ . '/admin.php';

$error        = null;
$new_password = '';

// This is the no-js fallback script. Generally this will all be handled by `auth-app.js`.
if ( isset( $_POST['action'] ) && 'authorize_application_password' === $_POST['action'] ) {
	check_admin_referer( 'authorize_application_password' );

	$success_url = $_POST['success_url'];
	$reject_url  = $_POST['reject_url'];
	$app_name    = $_POST['app_name'];
	$app_id      = $_POST['app_id'];
	$redirect    = '';

	if ( isset( $_POST['reject'] ) ) {
		if ( $reject_url ) {
			$redirect = $reject_url;
		} else {
			$redirect = admin_url();
		}
	} elseif ( isset( $_POST['approve'] ) ) {
		$created = WP_Application_Passwords::create_new_application_password(
			get_current_user_id(),
			array(
				'name'   => $app_name,
				'app_id' => $app_id,
			)
		);

		if ( is_wp_error( $created ) ) {
			$error = $created;
		} else {
			list( $new_password ) = $created;

			if ( $success_url ) {
				$redirect = add_query_arg(
					array(
						'site_url'   => urlencode( site_url() ),
						'user_login' => urlencode( wp_get_current_user()->user_login ),
						'password'   => urlencode( $new_password ),
					),
					$success_url
				);
			}
		}
	}

	if ( $redirect ) {
		// Explicitly not using wp_safe_redirect b/c sends to arbitrary domain.
		wp_redirect( $redirect );
		exit;
	}
}

// Used in the HTML title tag.
$title = __( 'Authorize Application' );

$app_name    = ! empty( $_REQUEST['app_name'] ) ? $_REQUEST['app_name'] : '';
$app_id      = ! empty( $_REQUEST['app_id'] ) ? $_REQUEST['app_id'] : '';
$success_url = ! empty( $_REQUEST['success_url'] ) ? $_REQUEST['success_url'] : null;

if ( ! empty( $_REQUEST['reject_url'] ) ) {
	$reject_url = $_REQUEST['reject_url'];
} elseif ( $success_url ) {
	$reject_url = add_query_arg( 'success', 'false', $success_url );
} else {
	$reject_url = null;
}

$user = wp_get_current_user();

$request  = compact( 'app_name', 'app_id', 'success_url', 'reject_url' );
$is_valid = wp_is_authorize_application_password_request_valid( $request, $user );

if ( is_wp_error( $is_valid ) ) {
	wp_die(
		__( 'The Authorize Application request is not allowed.' ) . ' ' . implode( ' ', $is_valid->get_error_messages() ),
		__( 'Cannot Authorize Application' )
	);
}

if ( wp_is_site_protected_by_basic_auth( 'front' ) ) {
	wp_die(
		__( 'Your website appears to use Basic Authentication, which is not currently compatible with application passwords.' ),
		__( 'Cannot Authorize Application' ),
		array(
			'response'  => 501,
			'link_text' => __( 'Go Back' ),
			'link_url'  => $reject_url ? add_query_arg( 'error', 'disabled', $reject_url ) : admin_url(),
		)
	);
}

if ( ! wp_is_application_passwords_available_for_user( $user ) ) {
	if ( wp_is_application_passwords_available() ) {
		$message = __( 'Application passwords are not available for your account. Please contact the site administrator for assistance.' );
	} else {
		$message = __( 'Application passwords are not available.' );
	}

	wp_die(
		$message,
		__( 'Cannot Authorize Application' ),
		array(
			'response'  => 501,
			'link_text' => __( 'Go Back' ),
			'link_url'  => $reject_url ? add_query_arg( 'error', 'disabled', $reject_url ) : admin_url(),
		)
	);
}

wp_enqueue_script( 'auth-app' );
wp_localize_script(
	'auth-app',
	'authApp',
	array(
		'site_url'   => site_url(),
		'user_login' => $user->user_login,
		'success'    => $success_url,
		'reject'     => $reject_url ? $reject_url : admin_url(),
	)
);

require_once ABSPATH . 'wp-admin/admin-header.php';

?>
<div class="wrap">
	<h1><?php echo esc_html( $title ); ?></h1>

	<?php
	if ( is_wp_error( $error ) ) {
		wp_admin_notice(
			$error->get_error_message(),
			array(
				'type' => 'error',
			)
		);
	}
	?>

	<div class="card auth-app-card">
		<h2 class="title"><?php _e( 'An application would like to connect to your account.' ); ?></h2>
		<?php if ( $app_name ) : ?>
			<p>
				<?php
				printf(
					/* translators: %s: Application name. */
					__( 'Would you like to give the application identifying itself as %s access to your account? You should only do this if you trust the application in question.' ),
					'<strong>' . esc_html( $app_name ) . '</strong>'
				);
				?>
			</p>
		<?php else : ?>
			<p><?php _e( 'Would you like to give this application access to your account? You should only do this if you trust the application in question.' ); ?></p>
		<?php endif; ?>

		<?php
		if ( is_multisite() ) {
			$blogs       = get_blogs_of_user( $user->ID, true );
			$blogs_count = count( $blogs );

			if ( $blogs_count > 1 ) {
				?>
				<p>
					<?php
					/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
					$message = _n(
						'This will grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',
						'This will grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',
						$blogs_count
					);

					if ( is_super_admin() ) {
						/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
						$message = _n(
							'This will grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.',
							'This will grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.',
							$blogs_count
						);
					}

					printf(
						$message,
						admin_url( 'my-sites.php' ),
						number_format_i18n( $blogs_count )
					);
					?>
				</p>
				<?php
			}
		}
		?>

		<?php
		if ( $new_password ) :
			$message = '<p class="application-password-display">
				<label for="new-application-password-value">' . sprintf(
				/* translators: %s: Application name. */
				esc_html__( 'Your new password for %s is:' ),
				'<strong>' . esc_html( $app_name ) . '</strong>'
			) . '
				</label>
				<input id="new-application-password-value" type="text" class="code" readonly="readonly" value="' . esc_attr( WP_Application_Passwords::chunk_password( $new_password ) ) . '" />
			</p>
			<p>' . __( 'Be sure to save this in a safe location. You will not be able to retrieve it.' ) . '</p>';
			$args = array(
				'type'               => 'success',
				'additional_classes' => array( 'notice-alt', 'below-h2' ),
				'paragraph_wrap'     => false,
			);
			wp_admin_notice( $message, $args );

			/**
			 * Fires in the Authorize Application Password new password section in the no-JS version.
			 *
			 * In most cases, this should be used in combination with the {@see 'wp_application_passwords_approve_app_request_success'}
			 * action to ensure that both the JS and no-JS variants are handled.
			 *
			 * @since 5.6.0
			 * @since 5.6.1 Corrected action name and signature.
			 *
			 * @param string  $new_password The newly generated application password.
			 * @param array   $request      The array of request data. All arguments are optional and may be empty.
			 * @param WP_User $user         The user authorizing the application.
			 */
			do_action( 'wp_authorize_application_password_form_approved_no_js', $new_password, $request, $user );
		else :
			?>
			<form action="<?php echo esc_url( admin_url( 'authorize-application.php' ) ); ?>" method="post" class="form-wrap">
				<?php wp_nonce_field( 'authorize_application_password' ); ?>
				<input type="hidden" name="action" value="authorize_application_password" />
				<input type="hidden" name="app_id" value="<?php echo esc_attr( $app_id ); ?>" />
				<input type="hidden" name="success_url" value="<?php echo esc_url( $success_url ); ?>" />
				<input type="hidden" name="reject_url" value="<?php echo esc_url( $reject_url ); ?>" />

				<div class="form-field">
					<label for="app_name"><?php _e( 'New Application Password Name' ); ?></label>
					<input type="text" id="app_name" name="app_name" value="<?php echo esc_attr( $app_name ); ?>" required />
				</div>

				<?php
				/**
				 * Fires in the Authorize Application Password form before the submit buttons.
				 *
				 * @since 5.6.0
				 *
				 * @param array   $request {
				 *     The array of request data. All arguments are optional and may be empty.
				 *
				 *     @type string $app_name    The suggested name of the application.
				 *     @type string $success_url The URL the user will be redirected to after approving the application.
				 *     @type string $reject_url  The URL the user will be redirected to after rejecting the application.
				 * }
				 * @param WP_User $user The user authorizing the application.
				 */
				do_action( 'wp_authorize_application_password_form', $request, $user );
				?>

				<?php
				submit_button(
					__( 'Yes, I approve of this connection' ),
					'primary',
					'approve',
					false,
					array(
						'aria-describedby' => 'description-approve',
					)
				);
				?>
				<p class="description" id="description-approve">
					<?php
					if ( $success_url ) {
						printf(
							/* translators: %s: The URL the user is being redirected to. */
							__( 'You will be sent to %s' ),
							'<strong><code>' . esc_html(
								add_query_arg(
									array(
										'site_url'   => site_url(),
										'user_login' => $user->user_login,
										'password'   => '[------]',
									),
									$success_url
								)
							) . '</code></strong>'
						);
					} else {
						_e( 'You will be given a password to manually enter into the application in question.' );
					}
					?>
				</p>

				<?php
				submit_button(
					__( 'No, I do not approve of this connection' ),
					'secondary',
					'reject',
					false,
					array(
						'aria-describedby' => 'description-reject',
					)
				);
				?>
				<p class="description" id="description-reject">
					<?php
					if ( $reject_url ) {
						printf(
							/* translators: %s: The URL the user is being redirected to. */
							__( 'You will be sent to %s' ),
							'<strong><code>' . esc_html( $reject_url ) . '</code></strong>'
						);
					} else {
						_e( 'You will be returned to the WordPress Dashboard, and no changes will be made.' );
					}
					?>
				</p>
			</form>
		<?php endif; ?>
	</div>
</div>
<?php

require_once ABSPATH . 'wp-admin/admin-footer.php';
namawaktuukuranownerpermaksi
..
css/ 2026-08-20 11:462.69 MB 76129f60960:kundendxwrx-rx-r
images/ 2026-08-20 11:46435.84 KB 76129f60960:kundendxwrx-rx-r
includes/ 2026-02-23 19:413.03 MB 76129f60960:kundendxwrx-rx-r
js/ 2026-02-23 19:411.94 MB 76129f60960:kundendxwrx-rx-r
maint/ 2026-02-23 19:417.47 KB 76129f60960:kundendxwrx-rx-r
network/ 2026-02-23 19:41127.81 KB 76129f60960:kundendxwrx-rx-r
user/ 2026-02-23 19:413.66 KB 76129f60960:kundendxwrx-rx-r
about.php 2026-11-19 00:3819.36 KB 76129f60960:kunden-xw-x--x--
edt
admin-ajax.php 2026-02-23 19:415.03 KB 76129f60960:kunden-xw-x-----
edt
admin-footer.php 2026-08-20 11:462.74 KB 76129f60960:kunden-xw-x--x--
edt
admin-functions.php 2026-08-20 11:46472 B 76129f60960:kunden-xw-x-----
edt
admin-header.php 2026-08-20 11:469.07 KB 76129f60960:kunden-xw-x--x--
edt
admin-post.php 2026-02-23 19:411.97 KB 76129f60960:kunden-xw-x-----
edt
admin.php 2026-05-21 09:1112.63 KB 76129f60960:kunden-xw-x--x--
edt
async-upload.php 2026-02-23 19:415.47 KB 76129f60960:kunden-xw-x-----
edt
authorize-application.php 2026-02-23 19:4110.09 KB 76129f60960:kunden-xw-x-----
edt
comment.php 2026-05-21 09:1111.37 KB 76129f60960:kunden-xw-x--x--
edt
contribute.php 2026-08-20 11:465.52 KB 76129f60960:kunden-xw-x--x--
edt
credits.php 2026-08-20 11:464.04 KB 76129f60960:kunden-xw-x--x--
edt
custom-background.php 2026-08-20 11:46482 B 76129f60960:kunden-xw-x-----
edt
custom-header.php 2026-08-20 11:46492 B 76129f60960:kunden-xw-x-----
edt
customize.php 2026-08-20 11:4611.31 KB 76129f60960:kunden-xw-x--x--
edt
edit-comments.php 2026-05-21 09:1114.14 KB 76129f60960:kunden-xw-x--x--
edt
edit-form-advanced.php 2026-08-20 11:4628.79 KB 76129f60960:kunden-xw-x--x--
edt
edit-form-blocks.php 2026-08-20 11:4615.16 KB 76129f60960:kunden-xw-x--x--
edt
edit-form-comment.php 2026-08-20 11:4613.65 KB 76129f60960:kunden-xw-x--x--
edt
edit-link-form.php 2026-08-20 11:466.2 KB 76129f60960:kunden-xw-x-----
edt
edit-tag-form.php 2026-08-20 11:4610.41 KB 76129f60960:kunden-xw-x--x--
edt
edit-tags.php 2026-05-21 09:1121.98 KB 76129f60960:kunden-xw-x--x--
edt
edit.php 2026-02-23 19:4119.48 KB 76129f60960:kunden-xw-x-----
edt
erase-personal-data.php 2026-08-20 11:467.33 KB 76129f60960:kunden-xw-x-----
edt
export-personal-data.php 2026-08-20 11:467.75 KB 76129f60960:kunden-xw-x-----
edt
export.php 2026-05-21 09:1111 KB 76129f60960:kunden-xw-x--x--
edt
font-library.php 2026-08-20 11:461.45 KB 76129f60960:kunden-xw-x--x--
edt
freedoms.php 2026-08-20 11:464.47 KB 76129f60960:kunden-xw-x--x--
edt
import.php 2026-02-23 19:417.58 KB 76129f60960:kunden-xw-x-----
edt
index.php 2026-02-23 19:417.68 KB 76129f60960:kunden-xw-x-----
edt
install-helper.php 2026-02-23 19:416.8 KB 76129f60960:kunden-xw-x-----
edt
install.php 2026-08-20 11:4617.94 KB 76129f60960:kunden-xw-x--x--
edt
link-add.php 2026-02-23 19:41934 B 76129f60960:kunden-xw-x-----
edt
link-manager.php 2026-02-23 19:414.26 KB 76129f60960:kunden-xw-x-----
edt
link-parse-opml.php 2026-08-20 11:462.66 KB 76129f60960:kunden-xw-x--x--
edt
link.php 2026-02-23 19:412.89 KB 76129f60960:kunden-xw-x-----
edt
load-scripts.php 2026-02-23 19:412.02 KB 76129f60960:kunden-xw-x-----
edt
load-styles.php 2026-02-23 19:412.92 KB 76129f60960:kunden-xw-x-----
edt
media-new.php 2026-05-21 09:113.17 KB 76129f60960:kunden-xw-x--x--
edt
media-upload.php 2026-02-23 19:413.58 KB 76129f60960:kunden-xw-x-----
edt
media.php 2026-02-23 19:41819 B 76129f60960:kunden-xw-x-----
edt
menu-header.php 2026-08-20 11:469.82 KB 76129f60960:kunden-xw-x-----
edt
menu.php 2026-08-20 11:4617.71 KB 76129f60960:kunden-xw-x--x--
edt
moderation.php 2026-02-23 19:41307 B 76129f60960:kunden-xw-x-----
edt
ms-admin.php 2026-02-23 19:41196 B 76129f60960:kunden-xw-x-----
edt
ms-delete-site.php 2026-02-23 19:414.5 KB 76129f60960:kunden-xw-x-----
edt
ms-edit.php 2026-02-23 19:41216 B 76129f60960:kunden-xw-x-----
edt
ms-options.php 2026-02-23 19:41229 B 76129f60960:kunden-xw-x-----
edt
ms-sites.php 2026-02-23 19:41215 B 76129f60960:kunden-xw-x-----
edt
ms-themes.php 2026-02-23 19:41217 B 76129f60960:kunden-xw-x-----
edt
ms-upgrade-network.php 2026-02-23 19:41219 B 76129f60960:kunden-xw-x-----
edt
ms-users.php 2026-02-23 19:41215 B 76129f60960:kunden-xw-x-----
edt
my-sites.php 2026-05-21 09:114.72 KB 76129f60960:kunden-xw-x--x--
edt
nav-menus.php 2026-08-20 11:4649.02 KB 76129f60960:kunden-xw-x--x--
edt
network.php 2026-08-20 11:465.39 KB 76129f60960:kunden-xw-x-----
edt
options-connectors.php 2026-08-20 11:461.51 KB 76129f60960:kunden-xw-x--x--
edt
options-discussion.php 2026-08-20 11:4616.02 KB 76129f60960:kunden-xw-x-----
edt
options-general.php 2026-08-20 11:4622.32 KB 76129f60960:kunden-xw-x--x--
edt
options-head.php 2026-08-20 11:46614 B 76129f60960:kunden-xw-x-----
edt
options-media.php 2026-08-20 11:466.48 KB 76129f60960:kunden-xw-x-----
edt
options-permalink.php 2026-08-20 11:4621.96 KB 76129f60960:kunden-xw-x--x--
edt
options-privacy.php 2026-08-20 11:4610.45 KB 76129f60960:kunden-xw-x--x--
edt
options-reading.php 2026-08-20 11:469.96 KB 76129f60960:kunden-xw-x--x--
edt
options-writing.php 2026-08-20 11:469.18 KB 76129f60960:kunden-xw-x-----
edt
options.php 2026-05-21 09:1113.93 KB 76129f60960:kunden-xw-x--x--
edt
plugin-editor.php 2026-08-20 11:4613.74 KB 76129f60960:kunden-xw-x-----
edt
plugin-install.php 2026-08-20 11:467.26 KB 76129f60960:kunden-xw-x-----
edt
plugins.php 2026-08-20 11:4630.02 KB 76129f60960:kunden-xw-x-----
edt
post-new.php 2026-02-23 19:412.7 KB 76129f60960:kunden-xw-x-----
edt
post.php 2026-08-20 11:4610.57 KB 76129f60960:kunden-xw-x-----
edt
press-this.php 2026-05-21 09:112.41 KB 76129f60960:kunden-xw-x--x--
edt
privacy-policy-guide.php 2026-02-23 19:413.67 KB 76129f60960:kunden-xw-x-----
edt
privacy.php 2026-08-20 11:462.45 KB 76129f60960:kunden-xw-x--x--
edt
profile.php 2026-02-23 19:41283 B 76129f60960:kunden-xw-x-----
edt
revision.php 2026-02-23 19:415.7 KB 76129f60960:kunden-xw-x-----
edt
setup-config.php 2026-08-20 11:4617.51 KB 76129f60960:kunden-xw-x--x--
edt
site-editor.php 2026-08-20 11:4612.19 KB 76129f60960:kunden-xw-x--x--
edt
site-health-info.php 2026-08-20 11:464.08 KB 76129f60960:kunden-xw-x--x--
edt
site-health.php 2026-08-20 11:4610.18 KB 76129f60960:kunden-xw-x--x--
edt
term.php 2026-02-23 19:412.2 KB 76129f60960:kunden-xw-x-----
edt
theme-editor.php 2026-02-23 19:4116.87 KB 76129f60960:kunden-xw-x-----
edt
theme-install.php 2026-08-20 11:4623.75 KB 76129f60960:kunden-xw-x--x--
edt
themes.php 2026-08-20 11:4648.56 KB 76129f60960:kunden-xw-x-----
edt
tools.php 2026-02-23 19:413.43 KB 76129f60960:kunden-xw-x-----
edt
update-core.php 2026-05-21 09:1145.12 KB 76129f60960:kunden-xw-x--x--
edt
update.php 2026-05-21 09:1112.76 KB 76129f60960:kunden-xw-x--x--
edt
upgrade-functions.php 2026-02-23 19:41341 B 76129f60960:kunden-xw-x-----
edt
upgrade.php 2026-05-21 09:116.24 KB 76129f60960:kunden-xw-x--x--
edt
upload.php 2026-08-20 11:4614.93 KB 76129f60960:kunden-xw-x--x--
edt
user-edit.php 2026-10-29 00:2840.89 KB 76129f60960:kunden-xw-x--x--
edt
user-new.php 2026-08-20 11:4624.09 KB 76129f60960:kunden-xw-x--x--
edt
users.php 2026-10-29 00:2825.15 KB 76129f60960:kunden-xw-x--x--
edt
widgets-form-blocks.php 2026-08-20 11:465.11 KB 76129f60960:kunden-xw-x-----
edt
widgets-form.php 2026-08-20 11:4619.13 KB 76129f60960:kunden-xw-x--x--
edt
widgets.php 2026-02-23 19:411.09 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-admin
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK