Файл: obmen/on-who.php
Строк: 38
<?
include_once('../apahe/ini.php');
$urlup='/obmen/index';
$inc['title'] = 'Обменник - кто онлайн';
include_once('../apahe/top.php');
if (!isset($apache)){
header ('location: /input.dll');
exit;
}
$forum_s = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum-s` WHERE `id` = '1'"));
echo '<div class="main-text">';
echo '<a href="index.dll" title="Обменник">Обменник</a>';
echo '</div>';
$total = mysql_result(mysql_query("SELECT COUNT(*) FROM `on` WHERE `url` = '/obmen/index'"), 0);
nav_start($total, $forum_s[tf]);
if ($total!=0){
$on_c = mysql_query("SELECT * FROM `on` WHERE `url` = '/obmen/index' ORDER BY `date` LIMIT $start, $forum_s[tf]");
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']).'';
echo '</td>';
echo '<td class="apa-r">';
echo '<time>'.vtime($on['date']).'</time>';
echo '</td></tr>';
echo '</table>';
echo '</a>';
}}else{
error('В форуме ни кого нету.');
}
view_nav('/forum/on-who.dll?');
include_once('../apahe/bottom.php');
?>