[insert_php]
require “./apttools/aptmods.inc”;
$contents = getparams(); # read the input params
if (time() > $contents[expire]) { # link expired or not valid
print “Sorry, but there seems to be a problem with the file that you are trying to download.
Click here to return to our Templates page and try again or click on the Contact Us link at the bottom of the page to report a problem.”;
logdownload(“Download page reached with invalid or missing parameters”);
}
else {
$itemarray = getdownload($contents[id]);
$link = _DOWNLOADLINK . $_SERVER[‘QUERY_STRING’];
print “Thank you for requesting a download from the APT Systems web site. Click on the link below to download your file.”;
print “
“;
}
[/insert_php]