Exemplo n.º 1
0
				<li><h3>Their mob used:</h3></li>';
    if (listItems($otherUserItemObjs, $_SESSION['otherUserUsedItems']) != '') {
        $theirmobhtml .= listItems($otherUserItemObjs, $_SESSION['otherUserUsedItems']);
    } else {
        $theirmobhtml .= '<li>Your Opponent use no weapon</li>';
    }
    $theirmobhtml .= ' </ul> ';
    $result_html .= $yourmobhtml . $theirmobhtml . '
			<div class="leavecomment">
				<textarea placeholder="Leave a comment..." id="toggleSection" maxlength = "250" style="display:none;"></textarea>				
				<a href="#" id="toggleButton" class="blackbutton">Post Comment</a>
			</div>';
    if (isset($_SESSION['bounty'])) {
        //echo "bountyAmount".$_SESSION['bountyAmount'];
        unset($_SESSION['bountyAmount']);
        $bounties = Bounty::getBountiesCountForUser($user->getID());
        $numBounties = count($bounties);
    } else {
        $result_html .= ' <div class="attackagain">
									<a href="javascript:" onclick="playAndRedirect(\'' . SOUND_ATTACK . '\',\'' . $serverRoot . 'backend/attackplayer.php?userID=' . $_SESSION['otherUserID'] . '&attack_type=normal\')" class="blackbutton">Attack Again</a>
								</div>';
    }
    $result_html .= '</div>
		</div>';
    $otherUserID = $_SESSION['otherUserID'];
    unset($_SESSION['userUsedItems']);
    unset($_SESSION['otherUserUsedItems']);
    unset($_SESSION['otherUserID']);
}
echo $result_html;
if ($user->getType()) {