<br /> Total: <?php echo numecho2($user->gold + $user->bank); ?> <br /> <br /> <small>Deposit Fee <?php echo $user->bankper; ?> %</small> <form name="<?php echo getPassword(10); ?> " method="post"> <input name="<? $_SESSION['depbox'] = getPassword(10); echo $_SESSION['depbox']; ?>" type="text" size="12" maxlength="17" value="<?php echo numecho2($user->gold); ?> " /> <? if($user->bankimg == 1) { ?> <br /> <img src="imageclick.php?<?php echo session_name() . '=' . session_id(); ?> " title="random characters" alt="random characters"><br /> <select name="turing"> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> <option value="4">four</option> <option value="5">five</option> <option value="6">six</option>
echo $target->getNation(); ?> " src="<?php echo $this->image($target->getNationFlag()); ?> " /></td> <? $class = ''; $title = ''; $canSpy = $user->canSpyOn($target); if ($user->getSupport('minhit')) { $isGood = $target->gold >= $user->minattack; if (($isGood and $canSpy)) { $class = 'username-underline'; $title = $target->getNameHTML() . ' has ' . numecho2($target->gold) . ' gold'; } } else { if ($canSpy) { $tbg = $user->getIncome(); if ($target->gold > floor($tbg * 0.8) and $target->gold < floor($tbg * 1.8)) { $class = 'username-underline-similar'; } else if ($target->gold > floor($tbg * 1.8) and $target->gold < floor($tbg * 2.2)) { $class = 'username-underline-double'; } else if ($target->gold > floor($tbg * 2.2)) { $class = 'username-underline-high'; } }
<span><?php echo numecho($this->target->rank); ?> </span> </div> <div class="line"> <label>Army Size</label> <span><?php echo numecho($this->target->getTFF()); ?> </span> </div> <div class="line"> <label>Gold</label> <span><?php echo $user->canSpyOn($this->target) ? numecho2($this->target->gold) : '?????'; ?> </span> </div> <? if ($user->id) { ?> <? if ($this->target->id != $user->id) { ?> <? if ($this->target->area == $user->area and IP::canAttack($user, $this->target)) { ?> <div class="line"> <label>Spy</label> <form action="spy.php" method="post" class="right-section"> <input type="hidden" name="uid" value="<?php echo $this->target->id; ?> " /> <input type="submit" name="spy" value="<?php echo numecho($conf['spying-cost']);
} // make sure they have enough if ($gold > $user->gold) { $t->err = 'Not enough gold to deposit'; } else { $user->gold -= $gold; $bankfee = round($user->bankper * 0.01 * $gold); if ($bankfee <= 0) { $bankfee = 1; } $gold -= $bankfee; $user->bank += $gold; $user->bankimg = 0; $user->save(); $t->msg = 'You have just banked ' . numecho2($gold) . 'gold. <br />'; $t->msg .= "Bank free was {$user->bankper}% ( " . numecho2($bankfee) . ' gold )'; } } } $t->user = $user; $t->pageTitle = 'Treasury'; $t->display(); ?>
function pngt($sing, $plur, $d) { return sprintf(ngettext($sing, $plur, (int)$d), numecho2($d)); }
<option value="7">seven</option> <option value="8">eight</option> <option value="9">nine</option> <option value="10">ten</option> <option value="11">eleven</option> <option value="12">twelve</option> <option value="13">thirteen</option> <option value="14">fourteen</option> <option value="15">fifteen</option> </SELECT><? } ?> <br /> <input type="submit" value="Deposit" /> </form> <form action=bank.php method=POST> <input name='withdrawbox' type=text size=12 maxlength=17 value=<?php echo numecho2($user->bank); ?> /><input type=submit value= 'Withdraw Gold'/> </form> </center> </td> </TR></TBODY></TABLE> <? include ("bottom.php"); ?> </TD></TR></TBODY></TABLE></BODY></HTML> <? include "gzfooter.php"; ?>
<TH align=middle colSpan=2> Upgrade <span class="subh">Weapons Technology</span> </TH> </TR> <TR> <TH class=subh align=left> Current Weapons Technology </TH> <TH class=subh width="50%"> Upgrade </TH> </TR> <TR> <? $sl = $conf["race"][$user->race]["siege"][$user->salevel]["name"]; if ($conf["race"][$user->race]["siege"][$user->salevel + 1]["price"]) { $kn = numecho2($conf["race"][$user->race]["siege"][$user->salevel + 1]["price"]) . ' Gold ' . ' (+25%)'; } else { $kn = 'No more upgrades available'; } ?> <TD> <?php echo $sl; ?> </TD> <TD align=middle> <?php echo $conf["race"][$user->race]["siege"][$user->salevel + 1]["name"]; ?> <br>
function spiedValue($value, $user, $target, $op = false){ $ret = '???'; $rdefCA = (float)(rand(80, 105) * 0.01 * $target->CA); $rattCA = (float)(rand(95, 105) * 0.01 * $user->CA); if ($rattCA > $rdefCA) { if ($op) { $ret = $op; } else { $ret = numecho2($value); } } return $ret; }