/[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.4.2.1, Wed Aug 2 10:25:40 2006 UTC revision 1.4.2.2, Thu Aug 31 19:10:06 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.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
# Line 73  function __fr_is_image_file($filename) { Line 73  function __fr_is_image_file($filename) {
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  /**  /**

Legend:
Removed from v.1.4.2.1  
changed lines
  Added in v.1.4.2.2

  ViewVC Help
Powered by ViewVC 1.1.2