Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   DHT upload mod (http://www.bvlist.com/showthread.php?t=7801)

Chez 4th April 2012 17:49

DHT upload mod
 
2 Attachment(s)
This mod allows to upload others torrents from other sites to your tracker. I see that most of you want this mod so i decided to post it here to help others!

In SQL/phpmyadmin add this
Quote:

ALTER TABLE torrents ADD `external` blob ;
and in your source add the attached files:

To upload with DHT just run in your browser http://yourtrackerurl/uploaddht.php

That's all...i hope that can help you!:friend::ok::drink:

kapel12 11th May 2012 22:57

Warning: require_once(include/tracker.php) [function.require-once]: failed to open stream: No such file or directory in /home/a5302955/public_html/uploaddht.php on line 2



Fatal error: require_once() [function.require]: Failed opening required 'include/tracker.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a5302955/public_html/uploaddht.php on line 2

Chez 12th May 2012 17:41

Solve
 
Quote:

Originally Posted by kapel12 (Post 34708)
Warning: require_once(include/tracker.php) [function.require-once]: failed to open stream: No such file or directory in /home/a5302955/public_html/uploaddht.php on line 2



Fatal error: require_once() [function.require]: Failed opening required 'include/tracker.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a5302955/public_html/uploaddht.php on line 2

this error is showing because you have bittorrent.php and in uploaddht.php
and takeextern.php at line 2 is tracker.php...just replace tracker.php from uploaddht and takeextern.php with bittorrent.php

kapel12 14th May 2012 22:53

Quote:

Originally Posted by Chez (Post 34717)
this error is showing because you have bittorrent.php and in uploaddht.php
and takeextern.php at line 2 is tracker.php...just replace tracker.php from uploaddht and takeextern.php with bittorrent.php


Fatal error: Call to undefined function stdhead() in /home/a2617642/public_html/uploaddht.php on line 3

sammygo 15th May 2012 08:47

1 Attachment(s)
Take this one.

kapel12 16th May 2012 19:50

//

Bigjoos 16th May 2012 21:28

PHP Code:

scrape_check($id); 

So what happens when that missing function is called ? No much except errors, pays to check scripts over when posting i would say.

kapel12 16th May 2012 22:36

Quote:

Originally Posted by sammygo (Post 34767)
Take this one.


Fatal error: Call to undefined function dbconn() in /home/a2617642/public_html/takeextern.php on line 13

ajax 17th May 2012 01:48

DHT sucks. :sad:

Chez 18th May 2012 15:21

Solve
 
What kind of source you have?

kapel12 19th May 2012 16:49

Quote:

Originally Posted by Chez (Post 34839)
What kind of source you have?


Netmaniak 1.6

Chez 20th May 2012 10:23

2 Attachment(s)
Quote:

Originally Posted by kapel12 (Post 34857)
Netmaniak 1.6

try now

costy22it 22nd May 2012 22:46

any chance
 
to do it for 2009 source ?

Chez 23rd May 2012 06:26

Quote:

Originally Posted by costy22it (Post 34920)
to do it for 2009 source ?

i think is for any TBDEV source:ok:

costy22it 23rd May 2012 11:15

not realy
 
dont works on tbdev 2009

kapel12 25th July 2012 23:18

Quote:

Originally Posted by Chez (Post 34862)
try now


Ok, torrent uploaded.

I have a new problem, in utorrent say DHT not allowed .

System 28th October 2012 22:08

1 Attachment(s)
Quote:

Originally Posted by Chez (Post 34167)
This mod allows to upload others torrents from other sites to your tracker. I see that most of you want this mod so i decided to post it here to help others!

In SQL/phpmyadmin add this


and in your source add the attached files:

To upload with DHT just run in your browser http://yourtrackerurl/uploaddht.php

That's all...i hope that can help you!:friend::ok::drink:





Fatal error: Call to undefined function get_reputation() in /home/test/public_html/new/include/bittorrent.php on line 880

Chez 30th October 2012 18:57

Quote:

Originally Posted by System (Post 37069)
Fatal error: Call to undefined function get_reputation() in /home/test/public_html/new/include/bittorrent.php on line 880

I don't know what kind of source you have but on every TBDEV shoud work without problems

rarHS 17th December 2012 13:42

Hello !
 
DHT does not work I changed this when I click on upload to redirect the uploaddht.php but remains white .. no movement and put and grain in sql code and put all in vain takeextern lam lam root and left there I do not know how to do I was going to me please? DHT and mine.cu help me some pictures I realize something lighter expect an answer thank you very much!

wMan 17th December 2012 14:32

if white page error on take upload of dht rong

ivo 27th December 2012 03:51

help
 
Hello people .. when I want to download torrent file shows me this in the picture, please help

http://www.zaslike.com/files/cugbtkwamoc86elv0ui.png

sorry if the topic is not on a distinguished place, I use a translator GOOGL

bestlap 21st January 2013 23:33

I'm with Tbdev 08 and I see this >>

http://i.imgur.com/y6EOuBN.jpg

Vishaal 22nd January 2013 00:58

check if the download.php file is uploaded in the ftp

Chez 22nd January 2013 09:26

Quote:

Originally Posted by bestlap (Post 39006)
I'm with Tbdev 08 and I see this >>

http://i.imgur.com/y6EOuBN.jpg

import this table in phpmyadmin

PHP Code:

--
-- 
Table structure for table `offers`
--

CREATE TABLE IF NOT EXISTS `offers` (
  `
idint(10unsigned NOT NULL auto_increment,
  `
useridint(10unsigned NOT NULL default '0',
  `
namevarchar(225character set latin1 collate latin1_general_ci default NULL,
  `
descrtext character set latin1 collate latin1_general_ci NOT NULL,
  `
addeddatetime NOT NULL default '0000-00-00 00:00:00',
  `
yeahint(10unsigned NOT NULL default '0',
  `
againstint(10unsigned NOT NULL default '0',
  `
categoryint(11NOT NULL default '0',
  `
commentsint(11NOT NULL default '0',
  `
allowedenum('allowed','pending','denied'character set latin1 collate latin1_general_ci NOT NULL default 'pending',
  
PRIMARY KEY  (`id`),
  
KEY `userid` (`userid`)
ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=


bestlap 22nd January 2013 09:58

Yes , it fix ! But I click upload and >>>

http://i.imgur.com/O73EWpU.jpg

anduku 22nd January 2013 10:22

Just edit your takeextern.php and replace
PHP Code:

require_once "includes/tracker.php"

with
PHP Code:

require_once "includes/bittorrent.php"


bestlap 22nd January 2013 11:11

Thanks ! It works :)

bizzarre13 25th April 2013 05:55

The torrents disappear from browse.php in 10-20 minutes, become dead.

poterasal 1st June 2013 12:22

Thanks
 
Thanks alot my friend ! That mod its working succesfuly !:sun:

wMan 10th July 2013 12:01

Quote:

Originally Posted by ajax (Post 34817)
DHT sucks. :sad:

true if they want a code like this go and download one that dht not TBDev like torrenttrader,tsse so on And yes it sucks on dht TBDev big time

Birkoff 25th November 2013 15:24

Cleanup.php ??
 
Where is the external scrape for cleanup.php? This is my mode DHT and is not completed!

MJUER 25th November 2013 17:10

DHT upload mod-Cleanup
 
PHP Code:

////////////////////////////////////////////// Scrape external Torrents /////////////////////////////////////////////

class tsniff {
var 
$version '1.0a';
var 
$class_name 'TSniff';

var 
$url;
var 
$infohash;
var 
$seeders;
var 
$leechers;
var 
$completed;
var 
$name;
var 
$err=0;
var 
$error;

function 
doscrape()
{
$this->err=0;
$this->error=null;
if(empty(
$this->url)) {
$this->err=1;
$this->error 'Empty url';
return(
$this->err=1);
}
$ch curl_init();

curl_setopt ($chCURLOPT_URL$this->url);
curl_setopt ($chCURLOPT_HEADER0);
curl_setopt ($chCURLOPT_AUTOREFERER0);
curl_setopt ($chCURLOPT_TIMEOUT4);
curl_setopt ($chCURLOPT_FOLLOWLOCATION1);
curl_setopt ($chCURLOPT_MAXREDIRS5);
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
curl_setopt ($chCURLOPT_ENCODING'gzip');
curl_setopt ($chCURLOPT_USERAGENT'BitTornado/T-0.3.14a (TSniff 1.0.0 - Torrent Stats)');

$dict=$x=curl_exec ($ch);
if (
curl_errno($ch)) {
$this->errorcurl_error($ch);
$this->err=2;
} else {
curl_close($ch);
$dict=bdec($dict);
if(empty(
$dict))
{
$this->err=3;
$this->error="Invalid scrape results. $x";
echo 
$x;
} elseif(
$dict['type']!='dictionary') {
$this->err=4;
$this->error="Not a Dictionary";
} else {
$dict=$dict['value']['files'];
if(!empty(
$dict))
{
$dict=$dict['value'];
$ih=array_keys($dict);
$dict=$dict[$ih[0]];
$this->infohash=bin2hex(stripslashes($ih[0]));
$dict=$dict['value'];
$this->seeders=$dict['complete']['value'];
$this->leechers=$dict['incomplete']['value'];
$this->completed=$dict['downloaded']['value'];
$this->name=$dict['name']['value'];
} else {
$this->err=5;
$this->error="Invalid scrape info .'$x'";
}
}
}
if(
$this->err)
$this->seeds=$this->leechers=$this->completed=$this->name=$this->infohash=null;
return(
$this->err);
}
function 
tsniff($url)
{
$this->url=$url;
return(
$this->doscrape());
}
}

mysql_query("UPDATE torrents SET seeders = '1' WHERE seeders = '0' AND extern ='yes'")  or sqlerr(__FILE____LINE__);
mysql_query("UPDATE torrents SET visible = 'yes' WHERE extern ='yes'")  or sqlerr(__FILE____LINE__);
mysql_query("UPDATE torrents SET free = 'no' WHERE extern ='yes'")  or sqlerr(__FILE____LINE__);
mysql_query("UPDATE torrents SET x2 = 'no' WHERE extern ='yes'")  or sqlerr(__FILE____LINE__);

//-------------------------------------------------- Set free by size ---------------------------------------------------//
mysql_query("UPDATE torrents SET free = 'yes' WHERE extern ='yes' AND size >'4294967296'")  or sqlerr(__FILE____LINE__);
mysql_query("UPDATE torrents SET x2 = 'yes' WHERE extern ='yes' AND size >'21474836480'")  or sqlerr(__FILE____LINE__);

//------------------------------------------------------ Set XXX --------------------------------------------------------//
mysql_query("UPDATE torrents SET free = 'no' WHERE extern ='yes' AND category ='14'")  or sqlerr(__FILE____LINE__);

//---------------------------------------------- Set free by categories -------------------------------------------------//
mysql_query("UPDATE torrents SET free = 'yes' WHERE extern ='yes' AND category ='18'")  or sqlerr(__FILE____LINE__);
mysql_query("UPDATE torrents SET free = 'yes' WHERE extern ='yes' AND category ='19'")  or sqlerr(__FILE____LINE__);
mysql_query("UPDATE torrents SET free = 'yes' WHERE extern ='yes' AND category ='33'")  or sqlerr(__FILE____LINE__);

/////////////////////////////////////////////// END Scrape external Torrents ////////////////////////////////////////////// 



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

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