old_man

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?
if(isset($_GET['rate']) and !isset($_GET['result'])){
$rate = intval($_GET['rate']);
$rago=$rate*100;
if($user['gold']<$rago){
header("Location: /old_man/");
$_SESSION['err'] = 'Недостаточно золота';
exit;
}
if($rate==1 or $rate==5 or $rate==10 or $rate==25 or $rate==100 or $rate==250){
echo'<div class="main grey center"><div class="empty2"></div>Интересно... Повезёт ли Вам? Выберите один из 3 наперстков!<div class="empty2"></div></div>';
echo'<div class="line"></div><div class="head grey center">
<table class="head" width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-top: 5px;">
<tbody>
<tr>
<td width="33%"><a href="?rate='.$rate.'&thimble=1"><div class="imgwrap"><img src="/images/thimble.png"></div></a></td>
<td width="33%"><a href="?rate='.$rate.'&thimble=2"><div class="imgwrap"><img src="/images/thimble.png"></div></a></td>
<td width="33%"><a href="?rate='.$rate.'&thimble=3"><div class="imgwrap"><img src="/images/thimble.png"></div></a></td>
</tbody></table></div>';
} else {
$_SESSION['err'] = "Ошибка";
header('Location: /old_man/');
exit();
}
}
?>