View Single Post
  #1  
Old 18th June 2013, 13:08
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default [MOD] Who downloaded and what in LOG
Hi ... today i will show you a simple mod. What it does?
Simple: this mod creates a Site Log entry every time a user downloads a torrent file.

Check this screenshot:
Click the image to open in full size.

Open download.php and find these lines:

PHP Code:
header('Content-Disposition: attachment; filename="'.$torrent['filename'].'"');
header("Content-Type: application/x-bittorrent"); 
add this code below

PHP Code:
write_log(<font color='orange'>Torrent File:</font> <a href=\"".$site_config['SITEURL']."/details.php?id=$id\"><b>($row[name])</a> was downloaded by <a href=\"".$site_config['SITEURL']."/userdetails.php?id=".$CURUSER['id']."\"><b>".$CURUSER['username']."</a>."); 
That's all ... hope you like it.
Enjoy!
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
Marco (6th February 2014)