您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. ?>