Файл: test.zfarm.mobi/mystyleshop/mystylemozgi.php
Строк: 7
<?php
if($user['mozgi_time']>$time){
echo '<a class="btn" href="">';
$fretime = $user['mozgi_time']-$time;
if($fretime >= 0) $rettime = 1;
if($fretime >= 86400) $rettime = 1;
if($fretime >= 172800) $rettime = 2;
if($fretime >= 259200) $rettime = 3;
if($fretime >= 345600) $rettime = 4;
if($fretime >= 432000) $rettime = 5;
if($fretime >= 518400) $rettime = 6;
if($fretime >= 604808) $rettime = 7;
if($rettime == 1 || $rettime == 2 || $rettime == 3 || $rettime == 4 || $rettime == 5 || $rettime == 6 || $rettime == 7){
echo '<img alt="" src="images/mozgi/brain_1_'.$rettime.'day.png"><br />';
}else{
echo '<img alt="" src="images/mozgi/brain_1_7day.png"><br />';
}
echo ' на '.time_left($user['mozgi_time']-$time).'</a> ';
}else{
header("Location: ./");
exit;
}
?>