Файл: public_html/system/function_many.php
Строк: 76
<?$garbage_func=$user['garbage'];
$summ_union_func = mysql_query("SELECT * FROM union_users WHERE id_users=".$_SESSION['id'],$link) or die(mysql_error());
$summ_union_func = mysql_num_rows( $summ_union_func );
if($summ_union_func>0){
$summ_union_func = mysql_query("SELECT * FROM union_users WHERE id_users=".$_SESSION['id'],$link) or die(mysql_error());
$summ_union_func = mysql_fetch_array( $summ_union_func );
$search_union_func = mysql_query("SELECT * FROM `union` WHERE id=".$summ_union_func['id_union'],$link) or die(mysql_error());
$search_union_func = mysql_fetch_array( $search_union_func );
$garbage_func=$search_union_func['angels'];
}
$citizenship_func=$user['citizenship'];
$stock_func=$user['stock'];
function many_sec($many_users, $angels){
global $garbage_func, $citizenship_func, $stock_func;
$many_sec=bcadd($many_users, bcmul($many_users, bcmul($angels, "0.01", 2)));
return bcmul(bcmul(bcadd($many_sec, bcmul($many_sec, bcdiv($garbage_func, "100", 2))), $citizenship_func),bcpow('2', $stock_func));
}?>