Czy jest taka możliwość :?: :?:
Oto skrypt:
Kod
<?
extract(array_merge($_GET,$_POST,$_COOKIE,$_SESSION),EXTR_OVERWRITE);
$ruri='?'.$HTTP_SERVER_VARS["QUERY_STRING"].'&';
require_once ("btools/config.php");
function PokazSpis()
{
global $ruri,$PHP_SELF,$cat,$plik;
$ruri=eregi_replace ("plik=$plik",'',$ruri);
echo '<center><table><tr><td>   <b>Kategoria</b></td><td><b>Plików</b></td></tr>';
$katalog='btools/download/linki';
$katalog=opendir($katalog);
$i=0;
while ($element=readdir($katalog))
{
if ($element!='..'&&$element!='.')
{
$temp=eregi_replace('.dat','',$element);
$nazwa_kategorii=file('btools/download/dane.dat');
$file=file('btools/download/linki/'.$element);
$ile=count($file);
$ruri_mod=str_replace('&cat='.$cat,'',$ruri);
$ruri_mod=str_replace('&&','&',$ruri_mod);
echo '<tr><td>   <a>'.$nazwa_kategorii[$temp-1].'</a></td><td>'.$ile.'</td></tr>'."\n";
$i++;
if ($i=='2')
{
echo '</tr><tr>'."\n";
$i=0;
}
}
}
echo '</table>'."\n\n".'<br><hr><br>';
}
function PokazKategorie($cat)
{
if (file_exists('btools/download/linki/'.$cat.'.dat'))
{
global $ruri;
$file=file('btools/download/linki/'.$cat.'.dat');
$ile=count($file);
$n=0;
echo '<table><tr><td>   <b><font>Plik</font></b></td><td><b><font>Pobrań</font></b></td></tr>';
while ($n<$ile)
{
$temp=explode('<~>',$file[$n]);
if (file_exists('btools/download/licznik/'.$cat.'-'.$temp[0].'.wyj'))
{
$nr=file('btools/download/licznik/'.$cat.'-'.$temp[0].'.wyj');
$nr=$nr[0];
}
else $nr=0;
echo '<tr><td>   <a>'.$temp[1].'</a></td><td>'.$nr.'</td></tr>';
$n++;
}
echo '</table>';
}
else echo 'Kategoria <b>'.$cat.'</b> nie istnieje !';
}
function PokazPlik($cat,$plik)
{
if (file_exists('btools/download/linki/'.$cat.'.dat'))
{
global $ruri;
// this download protection is (R) by r_w6 and may NOT be used without his agreement !
$id=md5($_SERVER["HTTP_USER_AGENT"] . $_SERVER["HTTP_ACCEPT_ENCODING"] . $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
$file=file('btools/download/linki/'.$cat.'.dat');
$ile=count($file);
$n=0;
while ($n</font>
extract(array_merge($_GET,$_POST,$_COOKIE,$_SESSION),EXTR_OVERWRITE);
$ruri='?'.$HTTP_SERVER_VARS["QUERY_STRING"].'&';
require_once ("btools/config.php");
function PokazSpis()
{
global $ruri,$PHP_SELF,$cat,$plik;
$ruri=eregi_replace ("plik=$plik",'',$ruri);
echo '<center><table><tr><td>   <b>Kategoria</b></td><td><b>Plików</b></td></tr>';
$katalog='btools/download/linki';
$katalog=opendir($katalog);
$i=0;
while ($element=readdir($katalog))
{
if ($element!='..'&&$element!='.')
{
$temp=eregi_replace('.dat','',$element);
$nazwa_kategorii=file('btools/download/dane.dat');
$file=file('btools/download/linki/'.$element);
$ile=count($file);
$ruri_mod=str_replace('&cat='.$cat,'',$ruri);
$ruri_mod=str_replace('&&','&',$ruri_mod);
echo '<tr><td>   <a>'.$nazwa_kategorii[$temp-1].'</a></td><td>'.$ile.'</td></tr>'."\n";
$i++;
if ($i=='2')
{
echo '</tr><tr>'."\n";
$i=0;
}
}
}
echo '</table>'."\n\n".'<br><hr><br>';
}
function PokazKategorie($cat)
{
if (file_exists('btools/download/linki/'.$cat.'.dat'))
{
global $ruri;
$file=file('btools/download/linki/'.$cat.'.dat');
$ile=count($file);
$n=0;
echo '<table><tr><td>   <b><font>Plik</font></b></td><td><b><font>Pobrań</font></b></td></tr>';
while ($n<$ile)
{
$temp=explode('<~>',$file[$n]);
if (file_exists('btools/download/licznik/'.$cat.'-'.$temp[0].'.wyj'))
{
$nr=file('btools/download/licznik/'.$cat.'-'.$temp[0].'.wyj');
$nr=$nr[0];
}
else $nr=0;
echo '<tr><td>   <a>'.$temp[1].'</a></td><td>'.$nr.'</td></tr>';
$n++;
}
echo '</table>';
}
else echo 'Kategoria <b>'.$cat.'</b> nie istnieje !';
}
function PokazPlik($cat,$plik)
{
if (file_exists('btools/download/linki/'.$cat.'.dat'))
{
global $ruri;
// this download protection is (R) by r_w6 and may NOT be used without his agreement !
$id=md5($_SERVER["HTTP_USER_AGENT"] . $_SERVER["HTTP_ACCEPT_ENCODING"] . $_SERVER["HTTP_ACCEPT_LANGUAGE"]);
$file=file('btools/download/linki/'.$cat.'.dat');
$ile=count($file);
$n=0;
while ($n</font>
Za wszelką pomoc dziękuje :wink: