Файл: test.zfarm.mobi/mystylepostr/8.php
Строк: 436
<?php
/////////////////////////
/*
Author MyStyle ZomBi.Biz
Год 2013 Права предоставлены автору Шехову Виталию Александровичу
http://vk.com/online_user
*/
/////////////////////////
if($user['postroyki8'] == 8){
echo '<div class="feedbackPanel">Джокер</div>';
if(isset($_GET['mslink4'])){
if(isset($_GET['mslinkok'])){
$a = rand(1,3);
$b = rand(1,3);
$c = rand(1,3);
$colmoney = 5;
if($user['sunduk1']>=$colmoney){
$update_money = $user['sunduk1']-$colmoney;
mysql_query("UPDATE `mystyle_user` SET `sunduk1` = '".$update_money."' WHERE `id` = '".$user['id']."'");
if($a == 1 && $b == 1 && $c == 1){
$mystyle = rand(1,8);
$money = array("1" => 10, "2" => 15, "3" => 20, "4" => 25, "5" => 30, "6" => 35, "7" => 40, "8" => 50);
$update = $user['sunduk1']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `sunduk1` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' бруса</div>';
}
elseif($a == 2 && $b == 2 && $c == 2){
$mystyle = rand(1,8);
$money = array("1" => 5, "2" => 10, "3" => 20, "4" => 25, "5" => 30, "6" => 35, "7" => 40, "8" => 45);
$update = $user['sunduk1']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `sunduk1` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' бруса</div>';
}
elseif($a == 3 && $b == 3 && $c == 3){
$mystyle = rand(1,8);
$money = array("1" => 50, "2" => 55, "3" => 60, "4" => 70, "5" => 80, "6" => 90, "7" => 95, "8" => 100);
$update = $user['sunduk1']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `sunduk1` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' бруса</div>';
}else{
echo '<div class="feedbackPanel">Комбинации не совпали</div>';
}
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/who_postroyki/s_woodblocks.png" alt="" /> <span>'.$user['sunduk1'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">';
echo '<td class="btnp">';
$s = array("2" => '<img src="images/avtomat/avt_act/path4/demon.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path4/drakon.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path4/krokodi.png" alt="" />');
echo $s[$a];
echo '</td>';
echo '<td class="btnp">';
$d = array("2" => '<img src="images/avtomat/avt_act/path4/demon.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path4/drakon.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path4/krokodi.png" alt="" />');
echo $d[$b];
echo '</td>';
echo '<td class="btnp">';
$f = array("2" => '<img src="images/avtomat/avt_act/path4/demon.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path4/drakon.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path4/krokodi.png" alt="" />');
echo $f[$c];
echo '</td>';
echo '</tr></table>';
echo '<a class="btn feedbackPanel" href="./?link8&mslink4&mslinkok&sid='.passgen().'">Крутить еше?</a>';
}else{
err_money($need-$user['sunduk1']);
}
}else{
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/who_postroyki/s_woodblocks.png" alt="" /> <span>'.$user['sunduk1'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">
<td class="btnp"><img src="images/avtomat/avt_act/path4/demon.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path4/drakon.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path4/krokodi.png" alt="" /></td>
</tr></table>';
echo '<a href="./?link8&mslink4&mslinkok" class="btn center">Крутить</a>';
}
echo '<div>
<div class="feedbackPanel">
<div style="text-align: center;">
<div class="fl" style="width: 49%;">
<a class="btn" href="?link8">
<img width="16" height="16" alt="o" src="/images/icons/tick.png"/>
<span>Джокер</span>
</a>
</div>
<div class="fr" style="width: 49%;">
<a class="btn" href="./">
<img width="16" height="16" alt="o" src="/images/icons/cross.png"/>
<span>На главную!</span>
</a>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>';
}elseif(isset($_GET['mslink3'])){
if(isset($_GET['mslinkok'])){
$a = rand(1,3);
$b = rand(1,3);
$c = rand(1,3);
$colmoney = 5;
if($user['sunduk3']>=$colmoney){
$update_money = $user['sunduk3']-$colmoney;
mysql_query("UPDATE `mystyle_user` SET `sunduk3` = '".$update_money."' WHERE `id` = '".$user['id']."'");
if($a == 1 && $b == 1 && $c == 1){
$mystyle = rand(1,8);
$money = array("1" => 10, "2" => 15, "3" => 20, "4" => 25, "5" => 30, "6" => 35, "7" => 40, "8" => 50);
$update = $user['sunduk3']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `sunduk3` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' золота</div>';
}
elseif($a == 2 && $b == 2 && $c == 2){
$mystyle = rand(1,8);
$money = array("1" => 100, "2" => 15, "3" => 20, "4" => 25, "5" => 30, "6" => 35, "7" => 40, "8" => 50);
$update = $user['sunduk3']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `sunduk3` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' золота</div>';
}
elseif($a == 3 && $b == 3 && $c == 3){
$mystyle = rand(1,8);
$money = array("1" => 5, "2" => 10, "3" => 15, "4" => 20, "5" => 25, "6" => 30, "7" => 35, "8" => 40);
$update = $user['sunduk3']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `sunduk3` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' золота</div>';
}else{
echo '<div class="feedbackPanel">Комбинации не совпали</div>';
}
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/who_postroyki/brain.png" alt="" /> <span>'.$user['sunduk3'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">';
echo '<td class="btnp">';
$s = array("2" => '<img src="images/avtomat/avt_act/path3/bolshoj.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path3/malenkij.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path3/ogromnyj.png" alt="" />');
echo $s[$a];
echo '</td>';
echo '<td class="btnp">';
$d = array("2" => '<img src="images/avtomat/avt_act/path3/bolshoj.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path3/malenkij.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path3/ogromnyj.png" alt="" />');
echo $d[$b];
echo '</td>';
echo '<td class="btnp">';
$f = array("2" => '<img src="images/avtomat/avt_act/path3/bolshoj.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path3/malenkij.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path3/ogromnyj.png" alt="" />');
echo $f[$c];
echo '</td>';
echo '</tr></table>';
echo '<a class="btn feedbackPanel" href="./?link8&mslink3&mslinkok&sid='.passgen().'">Крутить еше?</a>';
}else{
err_money($need-$user['sunduk3']);
}
}else{
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/who_postroyki/brain.png" alt="" /> <span>'.$user['sunduk3'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">
<td class="btnp"><img src="images/avtomat/avt_act/path3/bolshoj.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path3/malenkij.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path3/ogromnyj.png" alt="" /></td>
</tr></table>';
echo '<a href="./?link8&mslink3&mslinkok" class="btn center">Крутить</a>';
}
echo '<div>
<div class="feedbackPanel">
<div style="text-align: center;">
<div class="fl" style="width: 49%;">
<a class="btn" href="?link8">
<img width="16" height="16" alt="o" src="/images/icons/tick.png"/>
<span>Джокер</span>
</a>
</div>
<div class="fr" style="width: 49%;">
<a class="btn" href="./">
<img width="16" height="16" alt="o" src="/images/icons/cross.png"/>
<span>На главную!</span>
</a>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>';
}elseif(isset($_GET['mslink2'])){
if(isset($_GET['mslinkok'])){
$a = rand(1,3);
$b = rand(1,3);
$c = rand(1,3);
$colmoney = 1;
if($user['ruby']>=$colmoney){
$update_money = $user['ruby']-$colmoney;
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".$update_money."' WHERE `id` = '".$user['id']."'");
if($a == 1 && $b == 1 && $c == 1){
$mystyle = rand(1,8);
$money = array("1" => 10, "2" => 15, "3" => 20, "4" => 25, "5" => 30, "6" => 35, "7" => 40, "8" => 50);
$update = $user['ruby']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' зомби баксов</div>';
}
elseif($a == 2 && $b == 2 && $c == 2){
$mystyle = rand(1,8);
$money = array("1" => 10, "2" => 15, "3" => 20, "4" => 25, "5" => 30, "6" => 35, "7" => 40, "8" => 50);
$update = $user['ruby']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' зомби баксов</div>';
}
elseif($a == 3 && $b == 3 && $c == 3){
$mystyle = rand(1,8);
$money = array("1" => 5, "2" => 10, "3" => 15, "4" => 20, "5" => 25000, "6" => 30, "7" => 35, "8" => 400);
$update = $user['ruby']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `ruby` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' зомби баксов</div>';
}else{
echo '<div class="feedbackPanel">Комбинации не совпали</div>';
}
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/zombi/cash.png" alt="" /> <span>'.$user['ruby'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">';
echo '<td class="btnp">';
$s = array("2" => '<img src="images/avtomat/avt_act/path2/krasnyj.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path2/nitroglicerin.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path2/sinij.png" alt="" />');
echo $s[$a];
echo '</td>';
echo '<td class="btnp">';
$d = array("2" => '<img src="images/avtomat/avt_act/path2/krasnyj.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path2/nitroglicerin.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path2/sinij.png" alt="" />');
echo $d[$b];
echo '</td>';
echo '<td class="btnp">';
$f = array("2" => '<img src="images/avtomat/avt_act/path2/krasnyj.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path2/nitroglicerin.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path2/sinij.png" alt="" />');
echo $f[$c];
echo '</td>';
echo '</tr></table>';
echo '<a class="btn feedbackPanel" href="./?link8&mslink2&mslinkok&sid='.passgen().'">Крутить еше?</a>';
}else{
err_ruby($need-$user['ruby']);
}
}else{
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/zombi/cash.png" alt="" /> <span>'.$user['ruby'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">
<td class="btnp"><img src="images/avtomat/avt_act/path2/krasnyj.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path2/nitroglicerin.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path2/sinij.png" alt="" /></td>
</tr></table>';
echo '<a href="./?link8&mslink2&mslinkok" class="btn center">Крутить</a>';
}
echo '<div>
<div class="feedbackPanel">
<div style="text-align: center;">
<div class="fl" style="width: 49%;">
<a class="btn" href="?link8">
<img width="16" height="16" alt="o" src="/images/icons/tick.png"/>
<span>Джокер</span>
</a>
</div>
<div class="fr" style="width: 49%;">
<a class="btn" href="./">
<img width="16" height="16" alt="o" src="/images/icons/cross.png"/>
<span>На главную!</span>
</a>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>';
}elseif(isset($_GET['mslink1'])){
if(isset($_GET['mslinkok'])){
$a = rand(1,3);
$b = rand(1,3);
$c = rand(1,3);
$colmoney = 5000;
if($user['ruby']>=$colmoney){
$update_money = $user['money']-$colmoney;
mysql_query("UPDATE `mystyle_user` SET `money` = '".$update_money."' WHERE `id` = '".$user['id']."'");
if($a == 1 && $b == 1 && $c == 1){
$mystyle = rand(1,8);
$money = array("1" => 10000, "2" => 15000, "3" => 20000, "4" => 25000, "5" => 30000, "6" => 35000, "7" => 40000, "8" => 50000);
$update = $user['money']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `money` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' монет</div>';
}
elseif($a == 2 && $b == 2 && $c == 2){
$mystyle = rand(1,8);
$money = array("1" => 1000, "2" => 1500, "3" => 2000, "4" => 2500, "5" => 3000, "6" => 3500, "7" => 4000, "8" => 5000);
$update = $user['money']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `money` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' монет</div>';
}
elseif($a == 3 && $b == 3 && $c == 3){
$mystyle = rand(1,8);
$money = array("1" => 5000, "2" => 10000, "3" => 15000, "4" => 20000, "5" => 25000, "6" => 30000, "7" => 35000, "8" => 40000);
$update = $user['money']+$money[$mystyle];
mysql_query("UPDATE `mystyle_user` SET `money` = '".$update."' WHERE `id` = '".$user['id']."'");
echo '<div class="feedbackPanel">Вы выиграли '.$money[$mystyle].' монет</div>';
}else{
echo '<div class="feedbackPanel">Комбинации не совпали</div>';
}
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">';
echo '<td class="btnp">';
$s = array("2" => '<img src="images/avtomat/avt_act/path1/pech.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path1/podkovy.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path1/zheleznoe.png" alt="" />');
echo $s[$a];
echo '</td>';
echo '<td class="btnp">';
$d = array("2" => '<img src="images/avtomat/avt_act/path1/pech.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path1/podkovy.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path1/zheleznoe.png" alt="" />');
echo $d[$b];
echo '</td>';
echo '<td class="btnp">';
$f = array("2" => '<img src="images/avtomat/avt_act/path1/pech.png" alt="" />',
"3" => '<img src="images/avtomat/avt_act/path1/podkovy.png" alt="" />',
"1" => '<img src="images/avtomat/avt_act/path1/zheleznoe.png" alt="" />');
echo $f[$c];
echo '</td>';
echo '</tr></table>';
echo '<a class="btn feedbackPanel" href="./?link8&mslink1&mslinkok&sid='.passgen().'">Крутить еше?</a>';
}else{
err_money($need-$user['money']);
}
}else{
echo '<div class="feedbackPanel"><img width="20" height="20" src="images/zombi/coins.png" alt="" /> <span>'.$user['money'].' </span></div>';
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 50%;">
<tr class="whiteBoldLink textshadow">
<td class="btnp"><img src="images/avtomat/avt_act/path1/pech.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path1/podkovy.png" alt="" /></td>
<td class="btnp"><img src="images/avtomat/avt_act/path1/zheleznoe.png" alt="" /></td>
</tr></table>';
echo '<a href="./?link8&mslink1&mslinkok" class="btn center">Крутить</a>';
}
echo '<div>
<div class="feedbackPanel">
<div style="text-align: center;">
<div class="fl" style="width: 49%;">
<a class="btn" href="?link8">
<img width="16" height="16" alt="o" src="/images/icons/tick.png"/>
<span>Джокер</span>
</a>
</div>
<div class="fr" style="width: 49%;">
<a class="btn" href="./">
<img width="16" height="16" alt="o" src="/images/icons/cross.png"/>
<span>На главную!</span>
</a>
</div>
<div style="clear: both;"></div>
</div>
</div>
</div>';
}else{
echo '<table class="center pt6 pb6" style="margin:0 auto; width: 80%;">
<tr class="whiteBoldLink textshadow">
<td><a href="./?link8&mslink1"><img src="images/avtomat/m_slot_apple.png" alt="" /></a></td>
<td><a href="./?link8&mslink2"><img src="images/avtomat/m_slot_cherry.png" alt="" /></a></td>
<td><a href="./?link8&mslink3"><img src="images/avtomat/m_slot_lemon.png" alt="" /></a></td>
<td><a href="./?link8&mslink4"><img src="images/avtomat/m_slot_mandarin.png" alt="" /></a></td>
</tr>';
echo '<tr class="whiteBoldLink textshadow">
<td class="btnp">На монеты</td>
<td class="btnp">На баксы</td>
<td class="btnp">На золото</td>
<td class="btnp">На брус</td>
</tr>';
echo '</table>';
}
}else{
header("Location: ./");
exit;
}
?>