Файл: titwar.ru/func/sosedi/zapad/vor.php
Строк: 27
<?php
$nid = check_chislo($nid);
$nuser= mysql_fetch_array(mysql_query("select * From users where id='$nid'"));
$timevor=mysql_fetch_array(mysql_query("SELECT * FROM svvtime WHERE id='$id'"));
$userstranatime=$user['time_strana'];
$vragstranatime=$nuser['time_strana'];
$timeus = ceil((time() - $userstranatime)/60);
$timevr = ceil((time() - $vragstranatime)/60);
if ($timevr > $timeus)
{
$itog=round($timevr/$timeus, 2);
if ($itog >=1.5 and $user['stop_big_stran'] == 1 and $nuser['secret_slovo'] != 'нет так')
{
echo '<br>Недоступно! Cтрана старше в <b>'.$itog.'</b> раз!<br>';
}
else
{
include('funcvor.php');
}
}
elseif ($timevr <= $timeus)
{
$itog=round($timeus/$timevr, 2);
if ($itog >=1.5 and $nuser['stop_big_stran'] == 1 and $nuser['secret_slovo'] != 'нет так')
{
echo '<br>Недоступно! Cтрана младше в <b>'.$itog.'</b> раз!<br>';
}
else
{
include('funcvor.php');
}
}
?>