mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-26 09:43:54 -04:00
1) drop unnecessary semicolon 2) start with <?php for extra security in the case that the server itself doesn't have short_tags enabled (the app won't work, but we need to make sure that we're still secure)
15 lines
606 B
PHP
15 lines
606 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<ul id="gLoginMenu">
|
|
<? if ($user->guest): ?>
|
|
<li><a href="<?= url::site("login") ?>"
|
|
title="<?= _("Login to Gallery") ?>"
|
|
id="gLoginLink"><?= _("Login") ?></a></li>
|
|
<? else: ?>
|
|
<li><a href="<?= url::site("form/edit/users/{$user->id}") ?>"
|
|
title="<?= _("Edit Your Profile") ?>"
|
|
id="gUserProfileLink" class="gDialogLink"><?= _("Modify Profile") ?></a></li>
|
|
<li><a href="<?= url::site("logout?continue=" . url::current(true)) ?>"
|
|
id="gLogoutLink"><?= _("Logout") ?></a></li>
|
|
<? endif; ?>
|
|
</ul>
|