Файл: test.zfarm.mobi/mystylefutboll/futbolladmin.php
Строк: 41
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
Год 2013 Права предоставлены автору Шехову Виталию Александровичу
http://vk.com/online_user
*/
/////////////////////////
what(0, 'futboll');
if(isset($_GET['startuser']) && num($_GET['startuser'])!=NULL && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_futboll_admin` WHERE `president` = '".$user['id']."' AND `id_futboll` = '".num($_GET['startuser'])."'"),0)<1 && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_commandy` WHERE `type` = 'yes' AND `id_futboll` = '".$user['id_futboll']."' LIMIT 1"),0)!=0){
$post1 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '1'"));
$post2 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '2'"));
$post3 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '3'"));
$post4 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '4'"));
$post5 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '5'"));
$post6 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '6'"));
$post7 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '7'"));
$post8 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '8'"));
$post9 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '9'"));
$post10 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '10'"));
$post11 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `id_futboll` = '".$user['id_futboll']."' AND `link` = '11'"));
$name = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_futboll` WHERE `user` = '".$user['id']."'"));
mysql_query("INSERT INTO `mystyle_futboll_admin` SET `moder` = 'no', `id_futboll` = '".$post1['id_futboll']."', `name` = '".$name['name']."', `president` = '".$user['id']."', `user1` = '".$post1['user']."', `user2` = '".$post2['user']."', `user3` = '".$post3['user']."', `user4` = '".$post4['user']."', `user5` = '".$post5['user']."', `user6` = '".$post6['user']."', `user7` = '".$post7['user']."', `user8` = '".$post8['user']."', `user9` = '".$post9['user']."', `user10` = '".$post10['user']."', `user11` = '".$post11['user']."', `time` = '".$time."'");
///////// Лог Пользователя ///// By MyStyle
$time_log = $time+3; /// На 2 сек
$text = 'Заявка подана.';
header("Location: ?futbollcommand");
exit;
}else{
header("Location: ?futbollcommand");
exit;
}
?>