Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

re seed — 2021-10-27 22:10:36 in v3 Mods Requests
I thought it was already there no?
	if ($row["external"] != "yes" && $row["times_completed"] > 0) {
echo("[<a href='torrents-completed.php?id=$id'>" .T_("WHOS_COMPLETED"). "</a>] ");
if ($row["seeders"] <= 1) {
echo("[<a href='torrents-reseed.php?id=$id'>" .T_("REQUEST_A_RE_SEED"). "</a>]");
}
}
I looked at this briefly this morning, and I think this count is handled in the parse.php file, not here, so I dont think this fix is correct. Thats why I asked if anyone else could expand on it. Gotta check the filecount in parse
I think is the issue, the is_numeric
					foreach ($infovariable["files"] as $file) {
if(is_numeric($filecount))
$filecount += "1";
$multiname = $file['path'];//Not needed here really
$multitorrentsize = $file['length'];
$torrentsize += $file['length'];
}


There was a reason I added that, but I could have been wrong. Perhaps it should be is_countable and NOT is_numeric. Can anyone check that out?
					foreach ($infovariable["files"] as $file) {
if(is_countable($filecount))
$filecount += "1";
$multiname = $file['path'];//Not needed here really
$multitorrentsize = $file['length'];
$torrentsize += $file['length'];
}

I looked at someone who forked the v3 code and they fixed an apparent filecount issue that I didnt even know existed. I looked at my database and noticed that the filecount in the torrents is indeed ZERO. I dont exactly know what the filecount even really does that makes any real difference, but nonetheless, here is the fix in torrents-upload, find and add
	$announce = $TorrentInfo[0];
$infohash = $TorrentInfo[1];
$creationdate = $TorrentInfo[2];
$internalname = $TorrentInfo[3];
$torrentsize = $TorrentInfo[4];
$filecount = $TorrentInfo[5];
//filecount fix
if (false === \is_countable($filecount)) {
   $filecount = 1;
}
//end filecount fix
$annlist = $TorrentInfo[6];
$comment = $TorrentInfo[7];
$filelist = $TorrentInfo[8];

all credit goes to this person https://github.com/LokiThor2021
Post if this makes a difference for you, or just let everyone know what your findings are


SEE MY POST BELOW FOR A CORRECT FIX. DO NOT USE THIS. I WAS WORKING THROUGH A PROBLEM AND WANTED THE CORRECT FIX
CloudFlare — 2021-10-19 20:54:01 in M-BiTsy Support
I tried this once in the past and it was not good for me, but it could have been a bad implementation but I never revisited it, but if it helps, I still have some (or all) of the code commented out in my functions.php. Here is what it was (function getip() exists and the cloudflare code replaces it.) I think this worked just fine, but there was no point in using it because if your site is down, then so is the tracker, and cloudflare wont work because they dont have your tracker backend to track anything, so it seemed kind of pointless to me, but maybe Im wrong
function getip() {
return $_SERVER["REMOTE_ADDR"];
}

// cloudflare Server use addon 10-8-2014
// Updated getip with validation
function getip()
{if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {$ip = $_SERVER['HTTP_CF_CONNECTING_IP'];return $ip;}
   foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'HTTP_CF_CONNECTING_IP', 'REMOTE_ADDR') as $key) {if (array_key_exists($key, $_SERVER) === true) {foreach (array_map('trim', explode(',', $_SERVER[$key])) as $ip) {if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) {return $ip;}}}}}
Testing Announce — 2021-10-17 16:42:41 in M-BiTsy Support
I just hit and ran on one of them, lets see what happens
vip access — 2021-10-16 23:04:47 in v3 Support
ah, dont thank me, thank m-jay. I was just taking a guess. m-jay knows his stuff. Happy to know its working tho
vip access — 2021-10-16 17:18:08 in v3 Support
shouldnt $row['category'] be $row['cat_parent'] ? If so, then your original code should work I think
IMDb Mod [TTv3] — 2021-10-09 15:06:36 in v3 Mods Completed
unsure what you mean
signup error — 2021-10-07 22:49:08 in v3 Support
Thanks for the sql edits. Im testing mine with strict mode back on. If all is well, I will edit for the 3.0 on github and the sql when I get some time. I have a list of things on a sheet of paper here that need updated for the 3.0 on github, and now I will add this. Just need some free time
Change mysqli_query to SQL_Query_exec. v3 still uses it and it works well
Replace thisEach function — 2021-10-02 17:53:46 in v3 Support
cool, I will give it a shot. Thanks again for your help. Everything seems stable. I will remove the function from the backend and see if everything is in order.
Replace thisEach function — 2021-10-02 14:49:16 in v3 Support
that seems to work. thanks. How about this in mysql.class
	function read () {
$ret = "";
if (count($this->params)) {
reset($this->params);
for ($i = 0; $i < strlen($this->query); $i++) {
if ($this->query[$i] == "?") {
list(, $val) = thisEach($this->params);
$ret .= $val;
} else {
$ret .= $this->query[$i];
}
}
reset($this->params);
} else {
$ret = $this->query;
}
return $ret;
}
Replace thisEach function — 2021-10-01 23:49:52 in v3 Support
full function
function smile() {

 print "<div align='center'><table cellpadding='1' cellspacing='1'><tr><br />";

 global $smilies, $count;
 reset($smilies);

 while ((list($code, $url) = thisEach($smilies)) && $count<16) {
       print("\n<td><a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
              <img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a></td>");
             
       $count++;
 }
Replace thisEach function — 2021-10-01 21:50:15 in v3 Support
stuck on what do I do with this one
while ((list($code, $url) = thisEach($smilies)) && $count<16) {
Replace thisEach function — 2021-09-29 21:24:55 in v3 Support
thanks m-jay. I will try this
Replace thisEach function — 2021-09-28 21:38:49 in v3 Support
I think there are 14 instances of thisEach() in the 3.0 files according to my count. When I researched that fix it was to make a easy transition, but I agree with rewriting it. Each one of those 14 instances are slightly different than the others, so it will take some thought to change those code lines. Now I got to break off the rust and try this lol
Customize Help — 2021-09-13 22:50:40 in v3 Support
No problem, glad to help. Just look and compare the code to yours. I think you can make use of it in your project. Post back if you need any help sorting it out, but it should be pretty straight forward and not very difficult  :smile
Thanks for sharing Sprit :smile. I also believe that this function should be this way as well. deprecated curly braces for array and string. I already edited this, so you can just copy and paste this over your old function unless you feel I am wrong. The change was from curly braces {} to brackets []. Its a 7.4 deprecation
//Sort by
if ($addparam != "") {
if ($pagerlink != "") {
if ($addparam[strlen($addparam)-1] != ";") { // & = &
$addparam = $addparam . "&" . $pagerlink;
} else {
$addparam = $addparam . $pagerlink;
}
}
} else {
$addparam = $pagerlink;
}
 
Customize Help — 2021-09-12 16:07:43 in v3 Support
just download TTv3 Micro Edition. Most of these mods are already in it. You can look at that code and take from it what you like
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728