Файл: test.zfarm.mobi/mystylefutboll/exitfutboll.php
Строк: 11
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
Год 2013 Права предоставлены автору Шехову Виталию Александровичу
http://vk.com/online_user
*/
/////////////////////////
what(0, 'futboll');
if(isset($_GET['exitfutboll']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_command_user` WHERE `user` = '".$user['id']."' AND `id_futboll` = '".$user['id_futboll_user']."' LIMIT 1"),0)!=0){
$post = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_commandy` WHERE `user` = '".$user['id']."' AND `id_futboll` = '".$user['id_futboll_user']."'"));
$post2 = mysql_fetch_array(mysql_query("SELECT * FROM `mystyle_command_user` WHERE `user` = '".$user['id']."' AND `id_futboll` = '".$user['id_futboll_user']."'"));
mysql_query("UPDATE `mystyle_commandy` SET `user` = NULL, `type` = 'no' WHERE `id` = '".$post['id']."' AND `user` = '".$user['id']."'");
mysql_query("DELETE FROM `mystyle_command_user` WHERE `id` = '".$post2['id']."' AND `user` = '".$user['id']."'");
update_user('id_futboll_user',NULL);
header("Location: ?profile=$user[id]");
exit;
}else{
echo '<div class="feedbackPanel">Возникла ошибка!</div>';
}
?>