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:
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!