View file down/tipes/txt.php

File size: 682B
<?
echo "<div class='contur'><div class='header'>";



if (is_file("$l/index.txt"))
{
$opis=file("$l/index.txt");
$opis=implode("",$opis);

$opis=str_replace("\r\n","<br />",$opis);
$opis=str_replace("\r","<br />",$opis);
$opis=str_replace("\n","<br />",$opis);
echo "Описание:<br />$opis<br />\n";
}






if ($qw['type']=="999" && $r=="ok")
{
$prl_2=ereg_replace("/$","",$prl);
$prl_2=ereg_replace("^/","",$prl_2);
echo "[<a href=\"dir.php?l=$prl_2&amp;set=$file&amp;act=del\">Удалить</a>]";
echo "[<a href=\"dir.php?l=$prl_2&amp;set=$file&amp;act=set&amp;page=$page\">Параметры</a>]";
}
echo "</div>\n";
echo "</div>\n";
?>