| 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.3.2.4 2006/03/26 19:36:00 elmuerte Exp $ */ |
/* $Id: downloadhandler.php,v 1.3.2.5 2006/03/26 21:54:53 elmuerte Exp $ */ |
| 30 |
|
|
| 31 |
|
|
| 32 |
define("READBUFFER_SIZE", 4096); // read buffer size |
define("READBUFFER_SIZE", 4096); // read buffer size |
| 73 |
function __fr_delayed_report() { |
function __fr_delayed_report() { |
| 74 |
global $__fr_reporting_leech; |
global $__fr_reporting_leech; |
| 75 |
if (!$__fr_reporting_leech) return; |
if (!$__fr_reporting_leech) return; |
| 76 |
if (!function_exists('watchdog')) { |
if (!function_exists('watchdog')) return; |
|
chdir(__DRUPAL_BASE_DIR); |
|
|
global $db_url, $db_prefix, $base_url, $conf; |
|
|
include_once('includes/bootstrap.inc'); |
|
|
if (!function_exists('watchdog')) return; |
|
|
} |
|
| 77 |
watchdog('download leech', "File: <i>".$_GET["file"]."</i>", WATCHDOG_NOTICE, '<a href="'.$_SERVER["HTTP_REFERER"].'">referer</a>'); |
watchdog('download leech', "File: <i>".$_GET["file"]."</i>", WATCHDOG_NOTICE, '<a href="'.$_SERVER["HTTP_REFERER"].'">referer</a>'); |
| 78 |
} |
} |
| 79 |
|
|