include_once('/home/thedegre/includes/tdp.inc.php'); $download_dir = '/home/tdegreec/download/'; $email_file = '/home/tdegreec/download/email.txt'; $nocontact_file = '/home/tdegreec/download/nocontact2.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.downloads']) { $_POST['email'] = $_COOKIE['thedegree.com.downloads']; $nosave = true; } if (empty ($_POST['privacy'])) { file_put_contents ($nocontact_file, $_POST['email']."\t".$_POST['name']."\t".$_POST['occupation']."\n", FILE_APPEND); } 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']."\t".$_POST['name']."\t".$_POST['occupation']."\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; exit; } } ?> =''?>
Thank you.
}?>There was an error in your submission:
Beat the Bad Economy By Getting Your College Degree in ONE YEAR or LESS." GET COLLEGE CREDIT FOR WHAT YOU ALREADY KNOW.