| 1 |
<?php |
<?php |
| 2 |
// $Id: throttle.php,v 1.2.2.2 2006/03/29 19:31:10 elmuerte Exp $ |
// $Id: throttle.php,v 1.3 2006/07/03 14:03:54 elmuerte Exp $ |
| 3 |
|
|
| 4 |
define("__DRUPAL_BASE_DIR", dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR); |
define("__DRUPAL_BASE_DIR", dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR); |
| 5 |
|
|
| 31 |
__fr_process_download($config["filename"], preg_match("#(\?|&)download(&|$)#", $_SERVER["REQUEST_URI"]), $config["watermark"]); |
__fr_process_download($config["filename"], preg_match("#(\?|&)download(&|$)#", $_SERVER["REQUEST_URI"]), $config["watermark"]); |
| 32 |
if ($__fr_reporting_leech) { |
if ($__fr_reporting_leech) { |
| 33 |
chdir(__DRUPAL_BASE_DIR); |
chdir(__DRUPAL_BASE_DIR); |
| 34 |
@require('includes/bootstrap.inc'); |
require('includes/bootstrap.inc'); |
| 35 |
|
drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE); |
| 36 |
|
__fr_delayed_report(); |
| 37 |
} |
} |
| 38 |
exit(); |
exit(); |
| 39 |
} |
} |
| 45 |
unset($filepath); |
unset($filepath); |
| 46 |
$_SERVER['SCRIPT_NAME'] = dirname(dirname(dirname($_SERVER['SCRIPT_NAME'])))."/index.php"; |
$_SERVER['SCRIPT_NAME'] = dirname(dirname(dirname($_SERVER['SCRIPT_NAME'])))."/index.php"; |
| 47 |
chdir(__DRUPAL_BASE_DIR); |
chdir(__DRUPAL_BASE_DIR); |
| 48 |
$_GET["q"] = "system/files"; |
$_GET["q"] = "system/files/".$_GET["file"]; |
| 49 |
require("index.php"); |
require("index.php"); |
|
|
|
|
?> |
|