<?

defined('_IN_JOHNCMS') or die('Error: restricted access');

require_once ('incfiles/class_mainpage.php');
$mp = new mainpage();
echo '<div>' .
     '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/about.html">  .?</a><br />' .
     '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/news.html"></a>  [11.07.10 / 11:02]
	 </div>' ;


//   ))

echo'<div class="menu"><img src="' . $home . '/images/obmen.gif" width="12" height="11" alt="-" /><a href="download/index.html"> </a>('.dcount_simba().') <div class="small">, , , </div></div>';

//   ))



include_once $SERVER['DOCUMENT_ROOT'].'download/functions.php';

function blog_count($prefix)
{
global $realtime;
$count = mysql_result(mysql_query('SELECT COUNT(*) FROM `' . $prefix . 'blogs`;'), 0);
$new = mysql_result(mysql_query('SELECT COUNT(*) FROM `' . $prefix . 'blogs` WHERE `time` > ' . strtotime(date('d.m.o',$realtime)) . ';'), 0);
if ($new > 0)
$count .= '&nbsp;/&nbsp;<span class="red">+' . $new . '</span>';
return $count;
}
	 include_once 'foto/lugaro/inc/count.php';
	 include_once $SERVER['DOCUMENT_ROOT'].'piramida/func_piramid.php';
echo '<div>';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/blogs/"></a> [' . blog_count($set['prefblog']) . ']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/znak/"></a> [' . kuser() . ']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/forum/"></a> [' . wfrm() . ']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/chat/">-</a> [' . wch() . ']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/stena.html"> </a> [' . gbook() . ']<br />'; 
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/piramida/">ICQ </a> ['.pir_count().']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/foto/"></a> ' . $count_albom . '<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/library/"></a> [' . stlib() . ']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/service.html"> </a><br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/mp3/"> mp3</a> NEW!<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/info.html"></a><br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/users.html"></a> [' . kuser() . ']<br />';
echo '<img src="' . $home . '/theme/' . $set_user['skin'] . '/images/act.gif" width="9" height="9" alt="-" /> <a href="' . $home . '/contacts.html">  </a><br /></div>';

?>