WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-content / plugins / wp-mail-smtp / src / [dxwrx-r--r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-content/plugins/wp-mail-smtp/src/EmailSendingDebug.php (4.82 KB)
<?php

namespace WPMailSMTP;

/**
 * Per-connection email-sending-failure store.
 *
 * @since 4.9.0
 */
class EmailSendingDebug {

	/**
	 * Option key for the per-connection failure map.
	 *
	 * @since 4.9.0
	 */
	const OPTION_KEY = 'wp_mail_smtp_email_sending_debug';

	/**
	 * In-memory cache to avoid repeated option reads in one request.
	 *
	 * @since 4.9.0
	 *
	 * @var array|null
	 */
	private static $cached = null;

	/**
	 * Write or overwrite the failure record for a single connection.
	 *
	 * @since 4.9.0
	 *
	 * @param string $connection_id Connection id ('primary' or an additional connection's id).
	 * @param array  $record        Failure-record payload.
	 */
	public static function set( $connection_id, $record ) {

		if ( empty( $connection_id ) ) {
			return;
		}

		$all                   = self::get_raw();
		$all[ $connection_id ] = $record;
		self::$cached          = $all;

		update_option( self::OPTION_KEY, $all, false );
	}

	/**
	 * Merge partial fields into the existing failure record for a single connection.
	 *
	 * Unlike {@see self::set()}, merge annotates an already-stored record - it does
	 * not create one when none exists. Provided fields overwrite stored ones; every
	 * other field is preserved.
	 *
	 * @since 4.9.0
	 *
	 * @param string $connection_id  Connection id ('primary' or an additional connection's id).
	 * @param array  $partial_record Fields to merge over the existing record.
	 */
	public static function merge( $connection_id, $partial_record ) {

		if ( empty( $connection_id ) || empty( $partial_record ) ) {
			return;
		}

		$all = self::get_raw();

		if ( empty( $all[ $connection_id ] ) ) {
			return;
		}

		$all[ $connection_id ] = array_merge( $all[ $connection_id ], $partial_record );
		self::$cached          = $all;

		update_option( self::OPTION_KEY, $all, false );
	}

	/**
	 * Remove the failure record for a single connection.
	 *
	 * @since 4.9.0
	 *
	 * @param string $connection_id Connection id.
	 */
	public static function clear( $connection_id ) {

		if ( empty( $connection_id ) ) {
			return;
		}

		$all = self::get_raw();

		if ( ! array_key_exists( $connection_id, $all ) ) {
			return;
		}

		unset( $all[ $connection_id ] );
		self::$cached = $all;

		update_option( self::OPTION_KEY, $all, false );
	}

	/**
	 * Wipe every connection's failure record.
	 *
	 * @since 4.9.0
	 */
	public static function clear_all() {

		self::$cached = [];

		update_option( self::OPTION_KEY, [], false );
	}

	/**
	 * Return a single connection's failure as a human-readable string in the
	 * form `Mailer: <title>` + EOL + `<error_message>`, or an empty string when
	 * the record does not exist or has no error_message.
	 *
	 * @since 4.9.0
	 *
	 * @param string $connection_id Connection id.
	 *
	 * @return string
	 */
	public static function get_message( $connection_id ) {

		return self::format_record( self::get( $connection_id ) );
	}

	/**
	 * Return formatted failure messages for every connection with a non-empty
	 * `error_message`. Each entry is formatted as `Mailer: <title>` + EOL +
	 * `<error_message>`.
	 *
	 * @since 4.9.0
	 *
	 * @return string[]
	 */
	public static function get_messages() {

		$messages = [];

		foreach ( self::get() as $record ) {
			$formatted = self::format_record( $record );

			if ( $formatted !== '' ) {
				$messages[] = $formatted;
			}
		}

		return $messages;
	}

	/**
	 * Build the `Mailer: <title>` + EOL + `<error_message>` string for a single
	 * failure record. Returns an empty string when the record is empty or has
	 * no `error_message`.
	 *
	 * @since 4.9.0
	 *
	 * @param array $record Failure-record payload.
	 *
	 * @return string
	 */
	private static function format_record( $record ) {

		if ( empty( $record['error_message'] ) ) {
			return '';
		}

		$options = ! empty( $record['mailer'] )
			? wp_mail_smtp()->get_providers()->get_options( $record['mailer'] )
			: null;

		$mailer_title = ! empty( $options )
			? $options->get_title()
			: esc_html__( 'Unknown', 'wp-mail-smtp' );

		return 'Mailer: ' . $mailer_title . WP::EOL . (string) $record['error_message'];
	}

	/**
	 * Read failure records. Returns the full map when `$connection_id` is null,
	 * otherwise that connection's record (or an empty array when none stored).
	 *
	 * @since 4.9.0
	 *
	 * @param string|null $connection_id Optional connection id.
	 *
	 * @return array
	 */
	public static function get( $connection_id = null ) {

		$all = self::get_raw();

		if ( $connection_id === null ) {
			return $all;
		}

		return isset( $all[ $connection_id ] ) ? $all[ $connection_id ] : [];
	}

	/**
	 * Raw read with in-memory caching.
	 *
	 * @since 4.9.0
	 *
	 * @return array
	 */
	private static function get_raw() {

		if ( self::$cached !== null ) {
			return self::$cached;
		}

		$all = get_option( self::OPTION_KEY, [] );

		if ( ! is_array( $all ) ) {
			$all = [];
		}

		self::$cached = $all;

		return $all;
	}
}
namawaktuukuranownerpermaksi
..
Abilities/ 2026-07-21 14:1414.29 KB 76129f60960:kundendxwrx-r--r
Admin/ 2026-07-21 14:14651.31 KB 76129f60960:kundendxwrx-r--r
Compatibility/ 2026-07-21 14:149.47 KB 76129f60960:kundendxwrx-r--r
Helpers/ 2026-07-21 14:1429.47 KB 76129f60960:kundendxwrx-r--r
Integrations/ 2026-07-21 14:147.61 KB 76129f60960:kundendxwrx-r--r
Providers/ 2026-07-21 14:14380.79 KB 76129f60960:kundendxwrx-r--r
Queue/ 2026-07-21 14:1436.42 KB 76129f60960:kundendxwrx-r--r
Reports/ 2026-07-21 14:1428.76 KB 76129f60960:kundendxwrx-r--r
Tasks/ 2026-07-21 14:1440.6 KB 76129f60960:kundendxwrx-r--r
TestEmail/ 2026-07-21 14:1422.48 KB 76129f60960:kundendxwrx-r--r
UsageTracking/ 2026-07-21 14:1422.97 KB 76129f60960:kundendxwrx-r--r
WPCLI/ 2026-07-21 14:1452.21 KB 76129f60960:kundendxwrx-r--r
AbstractConnection.php 2026-07-21 14:141.09 KB 76129f60960:kunden-xw-x-----
edt
Conflicts.php 2026-07-21 14:1416.65 KB 76129f60960:kunden-xw-x-----
edt
Connect.php 2026-07-21 14:149.18 KB 76129f60960:kunden-xw-x-----
edt
Connection.php 2026-07-21 14:14964 B 76129f60960:kunden-xw-x-----
edt
ConnectionInterface.php 2026-07-21 14:141.01 KB 76129f60960:kunden-xw-x-----
edt
ConnectionsManager.php 2026-07-21 14:14765 B 76129f60960:kunden-xw-x-----
edt
Core.php 2026-07-21 14:1433.84 KB 76129f60960:kunden-xw-x-----
edt
DBRepair.php 2026-07-21 14:146.36 KB 76129f60960:kunden-xw-x-----
edt
Debug.php 2026-07-21 14:144.24 KB 76129f60960:kunden-xw-x-----
edt
EmailSendingDebug.php 2026-07-21 14:144.82 KB 76129f60960:kunden-xw-x-----
edt
Geo.php 2026-07-21 14:146.76 KB 76129f60960:kunden-xw-x-----
edt
MailCatcher.php 2026-07-21 14:141.36 KB 76129f60960:kunden-xw-x-----
edt
MailCatcherInterface.php 2026-07-21 14:141.16 KB 76129f60960:kunden-xw-x-----
edt
MailCatcherTrait.php 2026-07-21 14:1427.44 KB 76129f60960:kunden-xw-x-----
edt
MailCatcherV6.php 2026-07-21 14:141.2 KB 76129f60960:kunden-xw-x-----
edt
Migration.php 2026-07-21 14:1412.11 KB 76129f60960:kunden-xw-x-----
edt
MigrationAbstract.php 2026-07-21 14:143.21 KB 76129f60960:kunden-xw-x-----
edt
Migrations.php 2026-07-21 14:144.12 KB 76129f60960:kunden-xw-x-----
edt
OptimizedEmailSending.php 2026-07-21 14:141.17 KB 76129f60960:kunden-xw-x-----
edt
Options.php 2026-07-21 14:1448.36 KB 76129f60960:kunden-xw-x-----
edt
Processor.php 2026-07-21 14:1414.11 KB 76129f60960:kunden-xw-x-----
edt
SiteHealth.php 2026-07-21 14:1412.66 KB 76129f60960:kunden-xw-x-----
edt
Upgrade.php 2026-07-21 14:141.55 KB 76129f60960:kunden-xw-x-----
edt
Uploads.php 2026-07-21 14:145.44 KB 76129f60960:kunden-xw-x-----
edt
WP.php 2026-07-21 14:1424.5 KB 76129f60960:kunden-xw-x-----
edt
WPMailArgs.php 2026-07-21 14:144.44 KB 76129f60960:kunden-xw-x-----
edt
WPMailInitiator.php 2026-07-21 14:144.38 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-content/plugins/wp-mail-smtp/src
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