Для просмотра необходимо
Зарегистрироваться или Авторизоваться';
require_once ("../incfiles/end.php");
exit;
}
$config = mysql_fetch_array(mysql_query ( "SELECT * FROM `icq_config` WHERE `id`='1'"));
$error = '';
if ($config['open']!=0 && $rights < 6)
$error = 'Раздача ICQ Номеров времено преостоновлена';
if(mysql_num_rows(mysql_query ( "SELECT * FROM `icq` WHERE `user` = '" .$user_id. "' LIMIT 1" )) && $rights < 6){
$q = mysql_fetch_assoc(mysql_query("SELECT * FROM `icq` WHERE `user` = '$user_id' LIMIT 1"));
$error = '
';
}
if ($error) {
require_once ("../incfiles/head.php");
echo $error;
if ($rights >= 6) {
echo ( '' );
}
require_once ("../incfiles/end.php");
exit;
}
echo ( '' .$textl. '
' );
switch($act) {
default:
echo ( '' );
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '$user_id' LIMIT 1"));
if ($user['balans'] >= $config['post']){
$query = mysql_query ( "SELECT * FROM `icq` WHERE `type` = '1' ORDER BY `time` DESC LIMIT " .$start. ", " . $kmess );
if(@mysql_num_rows($query) == 0)
{
echo ('');
} else
while($row = mysql_fetch_array($query)) {
echo ( '' );
}
$total = mysql_result ( mysql_query ( "SELECT COUNT(*) FROM `icq` WHERE `type` = '1'"), 0 );
if ($total > $kmess) {
echo '' . pagenav('index.php?', $start, $total, $kmess) . '
';
}}else{
echo ( '' );
}
echo ( 'Статистика сервиса
' );
echo ( '' );
break;
case'ok':
if(mysql_num_rows(mysql_query ( "SELECT * FROM `icq` WHERE `type`='1' AND `id` = '" .$id. "' LIMIT 1" )) == 0){
echo ( '' );
break;
}
$user = mysql_fetch_assoc(mysql_query("SELECT * FROM `users` WHERE `id` = '$user_id' LIMIT 1"));
if ($user['balans'] >= $config['post']){
$icq = mysql_fetch_assoc(mysql_query("SELECT * FROM `icq` WHERE `id` = '$id' LIMIT 1"));
mysql_query("UPDATE `icq` SET `type`='2', `user` = '$user_id' WHERE `id`='".$id."'");
mysql_query("UPDATE `users` SET `balans`=`balans`+ '" .$config['post']. "' WHERE `id`='".$user_id."'");
echo ( '' );
}else{
echo ( '' );
}
break;
}
if ($rights >= 6) {
echo ( '' );
}
require_once ("../incfiles/end.php");
?>