View file adm/fnc/book_msg.php

File size: 477B
<?
include"../sys/fnc.php";

$file=file("../../data/book.dat");
$file = array_reverse($file);
$tot_msg=count($file);
if($tot_msg == 0)
{
	echo'Сообщений нет, будь первый! :)';
}


for($i=0; $i<$tot_msg; $i++)
{
$msg_play=explode("<>",$file[$i]);

echo'<p>'.$msg_play[1].'<br/>'.$msg_play[0].'<br/>'.$msg_play[2].'<br/><a href="javascript:book_msg_del('.$i.')">delete</a><br>..........................................</p>';




}

?>