?> </p> <p><?php echo $username; ?> </p> <p>$<?php echo number_format($money); ?> </p> <p><?php echo number_format($tokens); ?> Tokens</p> <p>LEVEL: <?php echo expToLevel($userRow['trainer_exp']); ?> </p> </div> </li> <li class="usr-inf-title"><a href="#">Short cuts</a></li> <li> <div class="info-box"> <a href="/auction.php?lref=1">Auctions</a> <a href="/view_box.php?lref=3">My PokeBox</a> <a href="/trade.php?lref=4">Trade Center</a> <a href="/sell_pokemon.php?lref=5">Global Buy/Sell</a> <a href="/fix.php?lref=6">Battle Training</a> <a href="/chatroom.php?lref=7">ChatRoom</a> <a href="http://forums.pkmnhelios.net/">Forums</a>
/* if ($randExp > 1500) { $randExp = 8000; } */ foreach ($_SESSION['battle']['usedpokemon'] as $pnum) { $newExp = $team[$pnum]['exp'] + $randExp; echo ' <div style="text-align:center; margin-bottom: 20px;"> <img src="images/pokemon/' . $team[$pnum]['name'] . '.png" alt="' . $team[$pnum]['name'] . '" /><br /> ' . $team[$pnum]['name'] . ' + ' . $randExp . 'exp<br /> '; mysql_query("UPDATE `user_pokemon` SET `exp`={$newExp} WHERE `id`='{$team[$pnum]['id']}'") or die('f'); mysql_query("UPDATE `users` SET `trainer_exp`={$newExp} WHERE `id`='{$uid}'") or die('f'); $newLevel = expToLevel($newExp); if ($newLevel > 10000) { $newLevel = 10000; } if ($newLevel != $team[$pnum]['level']) { $levelsGained = $newLevel - $team[$pnum]['level']; echo $team[$pnum]['name'] . ' gained ' . $levelsGained . ' levels.<br />'; mysql_query("UPDATE `user_pokemon` SET `level`={$newLevel} WHERE `id`='{$team[$pnum]['id']}'"); } echo '</div>'; } if (isset($_SESSION['battle']['uid'])) { $wUid = $_SESSION['battle']['uid']; if ($wUid == getConfigValue('champion_uid')) { setConfigValue('champion_uid', $uid); echo '<div>You are now the new champion!</div>';
<div class="badges"> <div class="header in"><p>Achievements <small style="font-weight: 300;font-size: 10px !important;position: relative;left: 5px;top: -5px;color: rgb(63, 192, 208);">[ALPHA]</small></p></div> <div class="show badges" style="text-align: center; width: 70%; margin: 10px auto;"> <?php if ($userRow['won'] >= 1000) { echo '<img src="images/achievements/1k.png" title="Have won a 1000 battles">'; } if (expToLevel($userRow['trainer_exp']) >= 1000) { echo '<img src="images/achievements/1kb.png" title="Reached trainer level 1,000">'; } if (expToLevel($userRow['trainer_exp']) >= 5000) { echo '<img src="images/achievements/5k.png" title="Reached trainer level 5,000">'; } if (expToLevel($userRow['trainer_exp']) >= 10000) { echo '<img src="images/achievements/10k.png" title="Reached trainer level 10,000">'; } ?> </div> </div> <?php } ?> <div class="about"> <div class="header in"><p>Signature</p></div> <div class="signature"> <?php echo bbcode($signature);
} elseif ($level > 10000) { echo "level must be between 0 and 10,000"; } else { echo "level" . " " . number_format($level) . " " . " pokemon requires" . " " . number_format(levelToExp($level)) . " " . "exp"; } } if (isset($_POST['cal'])) { $exp = abs((int) $_POST['exp']); $exp = htmlentities($_POST['exp']); $exp = mysql_real_escape_string($_POST['exp']); if (!isset($exp)) { echo "you havent entered a number"; } elseif ($exp < 250) { echo "exp should be greater than or equal to 250"; } else { echo "you will need " . number_format($exp) . "" . " exp to get to level" . " " . number_format(expToLevel($exp)); } } ?> <fieldset><legend>Helios Calculator</legend> <table border="0" cellspacing="0" cellpadding="4" style="margin: 0 auto 0 auto; text-align: left;"> <tr><td style="text-align: right;" valign="middle">Level:</td><td><input name="lvl" type="text" id="lvl" class="button"/></td> <td style="text-align: right;" valign="middle">Level:</td> <td><input name="exp" type="text" id="exp" class="button"/></td> </tr> <tr style="text-align: center;" valign="middle"> <td colspan="2"><input type="submit" name="Calculate" id="Calculate" value="level to exp"> </td><td colspan="2"><input type="submit" name="cal" id="cal" value="exp to level"> </td> </table></fieldset>
die; } if (isset($_GET['id'])) { if (isset($_POST['submit'])) { $errors = array(); $name = str_replace(array(chr(0), '.', '/', '\\', '?', '<', '>'), '', $_POST['name']); if (!file_exists('../images/pokemon/' . $name . '.png')) { $errors[] = 'Could not find a picture for that pokemon.'; } $level = (int) $_POST['level']; $exp = (int) $_POST['exp']; if ($_POST['useExp']) { if ($exp <= 0) { $errors[] = 'Exp should be more that 0.'; } $level = expToLevel($exp); } else { if ($level <= 0) { $errors[] = 'Level should be more that 0.'; } $exp = levelToExp($level); } $move1Id = $_POST['move1']; $move1Name = moveIdToName($move1Id); if ($move1Name === false) { $errors[] = 'Move 1 was invalid.'; } $move2Id = $_POST['move2']; $move2Name = moveIdToName($move2Id); if ($move2Name === false) { $errors[] = 'Move 2 was invalid.';