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
Auto Get Description if Include an .nfo
Controls ·  Search New posts · Mark unread

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

Unknown User
2013-04-11 17:20:05
Basically auto adds an description if you include an .nfo in the proper place..

in torrents-upload.php

find

$descr = $_POST["descr"];change it to

if ($nfo=='yes') {
       $descr = @file_get_contents($nfofilename);
   } else {
   $descr = $_POST["descr"];
   }

then farther down if want to change
print ("<tr><td align='center' colspan='2'>" . T_("DESCRIPTION") . "</td></tr></table>");

to
print ("<tr><td align='center' colspan='2'>" . T_("DESCRIPTION") . "<br />If you include an nfo above you dont have to put an description in.</td></tr></table>");

Those who want an very basic nforipper replace in torrents-upload


if ($nfo=='yes') {
       $descr = @file_get_contents($nfofilename);
   } else {
   $descr = $_POST["descr"];
   }

with

   if ($nfo=='yes') {
       $descr1 = @file_get_contents($nfofilename);
   for ($i=0;$i<strlen($descr1);$i++) {
//echo "$nfo[$i] =>".ord($nfo[$i])."<br>";
if ( ((ord($descr1[$i]) >= 32) && (ord($descr1[$i]) <= 127)) || (ord($descr1[$i]) == 228) || (ord($descr1[$i]) == 229) || (ord($descr1[$i]) == 246) || (ord($descr1[$i]) == 197) || (ord($descr1[$i]) == 196) || (ord($descr1[$i]) == 214) ) {
$parsed_nfo.=$descr1[$i];
} elseif (ord($descr1[$i]) == 13) {
$parsed_nfo.="n";
}
   }
   $descr = $parsed_nfo;
   } else {
   $descr = $_POST["descr"];
   }
Unknown User
2020-09-22 02:08:17
Basically auto adds an description if you include an .nfo in the proper place..

in torrents-upload.php

find

[php]
$descr = $_POST["descr"];
[/php]

change it to
     
[php]
if ($nfo=='yes') {
$descr = @file_get_contents($nfofilename);
} else {
$descr = $_POST["descr"];
}
[/php]

then farther down if want to change
     
[php]
print ("<tr><td align='center' colspan='2'>" . T_("DESCRIPTION") . "</td></tr></table>");
[/php]

to
     
[php]
print ("<tr><td align='center' colspan='2'>" . T_("DESCRIPTION") . "<br />If you include an nfo above you dont have to put an description in.</td></tr></table>");
[/php]

Those who want an very basic nforipper replace in torrents-upload

[php]
if ($nfo=='yes') {
$descr = @file_get_contents($nfofilename);
} else {
$descr = $_POST["descr"];
}
[/php]
 
with
     
[php]
if ($nfo=='yes') {
$descr1 = @file_get_contents($nfofilename);
for ($i=0;$i<strlen($descr1);$i++) {
//echo "$nfo[$i] =>".ord($nfo[$i])."<br>";
if ( ((ord($descr1[$i]) >= 32) && (ord($descr1[$i]) <= 127)) || (ord($descr1[$i]) == 228) || (ord($descr1[$i]) == 229) || (ord($descr1[$i]) == 246) || (ord($descr1[$i]) == 197) || (ord($descr1[$i]) == 196) || (ord($descr1[$i]) == 214) ) {
$parsed_nfo.=$descr1[$i];
} elseif (ord($descr1[$i]) == 13) {
$parsed_nfo.="\n";
}
}
$descr = $parsed_nfo;
} else {
$descr = $_POST["descr"];
}
[/php]
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728