View file clikus/shop.php

File size: 2Kb
<?php

$title="ICQ Магазин\n";

include_once ('config/ini.php');
include_once ('config/function.php');
include_once ('config/header.php');
include_once ('config/connect.php');
include_once ('config/click-club.class.php');
include_once ('config/online.php');
include_once ('config/panel.php');
include_once ('config/ban.php');

@mysql_query("DELETE FROM `".prefix."clicks` WHERE `ts`<".strtotime(date("j F Y")));



If (!isset($_GET['mode']) || !ereg("^[a-z0-9_-]{1,15}$",$_GET['mode'])) $mode=false; else $mode=$_GET['mode'];


$hest=(int) mysql_num_rows(mysql_query("select `id` from `cclub_nomera` where `stats`='0' and `whopay`='$_USER[id]'"));

switch ($mode){

case false:
default:
$shest=mysql_query("select* from `cclub_nomera` where (`znak`='6' and `stats`='1');");
$sh=mysql_num_rows($shest);
$sem=mysql_query("select* from `cclub_nomera` where (`znak`='7'  and `stats`='1');");
$se=mysql_num_rows($sem);
$vosem=mysql_query("select* from `cclub_nomera` where (`znak`='8' and `stats`='1');");
$vo=mysql_num_rows($vosem);
$dev=mysql_query("select* from `cclub_nomera` where (`znak`='9' and `stats`='1');");
$de=mysql_num_rows($dev);
echo '<div class="header_rek">ICQ Магазин</div>';
echo '
Для покупки номеров кредиты должны находиться в банке!<br/>
---<br/>
<img src="/images/icq.gif" alt="+" /></a><a href="nomera.php'.$_zapros.'mode=6">6-знаки</a><b> ['.$sh.']</b><br/>
<img src="/images/icq.gif" alt="+" /></a><a href="nomera.php'.$_zapros.'mode=7">7-знаки</a><b> ['.$se.']</b><br/>
<img src="/images/icq.gif" alt="+" /></a><a href="nomera.php'.$_zapros.'mode=8">8-знаки</a><b> ['.$vo.']</b><br/>
<img src="/images/icq.gif" alt="+" /></a><a href="nomera.php'.$_zapros.'mode=9">9-знаки</a><b> ['.$de.']</b><br/>
---<br/>
<img src="/images/new.gif" alt="+" /></a><a href="my_pay.php'.$_zapros.'mode=9">Мои покупки</a><b> ['.$hest.'] </b><br/>
';
break;
}
If ($_USER['admin']) echo '<br/>---<br/><a href="enter.php'.$_zapros.'mode=admin">Админка</a>';

include_once ('config/end.php');
?>