/[drupal]/contributions/modules/filerequest/downloadhandler.php
ViewVC logotype

Diff of /contributions/modules/filerequest/downloadhandler.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3.2.5, Sun Mar 26 21:54:53 2006 UTC revision 1.3.2.6, Wed Mar 29 19:31:10 2006 UTC
# Line 26  Line 26 
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
# Line 73  function __fr_report_leech() { Line 73  function __fr_report_leech() {
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    

Legend:
Removed from v.1.3.2.5  
changed lines
  Added in v.1.3.2.6

  ViewVC Help
Powered by ViewVC 1.1.2