> - send to ... e-mails (which will immediately send out emails with the link
> to the download - as requested by Kim)
Ah yes, I added this to my version of the old version too. The main bit
being:
>>>result.php line 149 - $allurls contains one or more tickets, newline
>>>separated
//Mail out...
if(!empty($_REQUEST["mailto"]))
{
$mailto = str_replace(array(";", "\n"), ",", $_REQUEST["mailto"]);
mail($mailto, "Files available to download from " . $_SERVER["SERVER_NAME"],
"This message was auto-generated by dl.php\n" .
"The download ticket system has made the following files
available:\n\n$allurls\n" .
($DATA["expire"] == 0 ? "" : "Links will expire after " .
$_REQUEST["hr"] . " hours.\n") .
($DATA["expireLast"] == 0 ? "" : "Links will expire after " .
$_REQUEST["hra"] . " hours from first download.\n") .
($DATA["expireDln"] == 0 ? "" : "Links will be valid for " .
$_REQUEST["hra"] . " downloads.\n") .
($DATA["lockip"] == "no" ? "" : "Links may only be downloaded on one
computer.\n") ,
"From: $fromAddr");
}
The use of "$allurls" is because I also added the ability to upload
multiple files at once and send all the tickets in the one mail. I'm
not sure if "mailto" should be on the main upload form or if this
feature should be triggered by a second form after the upload is done.
As you say, things are starting to look a tad cramped on there.
TIM
--
Tim Booth <[email protected]>
NERC Environmental Bioinformatics Centre
at CEH Oxford
+44 1865 281 975