
05.10.2008, 21:39
|
|
Leaders of Antichat - Level 4
Регистрация: 16.01.2006
Сообщений: 1,966
Провел на форуме: 21768337
Репутация:
3486
|
|
articles.php
PHP код:
<center>
<?php echo $articletitle;?><br>
</center>
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
if (!isset($rs))
{
if ($handle = opendir("article"))
{
while (false !==($file = readdir($handle)))
{
if ($file !='.'&& $file !='..')
{
echo "<u>Дoбавлено:</u> ";
echo date("d-m-Y H:i", filectime("article/$file"));
include ("article/$file");
echo "<br><br><u>Название:</u><br>";
echo $name;
echo "<br><br>";
echo $pre;
echo "<br><a href = 'index.php?page=articles&rs=$file'>Читать далее</a>";
echo "<br><br><hr><br>";
}
}
closedir($handle);
}
}
else
{
if(ereg("[0-9]{10}",$rs))
{
include "article/$rs";
echo "Дoбавлено:";
echo date("d-m-Y H:i", filectime("article/$rs"));
echo "<br>";
echo "Название: $name";
echo "<br>";
echo "$text";
echo "<br><a href = 'index.php?page=articles'>Вернуться назад!</a>";
}
else
{
echo "php including protection";
}
}
?>
<hr>
Что то дико норкоманское=\
|
|
|