Sindbad~EG File Manager
<?php
// This file is for downloading the Trial Version, but download.php leads here in any case,
// so all downloads but the Trial Version need to be redirected before headers are printed.
function writeRed($errmsg)
{ echo "<P> <em><font color=\"#FF0000\">";
echo $errmsg;
echo "</font></em></P>";
}
function validate_email($email)
{ // Create the syntactical validation regular expression
$regexp = "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$";
// Presume that the email is invalid
$valid = 0;
// Validate the syntax
if (eregi($regexp, $email))
{ //list($username,$domaintld) = split("@",$email);
// Validate the domain
//if (getmxrr($domaintld,$mxrecords)) // works on PacWeb server, but not on localhost
$valid = 1;
}
else
$valid = 0;
return $valid;
}
$Email = trim($_POST['Email']);
$Columbus = trim($_POST['Columbus']);
$ProductType= strip_tags($ProductType);
$WhichDisk = 7;
$Email = strip_tags($Email);
if($Columbus != "1492")
{ // reject robots, and humans who didn't fill out the captcha correctly}
header("Location:download.php");
}
if(!is_null($Email)) // && validate_email($Email))
{ session_start();
$_SESSION['OK'] = "ok";
$_SESSION['Email'] = $Email;
$_SESSION['WhichDisk'] = "7";
$_SESSION['ProductType'] = "trial";
mail("profbeeson@gmail.com","MathXpert download","$Email downloaded MathXpert");
header("Location:Install/SaveOrRun4.php");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- DW6 -->
<?php include ('include/head.php'); ?>
<body onmousemove="closesubnav(event);">
<?php include ('include/body.php'); ?>
<?php
echo "<div class=\"style1\" id=\"pageName\">";
echo "<h2>Download MathXpert Calculus Assistant";
?>
<img alt="MathXpert logo" src="TransparentMathXpertLogo.gif" height="50" width="118"/>
</h2>
<p>
</p>
<p> We will not share your email address with anyone else, nor will we send you more than one unsolicited email, and probably not even that. </p>
<form action= <?php echo $_SERVER['PHP_SELF']."?state=Edit"?> method="post" enctype="multipart/form-data" name="form1">
<?php
if(!is_null($Email) && $_GET['state'] == "Edit")
{ writeRed("You must enter a valid email address.");
}
?>
<table width="500" border="0">
<tr>
<td width="100"> Email address:</td>
<td width="350"> <input size="20" type="text" name="Email" value=<?php echo $Email ?>></td>
</tr>
</table>
<p></p>
<input type="hidden" name = "ProductType" value = <?php echo $ProductType ?> >
<input type="hidden" name = "WhichDisk" value = <?php echo $WhichDisk ?> >
<input type="submit" name="Submit64" value="Download now for Windows">
<!-- <input type="submit" name="SubmitMac" value = "Download Now for Mac OS X"> -->
</p>
</form>
</div>
<?php include ('include/footer.php'); ?>
</body>
</html>
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists