Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #21  
Old 7th April 2008, 21:37
Kotafi Kotafi is offline
Senior Member
 
Join Date: Jan 2008
Posts: 139
Default Re: Torrentstrike Fullymodded v1.0
DanielDk,

Torrentsrike does not have secrets.php just go to http://yourtrackerurl/admincp.php
and change the setup there . :smile:
Reply With Quote
  #22  
Old 30th May 2008, 15:03
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default Re: Torrentstrike Fullymodded v1.0
why does it keep saying arrrf you dont need this plus when clicking some links we get taken to login page :blink:
Reply With Quote
  #23  
Old 6th June 2008, 16:59
korl korl is offline
Member
 
Join Date: May 2008
Posts: 10
Default Re: Torrentstrike Fullymodded v1.0
I installed torentstrike and the BT Network theme. but in this theme the forum doesn't work :(
It shows sth like this
Forums
Forum Topics Posts Last post

Search | View unread | Catch up


How can I start making posts and topics if I don't have a reply or new topic button ???
Reply With Quote
  #24  
Old 6th June 2008, 18:15
Kotafi Kotafi is offline
Senior Member
 
Join Date: Jan 2008
Posts: 139
Default Re: Torrentstrike Fullymodded v1.0
There is no phpBB intecration in BT Network theme, i think :unknown:
So you need to find some style for phpbb forums that works with the theme or make it yourself
To the other part,
not sure but that sounds like you are getting directed to tbdev forums instead of phpbb :D:
Reply With Quote
  #25  
Old 6th June 2008, 18:17
Fynnon's Avatar
Fynnon Fynnon is offline
xxx
 
Join Date: Nov 2007
P2P
Posts: 984
Default Re: Torrentstrike Fullymodded v1.0
Quote:
Originally Posted by korn3l
I installed torentstrike and the BT Network theme. but in this theme the forum doesn't work :(
It shows sth like this
Forums
Forum Topics Posts Last post

Search | View unread | Catch up

How can I start making posts and topics if I don't have a reply or new topic button ???

Did you follow the 5-6 and7 steps from the install text?



-5- Installing phpbb:
--------------------

Click the forum link, and choose "INSTALL NOW !" (This link is only shown if your are the sysop)
All parameters are set for you by TorrentStrike (check if they are correct for you), you only need to reenter your sysop account password.
Click the 'finish installation' button.

-6- Activate phpbb:
-------------------

open your web browser to http://www.yourdomain.com/admincp.php
check the 'Activate PhpBB Forum' box and submit.
delete install/ and contrib/ directories from the phpbb2 folder.
Logout and then Login again from the sysop account to update the phpbb admin login. (do it it's important!)

-7- Configure phpbb:
-------------------

use the link 'Go to Administration Panel' inside each phpbb page, you will need to identify yourself again
Reply With Quote
  #26  
Old 6th June 2008, 18:56
korl korl is offline
Member
 
Join Date: May 2008
Posts: 10
Default Re: Torrentstrike Fullymodded v1.0
yes... the forum is activated. It works on the default themes, but on BT network theme it doesn't work :(.
I tried adding topics from phpmyadmin, but nothing .... On TBdev it was a function in staff panel from witch you could make topics, but the TS doesn't have it :((
Reply With Quote
  #27  
Old 6th June 2008, 19:12
Kotafi Kotafi is offline
Senior Member
 
Join Date: Jan 2008
Posts: 139
Default Re: Torrentstrike Fullymodded v1.0
well, if you want use those forums you could add forum manager to your staff panel.
Iff you do then search in tbdev for Forum editor it works fine :D:
Reply With Quote
  #28  
Old 11th June 2008, 19:05
snakebite snakebite is offline
Senior Member
 
Join Date: Apr 2008
Default
Posts: 47
Default Re: Torrentstrike Fullymodded v1.0
wtf? when i view userdetails it gives me this error Table '****.phpbb_posts' doesn't exist..
how to fix this?
__________________
Go here! ----> "HERE"
Reply With Quote
  #29  
Old 11th June 2008, 22:57
Neptune
Guest
 
Posts: n/a
Default Re: Torrentstrike Fullymodded v1.0
install phpbb forum..
Reply With Quote
  #30  
Old 11th June 2008, 23:03
snakebite snakebite is offline
Senior Member
 
Join Date: Apr 2008
Default
Posts: 47
Default Re: Torrentstrike Fullymodded v1.0
another problem :blink:
when i`m uploading a torrent and i press "do it!" it takes me to takeupload.php and gives me a blank screen


my takeupload.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!");
}

 

loggedinorreturn();

if ($CURUSER["uploadpos"] == 'no')
die;  

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

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

$f = $_FILES["file"];
$fname = unesc($f["name"]);
if (empty($fname))
	bark("Empty filename!");
	
$nfofile = $_FILES['nfo'];
if ($nfofile['name'] != '')
{
	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 = (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, $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)");

if (!in_array($ann, $announce_urls, 1))
	bark("invalid announce url! must be " . $announce_urls[0] . "");

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);
	}
	$type = "multi";
}

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


// Replace punctuation characters with spaces

$torrent = str_replace("_", " ", $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, 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", $infohash, $torrent, $totallen, count($filelist), $type, $descr, $descr, $smalldescr, 0 + $_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].")");
}

move_uploaded_file($tmpname, "$torrent_dir/$id.torrent");

if ($CURUSER["advertisename"]=='yes'){
write_log("Torrent $id ($torrent) was uploaded by Anonymous");
}
else
{
write_log("Torrent $id ($torrent) was uploaded by $CURUSER[username]");
}
//===notify people who voted on offer thanks CoLdFuSiOn :)
if (isset($_POST['offer'])) {
$res = mysql_query("SELECT `userid` FROM `offervotes` WHERE `userid` != " . $CURUSER["id"] . " AND `offerid` = ". ($_POST['offer'] + 0)) or sqlerr(__FILE__, __LINE__);
$pn_msg = "The Offer you voted for: \"$torrent\" was uploaded by " . $CURUSER["username"] . ".\nYou can Download the Torrent here";
$some_variable = '';
while($row = mysql_fetch_assoc($res)) {
//=== use this if you DO have subject in your PMs
$some_variable .= "(0, 0, 'Offer $torrent was just uploaded', $row[userid], '" . get_date_time() . "', " . sqlesc($pn_msg) . ")";
//=== use this if you DO NOT have subject in your PMs
//$some_variable .= "(0, 0, $row[userid], '" . get_date_time() . "', " . sqlesc($pn_msg) . ")";
}
//=== use this if you DO have subject in your PMs
mysql_query("INSERT INTO messages (poster, sender, subject, receiver, added, msg) VALUES ".$some_variable."") or sqlerr(__FILE__, __LINE__);
//=== use this if you do NOT have subject in your PMs
//mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES ".$some_variable."") or sqlerr(__FILE__, __LINE__);
//===end

//=== delete all offer stuff
@mysql_query("DELETE FROM `offers` WHERE `id` = ". ($_POST['offer'] + 0));
@mysql_query("DELETE FROM `offervotes` WHERE `offerid` = ". ($_POST['offer'] + 0));
@mysql_query("DELETE FROM `comments` WHERE `offer` = ". ($_POST['offer'] + 0). "");
}
//=== end notify people who voted on offer

/* 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=\"iso-8859-1\" ?>\n<rss version=\"0.91\">\n<channel>\n" .
		"<title>TorrentBits</title>\n<description>0-week 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");

?>
__________________
Go here! ----> "HERE"
Reply With Quote
Reply

Tags
fullymodded , torrents tracker , torrentstrike , v10

Thread Tools

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
Torrentstrike Fullymodded v1.0 Seedbox problem!Help! jernej1 Torrent Strike 4 19th December 2012 22:09
Hit&Run system for Fullymodded adrian21 Torrent Strike 5 1st July 2010 22:29
Help with torrentstrike fullymodded v1.0 RikT Torrent Strike 0 24th September 2008 12:52
TS FullyModded 1.0 Problem NighTing Torrent Strike 4 13th September 2008 16:51
Torrentstrike Fullymodded v1.0 Passkey HELP Robz Torrent Strike 6 11th September 2008 22:49



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