Bravo List

Bravo List (https://www.bvlist.com/index.php)
-   Downloads (https://www.bvlist.com/forumdisplay.php?f=16)
-   -   SEEDsource 2.0 (https://www.bvlist.com/showthread.php?t=7490)

wdq 17th January 2012 23:32

SEEDsource 2.0
 
1 Attachment(s)
i`m not that good in php but with what i learned on bvlist forum i managed to make a lot of things so after i saw that SEEDsource was practicaly dead i just improved it how i managed so

Installer ADDED
INvitation SYSTEM
Fully TRANSLATED
a lot of Bugs Fixed


so It Works on APPSERV on my pc not xampp because i just believe that appserv is better .

let`s go

The Installer looks like

http://img715.imageshack.us/img715/1...rceinstall.jpg

And The Original Index Page Looks Like

http://img839.imageshack.us/img839/9365/seedsource1.jpg


to install the source just copy everything to your www / htdocs folder open the explorer go to http://localhost and fill the info

here is the source

and i hope you guys will like it

System 18th January 2012 00:56

attention

Attention



takeupload.php


PHP Code:

<?

require_once("include/benc.php");
require_once(
"include/bittorrent.php");

ini_set("upload_max_filesize",$max_torrent_size);

function 
bark($msg) {
        
genbark($msg, "Upload failed!");
}

dbconn();

loggedinorreturn();
parked();

if (
get_user_class() < UC_UPLOADER)
  die;

foreach(
explode(":","descr:type:name") as $v) {
        if (!isset(
$_POST[$v]))
                
bark("missing form data");
}

if (!isset(
$_FILES["file"]))
        
bark("missing form data");

$f = $_FILES["file"];
$fname = unesc($f["name"]);
if (empty(
$fname))
        
bark("Empty filename!");

if (
$_POST['uplver'] == 'yes') {
$anonymous = "yes";
$anon = "Anonymous";
}
else {
$anonymous = "no";
$anon = $CURUSER["username"];
}

$descr = unesc($_POST["descr"]);
if (!
$descr)
  
bark("You must enter a description!");

$catid = (0 + $_POST["type"]);
if (!
is_valid_id($catid))
        
bark("You must select a category to put the torrent in!");

if (!
validfilename($fname))
        
bark("Invalid filename!");
if (!
preg_match('/^(.+)\.torrent$/si', $fname, $matches))
        
bark("Invalid filename (not a .torrent).");
$shortfname = $torrent = $matches[1];
if (!empty(
$_POST["name"]))
        
$torrent = unesc($_POST["name"]);

$tmpname = $f["tmp_name"];
if (!
is_uploaded_file($tmpname))
        
bark("eek");
if (!
filesize($tmpname))
        
bark("Empty file!");

$dict = bdec_file($tmpname, filesize($tmpname));
 if (!isset(
$dict))
 
bark("What the hell did you upload? This is not a bencoded file!");

function 
dict_check($d, $s) {
        if (
$d["type"] != "dictionary")
                
bark("not a dictionary");
        
$a = explode(":", $s);
        
$dd = $d["value"];
        
$ret = array();
        foreach (
$a as $k) {
                unset(
$t);
                if (
preg_match('/^(.*)\((.*)\)$/', $k, $m)) {
                        
$k = $m[1];
                        
$t = $m[2];
                }
                if (!isset(
$dd[$k]))
                        
bark("dictionary is missing key(s)");
                if (isset(
$t)) {
                        if (
$dd[$k]["type"] != $t)
                                
bark("invalid entry in dictionary");
                        
$ret[] = $dd[$k]["value"];
                }
                else
                        
$ret[] = $dd[$k];
        }
        return 
$ret;
}

function 
dict_get($d, $k, $t) {
        if (
$d["type"] != "dictionary")
                
bark("not a dictionary");
        
$dd = $d["value"];
        if (!isset(
$dd[$k]))
                return;
        
$v = $dd[$k];
        if (
$v["type"] != $t)
                
bark("invalid dictionary entry type");
        return 
$v["value"];
}

list(
$ann, $info) = dict_check($dict, "announce(string):info");
list(
$dname, $plen, $pieces) = dict_check($info, "name(string):piece length(integer):pieces(string)");

//$passkey=$announce_urls[0].'?passkey='.$CURUSER['passkey'];

//if ($passkey != $ann)
//bark("invalid announce url! must be <b>" . $passkey . "</b>");

if (strlen($pieces) % 20 != 0)
        
bark("invalid pieces");

$filelist = array();
$totallen = dict_get($info, "length", "integer");
if (isset(
$totallen)) {
        
$filelist[] = array($dname, $totallen);
        
$type = "single";
}
else {
        
$flist = dict_get($info, "files", "list");
        if (!isset(
$flist))
                
bark("missing both length and files");
        if (!
count($flist))
                
bark("no files");
        
$totallen = 0;
        foreach (
$flist as $fn) {
                list(
$ll, $ff) = dict_check($fn, "length(integer):path(list)");
                
$totallen += $ll;
                
$ffa = array();
                foreach (
$ff as $ffe) {
                        if (
$ffe["type"] != "string")
                                
bark("filename error");
                        
$ffa[] = $ffe["value"];
                }
                if (!
count($ffa))
                        
bark("filename error");
                
$ffe = implode("/", $ffa);
                
$filelist[] = array($ffe, $ll);
        if (
$ffe == 'Thumbs.db')
        {
            
stderr("Error","The torrent can't contain files named Thumbs.db!");
            die;
        }
        }
        
$type = "multi";
}

$dict['value']['announce']=bdec(benc_str( $announce_urls[0]));  // change announce url to local
$dict['value']['info']['value']['private']=bdec('i1e');  // add private tracker flag
unset($dict['value']['announce-list']); // remove multi-tracker capability
unset($dict['value']['nodes']); // remove cached peers (Bitcomet & Azareus)
unset($dict['value']['info']['value']['crc32']); // remove crc32
unset($dict['value']['info']['value']['ed2k']); // remove ed2k
unset($dict['value']['info']['value']['md5sum']); // remove md5sum
unset($dict['value']['info']['value']['sha1']); // remove sha1
unset($dict['value']['info']['value']['tiger']); // remove tiger
unset($dict['value']['azureus_properties']); // remove azureus properties
$dict=bdec(benc($dict)); // double up on the becoding solves the occassional misgenerated infohash
$dict['value']['comment']=bdec(benc_str( "Torrent created for '$SITENAME' tracker")); // change torrent comment
$dict['value']['created by']=bdec(benc_str( "$CURUSER[username]")); // change created by
$dict['value']['publisher']=bdec(benc_str( "$CURUSER[username]")); // change publisher
$dict['value']['publisher.utf-8']=bdec(benc_str( "$CURUSER[username]")); // change publisher.utf-8
$dict['value']['publisher-url']=bdec(benc_str( "$DEFAULTBASEURL/userdetails.php?id=$CURUSER[id]")); // change publisher-url
$dict['value']['publisher-url.utf-8']=bdec(benc_str( "$DEFAULTBASEURL/userdetails.php?id=$CURUSER[id]")); // change publisher-url.utf-8
list($ann, $info) = dict_check($dict, "announce(string):info");

$infohash = pack("H*", sha1($info["string"]));

// Replace punctuation characters with spaces

$torrent = str_replace("_", " ", $torrent);

// Replace .torrent .rar .avi .exe .zip ... characters with spaces

$torrent = str_replace(".torrent", " ", $torrent);
$torrent = str_replace(".rar", " ", $torrent);
$torrent = str_replace(".avi", " ", $torrent);
$torrent = str_replace(".mpeg", " ", $torrent);
$torrent = str_replace(".exe", " ", $torrent);
$torrent = str_replace(".zip", " ", $torrent);
$torrent = str_replace(".wmv", " ", $torrent);
$torrent = str_replace(".iso", " ", $torrent);
$torrent = str_replace(".bin", " ", $torrent);
$torrent = str_replace(".txt", " ", $torrent);
$torrent = str_replace(".nfo", " ", $torrent);
$torrent = str_replace(".7z", " ", $torrent);
$torrent = str_replace(".mp3", " ", $torrent);

$nfo = sqlesc(str_replace("\x0d\x0d\x0a", "\x0d\x0a", @file_get_contents($nfofilename)));
$smalldescr = $_POST["description"];
$ret = mysql_query("INSERT INTO torrents (search_text, filename, owner, visible, anonymous, info_hash, name, size, numfiles, type, descr, ori_descr, description, category, save_as, added, last_action, nfo) VALUES (" .
                
implode(",", array_map("sqlesc", array(searchfield("$shortfname $dname $torrent"), $fname, $CURUSER["id"], "no", $anonymous, $infohash, $torrent, $totallen, count($filelist), $type, $descr, $descr, $smalldescr, 0 + $_POST["type"], $dname))) .
                
", '" . get_date_time() . "', '" . get_date_time() . "', $nfo)");
if (!
$ret) {
        if (
mysql_errno() == 1062)
                
bark("torrent already uploaded!");
        
bark("mysql puked: ".mysql_error());
}
$id = mysql_insert_id();

@
mysql_query("DELETE FROM files WHERE torrent = $id");
foreach (
$filelist as $file) {
        @
mysql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")");
}

$fp = fopen("$torrent_dir/$id.torrent", "w");
if (
$fp)
{
        @
fwrite($fp, benc($dict), strlen(benc($dict)));
    
fclose($fp);
}

write_log("Torrent $id ($torrent) was uploaded by " . $CURUSER["username"]);



/* RSS feeds */

if (($fd1 = @fopen("rss.xml", "w")) && ($fd2 = fopen("rssdd.xml", "w")))
{
        
$cats = "";
        
$res = mysql_query("SELECT id, name FROM categories");
        while (
$arr = mysql_fetch_assoc($res))
                
$cats[$arr["id"]] = $arr["name"];
        
$s = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rss version=\"2.0\">\n<channel>\n" .
                
"<title>$DEFAULTBASEURL</title>\n<description>Newest tracker torrents</description>\n<link>$DEFAULTBASEURL/</link>\n";
        @
fwrite($fd1, $s);
        @
fwrite($fd2, $s);
        
$r = mysql_query("SELECT id,name,descr,filename,category FROM torrents ORDER BY added DESC LIMIT 15") or sqlerr(__FILE__, __LINE__);
        while (
$a = mysql_fetch_assoc($r))
        {
                
$cat = $cats[$a["category"]];
                
$s = "<item>\n<title>" . htmlspecialchars($a["name"] . " ($cat)") . "</title>\n" .
                        
"<description>" . htmlspecialchars($a["descr"]) . "</description>\n";
                @
fwrite($fd1, $s);
                @
fwrite($fd2, $s);
                @
fwrite($fd1, "<link>$DEFAULTBASEURL/details.php?id=$a[id]&hit=1</link>\n</item>\n");
                
$filename = htmlspecialchars($a["filename"]);
                @
fwrite($fd2, "<link>$DEFAULTBASEURL/download.php/$a[id]/$filename</link>\n</item>\n");
        }
        
$s = "</channel>\n</rss>\n";
        @
fwrite($fd1, $s);
        @
fwrite($fd2, $s);
        @
fclose($fd1);
        @
fclose($fd2);
}

/* Email notifs */


$res = mysql_query("SELECT name FROM categories WHERE id=$catid") or sqlerr();
$arr = mysql_fetch_assoc($res);
$cat = $arr["name"];
$res = mysql_query("SELECT email FROM users WHERE enabled='yes' AND notifs LIKE '%[cat$catid]%'") or sqlerr();
$uploader = $CURUSER['username'];

$size = mksize($totallen);
$description = ($html ? strip_tags($descr) : $descr);

$body = <<<EOD
A new torrent has been uploaded.

Name: 
$torrent
Size: 
$size
Category: 
$cat
Uploaded by: 
$uploader

Description
-------------------------------------------------------------------------------
$description
-------------------------------------------------------------------------------

You can use the URL below to download the torrent (you may have to login).

$DEFAULTBASEURL/details.php?id=$id&hit=1

--
$SITENAME
EOD;
$to = "";
$nmax = 100; // Max recipients per message
$nthis = 0;
$ntotal = 0;
$total = mysql_num_rows($res);
while (
$arr = mysql_fetch_row($res))
{
  if (
$nthis == 0)
    
$to = $arr[0];
  else
    
$to .= "," . $arr[0];
  ++
$nthis;
  ++
$ntotal;
  if (
$nthis == $nmax || $ntotal == $total)
  {
    if (!
mail("Multiple recipients <$SITEEMAIL>", "New torrent - $torrent", $body,
    
"From: $SITEEMAIL\r\nBcc: $to", "-f$SITEEMAIL"))
          
stderr("Error", "Your torrent has been been uploaded. DO NOT RELOAD THE PAGE!\n" .
            
"There was however a problem delivering the e-mail notifcations.\n" .
            
"Please let an administrator know about this error!\n");
    
$nthis = 0;
  }
}


header("Location: $BASEURL/details.php?id=$id&uploaded=1");

?>

Added to the database

ALTER TABLE `torrents` ADD `anonymous` enum('yes','no') NOT NULL default 'yes';

ALTER TABLE torrents ADD `poster` varchar(255) character set utf8 collate utf8_bin NOT NULL default 'pic/noposter.jpg';

And there are a lot of error:sos:
poll not working
Object not found!





LeeHowarth 18th January 2012 01:01

The design looks abit poor looks like the background was taken from NB-Kidvision and the table head from templateshares

System 18th January 2012 01:18

Quote:

Originally Posted by djhowarth (Post 32422)
The design looks abit poor looks like the background was taken from NB-Kidvision and the table head from templateshares


Tomorrow if I have time I'll take care of her errors

good night



:drink:

BEST 18th January 2012 15:04

why I'm always fascinated at the first attempt?



You have been exceed maximum login attempts, therefore your ip address ('XXXXXX') has been banned.:sos:

wdq 18th January 2012 21:01

Quote:

Originally Posted by BEST (Post 32458)
why I'm always fascinated at the first attempt?



You have been exceed maximum login attempts, therefore your ip address ('XXXXXX') has been banned.:sos:

see your mysql database the problem is that when you installed the source ... i dont think that the install.sql was insert corectly in my APPSERV works like a charm if you have that is the problem try to import manualy the install.sql ... to you r database

Quote:

Originally Posted by System (Post 32421)
attention

Attention

Added to the database

ALTER TABLE `torrents` ADD `anonymous` enum('yes','no') NOT NULL default 'yes';

ALTER TABLE torrents ADD `poster` varchar(255) character set utf8 collate utf8_bin NOT NULL default 'pic/noposter.jpg';

And there are a lot of error:sos:
poll not working
Object not found!






i will fix the poll no problems ..... and some other ... still got some work to the source ... but from how it was ... and what is now is a big difference

dj_otrov 18th January 2012 21:07

Info
 
PHP Code:

[B] <?

require_once("include/benc.php");
require_once(
"include/bittorrent.php");

ini_set("upload_max_filesize",$max_torrent_size);

function 
bark($msg) {
        
genbark($msg, "Upload failed!");
}

dbconn();

loggedinorreturn();
parked();

if (
get_user_class() < UC_UPLOADER)
  die;

foreach(
explode(":","descr:type:name") as $v) {
        if (!isset(
$_POST[$v]))
                
bark("missing form data");
}

if (!isset(
$_FILES["file"]))
        
bark("missing form data");

$f = $_FILES["file"];
$fname = unesc($f["name"]);
if (empty(
$fname))
        
bark("Empty filename!");

if (
$_POST['uplver'] == 'yes') {
$anonymous = "yes";
$anon = "Anonymous";
}
else {
$anonymous = "no";
$anon = $CURUSER["username"];
}

$descr = unesc($_POST["descr"]);
if (!
$descr)
  
bark("You must enter a description!");

$catid = (0 + $_POST["type"]);
if (!
is_valid_id($catid))
        
bark("You must select a category to put the torrent in!");

if (!
validfilename($fname))
        
bark("Invalid filename!");
if (!
preg_match('/^(.+)\.torrent$/si', $fname, $matches))
        
bark("Invalid filename (not a .torrent).");
$shortfname = $torrent = $matches[1];
if (!empty(
$_POST["name"]))
        
$torrent = unesc($_POST["name"]);

$tmpname = $f["tmp_name"];
if (!
is_uploaded_file($tmpname))
        
bark("eek");
if (!
filesize($tmpname))
        
bark("Empty file!");

$dict = bdec_file($tmpname, filesize($tmpname));
 if (!isset(
$dict))
 
bark("What the hell did you upload? This is not a bencoded file!");

function 
dict_check($d, $s) {
        if (
$d["type"] != "dictionary")
                
bark("not a dictionary");
        
$a = explode(":", $s);
        
$dd = $d["value"];
        
$ret = array();
        foreach (
$a as $k) {
                unset(
$t);
                if (
preg_match('/^(.*)\((.*)\)$/', $k, $m)) {
                        
$k = $m[1];
                        
$t = $m[2];
                }
                if (!isset(
$dd[$k]))
                        
bark("dictionary is missing key(s)");
                if (isset(
$t)) {
                        if (
$dd[$k]["type"] != $t)
                                
bark("invalid entry in dictionary");
                        
$ret[] = $dd[$k]["value"];
                }
                else
                        
$ret[] = $dd[$k];
        }
        return 
$ret;
}

function 
dict_get($d, $k, $t) {
        if (
$d["type"] != "dictionary")
                
bark("not a dictionary");
        
$dd = $d["value"];
        if (!isset(
$dd[$k]))
                return;
        
$v = $dd[$k];
        if (
$v["type"] != $t)
                
bark("invalid dictionary entry type");
        return 
$v["value"];
}

list(
$ann, $info) = dict_check($dict, "announce(string):info");
list(
$dname, $plen, $pieces) = dict_check($info, "name(string):piece length(integer):pieces(string)");

//$passkey=$announce_urls[0].'?passkey='.$CURUSER['passkey'];

//if ($passkey != $ann)
//bark("invalid announce url! must be <b>" . $passkey . "</b>");

if (strlen($pieces) % 20 != 0)
        
bark("invalid pieces");

$filelist = array();
$totallen = dict_get($info, "length", "integer");
if (isset(
$totallen)) {
        
$filelist[] = array($dname, $totallen);
        
$type = "single";
}
else {
        
$flist = dict_get($info, "files", "list");
        if (!isset(
$flist))
                
bark("missing both length and files");
        if (!
count($flist))
                
bark("no files");
        
$totallen = 0;
        foreach (
$flist as $fn) {
                list(
$ll, $ff) = dict_check($fn, "length(integer):path(list)");
                
$totallen += $ll;
                
$ffa = array();
                foreach (
$ff as $ffe) {
                        if (
$ffe["type"] != "string")
                                
bark("filename error");
                        
$ffa[] = $ffe["value"];
                }
                if (!
count($ffa))
                        
bark("filename error");
                
$ffe = implode("/", $ffa);
                
$filelist[] = array($ffe, $ll);
        if (
$ffe == 'Thumbs.db')
        {
            
stderr("Error","The torrent can't contain files named Thumbs.db!");
            die;
        }
        }
        
$type = "multi";
}

$dict['value']['announce']=bdec(benc_str( $announce_urls[0]));  // change announce url to local
$dict['value']['info']['value']['private']=bdec('i1e');  // add private tracker flag
unset($dict['value']['announce-list']); // remove multi-tracker capability
unset($dict['value']['nodes']); // remove cached peers (Bitcomet & Azareus)
unset($dict['value']['info']['value']['crc32']); // remove crc32
unset($dict['value']['info']['value']['ed2k']); // remove ed2k
unset($dict['value']['info']['value']['md5sum']); // remove md5sum
unset($dict['value']['info']['value']['sha1']); // remove sha1
unset($dict['value']['info']['value']['tiger']); // remove tiger
unset($dict['value']['azureus_properties']); // remove azureus properties
$dict=bdec(benc($dict)); // double up on the becoding solves the occassional misgenerated infohash
$dict['value']['comment']=bdec(benc_str( "Torrent created for '$SITENAME' tracker")); // change torrent comment
$dict['value']['created by']=bdec(benc_str( "$CURUSER[username]")); // change created by
$dict['value']['publisher']=bdec(benc_str( "$CURUSER[username]")); // change publisher
$dict['value']['publisher.utf-8']=bdec(benc_str( "$CURUSER[username]")); // change publisher.utf-8
$dict['value']['publisher-url']=bdec(benc_str( "$DEFAULTBASEURL/userdetails.php?id=$CURUSER[id]")); // change publisher-url
$dict['value']['publisher-url.utf-8']=bdec(benc_str( "$DEFAULTBASEURL/userdetails.php?id=$CURUSER[id]")); // change publisher-url.utf-8
list($ann, $info) = dict_check($dict, "announce(string):info");

$infohash = pack("H*", sha1($info["string"]));

// Replace punctuation characters with spaces

$torrent = str_replace("_", " ", $torrent);

// Replace .torrent .rar .avi .exe .zip ... characters with spaces

$torrent = str_replace(".torrent", " ", $torrent);
$torrent = str_replace(".rar", " ", $torrent);
$torrent = str_replace(".avi", " ", $torrent);
$torrent = str_replace(".mpeg", " ", $torrent);
$torrent = str_replace(".exe", " ", $torrent);
$torrent = str_replace(".zip", " ", $torrent);
$torrent = str_replace(".wmv", " ", $torrent);
$torrent = str_replace(".iso", " ", $torrent);
$torrent = str_replace(".bin", " ", $torrent);
$torrent = str_replace(".txt", " ", $torrent);
$torrent = str_replace(".nfo", " ", $torrent);
$torrent = str_replace(".7z", " ", $torrent);
$torrent = str_replace(".mp3", " ", $torrent);

$nfo = sqlesc(str_replace("\x0d\x0d\x0a", "\x0d\x0a", @file_get_contents($nfofilename)));
$smalldescr = $_POST["description"];
$ret = mysql_query("INSERT INTO torrents (search_text, filename, owner, visible, anonymous, info_hash, name, size, numfiles, type, descr, ori_descr, description, category, save_as, added, last_action, nfo) VALUES (" .
                
implode(",", array_map("sqlesc", array(searchfield("$shortfname $dname $torrent"), $fname, $CURUSER["id"], "no", $anonymous, $infohash, $torrent, $totallen, count($filelist), $type, $descr, $descr, $smalldescr, 0 + $_POST["type"], $dname))) .
                
", '" . get_date_time() . "', '" . get_date_time() . "', $nfo)");
if (!
$ret) {
        if (
mysql_errno() == 1062)
                
bark("torrent already uploaded!");
        
bark("mysql puked: ".mysql_error());
}
$id = mysql_insert_id();

@
mysql_query("DELETE FROM files WHERE torrent = $id");
foreach (
$filelist as $file) {
        @
mysql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")");
}

$fp = fopen("$torrent_dir/$id.torrent", "w");
if (
$fp)
{
        @
fwrite($fp, benc($dict), strlen(benc($dict)));
    
fclose($fp);
}

write_log("Torrent $id ($torrent) was uploaded by " . $CURUSER["username"]);



/* RSS feeds */

if (($fd1 = @fopen("rss.xml", "w")) && ($fd2 = fopen("rssdd.xml", "w")))
{
        
$cats = "";
        
$res = mysql_query("SELECT id, name FROM categories");
        while (
$arr = mysql_fetch_assoc($res))
                
$cats[$arr["id"]] = $arr["name"];
        
$s = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n<rss version=\"2.0\">\n<channel>\n" .
                
"<title>$DEFAULTBASEURL</title>\n<description>Newest tracker torrents</description>\n<link>$DEFAULTBASEURL/</link>\n";
        @
fwrite($fd1, $s);
        @
fwrite($fd2, $s);
        
$r = mysql_query("SELECT id,name,descr,filename,category FROM torrents ORDER BY added DESC LIMIT 15") or sqlerr(__FILE__, __LINE__);
        while (
$a = mysql_fetch_assoc($r))
        {
                
$cat = $cats[$a["category"]];
                
$s = "<item>\n<title>" . htmlspecialchars($a["name"] . " ($cat)") . "</title>\n" .
                        
"<description>" . htmlspecialchars($a["descr"]) . "</description>\n";
                @
fwrite($fd1, $s);
                @
fwrite($fd2, $s);
                @
fwrite($fd1, "<link>$DEFAULTBASEURL/details.php?id=$a[id]&hit=1</link>\n</item>\n");
                
$filename = htmlspecialchars($a["filename"]);
                @
fwrite($fd2, "<link>$DEFAULTBASEURL/download.php/$a[id]/$filename</link>\n</item>\n");
        }
        
$s = "</channel>\n</rss>\n";
        @
fwrite($fd1, $s);
        @
fwrite($fd2, $s);
        @
fclose($fd1);
        @
fclose($fd2);
}

/* Email notifs */


$res = mysql_query("SELECT name FROM categories WHERE id=$catid") or sqlerr();
$arr = mysql_fetch_assoc($res);
$cat = $arr["name"];
$res = mysql_query("SELECT email FROM users WHERE enabled='yes' AND notifs LIKE '%[cat$catid]%'") or sqlerr();
$uploader = $CURUSER['username'];

$size = mksize($totallen);
$description = ($html ? strip_tags($descr) : $descr);

$body = <<<EOD
A new torrent has been uploaded.

Name: 
$torrent
Size: 
$size
Category: 
$cat
Uploaded by: 
$uploader

Description
-------------------------------------------------------------------------------
$description
-------------------------------------------------------------------------------

You can use the URL below to download the torrent (you may have to login).

$DEFAULTBASEURL/details.php?id=$id&hit=1

--
$SITENAME
EOD;
$to = "";
$nmax = 100; // Max recipients per message
$nthis = 0;
$ntotal = 0;
$total = mysql_num_rows($res);
while (
$arr = mysql_fetch_row($res))
{
  if (
$nthis == 0)
    
$to = $arr[0];
  else
    
$to .= "," . $arr[0];
  ++
$nthis;
  ++
$ntotal;
  if (
$nthis == $nmax || $ntotal == $total)
  {
    if (!
mail("Multiple recipients <$SITEEMAIL>", "New torrent - $torrent", $body,
    
"From: $SITEEMAIL\r\nBcc: $to", "-f$SITEEMAIL"))
          
stderr("Error", "Your torrent has been been uploaded. DO NOT RELOAD THE PAGE!\n" .
            
"There was however a problem delivering the e-mail notifcations.\n" .
            
"Please let an administrator know about this error!\n");
    
$nthis = 0;
  }
}


header("Location: $BASEURL/details.php?id=$id&uploaded=1");

?>  [/B]


I should mention something document

wdq 18th January 2012 21:27

dj_ostrov what is the problem there?

dj_otrov 18th January 2012 22:39

poblem index
 
Already installed INDEX Eroor
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404

balkanportal.dyndns.info
01/18/12 22:39:05
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

System 18th January 2012 23:26

Quote:

Originally Posted by dj_otrov (Post 32477)
Already installed INDEX Eroor
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404

balkanportal.dyndns.info
01/18/12 22:39:05
Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

remove sql and install source again

dj_otrov 19th January 2012 00:36

remove sql and install source again

Code:

Division by zero in C:\xampp\htdocs\public_html\include\bittorrent.php on line 695
Code:

Warning:  include(style/1/center.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\index.php on line 88

Warning:  include() [function.include]: Failed opening 'style/1/center.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\public_html\index.php on line 88


joeroberts 19th January 2012 01:36

Come on man I think I've seen about enough of your posts.
select a source and stay with it dont post the error and move on to another source.
Take this error
Quote:

Warning: Division by zero in C:\xampp\htdocs\public_html\include\bittorrent.php on line 695
this is because you did not fill in how much donations you wanted.

this one

Quote:

Warning: include(style/1/center.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\public_html\index.php on line 88
is telling you that you have a missing file.

dj_otrov 19th January 2012 16:11

takeupload.php
 
What the hell did you upload? This is not a bencoded file!

Parse error: syntax error, unexpected '*' in C:\xampp\htdocs\public_html\takeupload.php on line 306

x360zone 19th January 2012 17:29

yawn
 
so many wasted posts try to stick to one source and try to get that right first time
also localhost lost it buy a cheap hosting or vps to play with instead of making amillion useless posts

patyex 23rd January 2012 22:07

hello please help!!!
 
I have this message

Site is down for maintenance, please check back again later... thanks
I tried to do everything but do not go to thank you for your help

wdq 23rd January 2012 22:41

Quote:

Originally Posted by patyex (Post 32568)
I have this message

Site is down for maintenance, please check back again later... thanks

I tried to do everything but do not go to thank you for your help


check in database if in config table

siteonline true ..... if false .... there is your problem

btw i hope that you not use .... free webhosting

Bump: well how i said .. i will still fix a lot in this source so

POLLS added and some other bugs fixed upload files works great even with utorrent 3.XX, recover password changed .... the password is mailed ... to the person ... and a lot more if some other bugs please report i will gladly try to fix them for the install the same way copy all your content ... to your www or htdocs folder go to http://localhost and follow the instructions


I Hope That in the end ... this source will become in a way so it can be used on a real tracker


Thanks BVLIST

raptor666 6th February 2012 00:36

Help!

Site is down for maintenance, please check back again later... thanks

Install: error... mysql inport sql.....

Free hosting! (000webhost) jog all
free hosting! (ravershost) jog all

Help!!

x360zone 6th February 2012 10:13

lol
 
so many people waste time with shitty hosting
get yourself a vps to play around with

update just installed while i had some spare time had no major issues with it so far install went very fast and easy

raptor666 6th February 2012 14:05

Quote:

Originally Posted by x360zone (Post 32909)
so many people waste time with shitty hosting
get yourself a vps to play around with

update just installed while i had some spare time had no major issues with it so far install went very fast and easy


:S

Problem: Free hosting!! (000webhost)
Free hosting!! (raverhost)
Localhost!!! (XAMPP)

kapel12 14th February 2012 16:47

Site is down for maintenance, please check back again later... thanks

How to fix this? :sos:

x360zone 14th February 2012 17:29

install
 
get yourself a proper host ive installed this on many vps and the installer never errors if you need help getting cheap vps pm me with your budget

kapel12 26th February 2012 13:58

:mad:
 
:sos:

Site is down for maintenance, please check back again later... thanks

Solid26 9th May 2012 10:52

WORKS!!!
 
For all whats have site down bla bla ,, you must before installation import sql database to phpadmin from install folder and then install normal source .......... site works sorry for eng


DEMO LINK

SYSOP

Login: Solid

Pass: asd123


OMG THIS SOURCE HERSELF ERASE ALL MY USERS WHAT THE F.... ???? WHY ERASE ALL USERS?
WHERE IS PROBLEM????

BEST 9th May 2012 14:43

help may lie in what if I have the following error chat.php summoning the will?
Site is down for maintenance, please check back again later ... thanks

joeroberts 9th May 2012 18:09

Quote:

Originally Posted by BEST (Post 34680)
help may lie in what if I have the following error chat.php summoning the will?
Site is down for maintenance, please check back again later ... thanks

In chat.php find
PHP Code:

<?
require "include/bittorrent.php";

and add after
PHP Code:

require_once "include/config.php"; 


BEST 9th May 2012 18:15

super thank you, that was the fault:drink:

0day 15th October 2013 14:14

tracker sending invalid data:.
What's the problem?I try to install twice but no result.I use utorrent 2.2.1

DND 15th October 2013 15:13

check the logs, will ya ?

0day 15th October 2013 15:21

Quote:

Originally Posted by DeNeDe (Post 43035)
check the logs, will ya ?

where is the log?I dont find it:wallbash:

DND 15th October 2013 16:04

magic quotes are disabled in your php.ini ?
or htaccess?

logs for mysql and php .
i don't know what system u using. just find them:wallbash:


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

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