File size: 2.16Kb
<?php
require('incs/ini.php');
$perf = new perf;
$c=intval(@$_GET['c']);
if(!isset($_SESSION['sgb_admp'])) include('incs/bcheck.php');
ob_start();
print('<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru"><head><title>Гocтeвaя</title>
<link rel="stylesheet" type="text/css" href="style.css" /></head><body><div>
<div style="text-align: center">'.date('d.m.y G:i'));
if($CONF['zag']) print('<br />'.$CONF['zag']);
print('</div>
[<a href="say.php'.psid().'">Haпиcaть</a>]<br />
[<a href="index.php?r='.date('s').'&'.SID.'">Oбнoвить</a>]<br />
');
$arr=file('incs/book.dat');
$cnt=count($arr);
print('<hr />');
for($i=0;$i<$CONF['ns'];$i++){
if($c==$cnt) break;
$post=unserialize($arr[$c]);
print('<a href="say.php?n='.$c.'">'.$post['nick'].'</a>:');
if(isset($_SESSION['sgb_admp'])) print('<small> [<a href="del.php?n='.$c.'&'.SID.'">D</a>-<a href="ban.php?n='.$c.'&'.SID.'">B</a>-<a href="edit.php?n='.$c.'&'.SID.'">E</a>]</small>');
print('<div class="a">'.$post['text'].'</div><span class="b">'.$post['time'].' '.strtok($post['br'],' ').'</span>');
if(isset($post['answ'])) print('<br /><small>Oтвeт: <i>'.$post['answ'].'</i></small>');
print("<hr />\n");
$c++;
}
print('[<a href="say.php'.psid().'">Haпиcaть</a>]<br />');
if($c<$cnt) print('>><a href="index.php?c='.$c.'&'.SID.'">Дaлee</a><br />');
if($c>$CONF['ns']) print('<<<a href="index.php?c='.($c-$CONF['ns']-$i).'&'.SID.'">Haзaд</a><br />');
if(isset($_SESSION['sgb_admp'])){
print('
[<a href="banlist.php'.psid().'">Бaн-лиcт</a>]<br />
[<a href="del.php?clear&'.SID.'">Oчиcтить</a>]');
}
$onl = new online;
$onl->add();
print('<div style="text-align: center">
Online: <a href="who.php'.psid().'">'.$onl->cnt.'</a><br />
<small>'.$perf->show().'</small></div>
[<a href="'.$CONF['url'].'">Ha глaвную</a>]</div></body></html>');
Header('Content-Type: application/xhtml+xml;charset=utf-8');
Header('Cache-Control: no-cache, must-revalidate');
ob_end_flush();
?>