Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   Extra security for your tracker (http://www.bvlist.com/showthread.php?t=1328)

sammygo 4th November 2008 13:30

Extra security for your tracker
 
Version: TS v1.3.x Series and TS V2.5 Series
Notice: Below changes will stop passkey cheats

Open usercp.php
find
Code:

tr("Reset passkey","Note: In order to reset your current passkey, any active torrents must be downloaded again to continue leeching/seeding.", 1);

replace with


Code:

$seedcheck = sql_query("SELECT userid FROM peers WHERE userid = ".sqlesc($CURUSER['id']));
if (mysql_num_rows($seedcheck) >= 1 && get_user_class() < UC_MODERATOR) {
        tr("Reset passkey","DISABLED! You must stop your active torrents before reset your passkey.", 1);
}else {
tr("Reset passkey"," Note: In order to reset your current passkey, any active torrents must be downloaded again to continue leeching/seeding.", 1);
}



All times are GMT +2. The time now is 12:20.

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