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
Nfo Ripper
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-03-27 15:56:27
[size=18px]I adapted this very useful mod for uploaders from tbdev.[/size]

Create a new file called <b>nforipper.php</b> with this code:



<?

require_once("backend/functions.php");

dbconn(false);

loggedinonly();

stdhead("NFO Ripper",true,false);

begin_frame("NFO Ripper");

echo "<br></br><center>";

if (get_user_class() < 1) {

print("<table border=1><td align=center width=500 height=50><font size=3 color=red><b>Access Denied!</b></font></td></table><br>");

end_frame();

stdfoot(); }

if (get_user_class() >= 1)

{

echo "<h2 align=center>".T_("EXTRACT_TEXT").":</h2>";

$action = $_POST["action"];

$nfo = $_POST["nfo"];

if ($action == "rip")

{

$parsed_nfo="";

for ($i=0;$i<strlen($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.="<br>";  

}

}

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

echo "<table class=ttable_headouter width=90%><tr><td align=left>";

echo "<h1 align=left>".T_("EXTRACTED").":</h1>";

echo "<hr size=1>";

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 "<br><hr size=1>";

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

echo "</center>";

end_frame();

stdfoot();

exit;

}

?>

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

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

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

<p><input type=submit value=Ripp-NFO>

<br></br>



<?

}

end_frame();

stdfoot();

?>

Add these in language/english.php:




$LANG["EXTRACT_TEXT"] = "Extracts only the text from a NFO file";

$LANG["EXTRACTED"] = "Extracted text";






Find in backend/bbcode.php:





 <br />

 <a href="javascript:PopMoreSmiles('<?php echo $form; ?>','<?php echo $name; ?>');"><?php echo "[".T_("MORE_SMILIES")."]";?></a><br />

 <a href="javascript:PopMoreTags();"><?php echo "[".T_("MORE_TAGS")."]";?></a><br />






and replace with this code:





 <div style="margin-top:5px"><a href="javascript:PopMoreSmiles('<?php echo $form; ?>','<?php echo $name; ?>');"><?php echo "[".T_("MORE_SMILIES")."]";?></a></div>

 <div style="margin-top:3px"><a href="nforipper.php">[NFO Ripper]</a></div>

 <div style="margin-top:3px"><a href="javascript:PopMoreTags();"><?php echo "[".T_("MORE_TAGS")."]";?></a></div>




Shot1.png
Shot1.png
Shot2.png
Shot2.png
2012-06-10 19:42:32
First mode install thank you!  :)

Question:

possible to return a page nforipper.php? :blink:
Unknown User
2014-10-09 09:59:36
hello all ,please where go the file nforipper.php  :)
2014-10-09 16:49:40
the nforipper.php will go in the root folder with the rest of your files.
Unknown User
2014-10-10 13:07:34
ok big thanks  :)
Unknown User
2014-10-10 15:27:59
Just due to the nature how this works its prob not able to made an auto return but prob you could add an link back.

un-tested but you could also try removing 1st

stdfoot();
exit;
It might show the add thing again..

"Tiloup, post: 83488":

First mode install thank you!

Question:
possible to return a page nforipper.php?
Unknown User
2014-10-10 18:33:03
if you tt2.08 share this code

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7100"]nforipper.php[/url]
nforipper.php
Download
2014-10-11 17:08:58
Error:

Deprecated: Function split() is deprecated in /home/XXX/public_html/nforipper.php on line 32

(Thank arcticwolf)

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7103"]nforipper.php[/url]
nforipper.php
Download

Unknown User
2014-10-11 20:00:51
new correction

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7104"]nforipper.php[/url]
nforipper.php
Download
2014-10-11 20:47:20
Deprecated: Function split() is deprecated in /home/XXX/public_html/nforipper.php on line 35

>>>split()
Unknown User
2014-10-11 21:18:08
blame php makers for removing stuff..
[url="http://stackoverflow.com/questions/17815857/deprecated-function-split-is-deprecated-how-to-fix-this-statement"]http://stackoverflow.com/questions/17815857/deprecated-function-split-is-deprecated-how-to-fix-this-statement[/url]

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

to

$parsed_nfo = explode("<br />",$parsed_nfo);
might work.
2014-10-12 03:48:23
"ArcticWolf, post: 93397":

blame php makers for removing stuff..

[url="http://stackoverflow.com/questions/17815857/deprecated-function-split-is-deprecated-how-to-fix-this-statement"]http://stackoverflow.com/questions/17815857/deprecated-function-split-is-deprecated-how-to-fix-this-statement[/url]

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

$parsed_nfo = explode("<br />",$parsed_nfo);
might work.
work #1  :D

Thank you, I'll keep this linkĀ   ;)
Unknown User
2014-10-14 01:25:07
sorry Tiloup,thank you Artic

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7108"]nforipper.php[/url]
nforipper.php
Download
2014-10-14 10:12:29
"phoenix75, post: 93416":

sorry Tiloup,thank you Artic
;)
2015-04-25 12:05:51
some problem

[ATTACH]7229.IPB[/ATTACH]
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728