Просмотр поста

.
NURD
// Ссылка unichat
$new = 0;
if (file_exists('unichat/cache/dump.php')) {
$request = array();
$today = mktime(0, 0, 0);
include 'unichat/cache/dump.php';
for ($i = 0; $i < 100; $i++) {
if ($request[$i]['date'] > $today)
$new++;
}
}
$new = $new > 0 ? '<b>+'.$new.'</b>' : '';
echo '<div class="menu"><a href="unichat/">Межсайтовый чат</a> ' . $new . '</div>';