Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Can't download (http://www.bvlist.com/showthread.php?t=8602)

Lolle 10th December 2012 00:24

Can't download
 
1 Attachment(s)
Why can not download? When I deleted them here


PHP Code:

       if (ereg ("^ ABC \ \ / ABC", $ agent)) err ("ABC is Banned.");
        if (
ereg ("^ Python-urllib \ \ / 2.4", $ agent)) err ("Banned Client.");
        if (
ereg ("^ 0P3R4H", $ http agent)) err ("IBrowser Opera is not a cool BT client.");
/ / == / /
        if  (
substr ($ peer_id07) == "M6-0-3"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list."); / / == BitTorrent == / /
if  (
substr ($ peer_id07) == "UT1760"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list."); / / == uTorrent == / /
if  (
substr ($ peer_id07) == "UT1770"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT1800"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT181B"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT1810"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT1820"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT1830"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT1850"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT2000"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT200B"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT2010"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT2040"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "BC0070"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list."); / / == BitComet == / /
if  (
substr ($ peer_id07) == "BC0092"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "BC0093"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "BC0096"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "BC0098"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "BC0103"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "BC0128"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "AZ2504"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list."); / / == Azureus Vuze == / /
if  (
substr ($ peer_id07) == "AZ3022"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "AZ3034"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "AZ3042"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "AZ3050"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "AZ3110"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "AZ4208"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "DE0586"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list."); / / == Deluge == / /
if  (
substr ($ peer_id07) == "DE0587"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "DE1200"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "KT2210"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list."); / / == KTorrent == / /
/ / == / /
        if  (
substr ($ peer_id07) == "AZ2500"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "AZ2501"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "AZ2502"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "AZ3040"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1600"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT160B"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id07) == "UT1610"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT161B"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT170B"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1700"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1710"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1720"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1730"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1740"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "UT1750"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "TR101Z"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "DE0580"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "DE0581"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "KT2030"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "KT2140"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "KT2210"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "BC0071"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "BC0075"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id07) == "BC0077"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "AZ300"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "AZ301"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "AZ302"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "AZ303"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "DE054"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "DE057"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "BC005"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "BC006"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
if  (
substr ($ peer_id06) == "BC007"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "BC008"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id06) == "BC009"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "TR09"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "TR08"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "AZ20"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "AZ22"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "AZ23"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "AZ24"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "UT11"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "UT12"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "UT13"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "UT14"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "UT15"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "turbo"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id05) == "Mbrst"err ("Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id04) == "FUTB"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id04) == "exbc"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id04) == "T037"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id04) == "T03F"err ("Out of date or BANNED client  version. You need to change your client with one in the ACCEPTED  list.");
        if  (
substr ($ peer_id04) == '\ 0 \ 2BS ") err (" Out of date or BANNED  client version. You need to change your client with one in the ACCEPTED  list. ");
        if  (substr ($ peer_id, 0, 4) == '
3BS ") err (" Out of date or BANNED  client versionYou need to change your client with one in the ACCEPTED  list. ");
        if  (substr ($ peer_id, 0, 3) == "
XBT") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
M5") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
M3") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
G3") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
M6") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
LT") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
lt") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
FG") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
CD") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
TS") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
BB") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
SZ") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
LW") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
AG") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
NE") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
VT") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
DL") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
MT") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
BR") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
LP") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
HL") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 3) == "
GT") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 2) == "
R2") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 2) == "
A3") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 2) == "
BS") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");
        if  (substr ($ peer_id, 0, 1) == "
O") err ("Out of date or BANNED client  versionYou need to change your client with one in the ACCEPTED  list.");

        if (preg_match ("
/ ^ Raza (. +) $ / ', $ http agent, $ matches)) err (" Shareaza is Banned. ");
        if (preg_match ("/ MLDonkey \ / ([0-9] +). ([0-9] +). ([0-9] +) * /", $ http agent, $ matches)) err ("MLDonkey is not a BT client. ");
        if (preg_match ("/ ed2k_plugin v ([0-9] + \ \. [0-9] +). * /", $ http agent, $ matches)) err ("eDonkey is not a BT client.");
        if (preg_match ("/ ^ Python-urllib \ \ / ([0-9] + \ \. [0-9] + (\ \. [0-9] +) *) /", $ http agent, $ matches )) err ("G3 is Banned.");
        if (preg_match ("/ Rufus \ / ([0-9] + \. [0-9] + \. [0-9] +) /", $ http agent, $ matches)) err ("Rufus is Banned. ");
        if (preg_match ("/ CT ([0-9] +) ([0-9] +) ([0-9] +) ([0-9] +) /", $ peer_id, $ matches)) err ("CTorrent is Banned."); 


So I get this one error after in my seedbox. Tracker: [Could not parse bencoded data]

wMan 10th December 2012 00:38

try this

@announce

PHP Code:

        if(ereg("^ABC\\/ABC"$agent)) err ("ABC is Banned.");
        if(
ereg("^Python-urllib\\/2.4"$agent)) err ("Banned Client.");
        if(
ereg("^0P3R4H"$httpagent)) err ("IBrowser Opera is not a cool BT client.");
              
//==//
        
if(substr($peer_id07) == "M6-0-3-"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== BitTorrent ==//
          //== uTorrent ==//


        
if(substr($peer_id07) == "-BC0070"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== BitComet ==//
        
if(substr($peer_id07) == "-BC0092"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0093"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0096"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0098"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0103"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0128"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ2504"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== Azureus/Vuze ==//
        
if(substr($peer_id07) == "-AZ3022"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3034"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3042"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3050"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3110"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ4208"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-DE0586"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== Deluge ==//
        
if(substr($peer_id07) == "-DE0587"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-DE1200"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-KT2210"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== KTorrent ==//
                  //==//


        
if(preg_match("/^RAZA (.+)$/"$httpagent$matches)) err ("Shareaza is Banned.");
        if(
preg_match("/MLDonkey\/([0-9]+).([0-9]+).([0-9]+)*/"$httpagent$matches)) err ("MLDonkey is not a BT client.");
        if(
preg_match("/ed2k_plugin v([0-9]+\\.[0-9]+).*/"$httpagent$matches)) err ("eDonkey is not a BT client.");
        if(
preg_match("/^Python-urllib\\/([0-9]+\\.[0-9]+(\\.[0-9]+)*)/"$httpagent$matches)) err ("G3 is Banned.");
        if(
preg_match("/Rufus\/([0-9]+\.[0-9]+\.[0-9]+)/"$httpagent$matches)) err ("Rufus is Banned.");
        if(
preg_match("/CT([0-9]+)([0-9]+)([0-9]+)([0-9]+)/"$peer_id$matches)) err ("cTorrent is Banned."); 

Bump: or

PHP Code:

            if (portblacklisted($port))
            
err("Port $port is blacklisted.");
            else


        if(
ereg("^ABC\\/ABC"$agent)) err ("ABC is Banned.");
        if(
ereg("^Python-urllib\\/2.4"$agent)) err ("Banned Client.");
        if(
ereg("^0P3R4H"$httpagent)) err ("IBrowser Opera is not a cool BT client.");
              
//==//
        
if(substr($peer_id07) == "M6-0-3-"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== BitTorrent ==//
          //== uTorrent ==//


        
if(substr($peer_id07) == "-BC0070"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== BitComet ==//
        
if(substr($peer_id07) == "-BC0092"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0093"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0096"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0098"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0103"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-BC0128"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ2504"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== Azureus/Vuze ==//
        
if(substr($peer_id07) == "-AZ3022"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3034"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3042"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3050"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ3110"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-AZ4208"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-DE0586"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== Deluge ==//
        
if(substr($peer_id07) == "-DE0587"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-DE1200"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");
        if(
substr($peer_id07) == "-KT2210"err ("Out of date or BANNED client version. You need to change your client with one in the ACCEPTED list.");   //== KTorrent ==//
                  //==//


        
if(preg_match("/^RAZA (.+)$/"$httpagent$matches)) err ("Shareaza is Banned.");
        if(
preg_match("/MLDonkey\/([0-9]+).([0-9]+).([0-9]+)*/"$httpagent$matches)) err ("MLDonkey is not a BT client.");
        if(
preg_match("/ed2k_plugin v([0-9]+\\.[0-9]+).*/"$httpagent$matches)) err ("eDonkey is not a BT client.");
        if(
preg_match("/^Python-urllib\\/([0-9]+\\.[0-9]+(\\.[0-9]+)*)/"$httpagent$matches)) err ("G3 is Banned.");
        if(
preg_match("/Rufus\/([0-9]+\.[0-9]+\.[0-9]+)/"$httpagent$matches)) err ("Rufus is Banned.");
        if(
preg_match("/CT([0-9]+)([0-9]+)([0-9]+)([0-9]+)/"$peer_id$matches)) err ("cTorrent is Banned.");


                {
                        
$sockres = @fsockopen($ip$port$errno$errstr5);
                        if (!
$sockres)
                                
$connectable "no";                               //== Modificat de BigMax (original value is "no") ==//
                        
else
                        {
                                
$connectable "yes";
                                @
fclose($sockres);
                        }
                }

$updateset = array(); 


@benc


PHP Code:

<?

/*

Basic knowledge of how bencoding works is assumed. Details can be found
at <http://bitconjurer.org/BitTorrent/protocol.html>.



How to use these functions:

An "object" is defined to be an associative array with at least the keys
"type" and "value" present. The "type" key contains a string which is
one of "string", "integer", "list" or "dictionary". The "value" key
contains the appropriate thing, either a string, an integer, a list which
is just a flat array, or a dictionary, which is an associative array. In
the case of "list" and "dictionary", the values of the contained array
are agaib "objects".



Description of the functions:



string benc($obj);

Takes an object as argument and returns the bencoded form of it as string.
Returns the undefined/unset value on failure.

Examples:

benc(array(type => "string", value => "spam"))        returns "4:spam".
benc(array(type => "integer", value => 3))        returns "i3e".
benc(array(type => "list", value => array(
    array(type => "string", value => "spam"),
    array(type => "string", value => "eggs")
)))
                        returns "l4:spam4:eggse"

benc(array(type => "dictionary", value => array(
    cow => array(type => "string", value => "moo"),
    spam => array(type => "string", value => "eggs"),
)))
                    returns "d3:cow3:moo4:spam4:eggse"




object bdec($str);

Returns the object that results from bdecoding the given string. Note
that those aren't real php objects, but merely "objects" as described
above. The returned objects have two additional keys: "string" and
"strlen". They represent the bencoded form of the returned objects, as
it was given in the original bencoded string. Use this to extract
certain portions of a bencoded string without having to re-encode it
(and avoiding possible re-ordering of dictionary keys). $x["strlen"]
is always equivalent to strlen($x["string"]). The "string" attribute
of the top-level returned object will be the same as the original
bencoded string, unless there's trailing garbage at the end of the
string.

This function returns the undefined/unset value on failure.

Example:

bdec("d4:spaml11:spiced pork3:hamee")
    returns this monster:

Array
(
    [type] => dictionary
    [value] => Array
        (
            [spam] => Array
                (
                    [type] => list
                    [value] => Array
                        (
                            [0] => Array
                                (
                                    [type] => string
                                    [value] => spiced pork
                                    [strlen] => 14
                                    [string] => 11:spiced pork
                                )

                            [1] => Array
                                (
                                    [type] => string
                                    [value] => ham
                                    [strlen] => 5
                                    [string] => 3:ham
                                )

                        )

                    [strlen] => 21
                    [string] => l11:spiced pork3:hame
                )

        )

    [strlen] => 29
    [string] => d4:spaml11:spiced pork3:hamee
)





object bdec_file($filename, $maxsize);

Opens the specified file, reads its contents (up to the specified length),
and returns whatever bdec() returns for those contents. This is a simple
convenience function.

*/

function benc($obj) {
    if (!
is_array($obj) || !isset($obj["type"]) || !isset($obj["value"]))
        return;
    
$c $obj["value"];
    switch (
$obj["type"]) {
        case 
"string":
            return 
benc_str($c);
        case 
"integer":
            return 
benc_int($c);
        case 
"list":
            return 
benc_list($c);
        case 
"dictionary":
            return 
benc_dict($c);
        default:
            return;
    }
}

function 
benc_str($s) {
    return 
strlen($s) . ":$s";
}

function 
benc_int($i) {
    return 
"i" $i "e";
}

function 
benc_list($a) {
    
$s "l";
    foreach (
$a as $e) {
        
$s .= benc($e);
    }
    
$s .= "e";
    return 
$s;
}

function 
benc_dict($d) {
    
$s "d";
    
$keys array_keys($d);
    
sort($keys);
    foreach (
$keys as $k) {
        
$v $d[$k];
        
$s .= benc_str($k);
        
$s .= benc($v);
    }
    
$s .= "e";
    return 
$s;
}

function 
bdec_file($f$ms) {
    
$fp fopen($f"rb");
    if (!
$fp)
        return;
    
$e fread($fp$ms);
    
fclose($fp);
    return 
bdec($e);
}

function 
bdec($s) {
    if (
preg_match('/^(\d+):/'$s$m)) {
        
$l $m[1];
        
$pl strlen($l) + 1;
        
$v substr($s$pl$l);
        
$ss substr($s0$pl $l);
        if (
strlen($v) != $l)
            return;
        return array(
type => "string"value => $vstrlen => strlen($ss), string => $ss);
    }
    if (
preg_match('/^i(\d+)e/'$s$m)) {
        
$v $m[1];
        
$ss "i" $v "e";
        if (
$v === "-0")
            return;
        if (
$v[0] == "0" && strlen($v) != 1)
            return;
        return array(
type => "integer"value => $vstrlen => strlen($ss), string => $ss);
    }
    switch (
$s[0]) {
        case 
"l":
            return 
bdec_list($s);
        case 
"d":
            return 
bdec_dict($s);
        default:
            return;
    }
}

function 
bdec_list($s) {
    if (
$s[0] != "l")
        return;
    
$sl strlen($s);
    
$i 1;
    
$v = array();
    
$ss "l";
    for (;;) {
        if (
$i >= $sl)
            return;
        if (
$s[$i] == "e")
            break;
        
$ret bdec(substr($s$i));
        if (!isset(
$ret) || !is_array($ret))
            return;
        
$v[] = $ret;
        
$i += $ret["strlen"];
        
$ss .= $ret["string"];
    }
    
$ss .= "e";
    return array(
type => "list"value => $vstrlen => strlen($ss), string => $ss);
}

function 
bdec_dict($s) {
    if (
$s[0] != "d")
        return;
    
$sl strlen($s);
    
$i 1;
    
$v = array();
    
$ss "d";
    for (;;) {
        if (
$i >= $sl)
            return;
        if (
$s[$i] == "e")
            break;
        
$ret bdec(substr($s$i));
        if (!isset(
$ret) || !is_array($ret) || $ret["type"] != "string")
            return;
        
$k $ret["value"];
        
$i += $ret["strlen"];
        
$ss .= $ret["string"];
        if (
$i >= $sl)
            return;
        
$ret bdec(substr($s$i));
        if (!isset(
$ret) || !is_array($ret))
            return;
        
$v[$k] = $ret;
        
$i += $ret["strlen"];
        
$ss .= $ret["string"];
    }
    
$ss .= "e";
    return array(
type => "dictionary"value => $vstrlen => strlen($ss), string => $ss);
}

?>


Lolle 10th December 2012 17:12

It still does not work. It will not accept my seedbox.

But I have been connectable now.

wMan 10th December 2012 21:34

remake your seedbox in upload and takeupload easy to fix and remake it in the torrenttable in the phpMyAdmin post your bittorrent.php and your takeupload.php and upload.php

Lolle 10th December 2012 21:48

3 Attachment(s)
Here are the things you need.

I do not understand it. :wallbash:

wMan 10th December 2012 21:54

its not in your bittorrent.php

its not in your upload.php

@bittorrent

PHP Code:

 $thisisseedb = ($row[seedb]=="yes" "&nbsp;<img src='pic/seedb.png' align='right' title='SeedBox' alt='SeedBox' />" ""); 

@upload

PHP Code:

tr("SeedBox Upload""<input type='checkbox' name='seedb'" . (($row["seedb"] == "yes") ? " checked='checked'" "" ) . " value='1' />Set this option <b><font color=orange>only</font></b> <b><font color=lime>for SeedBox Torrents, </font></b>."1); 

-- phpMyAdmin
PHP Code:

ALTER TABLE `torrentsADD `seedbenum('yes','no'NOT NULL DEFAULT 'no'



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

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