1
0

auth_remove.php 681 B

1234567891011121314151617181920212223
  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["RemoveAuth"]) and (isset($_POST["f_deleted"]))) {
  6. if ($_POST["f_deleted"] * 1) {
  7. $auth_id = $_POST["fid"];
  8. $all_ok = 1;
  9. foreach ($auth_id as $key => $val) {
  10. if ($val) {
  11. $changes = delete_user_auth($db_link,$val);
  12. if (empty($changes)) { $all_ok = 0; }
  13. }
  14. }
  15. if ($all_ok) {
  16. print "Success!";
  17. } else {
  18. print "Fail!";
  19. }
  20. }
  21. }