Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   Torrentstrike Fullymodded v1.0 (http://www.bvlist.com/showthread.php?t=117)

Fynnon 11th January 2008 22:18

Torrentstrike Fullymodded v1.0
 
6 Attachment(s)
This has been updated on the 29th oct. 2007

Its had these changes made

* quick comment layout fixed (was missing )
* sqlcmdex.php has been removed for security issues
* links to the comments in userhistory.php has been fixed to work in sub folders
* bonus points in userdetails has now been fixed (replayed with a working code)
* cleaned up some of the files and removed any files that was left in and not used[/warn]

Ok, i decided to make another version of a fullymodded torrentstrike .
Simply install the source like any other ts source and no editing to the config needed anymore .

Here's a list of the mods ive put on it so far:
Code:

01 - Active Users Modified By Sh0Ly
02 - News In Index Page Show\Hide By webnet
03 - Little MySQL injection and other hacking protection By aymanghost
04 - Complete anonymous uploading by Wilba and Ininja (browse , details ,comments)
05 - Poster Mod by johim, modified by enzo,devinkray
06 - Simpaty mod
07 - Progress bar (in browse and details ), by david (modified by me)
08 - Flash arcade mod (working), by Gemberkoekje
09 - Radio listening on page, By aymanghost
10 - Show/Hide Statbox, Ripped from nvision - modified by me
11 - Registered Block by dorksville
12 - Better Links System, By Teekay
13 - Links Block By Me
14 - Little MySQL injection and other hacking protection, By aymanghost
15 - Flush torrents mod
16 - Show/Hide torrent stats in userdetails
17 - RSS Feed with Passkey
18 - BBcode added to (comments , news , upload , )
19 - Download / Upload Speed, by Nazaret2005
20 - BT Client Selection Option By Enzo (add in topten also)
21 - Clickable thank you button in details ,by be4i
22 - Gender mod by enzo
23 - Online (Yes/No) Mod, By Sh0Ly
24 - Userbar with ratio stats
25 - Option to choose not to see signatures and avatars in profile
26 - Golden Torrents, Mod by Laffin and MMN-O
27 - Lottery Mod v2 - iMT, modification of iBheat, Automated/Dynamic Lottery System
28 - Port checker by lords
29 - Seeding Bonus, credit to TvRecall
30 - Quick Reply in Comments by ltn100
31 - Stopping staff from being added to the friends list
32 - more complex snatched list, Loosely based of of oink's code by thebrass
34 - Friends online in online list, by SvavarL & slightly modified by me
35 - Upload & Downoad & forum priviliges, Original Code By Kipe & Modified By Wilba
36 - Current Mood mod by anka
37 - Change username + email for staff + reset users password in userdetails by wilba
38 - Birthday Mod
39 - Old status bar added in the 2 defualt themes
40 - 6 Failed Logins, 6 failed logins in a row will result in banning your ip! - BY xam
41 - Simple Announcement MOD by ashkarkm
42 - Addon for the complex snatched list, this will warn users that have started too many torrents
43 - Invite Tree Final by devin, based on OiNK's code (added extra feature in userdetails to allow mods to view there invitees)
44 - Multi Scrape (Multi Request), Multi Scrape Support (For Azureus) by Nafania
45 - Code for Floods and Cheats block!, created by A1
46 - Short Description by s4ne & devinkray (i think)
47 - Account Parking & Parked Accounts Addon
48 - Hangman Game
49 - Mega Casino with fix applied (seems to be working with me but might still need working on )
50 - Blackjack game with fix added (still in beta stage if you ask me )
51 - Wilba's Server Load Code (You can always /* */ it out if you use linux. linux server load code added also)
52 - Changed the normal nfo veiwer for the dos style veiwer (makes nfo's look alot better)
53 - Added Naughts & Crosses game
54 - Show/Hide status bar in all themes ( in ICGstation theme it only removes the text not the actual navbar)
55 - Cached - stats,newestuser (will hopefully have news,topten,poll done also)
56 - Torrent Info Mod by ltn100 (displays extra torrent info for mods and above in the details.php)
57 - Added a money mod where it works the same way as the bonus mod but will be used for buying things in the v2 or v3(still in progress)
58 - Added the pet mod that uses the money mod to buy the pets and food (you can only buy a pet at the moment)
59 - Contact (icq,msn,yahoo,aim,skype)by Nazaret2005
60 - Request and Offer mod complete and working MADE SAFE by Sir_SnuggleBunny
61 - Banned email address by xam
62 - Added a map for the activity part of the site(stil in progress and only links for the petshop work in it up to now)

this source is for use in sub folder and if you have it in your root then you will have to change some of the pic links to direct to the correct folders etc ..


this has been tested more than enough on my comp and ive not found any errors as of yet but if you do find any errors post them here so i can fix them . there will always be a error popping up with other people if they havnt installed it proper so dont think you are going to have a 100% fine source when using this since its not been 100% tested on a live site yet .

If you remove the credits from the stdfoot that leads back to here and tbdev then i will simply delete your post if you are having problems and no help will be given to you .

this is the list of fixes ive done so far so hopefully the bug count should lower now :)

**********************************************
Plus 5 THEMES
**********************************************

Midnight
XD Redzone
BT Network
Kinon CP
SHE

Torrentstrike Fullymodded v1.0 by Tony

zanzzy 18th January 2008 01:16

Re: Torrentstrike Fullymodded v1.0
 
working just great :D
installed on the latest version of xampp

gj

Kukaracha 23rd January 2008 20:11

Re: Torrentstrike Fullymodded v1.0
 
i have problem in takeupload.php

Code:

Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 100000001 bytes) in /drones2/alcoves/ssg/public_html/include/benc.php on line 181

Fynnon 23rd January 2008 23:59

Re: Torrentstrike Fullymodded v1.0
 
Quote:

Originally Posted by Kukaracha (Post 218)
i have problem in takeupload.php

Code:

Fatal error: Allowed memory size of 26214400 bytes exhausted (tried to allocate 100000001 bytes) in /drones2/alcoves/ssg/public_html/include/benc.php on line 181


1. You can increase the memory allowed per process by editing this line in your php.ini file and restarting Apache:

memory_limit = 16M (add the line if it is missing)

2. If you do not have access to php.ini but your webspace is able to handle ".htaccess" files then you should be able to set it by adding the following line to .htaccess file

php_value memory_limit 16M

3. Put the following code in your php page for increasing the memory size without making any change in php.ini

ini_set("memory_limit","24M");

4. One alternative is to contact your service provider and ask them to change that setting. Maybe they are kind enough to help.

Kotafi 24th January 2008 14:14

Re: Torrentstrike Fullymodded v1.0
 
Or you can open include/benc.php and below the first
ini_set("memory_limit", "32M");

This would work fine too :)

seb35 30th January 2008 21:05

Re: Torrentstrike Fullymodded v1.0
 
simple - in config.php
change
Code:

$max_torrent_size = 1073741824;
with
Code:

$max_torrent_size = 1024 * 1024;

MaexM 31st January 2008 20:58

Re: Torrentstrike Fullymodded v1.0
 
Code:

Warning: exec() has been disabled for security reasons in /home/maexmass/public_html/index.php on line 458
What is this one?

\n");

print (date("l d<\sup>S F Y h:i A"));

$time = round(getmicrotime() - $time_start,4);
$percent = $time * 60;
echo "
Global Server Load (All websites on current host servers): ($percent %)
seb35 1st February 2008 00:27

Re: Torrentstrike Fullymodded v1.0
 
replace in index.php

Code:

begin_frame("Server load",true,5);?>
function getmicrotime(){
    list($usec, $sec) = explode(" ",microtime());
    return ((float)$usec + (float)$sec);
    }
$time_start = getmicrotime();
$time = round(getmicrotime() - $time_start,4);
$percent = $time * 60;

$time = round(getmicrotime() - $time_start,4);
$percent = $time * 60;
echo "
Our Tracker Load: ($percent %)
";

//TRACKER LOAD
if ($percent <= 70) $pic_base_url = "pic/loadbargreen.gif";
    elseif ($percent <= 90) $pic_base_url = "pic/loadbaryellow.gif";
      else $pic_base_url = "pic/loadbarred.gif";
          $width = $percent * 4;
echo "$percent%

";
echo "
" . trim(exec('uptime')) . "

";

if (isset($load))
print("
10min load average (%)$load
";

if ($percent <= 70) $pic_base_url = "pic/loadbargreen.gif";
  elseif ($percent <= 90) $pic_base_url = "pic/loadbaryellow.gif";
  else $pic_base_url = "pic/loadbarred.gif";
        $width = $percent * 4;
echo "$percent%
";
?>



with

Code:



if ($percent <= 70) $pic = "loadbargreen.gif";
elseif ($percent <= 90) $pic = "loadbaryellow.gif";
else $pic = "loadbarred.gif";
$width = $percent * 4;
print("$percent%"); ?>



pepegrillo 2nd March 2008 17:17

Re: Torrentstrike Fullymodded v1.0
 
Hi, in tracker Torrentstrike Fullymodded v1.0 when download .torrent this error:

Code:

Not Found

Sorry pal :(

Please help fix !?

Thanks from Argentina !!!

Neptune 5th March 2008 14:58

Re: Torrentstrike Fullymodded v1.0
 
Quote:

Originally Posted by pepegrillo
Hi, in tracker Torrentstrike Fullymodded v1.0 when download .torrent this error:

Code:

Not Found

Sorry pal :(

Please help fix !?

Thanks from Argentina !!!

change your download.php with this 1

Code:

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

$id = (int)$_GET["id"];
$name = $_GET["name"];

if (!$id)
httperr();

$res = mysql_query("SELECT name FROM torrents WHERE id = $id") or sqlerr(__FILE__, __LINE__);
$row = mysql_fetch_assoc($res);

$fn = "$torrent_dir/$id.torrent";

if (!$row || !is_file($fn) || !is_readable($fn))
  httperr();

mysql_query("UPDATE torrents SET hits = hits + 1 WHERE id = $id");

header("Content-Type: application/x-bittorrent");
header("Content-Disposition: attachment; filename=".$_GET["name"]."");

$dict = bdec_file($fn, filesize($fn));
if(ENA_PASSKEY) {
  verify_passkey($CURUSER['passkey']);
  $dict['value']['announce'] = bdec(benc_str("$BASEURL/". (ENA_ALTANNOUNCE ? "tracker.php/$CURUSER[passkey]/announce":"announce.php?passkey=$CURUSER[passkey]")));
} else if(ENA_ALTANNOUNCE)
  $dict['value']['announce'] = bdec(benc_str("$BASEURL/tracker.php/announce"));

print benc($dict);

?>

and in your details.php
change

to


SpaZiuR 7th March 2008 06:49

Re: Torrentstrike Fullymodded v1.0
 
hi everyboby

here it goes i don't know what is the problem but my fully modded simply stop sendind the confirmation e-mail!!
everything in admincp.php is rigth and confirmation e-mail is on!!
i recently changed my fully modded from my test site to the final folder in my server and since then it stopped working!!any clue??

vankata 12th March 2008 23:28

Re: Torrentstrike Fullymodded v1.0
 
You dudes you are crazy thanks very much you are the best
I've search evrywhere for a site i can discus my porblems with torrentstrike and mods
thanks very much for this relise i just want to ask a few qustions
Can i find a bulgarian language or i have to trasnlated
and is there a place where can i find more themes

P.S. Sorry for my bad english :shoot:

darkcoder 15th March 2008 16:41

Re: Torrentstrike Fullymodded v1.0
 
thanks guys for this

but i m having a problem. Tracker is installed properly without any errors.
but i cant install the forums. When I click on top " forums " i get the message that forum is closed :sad:
instead of install forum.

thanks again for this wonderful code :drink:

Tanza 17th March 2008 12:53

Re: Torrentstrike Fullymodded v1.0
 
Quote:

Originally Posted by darkcoder
thanks guys for this

but i m having a problem. Tracker is installed properly without any errors.
but i cant install the forums. When I click on top " forums " i get the message that forum is closed :sad:
instead of install forum.

thanks again for this wonderful code :drink:


1.In phpBB2 folder DELETE config.php
2.When finish install Forums of phpBB2 go to "http://yoursite.com/admincp.php" and checkbox of 'Activate the phpbb forum (do not activate the forum yet, if installing for the first time)'
3.In phpBB2 folder Delete or Rename " contrib and install " folder.
4.Finish Your can use forums is same Admin Password of your Tracker.

darkcoder 17th March 2008 14:45

Re: Torrentstrike Fullymodded v1.0
 
thanks for replying Tanza

i installed the forum but when i go to the forum page, i find that i m not logged in :unknown:
and when i enter my user details, it says
Arff...
You are connected, you don't need this...

plz help i cant post a reply nor topic :blink: .

Also i found that i need to click on refresh so as to see the updated page, the links simply show me old page
is this a bug ??

thanks for support :drink:

Tanza 18th March 2008 05:54

Re: Torrentstrike Fullymodded v1.0
 
It's 1 way for you.

- It's Fullmodded file work for me:

- Upload in your site and install agains.

Hope you finish and enjoy!! :)

Kotafi 18th March 2008 08:24

Re: Torrentstrike Fullymodded v1.0
 
Hmm, what is diffrent about this comparing to Tony's Fullymodded?
Also you should upload it to another host because it's not working, maybe rapidshare? :coffee:

darkcoder 20th March 2008 10:28

Re: Torrentstrike Fullymodded v1.0
 
I installed X-fusion version forums and all works fine, but its the refresh thing thats hurts.

i need to refresh to see the update.
like after changing the user class, I can see the updated profile only after refresh :blink: .

Thanks

devilkills 24th March 2008 16:58

Re: Torrentstrike Fullymodded v1.0
 
Hello, I need help for this error:

Code:

Upload failed!
eek

upload.php -> takeupload.php = error

Please help.
os Linux - web server: xampp last version 1.6.6

DanielDk 7th April 2008 13:37

Re: Torrentstrike Fullymodded v1.0
 
hi, i can`t find the secrets.php file to edit it...can anyone help me ?

Kotafi 7th April 2008 21:37

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:

wMan 30th May 2008 15:03

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:

korl 6th June 2008 16:59

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 ???

Kotafi 6th June 2008 18:15

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:

Fynnon 6th June 2008 18:17

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

korl 6th June 2008 18:56

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 :((

Kotafi 6th June 2008 19:12

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:

snakebite 11th June 2008 19:05

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?

Neptune 11th June 2008 22:57

Re: Torrentstrike Fullymodded v1.0
 
install phpbb forum..

snakebite 11th June 2008 23:03

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 :mad: :suicide:


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 = "\n\n\n" .
                "TorrentBits\n0-week torrents\n$DEFAULTBASEURL/\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 = "\n" . htmlspecialchars($a["name"] . " ($cat)") . "\n" .
                        "" . htmlspecialchars($a["descr"]) . "\n";
                @fwrite($fd1, $s);
                @fwrite($fd2, $s);
                @fwrite($fd1, "$DEFAULTBASEURL/details.php?id=$a[id]&hit=1\n
\n");
                $filename = htmlspecialchars($a["filename"]);
                @fwrite($fd2, "$DEFAULTBASEURL/download.php/$a[id]/$filename\n\n");
        }
        $s = "
\n
\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 = << 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");

?>


Vollari 27th June 2008 22:38

Re: Torrentstrike Fullymodded v1.0
 
Hey there guys .

I need help with deleting wait times, just dont seem to be able to do it right.

Plz help my thanks

Neptune 28th June 2008 01:16

Re: Torrentstrike Fullymodded v1.0
 
in announce.php + include/bittorrent.php

Code:

if ($ratio < 0.5 || $gigs < 7) $wait = 0;
      elseif ($ratio < 0.65 || $gigs < 14) $wait = 0;
      elseif ($ratio < 0.8 || $gigs < 21) $wait = 0;
      elseif ($ratio < 0.95 || $gigs < 30) $wait = 0;
      else $wait = 0;

set waits to 0 zero

Vollari 28th June 2008 02:23

Re: Torrentstrike Fullymodded v1.0
 
Thanks m8 i also found out you need edit details.php ;)

Neptune 28th June 2008 03:38

Re: Torrentstrike Fullymodded v1.0
 
Yes, i foget to say :P

CR15T1 28th June 2008 19:59

Re: Torrentstrike Fullymodded v1.0
 
i have a problem ! All users can upload torrent !!! :sos:
And when some one downloades something hes download doesn't raze in stead his upload goes up ! :blink:

Timisoreanul 28th June 2008 23:04

Re: Torrentstrike Fullymodded v1.0
 
CR15T1 if all users can upload torrent ..go to your admincp.php and Deselect the Allow Upload For Everyone (Allow all members to upload their torrents (If unchecked: Only class >= uploader can post torrents) and Submit

CR15T1 29th June 2008 19:30

Re: Torrentstrike Fullymodded v1.0
 
This is the problem it's deselected :| but they still cat upload

Vollari 30th June 2008 21:20

Re: Torrentstrike Fullymodded v1.0
 
Yeah also does that at mine its unchecked but they can still upload ???

CR15T1 1st July 2008 00:29

Re: Torrentstrike Fullymodded v1.0
 
Yap and when someone downloads something his upload rises in stead of his download :|

gigasb 12th July 2008 09:14

Re: Torrentstrike Fullymodded v1.0
 
same problem here..


All times are GMT +2. The time now is 21:25.

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