File size: 2.67Kb
<?php
echo'<div class="i">Общение</div>
<img src="./design/default/act.gif" alt="-"> <a href="forum/">Форум</a> ['.$fthemes.'/'.$fmessages.']</br>';
if($newthems>0 or $newmes>0){echo'</br><small>Новых</small> <small>тем</small> <font color="red"> '.$newthems.'</font>/<small>сообщений</small> <font color="red"> '.$newmes.'</font></br>';}
if(!empty($lastthem)){
echo'<a href="./forum/?mod=4&id_them='.$lastthem['id_them'].'&id_forum='.$lastthem['id_kat'].'&'.$s.'">'.$lastthem['ftname'].'</a>';
$messages=mysql_fetch_row(mysql_query("select count(*) from forum_messages where id_them='".$lastthem['id_them']."'"));
if($messages[0]>10){
$stbud=round($messages[0],-1);
$skcf=strlen($messages[0]);
$poslc=substr($messages[0],($skcf-1),$skcf);
if($poslc>=5 or $poslc=='0'){
$stbud=$stbud-10;
}}}
echo' [<a href="./forum/?'.$s.'&mod=4&id_them='.$lastthem['id_them'].'&id_forum='.$lastthem['id_kat'].'&st='.$stbud.'">>></a>]<br>';
echo'<br><img src="design/default/act.gif" alt="-">
<a href="/chat/index.php">Чат</a> ['.$couchats.']<br>';
echo'<img src="/design/default/act.gif" alt="-"> <a href="/gues/index.php">Гостевая</a> ['.$cougue.$newgue.']
<br><img src="/design/default/act.gif" alt="-"> <a href="/blog/index.php">Блоги</a> ['.$coublog.$newblog.']';
echo'<div class="i">Загруз-зона</div>
<img src="/design/default/act.gif" alt="-">
<a href="/obmen/">Обменник</a> ['.$obmennik.$newobm.'] <br>
<img src="/design/default/act.gif"alt="-">
<a href="/downs/">Загрузки</a> ['.$downs.$newscr.']<br>';
echo'
<div class="i">Пользователям</div>
<img src="/design/default/act.gif" alt="-">
<a href="/library/">Библиотека</a> ['.$coulib.$newlib.'] <br>
<img src="/design/default/act.gif" alt="-"> <a href="/groups/">Группы</a>
['.$cougrg.'/'.$cougru.']<br>
<img src="/design/default/act.gif" alt="-"> <a href="/photo/">Фотоальбомы</a> ['.$allphotc.'/'.$allphotf.'] <br>
';
echo'<div class="i">Разное</div>
<img src="/design/default/act.gif" alt="-">
<a href="/golos/">Голосование</a><br>
<img src="/design/default/act.gif" alt="-">
<a href="/maia/">Мафия</a><br>';
if($newstol!=0){$cnewstol='/<font color="red">+'.$newstol.'</font>';}else{echo'';}
echo'<img src="/design/default/act.gif" alt="-">
<a href="stol/index.php">Стол заказов</a> ['.$coustol.$cnewstol.'] <br>
<img src="/design/default/act.gif" alt="-">
<a href="/pages/top-list.php">Жизнь сайта</a><br>
<img src="/design/default/act.gif" alt="-"> <a href="/piram/">Пирамида ссылок</a></br>
<a href="'.$dirsite.'/pages/online.php">Кто где</a><br>';
?>