user_remove.php 492 B

1234567891011121314151617181920
  1. <?php
  2. require_once($_SERVER['DOCUMENT_ROOT'] . "/inc/auth.php");
  3. require_once($_SERVER['DOCUMENT_ROOT'] . "/inc/languages/" . HTML_LANG . ".php");
  4. if (!defined("CONFIG")) die("Not defined");
  5. if (isset($_POST["RemoveUser"]) and (isset($_POST["f_deleted"]))) {
  6. if ($_POST["f_deleted"] * 1) {
  7. $fid = $_POST["fid"];
  8. $all_ok = 1;
  9. foreach ($fid as $key => $val) {
  10. if ($val) { delete_user($db_link,$val); }
  11. }
  12. if ($all_ok) {
  13. print "Success!";
  14. } else {
  15. print "Fail!";
  16. }
  17. }
  18. }