Пример #1
0
    Search results
</div>
<div id="listing-wrapper">
    <div class="listing">
        <div>
            Your search for <span id="searchterm"><?php 
echo htmlspecialchars($search);
?>
</span> yielded <?php 
echo count($searchResults);
?>
 results:
        </div>
        <div id="searchresults-wrapper">
            <div id="searchresults">
            <?php 
foreach ($searchResults as $uuid) {
    ?>
                <div class="searchresult">
                <?php 
    echo createPlayerWidget($uuid, 16);
    ?>
                </div>
                <?php 
}
?>
            </div>
        </div>
    </div>
</div>
Пример #2
0
    $me = $_POST['itsme'];
    setcookie('me', $me, time() + 60 * 60 * 24 * 365);
} else {
    if (isset($_GET['notme'])) {
        setcookie('me', null);
        unset($me);
    } else {
        if (isset($_COOKIE['me'])) {
            $me = $_COOKIE['me'];
        }
    }
}
if (isset($me)) {
    ?>
&nbsp;|&nbsp;<?php 
    echo createPlayerWidget($me, 16);
    ?>
            <a class="notme" href="?notme">[X]</a>
            <?php 
}
?>
            <form action="index.php" method="post">
            Player search: <input name="findname" type="text" size="16"/>
            <button name="goto">Go</button>
            <?php 
if (isset($formError)) {
    echo "<span class=\"error\">{$formError}</span>";
}
?>
            </form>
        <?php 
Пример #3
0
$i = 0;
foreach ($hof as $id => $e) {
    ?>
                        <tr>
                            <td class="rank <?php 
    echo "place{$i} crown{$i}";
    ?>
"><?php 
    echo $i + 1;
    ?>
</td>
                            <td class="player <?php 
    echo "place{$i}";
    ?>
"><?php 
    echo createPlayerWidget($e['id'], 24);
    ?>
</td>
                            <td class="center score-bronze <?php 
    echo "place{$i}";
    ?>
"><?php 
    echo safeGet('bronze', $e, 0);
    ?>
</td>
                            <td class="center score-silver <?php 
    echo "place{$i}";
    ?>
"><?php 
    echo safeGet('silver', $e, 0);
    ?>
Пример #4
0
                    <div class="award-title">
                        <a href="?stat=<?php 
    echo $id;
    ?>
"><?php 
    echo $stat['award'];
    ?>
</a>
                    </div>
                    
                    <?php 
    if (array_key_exists($id, $awards)) {
        $awardWinner = createPlayerWidget($awards[$id]['id'], 24);
        $awardText = $stat['desc'] . ': <span class="award-score">' . getStatDisplayValue($stat, $awards[$id]['score']) . '</span>';
    } else {
        $awardWinner = createPlayerWidget(FALSE, 24);
        $awardText = '(' . $stat['desc'] . ')';
    }
    ?>
                    
                    <div class="award-winner-box">
                        <div class="award-winner">
                            <?php 
    echo $awardWinner;
    ?>
                        </div>
                        <div class="award-text">
                            <?php 
    echo $awardText;
    ?>
</span>
                if (strcmp($key, 'achievement.exploreAllBiomes') === 0) {
                    $otherStats[$key] = implode(', ', $value['progress']);
                } else {
                    $otherStats[$key] = $value;
                }
            }
        }
    }
}
//Sort stats
ksort($otherStats);
ksort($blockStats);
?>
<div id="header">
    <?php 
echo createPlayerWidget($playerId, 64);
?>
</div>
<div id="listing-wrapper">
    <div class="listing">
        <p class="date">Last online: <?php 
echo formatDate(getPlayerLastOnline($playerId));
?>
</p>
        <?php 
if ($inactive) {
    ?>
                    <p class="inactive">This player has been inactive for over <?php 
    echo (int) ($inactiveTime / 86400);
    ?>
 days.</p>