Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Downloads
Reply
Thread Tools
  #91  
Old 11th February 2012, 18:58
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Quote:
Originally Posted by fileclub View Post
This is may problem
Click the image to open in full size.

Change your server time
Reply With Quote
  #92  
Old 1st March 2012, 23:00
shasta's Avatar
shasta shasta is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 46
Default
Quote:
Originally Posted by kp380lv View Post
There is already an admin account so you can login with:

User name: BVLIST
Password: 123456
the admin and pass dosnt work
__________________
[MENTION]shasta[/MENTION]
Reply With Quote
  #93  
Old 30th August 2012, 21:33
scream21m scream21m is offline
Senior Member
 
Join Date: Apr 2009
P2P
Posts: 18
Default Please help
This is my problem

Tracker sending invalid data:
Deprecated: Function ereg() is deprecated in /var/www/announce.php on line 94
d8:intervali1800e5:peerslee.

PHP Code:
<?php

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);
}

foreach (array(
"passkey","info_hash","peer_id","ip","event") as $x)

$GLOBALS[$x] = "" $_GET[$x];





foreach (array(
"port","downloaded","uploaded","left") as $x)

$GLOBALS[$x] = $_GET[$x];



if (
strpos($passkey"?")) {

  
$tmp substr($passkeystrpos($passkey"?"));

$passkey substr($passkey0strpos($passkey"?"));

$tmpname substr($tmp1strpos($tmp"=")-1);

$tmpvalue substr($tmpstrpos($tmp"=")+1);

$GLOBALS[$tmpname] = $tmpvalue;

}



foreach (array(
"passkey","info_hash","peer_id","port","downloaded","uploaded","left") as $x)

if (!isset(
$x)) err("Missing key: $x");



foreach (array(
"info_hash","peer_id") as $x)

if (
strlen($GLOBALS[$x]) != 20err("Invalid $x (" strlen($GLOBALS[$x]) . " - " urlencode($GLOBALS[$x]) . ")");



if (
strlen($passkey) != 32err("Invalid passkey (" strlen($passkey) . " - $passkey)");



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

$ip getip();

$port $port;
$downloaded $downloaded;
$uploaded $uploaded;
$left $left;

$rsize 50;

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

$agent $_SERVER["HTTP_USER_AGENT"];

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";

dbconn(false);

$valid = @mysql_fetch_row(@mysql_query("SELECT COUNT(*) FROM users WHERE passkey=" sqlesc($passkey)));

if (
$valid[0] != 1err("Invalid passkey! Re-download the .torrent from $BASEURL");

$res mysql_query("SELECT id, banned, 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";

$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") . "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;
    }

    
$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 .= "ee";

$selfwhere "torrent = $torrentid 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;
    }
}

//// Up/down stats ////////////////////////////////////////////////////////////



if (!isset($self))

{

$valid = @mysql_fetch_row(@mysql_query("SELECT COUNT(*) FROM peers WHERE torrent=$torrentid AND passkey=" sqlesc($passkey)));

if (
$valid[0] >= && $seeder == 'no'err("Connection limit exceeded! You may only leech from one location at a time.");

if (
$valid[0] >= && $seeder == 'yes'err("Connection limit exceeded!");



$rz mysql_query("SELECT id, uploaded, downloaded, class FROM users WHERE passkey=".sqlesc($passkey)." AND enabled = 'yes' ORDER BY last_access DESC LIMIT 1") or err("Tracker error 2");

if (
$MEMBERSONLY && mysql_num_rows($rz) == 0)

err("Unknown passkey. Please redownload the torrent from $BASEURL.");
    
$az mysql_fetch_assoc($rz);
    
$userid $az["id"];

    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)
                
err("Not authorized (" . ($wait $elapsed) . "h) - READ THE FAQ!");
    }
}
else
{
    
$upthis max(0$uploaded $self["uploaded"]);
    
$downthis max(0$downloaded $self["downloaded"]);

    if (
$upthis || $downthis 0)
        
mysql_query("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error 3");
}

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

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$errstr5);
            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, " sqlesc($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);

?>
Reply With Quote
  #94  
Old 2nd September 2012, 20:05
fmsheselina fmsheselina is offline
Senior Member
 
Join Date: Aug 2012
United States
Posts: 15
Smile
thanks

Bump: XXX delete php ?
Reply With Quote
  #95  
Old 15th September 2012, 15:21
kimikelku kimikelku is offline
Member
 
Join Date: Sep 2012
Portugal
Posts: 3
Default
I always get this error when uploading a torrent
Code:
Warning:  move_uploaded_file(tbru/torrents/14.torrent) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/dimensio/public_html/tbru/takeupload.php on line 230

Warning:  move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/php6A6IZP' to 'tbru/torrents/14.torrent' in /home/dimensio/public_html/tbru/takeupload.php on line 230

Warning:  Cannot modify header information - headers already sent  by (output started at  /home/dimensio/public_html/tbru/takeupload.php:230) in /home/dimensio/public_html/tbru/takeupload.php on line 326
Reply With Quote
  #96  
Old 2nd October 2012, 01:05
mustafa mustafa is offline
Member
 
Join Date: Oct 2012
P2P
Posts: 1
Default
Quote:
Originally Posted by shasta View Post
the admin and pass dosnt work
1. login with phpmyadmin
2. browse user table
3. click edit user admin
4. change e-mail adress for admin
5. go to recoveri passwaord
6. put the e-mail adress
7. go to your email services
8. click the link from e-mail
9. check your mail for new password
10. login admin and new password.

is work for me.

I get this error when i what to add [ Film / Video ] torent:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING in /home/xxx/public_html/English-imdb.php on line 121

help plz
thk
Reply With Quote
  #97  
Old 6th October 2012, 16:58
Marco Marco is offline
Senior Member
 
Join Date: Jun 2009
Seychelles
Posts: 327
Default
hello guys i read all pages

but for me it is impossible to login to the index.php admin 123456 or login with any new user....

password is never is the right one....

if i wish to confirm the user from mail confirm.php sorry pal nothing found :(

i confirm from mysql and try to log in ...but not let me in .....username/password incorect :(((((
Reply With Quote
  #98  
Old 21st October 2012, 14:42
zyberwax zyberwax is offline
Senior Member
 
Join Date: Nov 2009
P2P
Posts: 35
Thumbs down Erro code
What is this ??
Are there nothing of this trackere so work ??

Deprecated
: Function ereg() is deprecated in /home/worldtra/public_html/include/bittorrent.php on line 301

Deprecated: Function ereg() is deprecated in /home/worldtra/public_html/include/bittorrent.php on line 309

Deprecated: Function ereg() is deprecated in /home/worldtra/public_html/include/bittorrent.php on line 313

Deprecated: Function ereg() is deprecated in /home/worldtra/public_html/include/bittorrent.php on line 319

Warning: Cannot modify header information - headers already sent by (output started at /home/worldtra/public_html/include/bittorrent.php:301) in /home/worldtra/public_html/include/bittorrent.php on line 399
Reply With Quote
  #99  
Old 15th June 2013, 18:54
buves18 buves18 is offline
Member
 
Join Date: Jan 2010
P2P
Posts: 6
Default ERROR !!!
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.

why ???
i edited config.php and secrets.php
Reply With Quote
  #100  
Old 15th June 2013, 19:34
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,242
Default
read the error logs. don't ask why !
LOL
Reply With Quote
Reply

Tags
32 , tbdevru


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
[ REQ ] TbdevRU theme Zuby TBDev 3 9th January 2010 23:18



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