Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=87)
-   -   NFO Ripper (http://www.bvlist.com/showthread.php?t=952)

Grom 5th September 2008 13:58

NFO Ripper
 
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
PHP Code:

<?
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])."";
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.="";
}
}

$parsed_nfo split("",$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])."";
}
}
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
PHP Code:

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

and add below
PHP Code:

print ("<a href=nforipper.php target=_blank>NFO ripper</a><BR>"); 


xDev 8th September 2011 00:39

this dose not work ascii

");
EagleLake 11th November 2011 18:58

erratum
 
line is:drink:
Code:

print ("
" .T_("NFO"). ": \n


All times are GMT +2. The time now is 15:47.

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