| 26 |
along with this program; if not, write to the Free Software |
along with this program; if not, write to the Free Software |
| 27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 28 |
*/ |
*/ |
| 29 |
/* $Id: downloadhandler.php,v 1.4 2006/07/03 14:03:54 elmuerte Exp $ */ |
/* $Id: downloadhandler.php,v 1.4.2.1 2006/08/02 10:25:40 elmuerte Exp $ */ |
| 30 |
|
|
| 31 |
|
|
| 32 |
define("READBUFFER_SIZE", 4096); // read buffer size |
define("READBUFFER_SIZE", 4096); // read buffer size |
| 73 |
function __fr_report_leech() { |
function __fr_report_leech() { |
| 74 |
global $__fr_reporting_leech; |
global $__fr_reporting_leech; |
| 75 |
$__fr_reporting_leech = true; |
$__fr_reporting_leech = true; |
| 76 |
register_shutdown_function("__fr_delayed_report"); |
//register_shutdown_function("__fr_delayed_report"); |
| 77 |
} |
} |
| 78 |
|
|
| 79 |
function __fr_delayed_report() { |
function __fr_delayed_report() { |
| 80 |
global $__fr_reporting_leech; |
global $__fr_reporting_leech; |
| 81 |
if (!$__fr_reporting_leech) return; |
if (!$__fr_reporting_leech) return; |
| 82 |
if (!function_exists('watchdog')) return; |
if (!function_exists('watchdog')) return; |
| 83 |
watchdog('download leech', "File: <i>".$_GET["file"]."</i><br />\nSource: <i>".$_SERVER["HTTP_REFERER"]."</i>", WATCHDOG_NOTICE); |
watchdog('download leech', "File: ".$_GET["file"], WATCHDOG_NOTICE); |
| 84 |
} |
} |
| 85 |
|
|
| 86 |
/** |
/** |