blob: 0394f12af793ae53a76a33ee2c54d129b9be85db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?php
if($candelete) {
?>
<h1>Delete User</h1>
<h2>Id : <?= $userdelete->id() ?></h2>
<h2>Level : <?= $userdelete->level() ?></h2>
<form action="<?= $this->url('userupdate') ?>" method="post">
<input type="hidden" name="id" value="<?= $userdelete->id() ?>">
<input type="submit" name="action" value="confirmdelete">
</form>
<?php
} else {
?>
<h1>You can't delete this user</h1>
<h2>You can't delete yourself</h2>
<p>To delete this user, create at least another admin user, log in as this other admin user, the try to delete this user.</p>
<a href="<?= $this->url('user') ?>">Go back to users</a>
<?php
}
?>
|