<?php
/*
Автор скрипта https://b...content-available-to-author-only...s.ru/id85823
Скрипты, программы на заказ.
Быстро, качественно, недорого.
*/
include 'functions.php';
head();
$func = html($_GET['func']);
switch ($func) {
default:
if (!$user) echo '<a href="/?func=aut" class="byecos">Вход</a> <a href="/?func=reg" class="byecos">Рега</a><br />'; else echo '<a href="/?func=cabinet" class="byecos">Личный кабинет</a><br />';
echo '</div><div class="title"><img src="/images/radio.png" alt="icon" style="height:21px;margin-bottom:-6px;" /> Новости</div><div class="menu">
'.$news['text'].' ['.date('d.m.Y h:i:s', $news['date']).']<br />';
echo '</div><div class="title"><img src="/images/app.png" alt="icon" style="height:21px;margin-bottom:-6px;" /> Последние продажи</div><div class="menu"></center>';
$sql = mysqli_query($mysqli, "select * from purchases order by id desc limit 4");
if (mysqli_result
(mysqli_query($mysqli, "select * from purchases")) == 0) echo 'Продаж пока что не было.';
echo '<a href="/?func=product&id='.$product['id'].'"><img src="screenshot/'.$product['screenshot'].'" width="48" height="48" style="border-radius: 12px; -webkit-border-radius: 12px; -moz-border-radius: 12px;" /></a> ';
}
?>
</div>
<div class="title"><img src="/images/menu.png" alt="icon" style="height:21px;margin-bottom:-6px;"> Меню</div>
<div class="menu">
<a href="/?func=shop" class="top_menu_j">Магазин (
<?=mysqli_result
(mysqli_query($mysqli, "select count(*) from shop"))?>)</a>
<a href="/?func=reviews" class="top_menu_j">Отзывы (
<?=mysqli_result
(mysqli_query($mysqli, "select count(*) from reviews"))?>))</a>
<a href="/?func=contfuncs" class="top_menu_j">Контакты</a>
<a href="/?func=regulations" class="top_menu_j">Правила</a>
<a href="/?func=agreement" class="top_menu_j">Соглашение</a>
<a href="/?func=visiting" class="top_menu_j" >Пользователи онлайн (
<?=mysqli_result
(mysqli_query($mysqli, "select count(*) from users WHERE `visiting` > '".(time()-3600)."'"))?>))</a>
<?
break;
}
foot();
PD9waHAKCi8qCtCQ0LLRgtC+0YAg0YHQutGA0LjQv9GC0LAgaHR0cHM6Ly9iLi4uY29udGV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