|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/smartny/ |
Upload File : |
<!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 name="abstract" content="Smart Communications is a software developer for Plain English
documentation with consultants and plain English writing services.">
<meta name="keywords" content="MAXit,Plain English,Plain Writing, Government,
text mining, Writer Training, PLAIN, Translation, FmHA, National Institutes of Health, Affordable Healthcare Act, Obamacare, Healthcare Exchanges, healthcare.gov,Federal Register, dictionaries">
<meta name="owner" content="Smart Communications">
<meta name="security" content="public">
<meta name="review" content="2013 05-05">
<meta name="updated" content="2013 05-05">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unsubscribe Page</title>
</head>
<body>
<?php
$clear = "@@@";
$cmail = "";
// Start of script
$filename = 'MailHandler/unsubscribe.dat'; // Data file path
// echo $mail;
$len = strlen($mail);
$listID = substr($mail,0,
3);
//echo $listID;
$cmail = substr($mail,3,$len-3);
$mail = "";
$mail = $cmail;
// echo $mail;
// $listID="@@@"; // clear
if ( strcasecmp( $listID, '@@@' ) == 0 )
{
$fp = fopen($filename, "w");
fclose($fp);
return;
}
// echo $filename;
$today = date("|Y-m-d H:i\r\n");
// echo $today;
// Get the saurce XXXXX for to ID see html
$mail = (isset($_GET['mail'])) ? strip_tags($_GET['mail']) : NULL;
// echo $mail;
if($mail != NULL)
{
$remove = $mail;
$remove .+ $listID;
$remove .= $today;
}
else {
$remove = "Error: ";
$remove .+ $listID;
$remove .= $today;
}
$fp = fopen($filename, 'a');
if (flock($fp, LOCK_EX)) { // exclusive lock will blocking wait until obtained
fwrite($fp, $remove);
flock($fp, LOCK_UN); // unlock
} else {
echo "failed to obtain a file lock";
}
fclose($fp);
$success_url = file_get_contents ('thankyou.html');
$newstring = str_replace("*address*", $cmail, $success_url, $count);
$success_url = $newstring;
echo $success_url;
?>
</body>
</html>