41 lines
1.5 KiB
PHP
41 lines
1.5 KiB
PHP
<section>
|
|
<div class="title"><img src="/img/button_location.gif" alt="Location" title="Location"></div>
|
|
Currently: <?= user()->currentaction ?><br>
|
|
Latitude: <?= user()->latitude ?><br>
|
|
Longitude: <?= user()->longitude ?><br>
|
|
<a href="javascript:openmappopup()">View Map</a><br>
|
|
<form action="/move" method="post" class="move-compass">
|
|
<button type="submit" name="direction" value="north" class="north">North</button>
|
|
<div class="mid">
|
|
<button type="submit" name="direction" value="west" class="west">West</button>
|
|
<button type="submit" name="direction" value="east" class="east">East</button>
|
|
</div>
|
|
<button type="submit" name="direction" value="south" class="south">South</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section>
|
|
<div class="title"><img src="/img/button_towns.gif" alt="Towns" title="Towns"></div>
|
|
<?php
|
|
if (user()->currentaction == 'In Town') {
|
|
$town = get_town_by_xy((int) user()->latitude, (int) user()->longitude);
|
|
echo "Welcome to <b>{$town['name']}</b>.<br><br>";
|
|
}
|
|
?>
|
|
Travel To:<br>
|
|
<?= $town_list ?>
|
|
</section>
|
|
|
|
<section>
|
|
<div class="title"><img src="/img/button_functions.gif" alt="Functions" title="Functions"></div>
|
|
<a href="/">Home</a><br>
|
|
<a href="/forum">Forum</a><br>
|
|
<a href="/settings">Settings</a><br>
|
|
<a href="/changepassword">Change Password</a><br>
|
|
<a href="/logout">Log Out</a><br>
|
|
<?php if (user()->authlevel === 1): ?>
|
|
<a href="/admin">Admin</a><br>
|
|
<?php endif; ?>
|
|
<a href="/help">Help</a>
|
|
</section>
|