Размер файла: 2.9Kb
<?
/////////// Powered by Giga!!! /////////
/////////// http://gwap.net.ru /////////
/////////// Disign by 3v!!! /////////
/////////// http://wap.vavan.ru /////////
Error_Reporting(E_ALL & ~E_NOTICE);
include "set.php";
echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xml:lang="ru"> <head>';
echo "<title>$site-гостевая</title>";
echo '<link rel="stylesheet" href="/style.css" type="text/css" />
<link rel="home" href="/"/><link rel="up" href="../"/>';
echo "<link rel=\"stylesheet\" href=\"styles/$style.css\" type=\"text/css\" />";
echo '</head><body>';
$dir_rec = dir("rec");
$i = 0;
while($entry = $dir_rec->read())
{
if (substr($entry,0,3)=="rec")
{
$names[$i]=substr($entry,4);
$i++;
}
}
$dir_rec->close();
@rsort($names);
$count = $i;
$count1 = $count;
if (empty($start))
{
$start = 0;
}
$start = intval($start);
if ($start < 0)
{
$start = 0;
}
echo "<div class=\"footer\"><a href=\"http://$site\">$site</a></div><div class=\"up\">";
if ($count > $start + $pp) $count = $start + $pp;
if ($start != 0)
{
print "<a href=index.php?start=".($start - $pp).">назад</a>:";
}
print "<a href=add.php>добавить</a>";
if ($count1 > $start + $pp)
{
print ":<a href=index.php?start=".($start + $pp).">далее</a>";
}
print "</div>";
for ($i = $start; $i < $count; $i++)
{
$entry = $names[$i];
$data = file("rec/rec.".$entry);
$date = $entry;
$name = trim($data[0]);
$time = trim($data[1]);
$email = trim($data[2]);
$url = trim($data[3]);
$msg = trim($data[4]);
$answer = trim($data[5]);
print "<div class=\"top\">";
print "<hr /><b><font color=\"yellow\">$name:</font></b>";
if (!empty($time)) print " $time";
if (!empty($email)) print ":<a href=mailto:$email><i>$email</i></a>\n";
if (!empty($url)) print ":<a href=\"http://$url\">$url</a>";
print "<div class=\"item\">";
print "<p><font color=\"000000\">".$msg."</font></p>\n";
if (!empty($answer))
{
print "<p><font color=\"#FF0000\">Админ: $answer</font></p>";
}
print "</div></div>";
}
print "<div class=\"up\">";
if ($count > $start + $pp) $count = $start + $pp;
if ($start != 0)
{
print "<hr /><a href=index.php?start=".($start - $pp).">назад</a>:";
}
print "<hr /><a href=add.php>добавить</a>";
if ($count1 > $start + $pp)
{
print ":<a href=index.php?start=".($start + $pp).">далее</a> \n";
}
print "<div class=\"top\"><a href=\"http://$site\">$site</a>
</div></div>";
print "<div class=\"footer\">© 2006 <a href=\"http://$site\">$site</a>. Design by <a>3v</a></div>";
echo '</body></html>';
?>