Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > BT.Manager (phpMyBitTorrent) > Mods & Themes
Reply
  #1  
Old 8th September 2010, 02:26
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default nfo generator
It is a generator of nfo based on the MOD for tbdev

needs a little work to touch up how it looks, but with help im sure we can do it.

add both files to root. create nfo directory and place into root (chmodd 777)

make link to nfogen.php

Done.

Attachment added, small program that will convert any picture to ascii text :d
Attached Files
File Type: php gen.php (13.9 KB, 40 views)
File Type: php nfogen.php (9.1 KB, 66 views)
File Type: rar pic2txt.rar (1.05 MB, 55 views)
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
The Following User Says Thank You to daffy For This Useful Post:
VIPER790 (28th December 2021)
  #2  
Old 11th July 2014, 15:33
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
what do you need to alter so you can enclude it to admin panel?
i made the icon,uploaded it,made the item file,uploaded it to admin/items/,uploaded gen.php and nfogen.php to admin/files/....go to admin panel,nfogen item shows up with icon and all show ok, you click it and displays the pnfogen.php page, but when you choose where it shows "Please Select Category" and click "Next" does not go to gen.php...Any ideas?


nfogen.php

PHP Code:
<?

//if (defined('IN_PMBT'))die ("You can't include this file");
//define("IN_PMBT",true);
//include("header.php");

if ($user->admin){

OpenTable("NFO Generator");
if (!isset(
$_POST['cat']) || $_POST['cat']=="")
{
?>
<form action=? method=post>
<table cellpadding="4" cellspacing="1" border="0" style="width:750px" class="tableinborder">
<tr class="tabletitle" width="100%">
<td colspan="10" width="100%"><span class="normalfont"><center><b>NFO Generator</b></center></span></td>
</tr><tr><td width="100%" class="tablea">
Please Select Category
<br><br>
<select name=cat>
<option value=1>Film or series</option>
<option value=2>Music</option>
<option value=3>Software or Games</option>
<option value=4>Other</option>
</select>
<input type=submit value=Next>
</form>
</td>
</tr>
</table>
<?
}
else
{
if (
$_POST['cat']==1)
{
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:750px" class="tableinborder">
<tr class="tabletitle" width="100%">
<td colspan="10" width="100%"><span class="normalfont"><center><b>Generate NFO For Film or Series</b></center></span></td>
</tr><tr><td width="100%" class="tablea">
<form action=gen.php method=post>
<input type=hidden name=cat value=<?=$_POST['cat']?>>
Please Fill Out Those Marked With *.<br><br>
</td>
</tr>
</table>
<table border=0 cellspacing=5 cellpadding=5 width=100%>
<tr>
<td><b>Field</b></td><td><b>Value</b></td><td><b>Example</b></td>
</tr>
<tr>
<td>Your Name (*)</td><td><input type=text name=name value="<?=$CURUSER['username']?>"></td><td><span style="color:#808080;"><?=$CURUSER['username']?></span></td>
</tr>
<tr>
<td>Name Of Release (*)</td><td><input type=text name=rlsname></td><td><span style="color:#808080;">(¯`•. .• The Transporter 3 - D.V.D.R5 •. .•´¯).XViD</span></td>
</tr>
<tr>
<td>Date Of Release (*)</td><td><input type=text name=rlsdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td>Format Of Release (*)</td><td><input type=text name=rlsformat></td><td><span style="color:#808080;">XViD</span></td>
</tr>
<tr>
<td>Cut Of Release (*)</td><td><input type=text name=size></td><td><span style="color:#808080;">2 CD (1.37 GB)</span></td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td>Genre</td><td><input type=text name=genre></td><td><span style="color:#808080;">Triller/Action</span></td>
</tr>
<tr>
<td>Video format</td><td><input type=text name=videoformat></td><td><span style="color:#808080;">640x352 @ 955 kbps</span></td>
</tr>
<tr>
<td>Audio format</td><td><input type=text name=audioformat></td><td><span style="color:#808080;">128 kbps VBR MP3</span></td>
</tr>
<tr>
<td>Language</td><td><input type=text name=sprache></td><td><span style="color:#808080;">English</span></td>
</tr>
<tr>
<td>Duration</td><td><input type=text name=laufzeit></td><td><span style="color:#808080;">179:42 min</span></td>
</tr>
<tr>
<td>Date Of Release</td><td><input type=text name=publicdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td>FSK</td><td><input type=text name=fsk></td><td><span style="color:#808080;">16</span></td>
</tr>
<tr>
<td valign=top>description (Synopsys) (*)</td><td colspan=2><textarea name=descr cols=80 rows=8></textarea></td>
</tr>
<tr>
<td colspan=3><center><input type=Submit value="Generate"></td>
</tr>
</table>
</form>
<? }
if (
$_POST['cat']==2)
{
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:750px" class="tableinborder">
<tr class="tabletitle" width="100%">
<td colspan="10" width="100%"><span class="normalfont"><center><b>Generate NFO For Music</b></center></span></td>
</tr><tr><td width="100%" class="tablea">
<form action=gen.php method=post>
<input type=hidden name=cat value=<?=$_POST['cat']?>>
Please Fill Out Those Marked With *.<br><br></td>
</tr>
</table>
<table border=0 cellspacing=5 cellpadding=5 width=100%>
<tr>
<td><b>Fields</b></td><td><b>Value</b></td><td><b>Example</b></td>
</tr>
<tr>
<td>Your Name (*)</td><td><input type=text name=name value="<?=$CURUSER['username']?>"></td><td><span style="color:#808080;"><?=$CURUSER['username']?></span></td>
</tr>
<tr>
<td>Name Of Release (*)</td><td><input type=text name=rlsname></td><td><span style="color:#808080;">VA-Euro Express 680U-2CD-2006-RAS</span></td>
</tr>
<tr>
<td>Date Of Release (*)</td><td><input type=text name=rlsdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td>Format Of release (*)</td><td><input type=text name=rlsformat></td><td><span style="color:#808080;">MP3</span></td>
</tr>
<tr>
<td>Cut Release (*)</td><td><input type=text name=size></td><td><span style="color:#808080;"> CD (23.5 MB)</span></td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td>Genre</td><td><input type=text name=genre></td><td><span style="color:#808080;">Trance</span></td>
</tr>
<tr>
<td>Audio format (*)</td><td><input type=text name=audioformat></td><td><span style="color:#808080;">128 kbps VBR MP3 Stereo / 44100 hz</span></td>
</tr>
<tr>
<td>Duration</td><td><input type=text name=laufzeit></td><td><span style="color:#808080;">79:42 min</span></td>
</tr>
<tr>
<td>Date Of Release</td><td><input type=text name=publicdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td valign=top>List Of Tracks(*)</td><td colspan=2><textarea name=descr cols=80 rows=8></textarea></td>
</tr>
<tr>
<td colspan=3><center><input type=Submit value="Generate"></td>
</tr>
</table>
</form>
<? }
if (
$_POST['cat']==3)
{
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:750px" class="tableinborder">
<tr class="tabletitle" width="100%">
<td colspan="10" width="100%"><span class="normalfont"><center><b>Generat NFO For Software</b></center></span></td>
</tr><tr><td width="100%" class="tablea">
<form action=gen.php method=post>
<input type=hidden name=cat value=<?=$_POST['cat']?>>
Please Fill Out Those Marked With *.<br><br></td>
</tr>
</table>
<table border=0 cellspacing=5 cellpadding=5 width=100%>
<tr>
<td><b>champs</b></td><td><b>Valeur</b></td><td><b>exemple</b></td>
</tr>
<tr>
<td>Your Name (*)</td><td><input type=text name=name value="<?=$CURUSER['username']?>"></td><td><span style="color:#808080;"><?=$CURUSER['username']?></span></td>
</tr>
<tr>
<td>Name Of Release (*)</td><td><input type=text name=rlsname></td><td><span style="color:#808080;">Nero Burning Rom v7 Premium</span></td>
</tr>
<tr>
<td>Date Of Release (*)</td><td><input type=text name=rlsdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td>Format Of release (*)</td><td><input type=text name=rlsformat></td><td><span style="color:#808080;">Application</span></td>
</tr>
<tr>
<td>Cut Of Release (*)</td><td><input type=text name=size></td><td><span style="color:#808080;"> CD (124.5 MB)</span></td>
</tr>
<tr>
<td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
</tr>
<tr>
<td>System</td><td><input type=text name=system></td><td><span style="color:#808080;">Windows</span></td>
</tr>
<tr>
<td>Language</td><td><input type=text name=sprache></td><td><span style="color:#808080;">English</span></td>
</tr>
<tr>
<td>Protection</td><td><input type=text name=protection></td><td><span style="color:#808080;">Serial</span></td>
</tr>
<tr>
<td>Date Of Release</td><td><input type=text name=publicdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td valign=top>Description (*)</td><td colspan=2><textarea name=descr cols=80 rows=8></textarea></td>
</tr>
<tr>
<td colspan=3><center><input type=Submit value="Generate"></td>
</tr>
</table>

</form>
<? }
if (
$_POST['cat']==4)
{
?>
<table cellpadding="4" cellspacing="1" border="0" style="width:750px" class="tableinborder">
<tr class="tabletitle" width="100%">
<td colspan="10" width="100%"><span class="normalfont"><center><b>Generate NFO For Other</b></center></span></td>
</tr><tr><td width="100%" class="tablea">
<form action=gen.php method=post>
<input type=hidden name=cat value=<?=$_POST['cat']?>>
Please Fill Out Those Marked With *<br><br>
</td>
</tr>
</table>
<table border=0 cellspacing=5 cellpadding=5 width=100%>
<tr>
<td><b>Fields</b></td><td><b>Value</b></td><td><b>example</b></td>
</tr>
<tr>
<td>Your Name (*)</td><td><input type=text name=name value="<?=$CURUSER['username']?>"></td><td><span style="color:#808080;"><?=$CURUSER['username']?></span></td>
</tr>
<tr>
<td>Name Of release (*)</td><td><input type=text name=rlsname></td><td><span style="color:#808080;">Far.Cry.2.PLUS</span></td>
</tr>
<tr>
<td>Date Of Release (*)</td><td><input type=text name=rlsdate></td><td><span style="color:#808080;">14.12.2008</span></td>
</tr>
<tr>
<td>Format Of release (*)</td><td><input type=text name=rlsformat></td><td><span style="color:#808080;">RAR</span></td>
</tr>
<tr>
<td>Cut Of Release (*)</td><td><input type=text name=size></td><td><span style="color:#808080;"> CD (23.5 MB)</span></td>
</tr>
<tr>
<td colspan=3><center><input type=Submit value="Generate"></td>
</tr>
</table>
</form>
<? ?>
<?
}
CloseTable();
}
include(
"footer.php");
?>



gen.php
PHP Code:
<?
//if (defined('IN_PMBT'))die ("You can't include this file");
//define("IN_PMBT",true);
//include("header.php");

if ($user->user){

function 
createnfo ($text) {
$current=time();
$datafile fopen("nfo/" $current ".nfo""w+");
fwrite($datafile$text);
fclose($datafile);
$link "<a href=\"nfo/" $current ".nfo\">Click to view/ Righ click save target as, to save.</a>";
return 
$link;
}

foreach(
explode(":","name:rlsname:rlsdate:rlsformat") AS $v)
if (!isset(
$_POST[$v]) || $_POST[$v]=="")
die (
"Wrong Url Handler $v oublier");
$len=array();
$len['total']=81;
$titlerow1="";
$titlerow="";
$blankline="";
$descrbasic="";
$descr="";
$title="Äͼ ";
$title.=$_POST['rlsname'];
if (((
strlen($title)/2)!= floor(strlen($title)/2)) || ((strlen($title)/2)!= ceil(strlen($title)/2)))
$title.=" ";
$title.=" ";
$title1="ÄÍ» ";
for (
$i=0;$i<(strlen($title)-8);$i++)
$title1.=" ";
$title1.=" ";
$titlerow=substr_replace($titlerow,$title,($len['total']/2) - ceil(strlen($title)/2) -1,strlen($title));
$titlerow1=substr_replace($titlerow1,$title1,($len['total']/2) - ceil(strlen($title1)/2) -1,strlen($title1));
function 
writeline($text)
{
GLOBAL 
$blankline;
$line=substr_replace($blankline,$text,10,strlen($text));
return(
$line);
}
function 
writedescrline($text)
{
GLOBAL 
$descrbasic;
$line=substr_replace($descrbasic,$text,15,strlen($text));
return(
$line);
}
$linerlsformat=writeline("Format.......: ".$_POST['rlsformat']);
$linerlsdatewriteline("Date of release.: ".$_POST['rlsdate']);
$lineuploaderwriteline("Uploader.....: ".$_POST['name']);
$linesizewriteline("Cut......: ".$_POST['size']);

if (
$_POST['cat']!=2)
{
$beschreibungwriteline("Description:");
$beschreibung1=writeline("-------------");
}
else
{
$beschreibungwriteline("Track List:");
$beschreibung1=writeline("------------");
}
// Erstelle die optionalen Infos je nach Cat
$lineadd="";

if (
$_POST['cat']=="1")
{
if (
$_POST["genre"]!="")
$lineadd.= writeline("Genre........: ".$_POST['genre'])."\n";
if (
$_POST["videoformat"]!="")
$lineadd.= writeline("Video format..: ".$_POST['videoformat'])."\n";
if (
$_POST["audioformat"]!="")
$lineadd.= writeline("Audio format..: ".$_POST['audioformat'])."\n";
if (
$_POST["Language"]!="")
$lineadd.= writeline("Language......: ".$_POST['Language'])."\n";
if (
$_POST["Running Time"]!="")
$lineadd.= writeline("Duration.....: ".$_POST['Running Time'])."\n";
if (
$_POST["publicdate"]!="")
$lineadd.= writeline("Date.: ".$_POST['publicdate'])."\n";
if (
$_POST["fsk"]!="")
$lineadd.= writeline("FSK..........: ".$_POST['fsk'])."\n";
if (
$_POST["descr"]!="")
$lineadd.= writeline("Description.......: ".$_POST['descr'])."\n";
}
if (
$_POST['cat']=="2")
{
if (
$_POST["genre"]!="")
$lineadd.= writeline("Genre........: ".$_POST['genre'])."\n";
if (
$_POST["audioformat"]!="")
$lineadd.= writeline("Audio format..: ".$_POST['audioformat'])."\n";
if (
$_POST["Running Time"]!="")
$lineadd.= writeline("Duration...: ".$_POST['Running Time'])."\n";
if (
$_POST["publicdate"]!="")
$lineadd.= writeline("Date: ".$_POST['publicdate'])."\n";
if (
$_POST["descr"]!="")
$lineadd.= writeline("Tracklist.......: ".$_POST['descr'])."\n";
}
if (
$_POST['cat']=="3")
{
if (
$_POST["system"]!="")
$lineadd.= writeline("System.......: ".$_POST['system'])."\n";
if (
$_POST["sprache"]!="")
$lineadd.= writeline("Language......: ".$_POST['Language'])."\n";
if (
$_POST["protection"]!="")
$lineadd.= writeline("Protection...: ".$_POST['protection'])."\n";
if (
$_POST["publicdate"]!="")
$lineadd.= writeline("Date: ".$_POST['publicdate'])."\n";
if (
$_POST["descr"]!="")
$lineadd.= writeline("Description.......: ".$_POST['descr'])."\n";
}

$lineadd.=$blankline;
// END of optional Infos

if ($_POST['cat']!=2)
{
$linedescr="";
$descr=str_replace("\n","",$_POST['descr']);
$descr=wordwrap($descr50"\n"0);
foreach (
explode("\n",$descr) AS $z)
{
$z=str_replace("\r\n","",$z);
$z=str_replace("\n","",$z);
$z=str_replace("<br>","",$z);
$z=str_replace("<br />","",$z);
$linedescr.=writedescrline($z)."\n";
}
$linedescr.=$blankline;
}
else
{
$linedescr="";
foreach (
explode("<br />",nl2br(htmlspecialchars($_POST['descr']))) AS $z)
{
$z=str_replace("\r\n","",$z);
$z=str_replace("\n","",$z);
$z=str_replace("<br>","",$z);
$z=str_replace("<br />","",$z);
$linedescr.=writedescrline($z)."\n";
}
$linedescr.=$blankline;
}




OpenTable("NFOGenerator");

$nfo= <<<EOD
%######################**##*************#**++%:.---=--=+***********##*#######%####%#######%###%%#%%%
%#%%%##%###########################%%###*##*---:-+++****************########################%###%#%%
%#%%%%###############%%%%%%%%#**+===+#%#####%#%%%******************#*##*###############%%###%####%%%
%%%%%%%%%%######%###@@#+-:.    ...::  =@#%%%####%##********+******###################%%%%##%%%%#%%%%
%%%%%%%%%%###%%%%#%@-  :-=+#%%@@@@@@@  @@*.  ..  #%*****++++***###%%*=++*#%%%######@@@@%%%%%%%%%%%%%
%%%%%%%%%%%%%@%%@%@@  %@@%@**%#%%%@@@ -@: :#%@@  @#****+**+++***#%#.  :-:  :*%###%@#==+#@@@%%%%%%%%%
%%%%%%@@@@@@%*++=+%@* +@##@  @##%%#*. @% =@%%%# .@#%%###*#*###**#+  =@@*#@=  *%*#%=  -.  .-#@@@@%%%%
%%%%@@@@#=.. .:::  .% .@%#@=+@#%:        @@%=   .  .#*=====+*#%*##. #%. .@+  @##%*  @@@@%+:  =@@@@%%
%%%@@*-.:-*%@@@@@@%    %@##@@@%@%#%@@@-  @@@: -%@@%   :=----  =@#%@+   +@%  +@*#%@-  =*%@@@@#. =@@%%
%%%@=  @@@@#-#@%%%@@   =@%%@  @%%@@%%@@  #@%@=  *@@-  -+++#@= :@*#%@  @@#+  @#*#%*  #*: =@@@@@  %@%%
@%%@@  #@%@#  #@%%%@#   @@@@  @@%%%%@@*   %@@@@@@@*  #+=-:.   %%*#%+ :@#%: =@*#%*  #@@@%%+==:  :@@%%
@%%%@@  @@@@#  %@%%@@   @@@@@%@@@@@@@= :@   :===:   @@%%%@@@@@@*##%. @@%#  @%#*.   . =@%%-   *@@@%%%
%%%%%@%  @@%@= *@%%@@ .. .-+*#++=-:   *@@@%=:.  .:*@%############%*  +-*: :@##  *@@@**@%%@@+ -@@%%%@
%%%%%%@= +@%%@@@@@@@. @@%=:::.::::-+%@@####%@@@@@@%#*#############%*=.    %%*#. #@#%%%##%%@@: *@%%@%
%%%%%%@@ .@@@@@@@#=  @@@@@@@@@@@@@@@%##############################%@@@@@@@**#%+ .*%%%%%@@@@  #@%%@%
%%%@%%%@. *#+-.   .+@@%%@@@@@%@@@%%%%#####################################****#%%=  :=*###=  -@@@%%%
%%%%%%%@%    .-+#@@@@%%%%%%@@@%%%%%%%%##############%#%##################*******#%@#+:.    :%@@@@%%%
@%%%%%%%@@@@@@@@@@%%%%%%%%%%%%%%%%%%%%%%%########%%%%%%##################*******###%%@@@@@@@@@%%%@%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º º
º                                          PLACE2BSCENE                                          º º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º º                                                                                              º º
º º                                                                                              º º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º º                                                                                              º º
º                                  The best of the community for 2010                           º
º º                                                                                              º º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º                                                                                                  º
º  
$titlerow1                                                                                      º    
º  
$titlerow                                                                                       º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º                                                                                                  º
º  
$blankline                                                                                      º
º  
$linerlsformat                                                                                  º
º  
$linesize                                                                                       º
º  
$lineadd                                                                                        º
º  
$linerlsdate                                                                                    º
º  
$lineuploader                                                                                   º
º                                                                                                  º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º º                                                                                              º º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
º º                                                                                              º º
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@                                     #####                                       %%@@%%%%%%%%%%
@@@@@    http://place2bscene.co.uk        #####    http://place2bscene.co.uk          %%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%
@@@@@%@%%@@@%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%#####%%%%%%%%###############################%%@@%%%%%%%%%%


EOD;
// NFO file speichern und Link posten:
print(createnfo($nfo));

// NFO umwandel funktion
function code($ibm_437$swedishmagic false) {
$table437 = array("\200""\201""\202""\203""\204""\205""\206""\207",
"\210""\211""\212""\213""\214""\215""\216""\217""\220",
"\221""\222""\223""\224""\225""\226""\227""\230""\231",
"\232""\233""\234""\235""\236""\237""\240""\241""\242",
"\243""\244""\245""\246""\247""\250""\251""\252""\253",
"\254""\255""\256""\257""\260""\261""\262""\263""\264",
"\265""\266""\267""\270""\271""\272""\273""\274""\275",
"\276""\277""\300""\301""\302""\303""\304""\305""\306",
"\307""\310""\311""\312""\313""\314""\315""\316""\317",
"\320""\321""\322""\323""\324""\325""\326""\327""\330",
"\331""\332""\333""\334""\335""\336""\337""\340""\341",
"\342""\343""\344""\345""\346""\347""\350""\351""\352",
"\353""\354""\355""\356""\357""\360""\361""\362""\363",
"\364""\365""\366""\367""\370""\371""\372""\373""\374",
"\375""\376""\377");

$tablehtml = array("&#x00c7;""&#x00fc;""&#x00e9;""&#x00e2;""&#x00e4;",
"&#x00e0;""&#x00e5;""&#x00e7;""&#x00ea;""&#x00eb;""&#x00e8;",
"&#x00ef;""&#x00ee;""&#x00ec;""&#x00c4;""&#x00c5;""&#x00c9;",
"&#x00e6;""&#x00c6;""&#x00f4;""&#x00f6;""&#x00f2;""&#x00fb;",
"&#x00f9;""&#x00ff;""&#x00d6;""&#x00dc;""&#x00a2;""&#x00a3;",
"&#x00a5;""&#x20a7;""&#x0192;""&#x00e1;""&#x00ed;""&#x00f3;",
"&#x00fa;""&#x00f1;""&#x00d1;""&#x00aa;""&#x00ba;""&#x00bf;",
"&#x2310;""&#x00ac;""&#x00bd;""&#x00bc;""&#x00a1;""&#x00ab;",
"&#x00bb;""&#x2591;""&#x2592;""&#x2593;""&#x2502;""&#x2524;",
"&#x2561;""&#x2562;""&#x2556;""&#x2555;""&#x2563;""&#x2551;",
"&#x2557;""&#x255d;""&#x255c;""&#x255b;""&#x2510;""&#x2514;",
"&#x2534;""&#x252c;""&#x251c;""&#x2500;""&#x253c;""&#x255e;",
"&#x255f;""&#x255a;""&#x2554;""&#x2569;""&#x2566;""&#x2560;",
"&#x2550;""&#x256c;""&#x2567;""&#x2568;""&#x2564;""&#x2565;",
"&#x2559;""&#x2558;""&#x2552;""&#x2553;""&#x256b;""&#x256a;",
"&#x2518;""&#x250c;""&#x2588;""&#x2584;""&#x258c;""&#x2590;",
"&#x2580;""&#x03b1;""&#x00df;""&#x0393;""&#x03c0;""&#x03a3;",
"&#x03c3;""&#x03bc;""&#x03c4;""&#x03a6;""&#x0398;""&#x03a9;",
"&#x03b4;""&#x221e;""&#x03c6;""&#x03b5;""&#x2229;""&#x2261;",
"&#x00b1;""&#x2265;""&#x2264;""&#x2320;""&#x2321;""&#x00f7;",
"&#x2248;""&#x00b0;""&#x2219;""&#x00b7;""&#x221a;""&#x207f;",
"&#x00b2;""&#x25a0;""&#x00a0;");
$s htmlspecialchars($ibm_437);


// 0-9, 11-12, 14-31, 127 (decimalt)
$control =
array(
"\000""\001""\002""\003""\004""\005""\006""\007",
"\010""\011"/*"\012",*/ "\013""\014"/*"\015",*/ "\016""\017",
"\020""\021""\022""\023""\024""\025""\026""\027",
"\030""\031""\032""\033""\034""\035""\036""\037",
"\177");

$s str_replace($control," ",$s);


if (
$swedishmagic){
$s str_replace("\345","\206",$s); // Code windows "å" to dos.
$s str_replace("\344","\204",$s); // Code windows "ä" to dos.
$s str_replace("\366","\224",$s); // Code windows "ö" to dos.
$s str_replace("\304","\216",$s); // Code windows "Ä" to dos.
//$s = "[ -~]\\xC4[a-za-z]";

$s ereg_replace("([ -~])\305([ -~])""\\1\217\\2"$s); // Å
$s ereg_replace("([ -~])\304([ -~])""\\1\216\\2"$s); // Ä
$s ereg_replace("([ -~])\326([ -~])""\\1\231\\2"$s); // Ö

$s str_replace("\311""\220"$s); // É
$s str_replace("\351""\202"$s); // é
}

$s str_replace($table437$tablehtml$s);
return 
$s;
}
// end funktion

// nfo gewandelt ausgeben
print ("<pre font-family: 'Courier New', monospace;\">".format_urls(code($nfo,FALSE))."</pre>");
CloseTable();

include(
"footer.php");

}
?>
Reply With Quote
  #3  
Old 11th July 2014, 16:43
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
first off nether of those where made to go into the admin panel.
both those would need to go into admin/files/
then you would need to make a new file for admin/items/ for linking
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
Giorgatzelos (11th July 2014)
  #4  
Old 11th July 2014, 16:56
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
that is what i did Joe as you can see, but when i select something it does not link

this is the file /admin/items/nfogen.php

PHP Code:

<?php
/*
*-------------------------------phpMyBitTorrent--------------------------------*
*--- The Ultimate BitTorrent Tracker and BMS (Bittorrent Management System) ---*
*--------------   Created By Antonio Anzivino (aka DJ Echelon)   --------------*
*-------------               http://www.p2pmania.it               -------------*
*------------ Based on the Bit Torrent Protocol made by Bram Cohen ------------*
*-------------              http://www.bittorrent.com             -------------*
*------------------------------------------------------------------------------*
*------------------------------------------------------------------------------*
*--   This program is free software; you can redistribute it and/or modify   --*
*--   it under the terms of the GNU General Public License as published by   --*
*--   the Free Software Foundation; either version 2 of the License, or      --*
*--   (at your option) any later version.                                    --*
*--                                                                          --*
*--   This program is distributed in the hope that it will be useful,        --*
*--   but WITHOUT ANY WARRANTY; without even the implied warranty of         --*
*--   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          --*
*--   GNU General Public License for more details.                           --*
*--                                                                          --*
*--   You should have received a copy of the GNU General Public License      --*
*--   along with this program; if not, write to the Free Software            --*
*-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA --*
*--                                                                          --*
*------------------------------------------------------------------------------*
*------              ©2005 phpMyBitTorrent Development Team              ------*
*-----------               http://phpmybittorrent.com               -----------*
*------------------------------------------------------------------------------*
*/

if (!defined('IN_PMBT')) die ("You can't access this file directly");

adminentry("nfo","nfogen","NFO Generator","userinfo");
$op_keys explode(",","nfogen");
?>
Bump: Maybe i need to add something in this line?

PHP Code:
$op_keys explode(",","nfogen"); 
Attached Thumbnails
Screen Shot 2014-07-11 at 5.51.27 PM.PNG   Screen Shot 2014-07-11 at 5.51.34 PM.PNG  
Reply With Quote
  #5  
Old 11th July 2014, 22:43
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
dont know bud its been a while since i used and seen this lol 4 years old matey so prob wants alot of work doing to it for new BTM, also im not running new code atm so cant test or play with anything. its been a long long time since i done anything tbh but i setup a server lastnight again .maybe il get back helping joe out and repairing a few things of mine.....

__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #6  
Old 11th July 2014, 23:00
Giorgatzelos's Avatar
Giorgatzelos Giorgatzelos is offline
Senior Member
 
Join Date: Nov 2009
Greece
Posts: 300
Default
it is for pmbt 2.04...
Reply With Quote
Reply

Tags
generator , nfo

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 13:16. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.