Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Nfo-ripper
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-08-22 09:22:29
this mod has been taken from TBdev and modified to work with TTv2.xx

it takes all the ascii stuff out of the nfo and leaves you with the important stuff

nforipper.php

<?

require_once("backend/functions.php");



dbconn(false);



loggedinonly();



stdhead("nforipper");

echo "<h1>NFO ripper</h1>";



if ($action == "rip") {

$parsed_nfo="";



for ($i=0;$i<strlen($nfo);$i++) {

//echo "$nfo[$i] =>".ord($nfo[$i])."<br>";

if ( ((ord($nfo[$i]) >= 32) && (ord($nfo[$i]) <= 127)) || (ord($nfo[$i]) == 228) || (ord($nfo[$i]) == 229) || (ord($nfo[$i]) == 246) || (ord($nfo[$i]) == 197) || (ord($nfo[$i]) == 196) || (ord($nfo[$i]) == 214) ) {

$parsed_nfo.=$nfo[$i];

} elseif (ord($nfo[$i]) == 13) {

$parsed_nfo.="<br>";

}

}



$parsed_nfo = split("<br>",$parsed_nfo);



echo "<table class=embedded><tr><td align=left>";



for ($i=0;$i<count($parsed_nfo);$i++) {

if ( (trim($parsed_nfo[$i]) == "") && (trim($parsed_nfo[$i+1]) == "") ) { } else {

echo trim($parsed_nfo[$i])."<br>";

}

}

echo "</td></tr></table>";



stdfoot();

exit;

}







?>



<form action="nforipper.php" method="post">

<input type="hidden" name="action" value="rip">

<textarea name="nfo" cols=80 rows=25></textarea>

<p><input type=submit value=Rip!>



<? stdfoot(); ?>





to put link in torrent-upload.php



look for



print ("<TR><TD align=right>" . NFO . ": </td><td align=left> <input type=file name=nfo size=50 value=" . $_FILES['nfo']['name'] . "><br />\n</td></tr>");





and add below



print ("<a href=nforipper.php target=_blank><br>Try our new NFO ripper</a><BR>");
Unknown User
2008-08-22 10:32:10
Hmm  :blink:  Nice hack.
Unknown User
2008-08-22 10:43:00
cheers wolfnet its my first proper hack but i tested it to make sure it worked right before i put it on
Unknown User
2008-08-29 19:24:19
Thank you...good work
Unknown User
2009-06-27 15:09:59
Cool thanks!
Unknown User
2009-06-30 11:16:24
this doesn't work for me, it doesn't strip the ascii out of devises nfo's at all.. is there any more characters i can add for it to strip..

Or what about someone doing a mod like the latest TbDev where the description can be ripped from the nfo automatically and entered, taking out the ascii too..
Unknown User
2009-06-30 18:21:07
demo please
Unknown User
2009-06-30 18:48:12


Original: [url="http://pastebin.com/f685e08c5"]http://pastebin.com/f685e08c5[/url]

I have no idea if the whole page actually works, i'm just using

for ($i=0;$i<strlen($nfo);$i++) {

//echo "$nfo[$i] =>".ord($nfo[$i])."<br>";

if ( ((ord($nfo[$i]) >= 32) && (ord($nfo[$i]) <= 127)) || (ord($nfo[$i]) == 228) || (ord($nfo[$i]) == 229) || (ord($nfo[$i]) == 246) || (ord($nfo[$i]) == 197) || (ord($nfo[$i]) == 196) || (ord($nfo[$i]) == 214) ) {

$parsed_nfo.=$nfo[$i];

} elseif (ord($nfo[$i]) == 13) {

$parsed_nfo.="<br>";

}

}

in my script that draws it as an image.
nfo.png
nfo.png
Unknown User
2010-03-02 20:35:11
Works perfect! thanks
Unknown User
2011-09-02 19:20:23
i been using an nfo ripper since day 1 of my site, it gets most of the nfo junk, sometimes it messes up on stuff but heck mostly it works.  The other stuff my staff can fix thats what they are well staff for LOL other then just an status thing.. hehehe

Dont know if it works on devise.. that release group is OLD lol from what I found so far..
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728