Changeset 1711
- Timestamp:
- 07/07/06 12:48:58 (7 years ago)
- File:
-
- 1 edited
-
alternc/trunk/bureau/admin/adm_dodel.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/admin/adm_dodel.php
r222 r1711 35 35 } 36 36 37 if($_POST["del_confirm"] == "y"){ 38 if (!is_array($d)) { 39 $d[]=$d; 40 } 37 41 38 if (!is_array($d)) { 39 $d[]=$d; 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 40 82 } 41 83 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 57 84 ?>
Note: See TracChangeset
for help on using the changeset viewer.
