<div id="profiletop"> <img src="<?php echo $serverRoot . getPlayerTypeFromTypeImageURL($user->getType()); ?> " > <h2><?php echo $user->getName(); ?> </h2> <h4>LVL <?php echo $user->getLevel(); ?> <?php echo getPlayerTypeFromTypeID($user->getType()); ?> </h4> </div> <div id="tabs"> <div class="container missionsmenu"> <ul id="menu2"> <li class="tab"><a href="#one">Stats</a></li> <li class="tab"><a href="#two">Comments</a></li> </ul> </div> <?php if (!$user->checkSameUsersInAgency($_SESSION['userID'], $userID) && $userID != $_SESSION['userID']) {
<?php include_once $_SERVER['DOCUMENT_ROOT'] . "/topmenu.php"; include_once $_SERVER['DOCUMENT_ROOT'] . "/properties/playertypeproperties.php"; session_start(); ?> Choose your specialty: <br> <form action='<?php $_SERVER['DOCUMENT_ROOT']; ?> /backend/chooseclass.php' method='POST'> <select name="playertype"> <option value='1'><?php echo ucfirst(getPlayerTypeFromTypeID(1)); ?> </option> <option value='2'><?php echo ucfirst(getPlayerTypeFromTypeID(2)); ?> </option> <option value='3'><?php echo ucfirst(getPlayerTypeFromTypeID(3)); ?> </option> </select> <input type='submit' value='Choose'/> <br><br> </form>
function displayBountyAttack($user, $serverRoot) { $bounties = Bounty::getBountiesForUser($user->getID()); $numBounties = count($bounties); $enemy_html = ''; if ($numBounties > 0) { $enemy_html = '<div id="two"> <table class="pvp hitlist"> <tr> <th>Opponent</th> <th class="armysize">Bounty</th> <th></th> </tr>'; foreach ($bounties as $bounty) { $id = $bounty->getTargetID(); //is this safe.. $userName = $bounty->name; $bountyAmount = $bounty->bounty; if ($user->checkSameUsersInAgency($_SESSION['userID'], $id) == false && $_SESSION['userID'] != $id) { $enemy_html .= '<tr> <td class="oppname"> <h5><a onclick="playSound(' . SOUND_CLICK . ')" href="' . $serverRoot . 'externalplayerprofile.php?userID=' . $id . '">' . $userName . '</a></h5> <p>LVL ' . $bounty->level . ' ' . getPlayerTypeFromTypeID($bounty->type) . '</p> </td> <td class="oppsize"><p>$' . $bountyAmount . '</p></td> <td class="oppattack"><a href="javascript:" onclick="playAndRedirect(\'\',\'' . $serverRoot . 'backend/attackplayer.php?userID=' . $id . '&attack_type=bounty&bountyAmount=' . $bountyAmount . '\')" class="blackbutton">Attack</a></td> </tr>'; } //$_SESSION['bountyAmount'] = $bountyAmount; } $enemy_html .= '</table></div>'; } echo $enemy_html; }
$profileUserMissionsCompleted = $profileUser->getNumMissionsCompleted(); $profileUserFightsWon = $profileUser->getFightsWon(); $profileUserFightsLost = $profileUser->getFightsLost(); $profileUserKills = $profileUser->getUserKills(); $profileUserDeaths = $profileUser->getUserDeaths(); ?> <?php echo $profileUserName; ?> <br> Level <?php echo $profileUserLevel; ?> <?php echo ucfirst(getPlayerTypeFromTypeID($profileUserType)); ?> <br> ----------------------------------------------------- <br> Missions Completed: <?php echo $profileUserMissionsCompleted; ?> <br> Fights Won: <?php echo $profileUserFightsWon; ?> <br> Fights Lost: <?php echo $profileUserFightsLost; ?> <br>
if ($updateSoldier != '') { $result_html .= '<div id="notification"> <div class="successmessage"> <p class="successfailuremessage"><span class="success">Success!</span> Soldier has been recruited Successfully.</p> </div> </div>'; } if ($updateName != '') { $result_html .= '<div id="notification"> <div class="successmessage"> <p class="successfailuremessage"><span class="success">Success!</span> Your name is changed to ' . $updateName . '.</p> </div> </div>'; } if ($updateClass != '') { $updateClass = getPlayerTypeFromTypeID($updateClass); $result_html .= '<div id="notification"> <div class="successmessage"> <p class="successfailuremessage"><span class="success">Success!</span> Your class has been changed to ' . $updateClass . '.</p> </div> </div>'; } if ($stolenGoods != '') { $stolenGoods = itemType($fn->get('is_special'), $fn->get('is_common')); $result_html .= '<div id="notification"> <div class="successmessage"> <p class="successfailuremessage"><span class="success">Success!</span> You got ' . $fn->get('itemName') . ' ' . $stolenGoods . ' Stolen Good.</p> </div> </div>'; } if ($blackMarketGoods != '') {
function displayMyAgency($user, $dummyCount = 0) { global $existingAgencyUsers; foreach ($existingAgencyUsers as $agencyUser) { $soldierID = $agencyUser->getID(); $soldierName = $agencyUser->getName(); ?> <tr> <td><img class="icon" src="<?php echo getPlayerTypeFromTypeImageURL($agencyUser->getType()); ?> "></td> <td><a class="profilelink" href="externalplayerprofile.php?userID=<?php echo $soldierID; ?> "><?php echo $soldierName; ?> </a> <p>LVL <?php echo $agencyUser->getLevel(); echo getPlayerTypeFromTypeID($agencyUser->getType()); ?> </p> </td> <td><a href="backend/deleteagencyuser.php?soldier_id=<?php echo $soldierID; ?> " class="blackbutton">Remove</a></td> </tr> <?php } for ($i = 0; $i < $dummyCount; $i++) { ?> <tr> <td><img class="icon" src="img/natalieicon.png"></td> <td><a class="profilelink" href="javascript:"><?php echo DUMMY_SOLDIER_NAME; ?> </a></td> <td></td> </tr> <?php } }