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
then farther down if want to change
to
Those who want an very basic nforipper replace in torrents-upload
with
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"];
}