TorrentFlux.com Welcome, Guest. Please login or register.
03-19-2010, 18:03:10
Home Help Search Login Register donate
TorrentFlux Home | TorrentFlux Hosting

+  TorrentFlux Forums
|-+  Code Hacks and Tools
| |-+  TorrentFlux 2.1 Hacks
| | |-+  Skip hashcheck
« previous next »
Pages: [1] Go Down Print
Author Topic: Skip hashcheck  (Read 3823 times)
D_V
Newbie
*
Offline Offline

Posts: 9



View Profile
« on: 04-18-2006, 11:51:30 »

This will allow you to skip the hashcheck when starting a torrent for seeding (the, checking existing data)
Only works with bittornado.

In startpop.php, find.
Code:
        <tr>
            <td colspan="4" align="center"><div ID="sharekiller" align="center" style="visibility:hidden;">Keep seeding until Sharing is: <input type="Text" name="sharekill" maxlength="4" size="4" value="<?php echo $cfg["sharekill"]; ?>">%<font class="tiny">  (0% will keep seeding)</font>&nbsp;</div></td>
        </tr>

Add after:
Code:
        <tr>
            <td colspan="4" align="center"><div ID="skiphashcheck" align="center" style="visibility:visible;">Skip Hash Check <input type="checkbox" name="skiphashcheck"></div></td>
        </tr>


In index.php, find
Code:
        $maxport = getRequestVar('maxport');
        if (empty($maxport))
        {
            $maxport = $cfg["maxport"];
        }

Add after:
Code:
        $skiphashcheck = $_POST['skiphashcheck'];
        if ($skiphashcheck == "on"){
                $checkhash = "0";
                }
        else{
                $checkhash = "1";
                }

Find:
Code:
$command = $runtime." ".$sharekill." ".$cfg["torrent_file_path"].$alias.".stat ".$owner." --responsefile '".$cfg["torrent_file_path"].$torrent."' --display_interval 5 --max_download_rate ". $drate ." --max_upload_rate ".$rate." --max_uploads ".$maxuploads." --minport ".$minport." --maxport ".$maxport." --rerequest_interval ".$rerequest." --super_seeder ".$superseeder;

Add after:
Code:
$command .= " --check_hashes " . $checkhash;

Save the files, and it should be running...
When you start a torrent with the advanced start dialog, there will be a new check box "Skip hashceck", it is default to not skip hashcheck.
Logged
mb.Tab
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 574


Gotta love my Avatar !!





View Profile WWW
« Reply #1 on: 04-18-2006, 12:56:41 »

Thanks for porting it or what so ever...will try it out Smiley

mb.Tab
Logged

D_V
Newbie
*
Offline Offline

Posts: 9



View Profile
« Reply #2 on: 04-18-2006, 13:11:53 »

It was more like inspired of the other one...

Only thing reused was the checkbox.. he he
« Last Edit: 04-18-2006, 15:42:51 by D_V » Logged
derders
Newbie
*
Offline Offline

Posts: 16



View Profile
« Reply #3 on: 04-27-2006, 12:18:18 »

thanks a lot!

works fine on tf 2.1 final

yet I can restart my pc every day calmed without  to puking :-)

Logged

Debian Sarge OS
Torrentflux 2.0beta
Xampp - for apache,mysql,php
localhost server
deags
Full Member
***
Offline Offline

Posts: 121



View Profile
« Reply #4 on: 04-29-2006, 18:19:59 »

works fine for me...

although i remodled my start page tomake it fit in nicely Smiley
Logged
sharpie1664
Newbie
*
Offline Offline

Posts: 13



View Profile
« Reply #5 on: 05-01-2007, 09:47:10 »

i cant get this to work on torrentflux 2.3 the skip hash box shows up but when i try and start a torrent up it says download failed
is there something i am missing can someone help

thanks in advance
Logged
Dane
Newbie
*
Offline Offline

Posts: 2



View Profile
« Reply #6 on: 05-12-2007, 17:48:48 »

Added it to TF 2.3 and it works for me
Logged
Searcher
Full Member
***
Offline Offline

Posts: 131



View Profile WWW
« Reply #7 on: 05-12-2007, 18:50:58 »

forget the skip hash box, try the
Code:
$command .= " --check_hashes 0";
first
Logged
Dane
Newbie
*
Offline Offline

Posts: 2



View Profile
« Reply #8 on: 05-12-2007, 19:59:11 »

forget the skip hash box, try the
Code:
$command .= " --check_hashes 0";
first

but make sure to add it before :
Code:
line 254: $command .= " ".escapeshellarg($cfg["cmd_options"])." > /dev/null &";
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC Powered by PHP