View file design/default/footer.php

File size: 1.15Kb
<?php
#$res = mysql_query('SELECT * FROM `reclame`');
#echo '<div id="ads_all">';
#while ($link = mysql_fetch_object($res)) {
#	echo '<a href="'.$link->URL.'">'.$link->name.'</a><br>';
#	}
#echo '</div>';
#echo foot;

$online_count = mysql_fetch_string('SELECT COUNT(*) FROM `'.db_prefix.'users` WHERE lastaction+'.usr_online.' >= '.time().'');


echo '</div>
<div class="foot">
<div id="aut" align="center"><a href="'.URL.'">Главная</a> ';
if (isset($_SESSION['autorized']) && $_SESSION['autorized']==1) {
	echo '
	<a href="'.URL.'/usr/?id='.$_SESSION['id'].'">Моя страница</a>
	<a href="'.URL.'/usr/">Кабинет</a>
	<a href="'.URL.'/view.php?act=my">Блог</a> ';
} else {
	echo '<a href="'.URL.'/auto.php">Авторизация</a> 
	<a href="'.URL.'/registration.php">Регистрация</a> ';
}

echo '<a href="'.URL.'/search.php">Поиск</a>
</div>
<div align="center"><small>
<a href="'.URL.'/users.php?act=online">На сайте: '.$online_count.'</a><br>
&copy; <a href="'.URL.'">'.sitename.'</a><br>

<a href="http://hanscom.ru">Hosted by Hanscom</a></small></div>
</body>
</html>';

ob_flush();
?>