Файл: dosca.php
Строк: 19
<?php
include 'system/core.php';
$_title = 'Доска почета';
include 'system/header.php';
echo '<div class="podverh">';
echo '<div class="uv"><div class="sm"></div><div class="sm"></div><div class="co"><b>Доска почета</b></div></div></div> ';
echo '<div class="start">';
include 'modules/op/c.php';
include 'modules/privat/c.php';
echo '<div class="s"><div class="ss"><span><a href="/cab">В кабинет</a></span></div></div>';
echo '<div class="post2"><b>Самый новенький: </b>';
$last = mysql_query("SELECT * FROM `user` ORDER BY `registration` DESC LIMIT 1");
while($last2 = mysql_fetch_assoc($last))
{
echo ustatus($last2['id']).' <a href="/us'.$last2['id'].'">'.uname($last2['id']).' '.uaccess($last2['id']).'</a>';
}
echo '</br>';
///////
$users = mysql_query("SELECT * FROM `user` ORDER BY `$sort2` $desc LIMIT $start,$cop");
while($users2 = mysql_fetch_assoc($users)){
echo '<div class="post2">'.ustatus($users2['id']).' <a href="/us'.$users2['id'].'">'.uname($users2['id']).'</a> '.uaccess($users2['id']);
if(empty($sort)) echo ' (ID '.$users2['id'].')';
if($sort == 1) echo ' ('.times($users2['registration']).')';
elseif($sort == 2) echo ' ('.$users2['rating'].')';
echo '</div>';
}
echo '<b>Создатель проэкта:</b>';
$resu = mysql_query("SELECT * FROM `user` WHERE `id` LIMIT 1;");
while($res = mysql_fetch_assoc($resu))
{
echo ' '.ustatus($res['id']).' <a href="/us'.$res['id'].'">'.uname($res['id']).' '.uaccess($res['id']).'</a>';
echo ' ';
}
echo '</br>';
echo '<b>Генирация сайта:</b> ';
list($msec,$sec)=explode(chr(32),microtime());
echo ' '.round((($sec+$msec)-$gtime),4).' сек.</div>';
include 'system/footer.php';
?>