Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   [MOD] Who downloaded and what in LOG (http://www.bvlist.com/showthread.php?t=9236)

Chez 18th June 2013 13:08

[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:
http://i.imgur.com/Aft9IE2.png

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!

anduku 12th July 2013 10:04

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.

WhyMe 4th April 2015 18:40

true usless mod:lol:


All times are GMT +2. The time now is 23:37.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.