|
#1
|
|||
|
|||
some problem with big torrents
hi
i use a older tbdev from 2005 or so and when someone upload a bigger pack and they try to dl it they only get invalide torrentfile, dont know how big torrents it must be to get this error but the last one was 263gb moviepack and its impossible to download it, but iknow we have packs up to 200gb some, so is there a limit in the script i missed? i cant find anything :( |
#2
|
||||
|
||||
Post your download.php
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent Do not ask me to make a mod for any other source Do not Ask me to setup your site. I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum My Current Demo is here http://demo.btmanager.org/ |
#3
|
||||
|
||||
Quote:
im not being rude but im guessing your pretty active on your to be uploading packs that big and using a source from 2005, have you thought about updating?
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?" "I Kill You!" simples
|
#4
|
|||
|
|||
hi
my download.php looks like this.. daffy it's to much work to change script and vi are only 2000 users on a private tracker. Code:
<? require_once("include/bittorrent.php"); dbconn(); parked(); if ($CURUSER["downloadpos"] == 'no') { stdmsg("Tyvärr..", "Du kan inte ladda ner torrents! Hör med bryggan varför."); stdfoot(); exit; } if (!preg_match(':^/(\d{1,10})/(.+)\.torrent$:', $_SERVER["PATH_INFO"], $matches)) httperr(); $id = 0 + $matches[1]; if (!$id) httperr(); $res = mysql_query("SELECT name FROM torrents WHERE id = $id") or sqlerr(__FILE__, __LINE__); $row = mysql_fetch_assoc($res); $fn = "$torrent_dir/$id.torrent"; if (!$row || !is_file($fn) || !is_readable($fn)) httperr(); mysql_query("UPDATE torrents SET hits = hits + 1 WHERE id = $id"); require_once "include/benc.php"; if (strlen($CURUSER['passkey']) != 32) { $CURUSER['passkey'] = md5($CURUSER['username'].get_date_time().$CURUSER['passhash']); mysql_query("UPDATE users SET passkey='$CURUSER[passkey]' WHERE id=$CURUSER[id]"); } $dict = bdec_file($fn, (1024*1024)); $dict['value']['announce']['value'] = $announce_urls[0]."?passkey=$CURUSER[passkey]";//"$DEFAULTBASEURL/announce.php/passkey=$CURUSER[passkey]"; $dict['value']['announce']['string'] = strlen($dict['value']['announce']['value']).":".$dict['value']['announce']['value']; $dict['value']['announce']['strlen'] = strlen($dict['value']['announce']['string']); // Remove multiple trackers from torrent unset($dict['value']['announce-list']); header("Content-Type: application/x-bittorrent"); print(benc($dict)); mysql_query("DELETE from bookmarks WHERE torrentid = $id AND userid = $CURUSER[id] LIMIT 1"); ?> so if any know if or where there is a limit so whare is it? upload the the torrent works good, but not download it :( |
Tags |
big , problem , torrents |
|
|