Файл: mini-chat/on-who.php
Строк: 50
<?
include_once('../apahe/ini.php');
$urlup='/mini-chat/index';
$inc['title'] = ' Кто в мини-чате';
include_once('../apahe/top.php');
if (!isset($apache)){
header ('location: /input.dll');
exit;
}
$mini_chat_on = mysql_result(mysql_query("SELECT COUNT(*) FROM `on` WHERE `url` = '/mini-chat/index'"), 0);
echo '<div class="main-text">';
echo '<a href="index.dll" title="Мини-чат">Мини-чат</a> | ';
echo '<a href="on-who.dll" title="В чате '.$mini_chat_on.' чел">В чате: '.$mini_chat_on.' чел</a>';
echo '</div>';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `on` WHERE `url` = '/mini-chat/index'"), 0);
nav_start($total, 10);
if ($total!=0){
$on_c = mysql_query("SELECT * FROM `on` WHERE `url` = '/mini-chat/index' ORDER BY `date` LIMIT $start, 10");
while ($on = mysql_fetch_assoc($on_c)){
echo '<a class="main-href" href="/id-'.int($on['id-apache']).'.dll" title="'.name($on['id-apache']).'">';
echo '<table width="100%" cellspacing="0" cellpadding="0">';
echo '<tr><td class="apa-l">';
echo ''.apache($on['id-apache']).''.name($on['id-apache']).''.status($on['id-apache']).'';
echo '</td>';
echo '<td class="apa-r">';
echo '<time>'.vtime($on['date']).'</time>';
echo '</td></tr>';
echo '</table>';
echo '</a>';
}}else{
error('В онлайне ни кого нету.');
}
view_nav('/mini-chat/on-who.dll?');
include_once('../apahe/bottom.php');
?>