Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Download and Redirect
#5
what I have used for selling ebooks on ebay years ago.

PHP Code:
<?php

$youremail 
"youremails@emaildomain.com";
$downloadfile "atkins_ebooks.zip";
$hostname gethostbyaddr($REMOTE_ADDR);
$date date("D, m-d-y");
$time date("g:i A");


extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
$nilc=explode(".",basename($download));
if(
$download!=""){
$name=strtolower($download);


mail($youremail,"ebay customer downloaded $downloadfile","Ebay Customer downloaded $downloadfile \n\n IP: $REMOTE_ADDR ($hostname) \n $HTTP_USER_AGENT on $date at $time \n From: $HTTP_REFERER \n\n\n NAME: $name","From: $name <$email>") or die("email error");
echo 
"<BODY BGCOLOR=#000000 TEXT=blue LINK=blue VLINK=blue ALINK=blue></BODY><FONT FACE=fixedsys><center>";
echo 
"Dear Customer, <br>";
echo 
"Thank you for purchasing my products from ebay :) <p>";
echo 
"Here is your download. <p>";
echo 
"<a href=$downloadfile><font size=+10>Here</a></font>";

} else {

mail($youremail,"Access Denied to $downloadfile","Access Denied to $downloadfile \n\n IP: $REMOTE_ADDR ($hostname) \n $HTTP_USER_AGENT on $date at $time \n From: $HTTP_REFERER","From: $name <$email>") or die("email error");
echo 
"<BODY BGCOLOR=#000000 TEXT=blue LINK=blue VLINK=blue ALINK=blue></BODY><FONT FACE=fixedsys><center>";
echo 
"Access Denied";

}


?>
Reply


Messages In This Thread
Download and Redirect - by Austneal - 02-15-2010, 08:44 PM
RE: Download and Redirect - by Jordan L. - 02-16-2010, 02:23 AM
RE: Download and Redirect - by Austneal - 02-16-2010, 06:45 AM
RE: Download and Redirect - by Austneal - 02-16-2010, 07:32 PM
RE: Download and Redirect - by ELY_M - 02-17-2010, 01:19 PM
RE: Download and Redirect - by Omniscient - 02-17-2010, 01:48 PM
RE: Download and Redirect - by Jordan L. - 02-17-2010, 03:13 PM
RE: Download and Redirect - by Austneal - 03-18-2010, 09:44 PM
RE: Download and Redirect - by SLiM - 04-13-2010, 10:08 PM

Forum Jump:


Users browsing this thread: 4 Guest(s)