Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #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)
  #2  
Old 12th July 2013, 10:04
anduku anduku is offline
Member
 
Join Date: Oct 2009
P2P
Posts: 6
Default
This is useless.
On a torrentsite that's bigger than yours, this will mean some useless mysql queries -> increase load, useless bites of data -> bigger mysql db with no reason -> bigger load when you select values from mysql.
So yeah, is useless.
Reply With Quote
  #3  
Old 4th April 2015, 18:40
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Thumbs down
true usless mod
Reply With Quote
Reply

Tags
downloaded , log , mod

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 00:35. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.