|
Revision 1711, 2.7 kB
(checked in by nahuel, 3 years ago)
|
Rajout de la confirmation de suppresion d'un compte
Il manque maintenant la traduction
References: #687
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 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 |
require_once("../class/config.php"); |
|---|
| 31 |
|
|---|
| 32 |
if (!$admin->enabled) { |
|---|
| 33 |
__("This page is restricted to authorized staff"); |
|---|
| 34 |
exit(); |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
if($_POST["del_confirm"] == "y"){ |
|---|
| 38 |
if (!is_array($d)) { |
|---|
| 39 |
$d[]=$d; |
|---|
| 40 |
} |
|---|
| 41 |
|
|---|
| 42 |
reset($d); |
|---|
| 43 |
while (list($key,$val)=each($d)) { |
|---|
| 44 |
if (!$admin->checkcreator($val)) { |
|---|
| 45 |
__("This page is restricted to authorized staff"); |
|---|
| 46 |
exit(); |
|---|
| 47 |
} |
|---|
| 48 |
if (!($u=$admin->get($val)) || !$admin->del_mem($val)) { |
|---|
| 49 |
$error.=sprintf(_("Member '%s' does not exist"),$val)."<br />"; |
|---|
| 50 |
} else { |
|---|
| 51 |
$error.=sprintf(_("Member %s successfully deleted"),$u["login"])."<br />"; |
|---|
| 52 |
} |
|---|
| 53 |
} |
|---|
| 54 |
include("adm_list.php"); |
|---|
| 55 |
exit(); |
|---|
| 56 |
}else{ |
|---|
| 57 |
include("head.php"); |
|---|
| 58 |
?> |
|---|
| 59 |
</head> |
|---|
| 60 |
<body> |
|---|
| 61 |
<h3><?php printf(_("Deleting users")); ?> : </h3> |
|---|
| 62 |
<form action="adm_dodel.php" method="post"> |
|---|
| 63 |
<input type="hidden" name="action" value="delete" /> |
|---|
| 64 |
<input type="hidden" name="del_confirm" value="y" /> |
|---|
| 65 |
<p class="error"><?php __("WARNING : Confirm the deletion of the users"); ?></p> |
|---|
| 66 |
<p> |
|---|
| 67 |
<?php |
|---|
| 68 |
foreach($d as $userid){ |
|---|
| 69 |
$membre=$admin->get($userid); |
|---|
| 70 |
echo "<input type=\"hidden\" name=\"d[]\" value=\"$userid\" />".$membre['login']."<br/>"; |
|---|
| 71 |
} |
|---|
| 72 |
?> |
|---|
| 73 |
</p> |
|---|
| 74 |
<blockquote> |
|---|
| 75 |
<input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" /> |
|---|
| 76 |
<input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="document.location='adm_list.php';" /> |
|---|
| 77 |
</blockquote> |
|---|
| 78 |
</form> |
|---|
| 79 |
</body> |
|---|
| 80 |
</html> |
|---|
| 81 |
<?php |
|---|
| 82 |
} |
|---|
| 83 |
|
|---|
| 84 |
?> |
|---|
| 85 |
|
|---|