TorrentFlux.com Hey, OppTupacShakur, you have 11 messages, 0 are new.
06-27-2007, 12:57:41
Home Help Search Profile Logout donate chat
News:


+  TorrentFlux Forums
|-+  Code Hacks and Tools
| |-+  TorrentFlux 2.1 Hacks
| | |-+  Skip hashcheck
« previous next »
Pages: [1] Go Down Reply Notify of replies Send this topic Print
Author Topic: Skip hashcheck  (Read 1534 times)
D_V
Newbie
*
Offline Offline

Posts: 9



View Profile Personal Message (Offline)
« on: 04-18-2006, 12:51:30 » Reply with quote

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.
Report to moderator   Logged
mb.Tab
Hero Member
*****
Offline Offline

TF Base: Linux 2.x
Posts: 556


Gotta love my Avatar !!

169560841 mb.Tab@web.de andreas11b



View Profile WWW Email Personal Message (Offline)
« Reply #1 on: 04-18-2006, 13:56:41 » Reply with quote

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

mb.Tab
Report to moderator   Logged

D_V
Newbie
*
Offline Offline

Posts: 9



View Profile Personal Message (Offline)
« Reply #2 on: 04-18-2006, 14:11:53 » Reply with quote

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

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

Posts: 16



View Profile Email Personal Message (Offline)
« Reply #3 on: 04-27-2006, 13:18:18 » Reply with quote

thanks a lot!

works fine on tf 2.1 final

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

Report to moderator   Logged

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

Posts: 118



View Profile Personal Message (Offline)
« Reply #4 on: 04-29-2006, 19:19:59 » Reply with quote

works fine for me...

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

Posts: 6



View Profile Email Personal Message (Offline)
« Reply #5 on: 05-01-2007, 10:47:10 » Reply with quote

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
Report to moderator   Logged
Dane
Newbie
*
Offline Offline

Posts: 2



View Profile Personal Message (Offline)
« Reply #6 on: 05-12-2007, 18:48:48 » Reply with quote

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

Posts: 131

114552

View Profile WWW Personal Message (Offline)
« Reply #7 on: 05-12-2007, 19:50:58 » Reply with quote

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

Posts: 2



View Profile Personal Message (Offline)
« Reply #8 on: 05-12-2007, 20:59:11 » Reply with quote

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 &";
Report to moderator   Logged
Pages: [1] Go Up Reply Notify of replies Send this topic Print 
« previous next »
Jump to:  


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