Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #1  
Old 15th August 2008, 17:15
jernej1's Avatar
jernej1 jernej1 is offline
Member
 
Join Date: Jan 2008
Posts: 4
Angry Torrentstrike Fullymodded v1.0 Seedbox problem!Help!
Im using This code Torrentstrike Fullymodded v1.0. And I got torrentflux,I upload torrent in tracker, and In torrentflux is 100% and "seeding" In tracker is seeders 0. Where is the problem?

Im from slovenia, so my english is bad
Help please!
Reply With Quote
The Following User Says Thank You to jernej1 For This Useful Post:
nicukent (30th January 2013)
  #2  
Old 15th August 2008, 22:44
NatashaRhea's Avatar
NatashaRhea NatashaRhea is offline
Senior Member
 
Join Date: Aug 2008
Posts: 48
Default seedbox
some sources require one log on mainly windows i have had problems with torrent flux on few sources or might be configurations error
Reply With Quote
The Following User Says Thank You to NatashaRhea For This Useful Post:
nicukent (30th January 2013)
  #3  
Old 18th July 2012, 10:35
denno's Avatar
denno denno is offline
Senior Member
 
Join Date: Feb 2009
United Kingdom
Posts: 18
Default reply
replace this in announce
Code:
$rz = mysql_query("SELECT id, uploaded, downloaded, class, parked FROM users WHERE ip='$ip' AND enabled = 'yes' ". (ENA_PASSKEY ? "AND passkey=$passkey ":''). "ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2");
   if ($MEMBERSONLY && mysql_num_rows($rz) == 0)
      err("Unrecognized host ($ip). Please go to $BASEURL to sign-up or login.");
   $az = mysql_fetch_assoc($rz);
   $userid = $az["id"];
to this
Code:
$rz = mysql_query("SELECT id, uploaded, downloaded, class, parked FROM users WHERE enabled = 'yes' ". (ENA_PASSKEY ? "AND passkey=$passkey ":''). "ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2");
//    if ($MEMBERSONLY && mysql_num_rows($rz) == 0)
//        err("Unrecognized host ($ip). Please go to $BASEURL to sign-up or login.");
   $az = mysql_fetch_assoc($rz);
   $userid = $az["id"];if useint utorrent webui
and details.php wereotheres are top add

Code:
    elseif (preg_match("/^utorrent webui (.+)$/", $httpagent, $matches))
          return "utorrent webui/$matches[1]";
       else

Last edited by Krypto; 19th July 2012 at 11:50. Reason: Removed as you blatantly copy/pasted entire site without permission
Reply With Quote
The Following User Says Thank You to denno For This Useful Post:
nicukent (30th January 2013)
  #4  
Old 19th December 2012, 19:10
Crazzy's Avatar
Crazzy Crazzy is offline
Member
 
Join Date: May 2009
P2P
Posts: 14
Default
i added this code
elseif (preg_match("/^utorrent webui (.+)$/", $httpagent, $matches))
return "utorrent webui/$matches[1]";
else
and i have error tracker sending invalid data NULL
Reply With Quote
The Following User Says Thank You to Crazzy For This Useful Post:
nicukent (30th January 2013)
  #5  
Old 19th December 2012, 22:09
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
@announce

only at this like you need to mod for seebox

PHP Code:
//// Up/down stats ////////////////////////////////////////////////////////////

if (!isset($self))
{
    if(
ENA_PASSKEY && ENA_PASSKEYLIMITCONNECTIONS)
    {
        
$valid = @mysql_num_rows(@mysql_query("SELECT id FROM peers WHERE torrent=$torrentid AND passkey=$passkey"));
        if (
$valid >= && $seeder == 'no')
            
err("Connection limit exceeded! You may only leech from one location at a time.");
        if ((
$valid >= && $seeder == 'yes') || ($valid===FALSE))
            
err("Connection limit exceeded!");
    }
     
$rz mysql_query("SELECT id, uploaded, downloaded, class, parked FROM users WHERE enabled = 'yes' ". (ENA_PASSKEY "AND passkey=$passkey ":''). "ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2");
//    if ($MEMBERSONLY && mysql_num_rows($rz) == 0)
//        err("Unrecognized host ($ip). Please go to $BASEURL to sign-up or login.");
    
$az mysql_fetch_assoc($rz);
    
$userid $az["id"];

//    if ($left > 0 && $az["class"] < UC_VIP) 
@benc

replace with


PHP Code:
<?

/*

Basic knowledge of how bencoding works is assumed. Details can be found
at <http://bitconjurer.org/BitTorrent/protocol.html>.



How to use these functions:

An "object" is defined to be an associative array with at least the keys
"type" and "value" present. The "type" key contains a string which is
one of "string", "integer", "list" or "dictionary". The "value" key
contains the appropriate thing, either a string, an integer, a list which
is just a flat array, or a dictionary, which is an associative array. In
the case of "list" and "dictionary", the values of the contained array
are agaib "objects".



Description of the functions:



string benc($obj);

Takes an object as argument and returns the bencoded form of it as string.
Returns the undefined/unset value on failure.

Examples:

benc(array(type => "string", value => "spam"))        returns "4:spam".
benc(array(type => "integer", value => 3))        returns "i3e".
benc(array(type => "list", value => array(
    array(type => "string", value => "spam"),
    array(type => "string", value => "eggs")
)))
                        returns "l4:spam4:eggse"

benc(array(type => "dictionary", value => array(
    cow => array(type => "string", value => "moo"),
    spam => array(type => "string", value => "eggs"),
)))
                    returns "d3:cow3:moo4:spam4:eggse"




object bdec($str);

Returns the object that results from bdecoding the given string. Note
that those aren't real php objects, but merely "objects" as described
above. The returned objects have two additional keys: "string" and
"strlen". They represent the bencoded form of the returned objects, as
it was given in the original bencoded string. Use this to extract
certain portions of a bencoded string without having to re-encode it
(and avoiding possible re-ordering of dictionary keys). $x["strlen"]
is always equivalent to strlen($x["string"]). The "string" attribute
of the top-level returned object will be the same as the original
bencoded string, unless there's trailing garbage at the end of the
string.

This function returns the undefined/unset value on failure.

Example:

bdec("d4:spaml11:spiced pork3:hamee")
    returns this monster:

Array
(
    [type] => dictionary
    [value] => Array
        (
            [spam] => Array
                (
                    [type] => list
                    [value] => Array
                        (
                            [0] => Array
                                (
                                    [type] => string
                                    [value] => spiced pork
                                    [strlen] => 14
                                    [string] => 11:spiced pork
                                )

                            [1] => Array
                                (
                                    [type] => string
                                    [value] => ham
                                    [strlen] => 5
                                    [string] => 3:ham
                                )

                        )

                    [strlen] => 21
                    [string] => l11:spiced pork3:hame
                )

        )

    [strlen] => 29
    [string] => d4:spaml11:spiced pork3:hamee
)





object bdec_file($filename, $maxsize);

Opens the specified file, reads its contents (up to the specified length),
and returns whatever bdec() returns for those contents. This is a simple
convenience function.

*/

function benc($obj) {
    if (!is_array($obj) || !isset($obj["type"]) || !isset($obj["value"]))
        return;
    $c = $obj["value"];
    switch ($obj["type"]) {
        case "string":
            return benc_str($c);
        case "integer":
            return benc_int($c);
        case "list":
            return benc_list($c);
        case "dictionary":
            return benc_dict($c);
        default:
            return;
    }
}
 function hash_where_arr($name, $hash_arr) {
        $new_hash_arr = Array();
        foreach ($hash_arr as $hash) {
                $new_hash_arr[] = sqlesc((urldecode($hash)));
        }
        return $name." IN ( ".implode(", ",$new_hash_arr)." )";
}
function benc_str($s) {
    return strlen($s) . ":$s";
}

function benc_int($i) {
    return "i" . $i . "e";
}

function benc_list($a) {
    $s = "l";
    foreach ($a as $e) {
        $s .= benc($e);
    }
    $s .= "e";
    return $s;
}

function benc_dict($d) {
    $s = "d";
    $keys = array_keys($d);
    sort($keys);
    foreach ($keys as $k) {
        $v = $d[$k];
        $s .= benc_str($k);
        $s .= benc($v);
    }
    $s .= "e";
    return $s;
}

function bdec_file($f, $ms) {
    $fp = fopen($f, "rb");
    if (!$fp)
        return;
    $e = fread($fp, $ms);
    fclose($fp);
    return bdec($e);
}

function bdec($s) {
    if (preg_match('/^(\d+):/', $s, $m)) {
        $l = $m[1];
        $pl = strlen($l) + 1;
        $v = substr($s, $pl, $l);
        $ss = substr($s, 0, $pl + $l);
        if (strlen($v) != $l)
            return;
        return array("type" => "string", "value" => $v, "strlen" => strlen($ss), "string" => $ss);
    }
    if (preg_match('/^i(\d+)e/', $s, $m)) {
        $v = $m[1];
        $ss = "i" . $v . "e";
        if ($v === "-0")
            return;
        if ($v[0] == "0" && strlen($v) != 1)
            return;
        return array("type" => "integer", "value" => $v, "strlen" => strlen($ss), "string" => $ss);
    }
    switch ($s[0]) {
        case "l":
            return bdec_list($s);
        case "d":
            return bdec_dict($s);
        default:
            return;
    }
}

function bdec_list($s) {
    if ($s[0] != "l")
        return;
    $sl = strlen($s);
    $i = 1;
    $v = array();
    $ss = "l";
    for (;;) {
        if ($i >= $sl)
            return;
        if ($s[$i] == "e")
            break;
        $ret = bdec(substr($s, $i));
        if (!isset($ret) || !is_array($ret))
            return;
        $v[] = $ret;
        $i += $ret["strlen"];
        $ss .= $ret["string"];
    }
    $ss .= "e";
    return array("type" => "list", "value" => $v, "strlen" => strlen($ss), "string" => $ss);
}

function bdec_dict($s) {
    if ($s[0] != "d")
        return;
    $sl = strlen($s);
    $i = 1;
    $v = array();
    $ss = "d";
    for (;;) {
        if ($i >= $sl)
            return;
        if ($s[$i] == "e")
            break;
        $ret = bdec(substr($s, $i));
        if (!isset($ret) || !is_array($ret) || $ret["type"] != "string")
            return;
        $k = $ret["value"];
        $i += $ret["strlen"];
        $ss .= $ret["string"];
        if ($i >= $sl)
            return;
        $ret = bdec(substr($s, $i));
        if (!isset($ret) || !is_array($ret))
            return;
        $v[$k] = $ret;
        $i += $ret["strlen"];
        $ss .= $ret["string"];
    }
    $ss .= "e";
    return array("type" => "dictionary", "value" => $v, "strlen" => strlen($ss), "string" => $ss);
}

?>
@upload

Add

PHP Code:
  tr("Seedbox upload?""<input type='checkbox' name='seed'" . (($row["seed"] == "yes") ? " checked='checked'" "" ) . " value='1' /> Allow SeedBox Downloads On This Torrent"1); 
@takeupload
Add

PHP Code:
seed
PHP Code:
$seed
@DB

Add

PHP Code:
ALTER TABLE `torrentsADD `seedenum('yes','no'NOT NULL default 'no'
@edit

add

PHP Code:
  if(get_user_class()>=UC_UPLOADER)
  
tr("Seedbox upload?""<input type='checkbox' name='seed'" . (($row["seed"] == "yes") ? " checked='checked'" "" ) . " value='1' /> Allow SeedBox Downloads On This Torrent"1); 
@takeedit
Add

PHP Code:
$updateset[] = "seed = '".($_POST["seed"]=='yes' 'no')."'"
@bittorrent

Add

PHP Code:
$seed = ($row[seed]=="yes" "<img src='pic/seedbox.gif'/>" ""); 
PHP Code:
print("\" title=\"" $dispname ."\"><b>" CutName($dispname$char) . " </b> 
first
PHP Code:
$seed 
PHP Code:
print("\" title=\"" $dispname ."\"><b>" CutName($dispname$char) . " <b> 
sec line

PHP Code:
$seed 
@browse
to the

PHP Code:
list($pagertop$pagerbottom$limit) = pager($torrentsperpage$count"browse.php?" $addparam); 

Add

PHP Code:
torrents.seed

Last edited by wMan; 19th December 2012 at 22:38.
Reply With Quote
The Following User Says Thank You to wMan For This Useful Post:
nicukent (30th January 2013)
Reply

Tags
fullymodded , problemhelp , seedbox , torrentstrike , v10

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Torrentstrike Fullymodded v1.0 Fynnon Torrent Strike 335 6th March 2019 14:34
ban problem in torrentstrike Ratmob Torrent Strike 1 4th April 2009 11:32
Help with torrentstrike fullymodded v1.0 RikT Torrent Strike 0 24th September 2008 12:52
TS FullyModded 1.0 Problem NighTing Torrent Strike 4 13th September 2008 16:51
Torrentstrike Fullymodded v1.0 Passkey HELP Robz Torrent Strike 6 11th September 2008 22:49



All times are GMT +2. The time now is 23:56. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.