View Single Post
  #7  
Old 24th December 2009, 12:31
benjaminbih benjaminbih is offline
Senior Member
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
open /include/functions.php find:
PHP Code:
tr("Double Upload""<input type='checkbox' name='doubleupload'" . (($row["doubleupload"] == "yes") ? " checked='checked'" "" ) . " value='1' /> Double Upload (upload stats are recorded double)"1); 
add before:
PHP Code:
tr("Svilver download""<input type='checkbox' name='silver'" . (($row["silver"] == "yes") ? " checked='checked'" "" ) . " value='1' /> Only half download stats be recorded fo this torrent"1); 
in takeupload.php find:
PHP Code:
if ($_POST['free'] == 1
$free 'yes';
else
$free 'no'
below add:
PHP Code:
if ($_POST['silver'] == 1
$silver 'yes';
else
$silver 'no'
stilli in takeupload find in the line with mysql_insert this:
PHP Code:
numfilestypedescrori_descrcategorysave_asaddedlast_actionnfoimageurlfree
add after free,
PHP Code:
silver
and find in the near:
PHP Code:
'$free''$sticky'
and add the silver var so it looks like that:
PHP Code:
'$free''$silver''$sticky'
Now you can upload a new torrent and test if the silver setting takes effect.

@elvira, edit and complete the mod in the first post.
Reply With Quote