File size: 1.18Kb
<?php
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
$data = file("/db/gbook/db.txt");
$count = count($data);
$kolmes = "10";
$stranic = ceil($count/$kolmes);
$viewmess = explode("|", $data[$i]);
$name_user = $viewmess[0];
$for_user = $viewmess[1];
$device_user = $viewmess[2];
$ip_user = $viewmess[3];
$time_user = $viewmess[4];
$date_user = $viewmess[5];
$mail_user = $viewmess[6];
$url_user = $viewmess[7];
$mess_user = $viewmess[8];
$mess_admin1 = $viewmess[9];
$mess_admin2 = $viewmess[10];
$mess_admin3 = $viewmess[11];
echo "<p class=\"a\">$name_user</a>";
if(!empty($for_user))
{
echo " для <a href=\"add.php?for=$for_user\">$for_user</a>";
}
echo "<br/>";
if (!empty($mail_user))
{
echo "<a href=\"mail.php?to=$mail_user&for=$name_user&page=$page_get\">$mail_user</a><br />";
}
if (!empty($url_user))
{
echo "<a href=\"http://$url_user\">$url_user</a><br/>";
}
echo "Дата $date_user<br />";
echo "Время $time_user<br /></p>";
echo "<p class=\"a\" style=\"border-top:0px\">$mess_user<br/>";
echo "<p></p>";
?>