Example #1
0
    $_SERVER['DOCUMENT_ROOT'];
    ?>
/battle.php' method='POST'>
	<input type='hidden' name='battleTab' value='bounty' />
	<input type='submit' value='Check the Bounty List'/>
	</form>
	<?php 
    if (isset($_POST['battleTab'])) {
        if ($_POST['battleTab'] == 'normal') {
            displayNormalAttack($user);
        }
        if ($_POST['battleTab'] == 'bounty') {
            displayBountyAttack($user);
        }
    } else {
        if (isset($_SESSION['battleTab'])) {
            if ($_SESSION['battleTab'] == 'bounty') {
                displayBountyAttack($user);
            }
            unset($_SESSION['battleTab']);
        } else {
            displayNormalAttack($user);
        }
    }
} else {
    echo "<script>location.href='{$serverRoot}/chooseclasspage.php'</script>";
}
?>

</body>
</html>
Example #2
0
    ?>
battle.php?battleTab=bounty">Hit List (<?php 
    echo $numBounties;
    ?>
)</a>
                    -->
                    <a id="hitlist" class="" href="#two">Hit List (<?php 
    echo $numBounties;
    ?>
)</a>

                </li>
            </ul>
        </div>
    <?php 
    displayNormalAttack($user, $serverRoot);
    displayBountyAttack($user, $serverRoot);
    ?>

    </div> 



    <div style="display: none;">
        <div id="inline1" style="">

        </div>
    </div>

    <a class="inlinecontent abshide" href="#inline1"> </a>