Размер файла: 2.18Kb
<i class="fa fa-pencil"></i> <b><a href="/blog/blog?act=view&id=<?=$blogs['id']?>"><?=$blogs['title']?></a></b><br /><br />
<a href="/blog/blog?act=comments&id=<?=$blogs['id']?>&rand=<?=mt_rand(100, 999)?>">Обновить</a> / <a href="/blog/<?=$blogs['id']?>/rss">RSS-лента</a><hr />
<?php if ($is_admin): ?>
<form action="/blog/blog?act=del&id=<?=$blogs['id']?>&page=<?=$page['current']?>&uid=<?=$_SESSION['token']?>" method="post">
<?php endif; ?>
<?php foreach ($comments as $data): ?>
<div class="b">
<div class="img"><?=user_avatars($data['user'])?></div>
<?php if ($is_admin): ?>
<span class="imgright"><input type="checkbox" name="del[]" value="<?=$data['id']?>" /></span>
<?php endif; ?>
<b><?=profile($data['user'])?></b> <small>(<?=date_fixed($data['time'])?>)</small><br />
<?=user_title($data['user'])?> <?=user_online($data['user'])?>
</div>
<?php if (!empty(App::getUsername()) && App::getUsername() != $data['user']): ?>
<div class="right">
<a href="/blog/blog?act=reply&id=<?=$blogs['id']?>&pid=<?=$data['id']?>&page=<?=$page['current']?>">Отв</a> /
<a href="/blog/blog?act=quote&id=<?=$blogs['id']?>&pid=<?=$data['id']?>&page=<?=$page['current']?>">Цит</a> /
<noindex><a href="/blog/blog?act=spam&id=<?=$blogs['id']?>&pid=<?=$data['id']?>&page=<?=$page['current']?>&uid=<?=$_SESSION['token']?>" onclick="return confirm('Вы подтверждаете факт спама?')" rel="nofollow">Спам</a></noindex>
</div>
<?php endif; ?>
<?php if (App::getUsername() == $data['user'] && $data['time'] + 600 > SITETIME): ?>
<div class="right">
<a href="/blog/blog?act=edit&id=<?=$blogs['id']?>&pid=<?=$data['id']?>&page=<?=$page['current']?>">Редактировать</a>
</div>
<?php endif; ?>
<div>
<?=App::bbCode($data['text'])?><br />
<?php if (is_admin() || empty($config['anonymity'])): ?>
<span class="data">(<?=$data['brow']?>, <?=$data['ip']?>)</span>
<?php endif; ?>
</div>
<?php endforeach; ?>
<?php if ($is_admin): ?>
<span class="imgright"><input type="submit" value="Удалить выбранное" /></span></form>
<?php endif; ?>