Файл: gb/index.php
Строк: 65
<?php
require 'incs/header.php';
require 'incs/ini.php';
$c = intval(@$_GET['c']);
if(!isset($_SESSION['sgb_admp'])) include('incs/bcheck.php');
ob_start();
include 'fig/head.php';
echo '<div class="navi"></div><div class="raz"><a href="/">На главную</a> | <a href="say.php'.psid().'">нaпиcaть</a> |<a href="index.php?r='.date('s').'&'.SID.'">обнoвить</a></div><div class="p1">';
$arr = file('incs/book.dat');
$cnt = count($arr);
for($i=0; $i<$CONF['ns']; $i++){
if($c==$cnt) break;
$post=unserialize($arr[$c]);
$post['text'] = preg_replace("#[(http|https|ftp)]+[(://)]+[0-9a-zA-Z_.-]+.[a-zA-Z]{2,4}#i",$CONF['anti'],$post['text']);
$post['text'] = clean(mat($post['text']));
$post['br'] = brauzer($post['br']);
echo '</div><div class="cont"><img src="http://clubwm.ru/style/user/5.png"> <a href="say.php?n='.$c.'">'.$post['nick'].'</a>';
if($post['sity']!='') {echo '<small>('.$post['sity'].')</small><br />';}
else { echo '<br />'; }
echo $post['time'].'<div class="m">'.$post['text'].'<br />';
if($post['mail']!='') {echo '<span style="color: green;">Почта: '.$post['mail'].'</span>';}
echo '</div>';
if(isset($_SESSION['sgb_admp'])) { echo '<small>[
<a href="del.php?n='.$c.'&'.SID.'">Удл</a>
-<a href="ban.php?n='.$c.'&'.SID.'">Бан</a>
-<a href="edit.php?n='.$c.'&'.SID.'">Отв/ред</a>
]</small><br />'; }
if(isset($post['answ'])) print('<small><span style="color:#d2691e;"><b>Ответ</b>: '.$post['answ'].'</small></span>');
echo '</div><div class="p1">';
$c++;
}
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>]<br />');
}
if($CONF['skoka'] == 'yes'){
echo '<font color="green"><div class="raz"><span class="cont">всего sms: '.(sizeof(file('incs/book.dat')));
}
$onl = new online;
$onl->add();
echo '</span><span class="cont">On: <a href="who.php'.psid().'">'.$onl->cnt.'</a></span></div></font>';
include 'fig/nizz.php';require('../includes/footer.php');
ob_end_flush();
?>