Sindbad~EG File Manager

Current Path : /usr/home/beeson/public_html/helpwithmath_old/italian/italian/
Upload File :
Current File : /usr/home/beeson/public_html/helpwithmath_old/italian/italian/Download2.php

<?php 
$ProductType= $_POST['ProductType'];
$WhichDisk = $_POST['WhichDisk'];
if(is_null($WhichDisk))
   $WhichDisk = "7";
if(is_null($ProductType) || $ProductType == "individual" || $ProductType == "lab")
   header("Location: purchase.php?WhichDisk=$WhichDisk&ProductType=$ProductType");  // redirect to purchase;  this page only deals with the trial version
if($ProductType=="paid")
   header("Location: Download3.php?ProductType=$ProductType");  // to enter a serial number and THEN download if it is allowed.   
?>   
<!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 
require_once('GetSerialNumber.php');
$TrialSerialNumber = $_GET['TrialSerialNumber'];
$SerialNumber = $_GET['SerialNumber'];
if($WhichDisk == "7")
   $WhichAssistant = "Calculus";
else if ($WhichDisk == "3")
   $WhichAssistant = "Precalculus";
else
   $WhichAssistant = "Algebra";


if($ProductType == "trial" && is_null($TrialSerialNumber))
   { $TrialSerialNumber = getTrialSerialNumber($WhichDisk);  
     $state = 2;
   }

echo  "<div class=\"style1\" id=\"pageName\">";
echo   "<h2>Download MathXpert $WhichAssistant Assistant Trial Version";
?>
	     <img alt="MathXpert logo" src="TransparentMathXpertLogo.gif" height="50" width="118"/>
	</h2>
   <p>
<?php 
   if($ProductType == "trial") 
       { echo "<p>Save this serial number to enter during the installation of MathXpert: </p>";
		 echo "<input type=\"text\" name=\"TrialSerialNumber\" value = $TrialSerialNumber readonly >";
	   }     
?>
   </p>
   <form action="Install/SaveOrRun.html?<?php echo $TrialSerialNumber?>" method="post" enctype="multipart/form-data" name="form1">
   
	  <p></p>
		<input type="submit" name="Submit" value="Download Now">         
		</p>
   </form>
  </div>   




<?php include ('include/footer.php'); ?>
</body>
</html>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists