Файл: msmenu/msexpectations.php
Строк: 16
<?php
if($user['timeshield'] > time() || $user['timerage'] > time()){
if($user['ruby'] >= 1){
mysql_query("UPDATE `ms_user` SET `ruby` = '".($user['ruby']-num(1))."', `timeshield` = '".num(0)."', `timerage` = '".num(0)."' WHERE `id` = '".$user['id']."' LIMIT 1");
$_SESSION['msg'] = $text;
header("Location: ../Link:OnTheHunt");
exit;
}else{
$text = 'У вас не хватает рубинов.';
$_SESSION['msg'] = $text;
header("Location: ../Link:OnTheHunt");
exit;
}
}else{
$_SESSION['msg'] = $text;
header("Location: ../Link:OnTheHunt");
exit;
}
?>