<?php
header('Content-Type: text/plain;charset=UTF-8');

include '../../../../wp-load.php';

if (!check_admin_referer('view'))
    die('Only the administrator can view the preview');

// Used by theme code
$theme_options = NewsletterEmails::instance()->get_current_theme_options();

$file = NewsletterEmails::instance()->get_current_theme_file_path('theme-text.php');
if (is_file($file)) {
    include(NewsletterEmails::instance()->get_current_theme_file_path('theme-text.php'));
}