$download_dir = '/home/tdegreec/download/'; $email_file = '/home/tdegreec/download/email.txt'; function validate_email ($email_address) { return (preg_match("/^[0-9a-z]+(([\.\-_])[0-9a-z]+)*@[0-9a-z]+(([\.\-])[0-9a-z-]+)*\.[a-z]{2,4}$/i", $email_address))?1:0; } if ($_POST['submit']) { if ($_COOKIE['thedegree.com.download']) { $_POST['email'] = $_COOKIE['thedegree.com.download']; $nosave = true; } if (!strpos ('http://www.thedegree.com'.$_SERVER['PHP_SELF'], $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'])) { $err[] = 'Remote submission to this page is prohibited.'; } if (!$nosave) { if (!validate_email($_POST['email'])) { $err[] = 'Invalid email address'; } } if (empty ($_POST['file'])) { $err[] = 'No file selected'; } if (empty ($err)) { if (!$nosave) { file_put_contents ($email_file, $_POST['email']."\n", FILE_APPEND); } header("Cache-Control: no-cache, must-revalidate"); header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); $v = $_POST['file']; header('Content-type: application/pdf'); header("Content-Disposition: attachment; filename=\"$v\""); readfile($download_dir.$v); $success = true; } } ?>
Feel free to share the link to the download as www.TheDegree.com to your friends and colleagues wanting these books.
However, do not forward your copy of the book as that would be violation of the copyright.
LESS THAN ONE YEAR TO YOUR ACCREDITED COLLEGE DEGREE...Associate, Bachelor, Masters and More.
|
Thank you.
}?>There was an error in your submission: