You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

delete_account.php 349 B

1234567891011121314151617
  1. <?php
  2. include "header.php";
  3. connecte("ecomonde");
  4. $hash=md5($email);
  5. $path="./medias/".$hash;
  6. if ($email) {
  7. exec("rm -rf {$path}");
  8. $sql="DELETE FROM membres WHERE id=$id";
  9. mysql_query($sql) or die(include('index.php?msg=0'));
  10. $_SESSION['status']=0;
  11. header("location:index.php?msg=4");
  12. }
  13. else {
  14. header("location:index.php?msg=0");
  15. }
  16. ?>