File size: 5.06Kb
<?
///////////////////////////
///by Kyber 2011
///Поддержка klybok.net
///ICQ 626-000-895
///Не для продажы!!!
///Потрачено 23 часа
///Реквизиты для помощи:
///R 191559143752
///Z 109983295073
///U 211922671748
///Изменять код скрипта ЗАПРЕЩЕНО!!!
///Нарушители получат блок хостинга
///////////////////////////
include_once 'inc/fnc.php';
include_once 'inc/sys.php';
head('Лучший магазин ICQ');
echo '<div class="head"><img src="inc/img/logo.png" alt="" /></div>';
R(1);
$nid = mysql_result(mysql_query("SELECT MAX(id) FROM `news`"),0);
if ($nid != 0) {
$news = mysql_fetch_assoc(mysql_query("SELECT * FROM `news` WHERE `id` = '$nid'"));
$k = mysql_result(mysql_query("SELECT COUNT(*) FROM `n_komm` WHERE `nid` = '$nid'"),0);
echo '<div class="title"> Новости магазина</div>
<div class="cont">
<img src="inc/img/rss.png" alt="" /> <a href="news.php?id='.$nid.'">'.out($news['title']).'</a>
<a href="news.php?act=komm&nid='.$news['id'].'"><br />
<img src="inc/img/komm.png" alt="" /> комментариев. ['.$k.']</a><br /></div>';
}
echo '<div class="title"> Меню покупателя</div>
<div class="cont">';
$KU = mysql_result(mysql_query("SELECT COUNT(*) FROM `users`"), 0);
$kpr = mysql_result(mysql_query("SELECT COUNT(*) FROM `logs` "),0);
$kps = mysql_result(mysql_query("SELECT SUM(price) FROM `logs` "),0);
if (!isset($U)) echo '<a href="reg.php?">Регистрация</a> | <a href="aut.php?">Войти</a>';
else echo 'Здравствуй <b>'.$U['nick'].'</b>!<br />'.P().'<img src="inc/img/kab.png" alt="" /> <a href="cabinet.php">В кабинет</a>';
if ($U['adm'] == 1) echo '<br /><img src="inc/img/admin.png" alt="" /> <a href="adm/">Админка</a>';
$nt = $time - 86400 * $SET['s_new'];
$k6 = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '6'"),0);
$k7 = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '7'"),0);
$k8 = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '8'"),0);
$k9 = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '9'"),0);
$k6n = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '6' AND `time` >= '$nt'"),0);
$k7n = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '7' AND `time` >= '$nt'"),0);
$k8n = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '8' AND `time` >= '$nt'"),0);
$k9n = mysql_result(mysql_query("SELECT COUNT(*) FROM `uins` WHERE `type` = '9' AND `time` >= '$nt'"),0);
if ($k6n > 0) $kn6 = '<b>/+'.$k6n.'</b>'; else $kn6='';
if ($k7n > 0) $kn7 = '<b>/+'.$k7n.'</b>'; else $kn7='';
if ($k8n > 0) $kn8 = '<b>/+'.$k8n.'</b>'; else $kn8='';
if ($k9n > 0) $kn9 = '<b>/+'.$k9n.'</b>'; else $kn9='';
$kc1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `chat`"),0);
$ko1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `fb`"),0);
$kcn1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `chat` WHERE `time` >= '$nt'"),0);
$kon1 = mysql_result(mysql_query("SELECT COUNT(*) FROM `fb` WHERE `time` >= '$nt'"),0);
if ($kcn1 > 0) $kcn = '<b>/+'.$kcn1.'</b>'; else $kcn='';
if ($kon1 > 0) $kon = '<b>/+'.$kon1.'</b>'; else $kon='';
$st_nd = '19 '; $st_year = '2010';
if ($st_year==date("Y"))
$live_day = date("z") - $st_nd;
echo '</div>
<div class="title"> UiN в продаже</div>
<div class="cont">
<img src="inc/img/search.png" alt="" /> <a href="uins.php?act=search">Найти UIN</a><br />
<img src="inc/img/uin.png" alt="" /> <a href="uins.php?view=6">6 - значные</a> ('.$k6.$kn6.')<br />
<img src="inc/img/uin.png" alt="" /> <a href="uins.php?view=7">7 - значные</a> ('.$k7.$kn7.')<br />
<img src="inc/img/uin.png" alt="" /> <a href="uins.php?view=8">8 - значные</a> ('.$k8.$kn8.')<br />
<img src="inc/img/uin.png" alt="" /> <a href="uins.php?view=9">9 - значные</a> ('.$k9.$kn9.')
</div><div class="title"> Меню навигации</div><div class="cont">
<img src="inc/img/load.png" alt="" /> <a href="info.php?act=load">Скачать этот скрипт</a><br />
<img src="inc/img/otz.png" alt="" /> <a href="feedback.php">Отзывы покупателей</a> ('.$ko1.$kon.')<br />
<img src="inc/img/chat.png" alt="" /> <a href="mini-chat.php">Мини - чат</a> ('.$kc1.$kcn.')<br />
<img src="inc/img/kont.png" alt="" /> <a href="info.php?act=kontakt">Контакты админов</a><br />
<img src="inc/img/rules.png" alt="" /> <a href="info.php?act=rules">Правила магазина</a><br />
<img src="inc/img/who.png" alt="" /> <a href="info.php?act=faq">Как пользоватся</a> (info)<br /></div>
<div class="title"> Статистика магазина</div><div class="cont">
Доверяют <a href="users.php">'.$KU.'</a> клиентов<br />
Продано <b>'.$kpr.'</b> UINов, на <b>'.$kps.' руб.</b><br />
Денег в магазине: <b>'.mysql_result(mysql_query("SELECT SUM(rub) FROM `users`"),0).'</b> руб.
</div>';
foot();
?>