Files
gallery3/modules/user/views/admin_users.html.php
Bharat Mediratta cd1d023754 Change the preamble for views in two ways:
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)
2009-01-01 00:23:29 +00:00

25 lines
1016 B
PHP

<?php defined("SYSPATH") or die("No direct script access.") ?>
<div class="gBlock">
<h2><?= _("User Administration") ?></h2>
<div class="gBlockContent">
<p><?= _("These are the users in your system") ?></p>
<ul>
<? foreach ($users as $i => $user): ?>
<li>
<?= $user->name ?>
<?= ($user->last_login == 0) ? "" : "(" . date("M j, Y", $user->last_login) . ")" ?>
<a href="users/edit_form/<?= $user->id ?>" class="gDialogLink"
title="<?= _("Edit user") ?>"><?= _("edit") ?></a>
<? if (!(user::active()->id == $user->id || user::guest()->id == $user->id)): ?>
<a href="users/delete_form/<?= $user->id ?>" class="gDialogLink"
title="<?= sprintf(_("Do you really want to delete %s"), $user->name) ?>">
<?= _("delete") ?></a>
<? endif ?>
</li>
<? endforeach ?>
<li><a href="users/add_form" class="gDialogLink" title="<?= _("Add user") ?>">
<?= _("Add user") ?></a></li>
</ul>
</div>
</div>