</tr> <?php } ?> <tr class="bt"> <th class="right">Inactive</th> <td class="right" id="roids_amount_inactive"><?php echo nummertje($g_arrUser['inactive_asteroids']); ?> </td> <td class="c br" bgcolor="#111111"><input<?php echo $szDisabled; ?> type="submit" value="Initiate" /></td> <td class="c" colspan="4"><?php echo 0 < $g_arrUser['inactive_asteroids'] ? 'Activating the next asteroid will cost <span id="next_roid_init_costs">' . nummertje(nextRoidCosts($iCurrentAsteroids)) . '</span>' : '<br />'; ?> </th> </tr> </table> </form> <br /> <br /> <form id="f_donations" method="post" action="resources.php" autocomplete="off" onsubmit="return ('' != this.elements['to_'].value ? postForm(this,H) : false);"> <input type="hidden" name="to_" value="" /> <table border="0" cellpadding="3" cellspacing="0" class="widecells" align="center"> <tr> <th colspan="2"<?php if ((int) $g_arrUser['mof_planet_id'] === PLANET_ID) {
function initRoidsCosts($f_iWanna, $f_iHave) { $iCosts = 0; for ($i = 0; $i < $f_iWanna; $i++) { $iHave = $i + $f_iHave; $iCosts += nextRoidCosts($iHave); } return $iCosts; }