File size: 3.54Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE); /////////////// игнорируем ошибки
header("Content-type:text/vnd.wap.wml;charset=utf-8"); //////// тип и кодировка документа
////////////// Параметры книги /////////////////////////////////////////////////
$gl="../"; /////////ссылка на главную
$admin="bukan"; ////////админ
$parad="12511"; ////////пароль админа
$zag="Rzn Guest book";
//////////////////////////////////////////////////////////////////////////////
$currHour=date("H",time());///////////формат даты и времени
$currDate=date("dS F, Y", time());
$curr=date("i:s", time());
$currTime=date("$currHour:i:s", time());
if($parad!=$pas) {$log="";}
include $DOCUMENT_ROOT.'/inc/header_lov.php';
print "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" \"http://www.wapforum.org/DTD/wml12.dtd\">
<wml><card id=\"mas\" title=\"$zag\"><p align=\"center\">";
///////////// выводим вмл заголовок
print"<b>$currTime</b><br/><small>$currDate</small></p><p>
<anchor title=\"say\">Написать
<go href=\"say.php\" method=\"post\">
<postfield name=\"log\" value=\"$log\"/>
<postfield name=\"pas\" value=\"$pas\"/>
</go>
</anchor><br/>
<anchor title=\"ref\">Обновить
<go href=\"index.php\" method=\"post\">
<postfield name=\"log\" value=\"$log\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"new\" value=\"$curr\"/>
</go>
</anchor><br/>=======<br/>";
$vsego = file("vsego.shet");
$vsego=$vsego[0];
if($nmes=="") {$nmes=$vsego;}
$kp=1;
while($kp <= 5)
{$tex=@file("zapis/$nmes.mess");
$utex=explode(":||:",$tex[0]);
$obr=trim($utex[0]);
$vrem=trim($utex[1]);
$text=trim($utex[2]);
$mail=trim($utex[3]);
$site=trim($utex[4]);
$brayz=trim($utex[5]);
if($text!=""){
if($log==$admin){print"<small><anchor title=\"del\">[Удалить сообщение]
<go href=\"del.php\" method=\"post\">
<postfield name=\"log\" value=\"$log\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"nmes\" value=\"$nmes\"/>
</go>
</anchor></small><br/>";}
print"<b><anchor title=\"say\">$obr
<go href=\"say.php\" method=\"post\">
<postfield name=\"log\" value=\"$log\"/>
<postfield name=\"pas\" value=\"$pas\"/>
<postfield name=\"obr\" value=\"$obr\"/>
</go>
</anchor></b>
<small>($vrem)</small>: $text";
if($mail!=""){print"<br/>e-mail: <a href=\"mailto:$mail\">$mail</a>";}
if($site!="") {print"<br/><a href=\"$site\">$site</a>";}
print"<br/><small>[$brayz]</small><br/>=======<br/>";
$kp=$kp+1;}
$nmes=$nmes-1;
if($nmes<0){$kp=20;}}
if($nmes>0){print"<br/><anchor title=\"next\">Далее
<go href=\"index.php?nmes=$nmes\" method=\"post\">
<postfield name=\"log\" value=\"$log\"/>
<postfield name=\"pas\" value=\"$pas\"/>
</go>
</anchor>";}
print"<br/><anchor title=\"say\">Написать
<go href=\"say.php\" method=\"post\">
<postfield name=\"log\" value=\"$log\"/>
<postfield name=\"pas\" value=\"$pas\"/>
</go>
</anchor><br/>";
include $DOCUMENT_ROOT.'/inc/footer.php';
//print"<br/><a href=\"$gl\">На главную</a><br/>
//</p></card></wml>";
?>