https://t.me/AnonymousX5
Server : Apache
System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64
User : medchoco ( 2906)
PHP Version : 8.3.16
Disable Function : mail
Directory :  /home/medchoco/www/wp-content/plugins/mailchimp-for-wp/includes/forms/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/medchoco/www/wp-content/plugins/mailchimp-for-wp/includes/forms/class-form-previewer.php
<?php

class MC4WP_Form_Previewer {

	public function add_hooks() {
		add_action( 'parse_request', array( $this, 'listen' ) );
	}

	public function listen() {
		if ( empty( $_GET['mc4wp_preview_form'] ) ) {
			return;
		}

		try {
			$form = mc4wp_get_form( $_GET['mc4wp_preview_form'] );
		} catch ( Exception $e ) {
			return;
		}

		show_admin_bar( false );
		add_filter( 'pre_handle_404', '__return_true' );
		remove_all_actions( 'template_redirect' );
		add_action( 'template_redirect', array( $this, 'load_preview' ) );
	}

	public function load_preview() {
		// clear output, some plugin or hooked code might have thrown errors by now.
		if ( ob_get_level() > 0 ) {
			ob_end_clean();
		}

		$form_id = (int) $_GET['mc4wp_preview_form'];
		status_header( 200 );

		require __DIR__ . '/views/preview.php';
		exit;
	}
}

https://t.me/AnonymousX5 - 2025