Bravo List

Bravo List (https://www.bvlist.com/index.php)
-   Downloads (https://www.bvlist.com/forumdisplay.php?f=16)
-   -   X-Fusion Tracker (https://www.bvlist.com/showthread.php?t=116)

Speedyx90 11th March 2008 20:32

re: X-Fusion Tracker
 
Well the table dosent exist catpha.. any how could add it..? and it was working the mailserver now not anymore.. how can I disable it..? thx :wallbash:

ariss1986 13th March 2008 02:24

re: X-Fusion Tracker
 
hello my problem is that i cant get connectable,i have the ports forwarded correctly,put i cant upload or seed.i see myself as a seeder and i see my friend as a leecher but he doesnt connect to me.and i can'tupload or download.
sometimes after 30-40 minutes suddenly starts downloading but only one torrent not all of them.
is this a problem of xfusion or the problem is that i am using shared hosting.i am using shinjiru.


:sos: :sos: :sos: :sos: :sos:

djlee 13th March 2008 15:09

re: X-Fusion Tracker
 
Quote:

Originally Posted by Speedyx90
Well the table dosent exist catpha.. any how could add it..? and it was working the mailserver now not anymore.. how can I disable it..? thx :wallbash:

hi speedy .. i aint a torrentstrike user so im not too sure on the code.. if you were using tbdev then i could probably give u a step by step instruction lol

if the speed table exists but you need to add the catpha field then you should be able to find the catpha field in the sql files of the source.. if its a modification you've added then you will need to look at the original post for teh modification in order to get the sql u need.

to disable mail you usually just comment out the mail bit on signup and just forward the user straight to the confirm page.. with tbdev its confirm.php and you just authorise them straight away.. if you have takesignup.php and confirm.php pages in torrentstrike feel free to post um and i'll see what i can do for ya :)

djlee 13th March 2008 15:12

re: X-Fusion Tracker
 
Quote:

Originally Posted by ariss1986
hello my problem is that i cant get connectable,i have the ports forwarded correctly,put i cant upload or seed.i see myself as a seeder and i see my friend as a leecher but he doesnt connect to me.and i can'tupload or download.
sometimes after 30-40 minutes suddenly starts downloading but only one torrent not all of them.
is this a problem of xfusion or the problem is that i am using shared hosting.i am using shinjiru.


:sos: :sos: :sos: :sos: :sos:

im starting to get bored of hearing that shinjiru word lol

1. you need more people on the tracker for testing .. one seed and one leech will not give you an accurate test result.. due to many different factors it is sumtimes not possible to connect to all people in the swarm .. if theres only one other person in teh swarm when testing then you simply have a lucky pick as to wether or not it will work

get more people and test it with around 8 or 10 ppl if possible and then post back your results .. you will most likely find with a few more peers data will start exchanging much quicker

vankata 13th March 2008 20:51

re: X-Fusion Tracker
 
Where can i get more themes ? :sos:
By the way great work works fine :D

djlee 13th March 2008 21:01

re: X-Fusion Tracker
 
for copy and paste themes look at the torrentstrike forum .. no doubt there will be a few on there

you can also get themes from places like phpthemes and many other free template sites .. although u will most likely need to edit the theme and code to get those template themes working correctly so if you dont kno how to code html/css and a little php then dont try it

vankata 13th March 2008 21:15

re: X-Fusion Tracker
 
Thanks for the fast reply and for the info
i forgot to ask something is there some languages or a .lang file somewhere that i can translate because translating every php fail is not easy i hope you know what i mean

Code:

DEFINE 'home' = 'mylanguage"
that kind of fail

sorry for my english im from Bulgaria and that's why i need to translate

djlee 14th March 2008 12:55

re: X-Fusion Tracker
 
as far as im aware torrentstrike is not a multi-lingual source .. so unless you set up ur own language definition files so that you can add more languages at a later date (i.e keep english and add bulgarian too) you will have to go through and change it all to bulgarian

vankata 14th March 2008 21:25

re: X-Fusion Tracker
 
Ya the multi-language hack i have seen this in the torrentstrike forum but now the forum i closed
Can i findet somewhere else???

Edit: Wow it just hit me in the head :)
we it work from the tbdev forums there is posted that hack

Fynnon 15th March 2008 04:56

re: X-Fusion Tracker
 
Quote:

Originally Posted by vankata
Ya the multi-language hack i have seen this in the torrentstrike forum but now the forum i closed
Can i findet somewhere else???

Edit: Wow it just hit me in the head :)
we it work from the tbdev forums there is posted that hack

You can find some Themes for Torrent Strike in the first post of this topic.

cherwonk 15th March 2008 20:44

re: X-Fusion Tracker
 
This is a decent , but unfinished source. I have a site running now based on this . The announce had to be rewritten a number of times before it worked correctly . I'll come back and post it later (its not on this outer :( )

There are tons of bugs , but nothing too hard to fix. The biggest problem I've encountered was installing the tbdev Snatchlist mod with seedtime . Took me a couple of weeks to get it right .

But as I said site is up and running fairly smooth.

vertex 16th March 2008 08:38

re: X-Fusion Tracker
 
Tnx! Nice work man!!! :dance:

Tanza 17th March 2008 03:48

re: X-Fusion Tracker
 
So Big Thanks for your code TS X version is WORK More. :D

I have little problem. Time in my Tracker is not true. My current time of GMT+7 but in my Tracker is slow 7Hr.
Plz. Help me.

Thanks :)
:: Sorry for my bad English :smile: ::

djlee 17th March 2008 12:55

re: X-Fusion Tracker
 
where is your server based ... your server will display the time using either GMT or the timezone of the country that it is in..

if you want to change teh time/timezone of yoru server to reflect your countries time then i'll need two pieces of information to tell you how to do it ...

1. do you have a control panel installed (i.e. Cpanel, plesk, webmin)
2. do you have root access (i.e. the login details for teh username called "root").

if your using a windows server then you wont have a root account and it will most likely be administrator account on windows (although u shud always be running trackers using a linux)

Tanza 18th March 2008 13:16

re: X-Fusion Tracker
 
Thanks for Reply djlee :)


Now 'am tested of TS SpecialEdition by XAM is no problem.



:: Sorry for my bad english ::

djlee 19th March 2008 02:34

re: X-Fusion Tracker
 
am i right in guessing that bad english means that u fixed teh time problem or not ???

DeltaCorp 19th March 2008 08:41

re: X-Fusion Tracker
 
Hi All !!

When user signup where can we write birthday date... I don't see any form for that... Year/Month/Date

In Details Birth Date 1950-09-01 <---- Where can we change that ?

Sorry for my bad english.

Thanks for a good place to ask :dance:

djlee 19th March 2008 22:55

re: X-Fusion Tracker
 
if there is no date of birth or such field on the signup page i would think it is therefore changeable via the user profile or user control panel :)

DeltaCorp 19th March 2008 23:21

re: X-Fusion Tracker
 
No... sorry don't see any inputfiled anywhere for birthday I only see date ...

No big deal at all this... but very good mods in it ... :friend:

EDIT: Now I see it... sorry for all post on this problem... I reinstall it and now it works jiipiiiii :drink:

darkcoder 20th March 2008 10:21

re: X-Fusion Tracker
 
hello guys, nice source :drink: and most things r fixable
but one thing that i cant get pass by is that i have to manually refresh each page to see the udated one.
for eg, if I apply a new theme then i have to click refresh to see the new theme. Same thing happen if I promote any userclass the page dont update, have to try several time and lastly click refresh manually to see the updated class.

kindly help me to resolve this bug :sos: .
here http://www.serenityshares.org
check it out to know more about the prob.

thanks again for this :drink:

djlee 20th March 2008 15:34

re: X-Fusion Tracker
 
if you have to refresh teh page after making chnges such as themes i wouldnt worry about it .. if you wanted to you could make the page auto-refresh after such an edit .. but is it really worth it ?

i mean after a user changes his theme it aint as if he's gonna stay on that page and never leave it ever again .. he's gonna click a link to another page and the theme will be applied .. its really not neccarray to force a refresh on the user .. think about it this way if a user's on a crap connection (i.e. dialup) you forcing a refresh to apply a theme instantly means that he has to load the same page twice .. im sure he would much prefer to be able to click to another page and see the page update and keep his extra pennies worth of surfing for important things

darkcoder 20th March 2008 16:06

re: X-Fusion Tracker
 
thanks for replying djlee
but its not the case
if a user change the theme the moment he click, the new theme must be applied, but it doesnt happen.
ok after clicking refresh the my.php appears with new theme. But when i click home its again the old theme :wallbash: . now clicking on refresh again, the home is also in new theme :unknown: .

kindly help with this :smile:

DeltaCorp 20th March 2008 21:13

re: X-Fusion Tracker
 
Sorry if this post is wrong.. But wonder if this can be done to send a welcome message to users login in shoutbox.. Should be cool.. :)

http://metalsharing.servemp3.com/index.php

cherwonk 21st March 2008 04:41

re: X-Fusion Tracker
 
You need to got thru your announce.php carefully . I had this problem, found that removing the // Banned Clients - By Petr1fied cured it.

DeltaCorp in the users profile is a reset button to reset their birthdays.The downside is that once you do it you'll need to send a pm to tell them to correct it. This works on all the members except the sysops,there you need to change in the DB (users)

djlee 22nd March 2008 06:38

re: X-Fusion Tracker
 
darkcoder are you sure that the old theme isn't being cached by your browser and therefore you have to refresh to get the new CSS ect from the server..

i say this because the way you explain the problem it doesn't sound like a scripting problem.. if this was a scripting problem it would mean that the script is first getting the users old stylesheet and then getting the new one .. to do this it would probably take another 3 database fields which you obviously haven't setup as you dont want that happening (plus it wouldnt be practical anyway)

try turning caching off and testing it or change your theme and clear your cache ect and then see if u need to refresh every page to get the new theme

rocky10 4th April 2008 10:56

re: X-Fusion Tracker
 
Prejudice, I use torrentstrike x fusion ... I wanted to know if we could see the last 5 post on the home .. i use phbb forum. :sos:

Thanks in advance ..

Ps: posts if possible .. I would like to see them in the index.php tracker ..

Sorry for the English ..

djlee 5th April 2008 07:15

re: X-Fusion Tracker
 
i could probably figure out how to do it given time .. i'll see if i can set up TS on my home server and have a quick look .. otherwise u cud set me up a temp ftp/ssh account to do it for ya .. but i'll attempt it on my localhost first if i dont have to piss about too much getting it setup for testing

EDIT: ok think ive got this pretty much solved.. gotta say thanks for requesting this mod .. been a while since ive done any more than a few lines coding that ive actually enjoyed

first a few things to point out first. do it this way so i know you will read it before you copy and paste and think your done lol
  1. the number of posts you want to display can be set via the $fetchposts variable
  2. i have set a $prefix variable just incase u changed the phpbb_ prefix from default when importing teh SQL for the forum. this saves ppl having to go through the sql changing it all. if you did change teh prefix make sure you ammend this
  3. at the moment only basic user posts can be viewed here. staff posts for example are not seen in here period.. as i've literraly never worked with PHPBB forums i couldnt figure this out just yet. If its something important to a lot of people that want to use this mod then i may add it. Otherwise i cant be bothered
  4. the current hieght allowed for the frame is 200pixels. To change the height allowed simply change the height defined in the style attribute of the div tag
  5. I have made it scrollable so that on long posts your index doesn't suddenly become stupidly streched. This way the user just scrolls. If you don't like this then you can remove the two tags and this will simply give you a standard table however be careful as if someone makes a long post it will make ur index extremly big until it 5 more posts have been made (and if those 5 posts are also long well you can imagine the effect)

ok onto the code. its as simple as cut and paste .. or atleast it should be lol
Code:

//******************************************
// Last X POSTS in PHPBB2 FORUM MOD BY DJLEE
//******************************************

$fetchposts = 5; //Number of Posts to get?
$prefix = phpbb_; //the phpbb forum posts prefix (phpbb_ by default)
$res = mysql_query("SELECT ".$prefix."posts.post_id, ".$prefix."posts.topic_id, ".
                  $prefix."posts.poster_id, ".$prefix."posts_text.post_text, ".
                  $prefix."topics.topic_title, ".$prefix."users.username, ".
                  $prefix."users.user_id ".
                  "FROM(".$prefix."posts LEFT JOIN ".$prefix."posts_text ON ".
                  $prefix."posts.post_id = ".$prefix."posts_text.post_id LEFT JOIN ".
                  $prefix."topics ON ".$prefix."posts.topic_id = ".
                  $prefix."topics.topic_id LEFT JOIN ".
                  $prefix."users ON ".$prefix."posts.poster_id = ".
                  $prefix."users.user_id LEFT JOIN ".
                  $prefix."forums ON ".$prefix."posts.forum_id = ".$prefix.
                  "forums.forum_id) WHERE ".$prefix."forums.auth_read = 0 ".
                  "ORDER BY ".$prefix."posts.post_time DESC LIMIT ".
                  $fetchposts."") or sqlerr(__FILE__,__LINE__);

begin_frame("Last $fetchposts Forum Posts",false,5);

if(mysql_num_rows($res) > 0)
 {
 echo "
";
 while($arr = mysql_fetch_assoc($res))
  {
  echo "";
  echo "";
  echo "";
  echo "";
  }
 echo "
[b]".$arr['username']."[b]: ".$arr['topic_title']."
".format_comment($arr['post_text'])."
";
 }
else
 echo "No Forum Posts have been made. Will you be the first?";
 
end_frame();

//******************************************
// LAST X POSTS BY DJLEE END
//******************************************
?>

simply stick that wherever in your index you want the table to appear... it should work on all pages of the site not just index but you may need to mess around with the style a little on other pages depending on where u stick it .. but for index ur fine :P

well hopefully you wont have any problems. if you do just post back and it would be helpful if you have a problem to post back with your index.php so i can check it for ya straight away.. leaving the credits to the mod would also be nice lol :P

rocky10 5th April 2008 16:42

re: X-Fusion Tracker
 
Thanks to the rapid response and the help :friend:

RogueSurfer 5th April 2008 21:02

re: X-Fusion Tracker
 
Quote:

Originally Posted by djlee
i could probably figure out how to do it given time .. i'll see if i can set up TS on my home server and have a quick look .. otherwise u cud set me up a temp ftp/ssh account to do it for ya .. but i'll attempt it on my localhost first if i dont have to piss about too much getting it setup for testing

simply stick that wherever in your index you want the table to appear... it should work on all pages of the site not just index but you may need to mess around with the style a little on other pages depending on where u stick it .. but for index ur fine :P

well hopefully you wont have any problems. if you do just post back and it would be helpful if you have a problem to post back with your index.php so i can check it for ya straight away.. leaving the credits to the mod would also be nice lol :P

:D An excellent piece of code for the phpbb2 lovers, thank you. :dance:

rocky10 7th April 2008 11:11

re: X-Fusion Tracker
 
Hello,
i have downloaded the TorrentStrike X Fusion and now i have a question,the file
Delete disbaled users.php is not by TorrentStrike?
Do you have the code php?

Kind regards... and sorry for the english... :D

DeCoder 9th April 2008 03:09

re: X-Fusion Tracker
 
Quote:

-5- Installing phpbb:
--------------------

Click the forum link, and choose "INSTALL NOW !" (This link is only shown if your are the sysop)
All parameters are set for you by TorrentStrike (check if they are correct for you), you only need to reenter your sysop account password.
Click the 'finish installation' button.
I dont see the link anywhere....i edited my rights ad admin in bittorrent.php.....but dont see the link on forums.

Please advise :shoot:

Never mind got it alredy

Kukaracha 11th April 2008 09:25

re: X-Fusion Tracker
 
what is wrong?

Code:

tracker sending invalid dates

Neptune 12th April 2008 19:05

re: X-Fusion Tracker
 
post your announce.php

Kukaracha 13th April 2008 20:57

re: X-Fusion Tracker
 
Code:

/*
// +--------------------------------------------------------------------------+
// | TorrentStrike X-Edition by Neptune                                      |
// +--------------------------------------------------------------------------+
// | This file is part of TorrentStrike X-Edtion. Is based on TBDev,          |
// | originally by RedBeard of TorrentBits, extensively modified by          |
// | Gartenzwerg.                                                            |
// |                                                                          |
// | TorrentStrike is free software; you can redistribute it and/or modify    |
// | it under the terms of the GNU General Public License as published by    |
// | the Free Software Foundation; either version 2 of the License, or        |
// | (at your option) any later version.                                      |
// |                                                                          |
// | TorrentStrike is distributed in the hope that it will be useful,        |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            |
// | GNU General Public License for more details.                            |
// |                                                                          |
// | You should have received a copy of the GNU General Public License        |
// | along with TorrentStrike; if not, write to the Free Software Foundation, |
// | Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA            |
// +--------------------------------------------------------------------------+
// |                                      TorrentStrike X-Edition by Neptune |
// +--------------------------------------------------------------------------+
*/
ob_start("ob_gzhandler");

require_once("include/bittorrent.php");
require_once("include/benc.php");



function err($msg)
{
  benc_resp(array("failure reason" => array(type => "string", value => $msg)));
  exit();
}

function benc_resp($d)
{
  benc_resp_raw(benc(array(type => "dictionary", value => $d)));
}

function benc_resp_raw($x)
{
  header("Content-Type: text/plain");
  header("Pragma: no-cache");
  print($x);
}

$req = "info_hash:peer_id:!ip:port:uploaded:downloaded:left:!event:!passkey";
foreach (explode(":", $req) as $x)
{
  if ($x[0] == "!")
  {
      $x = substr($x, 1);
      $opt = 1;
  }
  else
      $opt = 0;
  if (!isset($_GET[$x]))
  {
      if (!$opt)
        err("missing key");
      continue;
  }
  $GLOBALS[$x] = unesc($_GET[$x]);
}

if (ENA_PASSKEY && (
      strlen($passkey) != 32 &&
      @mysql_num_rows(@mysql_query("SELECT id FROM users WHERE passkey=" . sqlesc($passkey))) != 1))
  err("Invalid passkey! Re-download the .torrent from $BASEURL ($passkey)");
$passkey=sqlesc($passkey); 

foreach (array("info_hash","peer_id") as $x)
{
  if (strlen($GLOBALS[$x]) != 20)
      err("invalid $x (" . strlen($GLOBALS[$x]) . " - " . urlencode($GLOBALS[$x]) . ")");
}

//if (empty($ip) || !preg_match('/^(\d{1,3}\.){3}\d{1,3}$/s', $ip))
  $ip = getip();

$port = 0 + $port;
$downloaded = 0 + $downloaded;
$uploaded = 0 + $uploaded;
$left = 0 + $left;

$rsize = 50;
foreach(array("num want", "numwant", "num_want") as $k)
{
  if (isset($_GET[$k]))
  {
      $rsize = 0 + $_GET[$k];
      break;
  }
}

$agent = $_SERVER["HTTP_USER_AGENT"];

// Deny access made with a browser...
//if (ereg("^Mozilla\\/", $agent) || ereg("^Opera\\/", $agent) || ereg("^Links ", $agent) || ereg("^Lynx\\/", $agent))
//  err("torrent not registered with this tracker");

if (!$port || $port > 0xffff)
  err("invalid port");

if (!isset($event))
  $event = "";

$seeder = ($left == 0) ? "yes" : "no";


// Banned Clients - By Petr1fied
$filename = "include/banned_clients.txt";
if (filesize($filename)==0 || !file_exists($filename))
$banned_clients=array();
else
{
$handle = fopen($filename, "r");
$banned_clients = unserialize(fread($handle, filesize($filename)));
fclose($handle);
}

foreach($banned_clients as $k => $v)
{
if(substr(bin2hex($peer_id), 0, 16) == $v["peer_id"] || substr(bin2hex($peer_id), 0, 6) == $v["peer_id"])
{
$client_ban=array($v["client_name"], $v["reason"]);
}
}

if($client_ban)
err("I'm sorry, $client_ban[0] is banned from this tracker (".stripslashes($client_ban[1]).")");
// Banned Clients - By Petr1fied


$res = mysql_query("SELECT id, banned, free, seeders + leechers AS numpeers, UNIX_TIMESTAMP(added) AS ts FROM torrents WHERE " . hash_where("info_hash", $info_hash));

$torrent = mysql_fetch_assoc($res);
if (!$torrent)
  err("torrent not registered with this tracker");

$torrentid = $torrent["id"];

$fields = "seeder, peer_id, ip, port, uploaded, downloaded, userid, UNIX_TIMESTAMP(last_action) AS ts";

$numpeers = $torrent["numpeers"];
$limit = "";
if ($numpeers > $rsize)
  $limit = "ORDER BY RAND() LIMIT $rsize";
$res = mysql_query("SELECT $fields FROM peers WHERE torrent = $torrentid AND connectable = 'yes' $limit");

$resp = 'd' . benc_str('interval') . 'i' . $announce_interval . 'e' . benc_str('peers') . (($compact = ($_GET['compact'] == 1))?'':'l');
unset($self);
while ($row = mysql_fetch_assoc($res))
{
  $row["peer_id"] = hash_pad($row["peer_id"]);

  if ($row["peer_id"] === $peer_id)
  {
      $userid = $row["userid"];
      $self = $row;
      continue;
  }
  if($compact)
  {
      $peer_ip = explode('.', $row["ip"]);
      $plist .= pack("C*", $peer_ip[0], $peer_ip[1], $peer_ip[2], $peer_ip[3]). pack("n*", (int)$row["port"]);
  } else {
      $resp .= "d" .
      benc_str("ip") . benc_str($row["ip"]) .
      benc_str("peer id") . benc_str($row["peer_id"]) .
      benc_str("port") . "i" . $row["port"] . "e" .
      "e";
  }
}

$resp .= ($compact ? benc_str($plist):''). "ee";

$selfwhere = "torrent = $torrentid AND ". (ENA_PASSKEY ?"passkey=$passkey AND ":'') . hash_where("peer_id", $peer_id);

if (!isset($self))
{
  $res = mysql_query("SELECT $fields FROM peers WHERE $selfwhere");
  $row = mysql_fetch_assoc($res);
  if ($row)
  {
      $userid = $row["userid"];
      $self = $row;
  }
}


//--- Fix Increase ratio using Firefox & Deny access made with a browser ---//
$agent = $_SERVER["HTTP_USER_AGENT"];
if (isset($_SERVER['HTTP_COOKIE']) || isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) || isset($_SERVER['HTTP_ACCEPT_CHARSET']))
     
      if (isset($_GET['info_hash']) || isset($_GET['uploaded']) || isset($_GET['downloaded']) || isset($_GET['event']))
      {
$ip = getip();
write_log("A user has been detected trying to cheat. Their IP address is $ip");
      die("Your penis is too small... go eat some brocoli.");
      }
      elseif (ereg("^Mozilla\\/", $agent) || ereg("^Opera\\/", $agent) || ereg("^Links ", $agent) || ereg("^Lynx\\/", $agent) || ereg("^curl\\/", $agent))
die("torrent not registered with this tracker");
//---- end of fix ----//


//// 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[0] >= 1 && $seeder == 'no')
        err("Connection limit exceeded! You may only leech from one location at a time.");
      if ($valid[0] >= 3 && $seeder == 'yes')
        err("Connection limit exceeded!");
  }
  $rz = mysql_query("SELECT id, uploaded, downloaded, class 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"];

//  if ($left > 0 && $az["class"] < UC_VIP)
  if ($az["class"] < UC_VIP)
  {
      $gigs = $az["uploaded"] / (1024*1024*1024);
      $elapsed = floor((gmtime() - $torrent["ts"]) / 3600);
      $ratio = (($az["downloaded"] > 0) ? ($az["uploaded"] / $az["downloaded"]) : 1);
      if ($ratio < 0.5 || $gigs < 5) $wait = 48;
      elseif ($ratio < 0.65 || $gigs < 6.5) $wait = 24;
      elseif ($ratio < 0.8 || $gigs < 8) $wait = 12;
      elseif ($ratio < 0.95 || $gigs < 9.5) $wait = 6;
      else $wait = 0;
      if (($elapsed < $wait)&&($seeder == 'no'))
            err("Not authorized (" . ($wait - $elapsed) . "h) - READ THE FAQ!");
  }
}
else
{
 
// Get the last uploaded amount from user account for reference and store it in $last_up
    $rst = mysql_query("SELECT class, uploaded FROM users WHERE id = $userid") or err("Tracker error 5");
    $art = mysql_fetch_array($rst);
    $last_up = $art["uploaded"];
    $class = $art["class"];
 
  $upthis = max(0, $uploaded - $self["uploaded"]);
  $downthis = max(0, $downloaded - $self["downloaded"]);

      if ($upthis > 0 || $downthis > 0)
        mysql_query("UPDATE users SET uploaded = uploaded + $upthis". ($torrent['free']=='no'?", downloaded = downloaded + $downthis ":' '). "WHERE id=$userid") or err("Tracker error 3");
}

// Initial sanity check xMB/s for 1 second
    if($upthis > 2097152)
    {
        //Work out time difference
        $endtime = time();
        $starttime = $self['ts'];
        $diff = ($endtime - $starttime);
        //Normalise to prevent divide by zero.
        $rate = ($upthis / ($diff + 1));
        //Currently 2MB/s. Increase to 5MB/s once finished testing.
        if ($rate > 2097152)
        {
            if ($class < UC_MODERATOR)
            {
                $rate = mksize($rate);
                $client = $agent;
                $userip = getip();

                auto_enter_cheater($userid, $rate, $upthis, $diff, $torrentid, $client, $userip, $last_up);
            }
        }
    }

///////////////////////////////////////////////////////////////////////////////

function portblacklisted($port)
{
  // direct connect
  if ($port >= 411 && $port <= 413) return true;

  // bittorrent
  if ($port >= 6881 && $port <= 6889) return true;

  // kazaa
  if ($port == 1214) return true;

  // gnutella
  if ($port >= 6346 && $port <= 6347) return true;

  // emule
  if ($port == 4662) return true;

  // winmx
  if ($port == 6699) return true;

  return false;
}

$updateset = array();

if ($event == "stopped")
{
  if (isset($self))
 
  {
      mysql_query("DELETE FROM peers WHERE $selfwhere");
      if (mysql_affected_rows())
      {
        if ($self["seeder"] == "yes")
            $updateset[] = "seeders = seeders - 1";
        else
            $updateset[] = "leechers = leechers - 1";
      }
  }
}
else
{
  if ($event == "completed")
      $updateset[] = "times_completed = times_completed + 1";

  if (isset($self))
  {
      mysql_query("UPDATE peers SET uploaded = $uploaded, downloaded = $downloaded, to_go = $left, last_action = NOW(), seeder = '$seeder'"
        . ($seeder == "yes" && $self["seeder"] != $seeder ? ", finishedat = " . time() : "") . " WHERE $selfwhere");
      if (mysql_affected_rows() && $self["seeder"] != $seeder)
      {
        if ($seeder == "yes")
        {
            $updateset[] = "seeders = seeders + 1";
            $updateset[] = "leechers = leechers - 1";
        }
        else
        {
            $updateset[] = "seeders = seeders - 1";
            $updateset[] = "leechers = leechers + 1";
        }
      }
  }
  else
  {
      if (portblacklisted($port))
        err("Port $port is blacklisted.");
      else
      {
        $sockres = @fsockopen($ip, $port, $errno, $errstr, 5);
        if (!$sockres)
            $connectable = "no";
        else
        {
            $connectable = "yes";
            @fclose($sockres);
        }
      }

      $ret = mysql_query("INSERT INTO peers (connectable, torrent, peer_id, ip, port, uploaded, downloaded, to_go, started, last_action, seeder, userid, agent, uploadoffset, downloadoffset, passkey) VALUES ('$connectable', $torrentid, " . sqlesc($peer_id) . ", " . sqlesc($ip) . ", $port, $uploaded, $downloaded, $left, NOW(), NOW(), '$seeder', $userid, " . sqlesc($agent) . ", $uploaded, $downloaded, $passkey)");
      if ($ret)
      {
        if ($seeder == "yes")
            $updateset[] = "seeders = seeders + 1";
        else
            $updateset[] = "leechers = leechers + 1";
      }
  }
}

if ($seeder == "yes")
{
  if ($torrent["banned"] != "yes")
      $updateset[] = "visible = 'yes'";
  $updateset[] = "last_action = NOW()";
}

if (count($updateset))
  mysql_query("UPDATE torrents SET " . join(",", $updateset) . " WHERE id = $torrentid");

benc_resp_raw($resp);


?>


Neptune 14th April 2008 12:56

re: X-Fusion Tracker
 
Your announce.php works in my server, but try dele this

Code:

    //--- Fix Increase ratio using Firefox & Deny access made with a browser ---//
    $agent = $_SERVER["HTTP_USER_AGENT"];
    if (isset($_SERVER['HTTP_COOKIE']) || isset($_SERVER['HTTP_ACCEPT_LANGUAGE']) || isset($_SERVER['HTTP_ACCEPT_CHARSET']))
         
          if (isset($_GET['info_hash']) || isset($_GET['uploaded']) || isset($_GET['downloaded']) || isset($_GET['event']))
          {
    $ip = getip();
    write_log("A user has been detected trying to cheat. Their IP address is $ip");
          die("Your penis is too small... go eat some brocoli.");
          }
          elseif (ereg("^Mozilla\\/", $agent) || ereg("^Opera\\/", $agent) || ereg("^Links ", $agent) || ereg("^Lynx\\/", $agent) || ereg("^curl\\/", $agent))
    die("torrent not registered with this tracker");
    //---- end of fix ----//


snakebite 29th April 2008 22:12

re: X-Fusion Tracker
 
can somebody tell me which one of these sources is beter v0.4 or this one?

Kotafi 29th April 2008 22:46

re: X-Fusion Tracker
 
Quote:

Originally Posted by snakebite
can somebody tell me which one of these sources is beter v0.4 or this one?

This one has some mods installed :)

Code:

######################
    INCLUDED HACKS
######################


Ban BitTorrent Clients easily, By Petr1fied
Recover pasword by secret question by dottor
Change user class text to image By Bkiller
Add/subtract upload/download credit by The RED GUY (i have changed a few things and made it work on torrentstrike)
Request and Offer mod complete and working MADE SAFE by Sir_SnuggleBunny (i have changed a few things and made it work on torrentstrike)
More Sofisticated Warning System v2.0 by FeDePeCo
Tracker Protection by Christian Knerr (http://www.cback.de)
Lottery Mod v2 - iMT, modification of iBheat, Automated/Dynamic Lottery System
Virtual Keyboard (stop keyloggers) by tony
Request to be Uploader by ScarS
Requested Type by dokty
Send message Priviliges by RAW
SeedBonus, new version by elegor
New Report mod, Safer faster EZ install by Sir_SnuggleBunny
Modified Abnormal Upload Speed Detector by ThaDon
Delete Dead Torrents by Xth-0utlaw
Delete Disabled Users by Alex2005
Active Users Modified By Sh0Ly
nforipper by RAW
Updated useragreement.php by mistero
Max. Staff v0.2 by xam
When user change his pass by RAW
Updated QUOTE function by retro
Search Torrents in browse.php by Lamers
When torrent is dead, not show in browse.php, immediately after not seeders by RAW
New ICGstation.css by me (more clean lol)
Number confirmation on signup By DemoN (i have changed a few things and made it work on torrentstrike)
Refresh Verification Image by Xam
NFO Ripper by RAW
Manage Tracker Categories by LiquidAtoR
Show/Hide torrents in userdetails.php by Cue i have changed a few things and made it work on torrentstrike)
Category image mod (replace category name with image in browse) by fixed
News Mod, with Show\Hide by devinkray
Temporary Demotion by Retro
Online Staff (missing credits)
Devin Custom Inbox provided by devin (Based on Tux system, Thanks to OiNK for it)
Request system provided by devin (Thanks to OiNK and Enzo for supplying the mod)
Invite Hack by rightthere & others
Online Users on index page (missing credits)
MySQL driven faqs by Avataru
First Line of support by aQuatomic
Warned panel by Wilba
Contact Staff by Echo
New Dynamic Control Panel by Nazaret2005
Little MySQL injection and other hacking protection By aymanghost
Poster Mod by johim, modified by enzo,devinkray (ripped from fullymodded)
Simpaty mod by yuna
Donor Panel by Alex
Shoutbox ban by irccar
Uploaders info panel
Reset Shoutbox by Codemaster
Progress Bar, by david (modified by Tony)
BBcode added to (comments , news , sendmessage)
Download / Upload Speed, by Nazaret2005
BT Client Selection Option By Enzo
Clickable thank you button in details ,by be4i
Gender mod by enzo
Online (Yes/No) Mod, By Sh0Ly
Golden Torrents, Mod by Laffin and MMN-O (ripped from fullymodded)
Port checker by lords
Present on christmas by Cue
Quick Reply in Comments by ltn100
Stopping staff from being added to the friends list
New shoutbox by dehas
STOP AOL PROXIES by Bainsy
Birthday gift mod by HoBoZ and XiaNYdE
Friends online in online list, by SvavarL & slightly
Stats ripped from FullyModded, modified by me
Upload & Downoad & forum priviliges, Original Code By Kipe & Modified By Wilba (ripped from fullymodded)
Current Mood mod by anka
Mod Tool View Ratings with show/hide by killerB
Change username + email for staff + reset users password in userdetails (ripped from FullyModded)
Birthday Mod (ripped from fullymodded)
6 Failed Logins by xam
Simple Announcement MOD by ashkarkm
Invite Tree Final by devin, based on OiNK's code
Code for Floods and Cheats block!, created by A1
Short Description by s4ne & devinkray (ripped from fullymodded)
Parked Mod
Remove Multiple-Tracker URLs by Wilba
Latest Nforce Releases
True Speed on userdetails by lords
Bad Password checker by LonniE
Anticheat: Increase ratio using Firefox, by Angel
Last 10 Torrents (torrentstrike edition) by me
Needing seeds on index (torrentstrike edition) by tony
Manage tracker countries by HCLivess
Wilba's Server Load Code
Torrent Info Mod by ltn100
Contact (icq,msn,yahoo,aim,skype )by Nazaret2005
Duplicate IP
Email banning mod by x0r



Features provided in the Control Panel:
-----------------------------------------------

SysOps Tools -Viewable by SysOp only:

            * Apache Style Statistics - Statistics of all visitings, Ip,Browser,Whence,Page (by hellix)
            * MySQL Query - Run mysql query
            * Mysql Overview - Tells when tables need optimising!(by CoLdFuSiOn)
            * PHP Info
            * Manage Tracker Countries
            * Lottery Config
            * Announcements
            * Manage Tracker Categories
            * Banned clients


Admin Tools - Viewable by Admin only:

            * News page - Add, edit and remove news items from the homepage
            * Create Poll - Create a new poll
            * Poll Overview - See what the users have voted in the polls
            * Mass Email - Send a mass email to all users (Based on DJMcTom's)
            * Mass PM - Sends a pm to specified classes | by DJMcTom
            * Manage Unconfirmed Users (by killua)
            * Manage Unconnectable Users (by Wilba)
            * Ban IP
            * Add Users
            * Delete Users (by todgerme)
            * Update users invites
            * Delete disbaled users
            * Donor Panel


Moderators Tools - Viewable by Moderators only:

            * Site Statistics (by CoLdFuSiOn)
            * Uploading Stats - List upload activity and category activity
            * Newest users - 100 newest user accounts
            * Client Lister - List all clients the users are using
            * Delete Req - Delete torrent request(s)
            * Test IP - Test if an ip is banned or not
            * Manage FAQ - Add edit or remove items from the FAQ
            * Warned Panel - List Warned Users, remove warning and disable accounts (by Wilba)
            * Cleanup - Perform a manual cleanup
            * Delete dead torrents
            * Abnormal Upload Speed Detector
            * Avatars
            * Leechers
            * Uploader Applications
            * Uploaders
            * Reset Shoutbox

That is from readme.txt

snakebite 29th April 2008 22:56

re: X-Fusion Tracker
 
1 Attachment(s)
when i end the instalation and go to my tracker it gives me this ...

please help!

Attachment 38

Neptune 30th April 2008 01:05

re: X-Fusion Tracker
 
Import sql/database.sql
manualy

snakebite 30th April 2008 07:16

re: X-Fusion Tracker
 
tnks it worked ;) :D :smoke:


hai can you tell me in which file do i edit the menu?

oh and i cant install the forum becaus it dosnt show me the install link :(


All times are GMT +2. The time now is 23:02.

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