mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 11:29:24 -04:00
25 lines
1014 B
PHP
25 lines
1014 B
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>
|