<?php

session_start();

require 'authenticate.user.php';



require 'configuration.php';

require_once 'includes/common.functions.php';

require_once ('classes/database.php');

require_once ('classes/functions.php');

$sqlObj = new mysqlClass;

$funcObj = new funcClass;



if (empty($_GET['id']))

	die ("Required parameter is missing");

	

$ID = base64_decode($_GET['id']);



$query = "SELECT CONTENTSPLAIN FROM ##campaigns WHERE ID = '$ID'";

$resultSet = array();

$resultSet = $funcObj->CustomQuery($query);

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Preview Text Emails</title>

<style type="text/css">

.textarea {width: 882px; height: 542px;}

</style>

</head>

<body>

<textarea class="textarea" rows="32" cols="105"><?php echo $resultSet[0]->CONTENTSPLAIN; ?></textarea>

</body>

</html>