Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Downloads
Reply
Thread Tools
  #141  
Old 12th November 2010, 19:12
DooM's Avatar
DooM DooM is offline
Senior Member
 
Join Date: Feb 2009
United Kingdom
Posts: 118
Default
But can I keep the netmaniack's .css file? I like how it looks.
__________________
* Ubuntu Linux User since 2009 *
Reply With Quote
  #142  
Old 4th July 2011, 19:36
patyex patyex is offline
Member
 
Join Date: Mar 2010
Hungary
Posts: 9
Default tbdev netmaniac1.6 file uploader to torrent instead!
hey help me grace



tbdev engine instead of a torrent would zip.rar.uloader
if possible

The point is not to verify what I spend on
get out of everything that refers to torrent

the engine tbdev netmaniac edition 1.6

get kode

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"];
}
if (!empty(
$_POST['poster']))
$poster unesc($_POST['poster']);
/*$nfofile = $_FILES['nfo'];
if ($nfofile['name'] == '')
bark("No NFO!");
if ($nfofile['size'] == 0)
bark("0-byte NFO");
if ($nfofile['size'] > 65535)
bark("NFO is too big! Max 65,535 bytes.");
$nfofilename = $nfofile['tmp_name'];
if (@!is_uploaded_file($nfofilename))
bark("NFO upload failed");*/
$descr unesc($_POST["descr"]);
if (!
$descr)
bark("You must enter a description!");
$catid = ($_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$max_torrent_size);
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, poster) VALUES (" .
implode(","array_map("sqlesc", array(searchfield("$shortfname $dname $torrent"), $fname$CURUSER["id"], "no"$anonymous$infohash$torrent$totallencount($filelist), $type$descr$descr$smalldescr$_POST["type"], $dname))) .
", '" get_date_time() . "', '" get_date_time() . "', $nfo, '".$poster."')");
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($fpbenc($dict), strlen(benc($dict)));
fclose($fp);
}
write_log("Torrent $id ($torrent) was uploaded by " $CURUSER["username"]);
if (
get_user_class() == UC_UPLOADER) {
mysql_query("UPDATE users SET lastup = '" get_date_time() . "', upped = 'yes', upwarn = 'no' WHERE id=$CURUSER[id]") or sqlerr(__FILE____LINE__);
}
/* 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]&amp;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");
?>

Last edited by Fynnon; 29th July 2011 at 14:23. Reason: please use code box next time
Reply With Quote
  #143  
Old 28th July 2011, 22:17
xrol xrol is offline
Member
 
Join Date: May 2010
P2P
Posts: 11
Default rss problem
hello, just got a box and i cant get the rss done, passkey is aleatory and in tracker status says passkey invalid
use the download and rss from this source
Reply With Quote
  #144  
Old 2nd September 2011, 22:54
FTWR FTWR is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 34
Default Netmaniack 1.6 announce problem
Hello!! I have a problem with netmaniack 1.6 source...when I download a torrent, in utorrent appears this error:

Quote:
Tracker sending invalid data: <NULL>.
I verify in php.ini (because is hosted on my PC-->localhost) and magic_quotes is set off, so...which is the problem. Thanks!!
Reply With Quote
  #145  
Old 22nd September 2011, 10:13
Flash123 Flash123 is offline
Member
 
Join Date: Jun 2011
P2P
Posts: 5
Default Tbdev netmaniaks 1.6
Hello . I have a problem at a tbdev netmaniaks source . The problem is that : after i upload the torrent and put it on seed it tells me that the torrent couldnt be find . And i can see in ftp that the torrent isna there . How can i fix it ? How can i make it tu take that upload ?


Click the image to open in full size.
Reply With Quote
  #146  
Old 7th November 2011, 20:59
k1zz k1zz is offline
Member
 
Join Date: Nov 2011
P2P
Posts: 1
Default
Why after login on password_protect it takes me on a blank page?

Thank you.
Attached Thumbnails
untitled.PNG  
Reply With Quote
  #147  
Old 8th November 2011, 21:01
DooM's Avatar
DooM DooM is offline
Senior Member
 
Join Date: Feb 2009
United Kingdom
Posts: 118
Default
Quote:
Originally Posted by k1zz View Post
Why after login on password_protect it takes me on a blank page?

Thank you.
Because Netmaniack is old and unstable. This source is full of bugs and you should correct them if you want to use it. Try to use other source man.
__________________
* Ubuntu Linux User since 2009 *
Reply With Quote
  #148  
Old 22nd February 2012, 10:44
traditi86 traditi86 is offline
Member
 
Join Date: Feb 2012
P2P
Posts: 1
Default tracker sending invalid data <null>
when i download a torrent in utorrent i see tracker sending invalid data <null>.
whats the problem?
Reply With Quote
  #149  
Old 10th April 2012, 17:45
bsf's Avatar
bsf bsf is offline
Senior Member
 
Join Date: Apr 2009
P2P
Posts: 36
Default
I dont care about everyone say this source is the best i hate the others full of sheets ...
__________________
Reply With Quote
  #150  
Old 23rd July 2012, 12:56
kapel12 kapel12 is offline
Senior Member
 
Join Date: Feb 2012
P2P
Posts: 19
Unhappy Help...
[img= ]
[img] [/img]

Doesn't work in details.php (Description)

Please help...

Bump:
Quote:
Originally Posted by kapel12 View Post
[img= ]
[img] [/img]

Doesn't work in details.php (Description)

Please help...
Problem salved.

find in details.php

PHP Code:
tr("Description"str_replace(array("\n"" ""?"" ""U^"" ""^(2)"" ",
                        
"U"" ""?"" ""Y"" ""°"" ""±"" ""?"" ""U'"" ""A"" ""?"" ""^(3)",
                        
" ""A`"" ""U`"" ""A~"" ""?"" ""^(o)"" ""E`"" ""I'"" ""1/4"" ",
                        
"i`"" ""E'"" ""»"" ""y"" ""u`"" ""O~"" ""?"" "), array("<br>\n""&nbsp; "),
                        
format_urls(htmlspecialchars($row["descr"]))), 1); 
relace with

PHP Code:
tr("Description"str_replace(array("\n"" "), array("<br>\n"" "), format_comment(format_urls(htmlspecialchars($row["descr"])))), 1); 
Have fun.
__________________
I do not assume any risk.

Last edited by kapel12; 24th July 2012 at 10:31. Reason: :P
Reply With Quote
Reply

Tags
netmaniack , v16


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
Netmaniack v1.6 Strikey TBDev 6 8th August 2009 21:49
[Netmaniack 1.5] TBDev error Rockstarinsh TBDev 5 14th January 2009 17:46
Netmaniack 1.4 Problem BlOoDyio Community Cafe 1 5th January 2009 13:22
Iso Torrents By Netmaniack Subzero Downloads 9 10th October 2008 09:28
NetManiack v1.6 remove TTL darknirvana TBDev 0 23rd July 2008 07:52



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