Uname:Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64

403WebShell
403Webshell
Server IP : 146.59.209.152  /  Your IP : 216.73.216.152
Web Server : Apache
System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : monpetu ( 144298)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/monpetu/www/ipprint/wp-content/plugins/order-tracking/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/monpetu/www/ipprint/wp-content/plugins/order-tracking/includes/DeactivationSurvey.class.php
<?php
if ( ! defined( 'ABSPATH' ) ) exit;

if ( ! class_exists( 'ewdotpDeactivationSurvey' ) ) {
/**
 * Class to handle plugin deactivation survey
 *
 * @since 3.0.0
 */
class ewdotpDeactivationSurvey {

	public function __construct() {
		add_action( 'current_screen', array( $this, 'maybe_add_survey' ) );
	}

	public function maybe_add_survey() {
		if ( in_array( get_current_screen()->id, array( 'plugins', 'plugins-network' ), true) ) {
			add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_deactivation_scripts') );
			add_action( 'admin_footer', array( $this, 'add_deactivation_html') );
		}
	}

	public function enqueue_deactivation_scripts() {
		wp_enqueue_style( 'ewd-otp-deactivation-css', EWD_OTP_PLUGIN_URL . '/assets/css/plugin-deactivation.css' );
		wp_enqueue_script( 'ewd-otp-deactivation-js', EWD_OTP_PLUGIN_URL . '/assets/js/plugin-deactivation.js', array( 'jquery' ) );

		wp_localize_script( 'ewd-otp-deactivation-js', 'ewd_otp_deactivation_data', array( 'site_url' => site_url() ) );
	}

	public function add_deactivation_html() {
		
		$install_time = get_option( 'ewd-otp-installation-time' );

		$options = array(
			1 => array(
				'title'   => esc_html__( 'I no longer need the plugin', 'order-tracking' ),
			),
			2 => array(
				'title'   => esc_html__( 'I\'m switching to a different plugin', 'order-tracking' ),
				'details' => esc_html__( 'Please share which plugin', 'order-tracking' ),
			),
			3 => array(
				'title'   => esc_html__( 'I couldn\'t get the plugin to work', 'order-tracking' ),
				'details' => esc_html__( 'Please share what wasn\'t working', 'order-tracking' ),
			),
			4 => array(
				'title'   => esc_html__( 'It\'s a temporary deactivation', 'order-tracking' ),
			),
			5 => array(
				'title'   => esc_html__( 'Other', 'order-tracking' ),
				'details' => esc_html__( 'Please share the reason', 'order-tracking' ),
			),
		);
		?>
		<div class="ewd-otp-deactivate-survey-modal" id="ewd-otp-deactivate-survey-order-tracking">
			<div class="ewd-otp-deactivate-survey-wrap">
				<form class="ewd-otp-deactivate-survey" method="post" data-installtime="<?php echo $install_time; ?>">
					<span class="ewd-otp-deactivate-survey-title"><span class="dashicons dashicons-testimonial"></span><?php echo ' ' . __( 'Quick Feedback', 'order-tracking' ); ?><span id="ewd-otp-deactivation-cancel">X</span></span>
					<span class="ewd-otp-deactivate-survey-desc"><?php echo __('Need help? Contact us at <a href="mailto:contact@etoilewebdesign.com">contact@etoilewebdesign.com</a> for a quick reply!<br/> Please share why you are deactivating Order Tracking:', 'order-tracking' ); ?></span>
					<div class="ewd-otp-deactivate-survey-options">
						<?php foreach ( $options as $id => $option ) : ?>
							<div class="ewd-otp-deactivate-survey-option">
								<label for="ewd-otp-deactivate-survey-option-order-tracking-<?php echo $id; ?>" class="ewd-otp-deactivate-survey-option-label">
									<input id="ewd-otp-deactivate-survey-option-order-tracking-<?php echo $id; ?>" class="ewd-otp-deactivate-survey-option-input" type="radio" name="code" value="<?php echo $id; ?>" />
									<span class="ewd-otp-deactivate-survey-option-reason"><?php echo $option['title']; ?></span>
								</label>
								<?php if ( ! empty( $option['details'] ) ) : ?>
									<input class="ewd-otp-deactivate-survey-option-details" type="text" placeholder="<?php echo $option['details']; ?>" />
								<?php endif; ?>
							</div>
						<?php endforeach; ?>
					</div>
					<div class="ewd-otp-deactivate-survey-footer">
						<button type="submit" class="ewd-otp-deactivate-survey-submit button button-primary button-large"><?php _e('Submit and Deactivate', 'order-tracking' ); ?></button>
						<a href="#" class="ewd-otp-deactivate-survey-deactivate"><?php _e('Skip and Deactivate', 'order-tracking' ); ?></a>
					</div>
				</form>
			</div>
		</div>
		<?php
	}
}

}

Youez - 2016 - github.com/yon3zu
LinuXploit