3 function removeme_post(&$a) {
8 if((! x($_POST,'qxz_password')) || (! strlen(trim($_POST['qxz_password']))))
11 if((! x($_POST,'verify')) || (! strlen(trim($_POST['verify']))))
14 if($_POST['verify'] !== $_SESSION['remove_account_verify'])
17 $encrypted = hash('whirlpool',trim($_POST['qxz_password']));
19 if((strlen($a->user['password'])) && ($encrypted === $a->user['password'])) {
20 require_once('include/Contact.php');
21 user_remove($a->user['uid']);
29 function removeme_content(&$a) {
32 goaway($a->get_baseurl());
34 $hash = random_string();
36 $_SESSION['remove_account_verify'] = $hash;
38 $tpl = get_markup_template('removeme.tpl');
39 $o .= replace_macros($tpl, array(
40 '$basedir' => $a->get_baseurl(),
42 '$title' => t('Remove My Account'),
43 '$desc' => t('This will completely remove your account. Once this has been done it is not recoverable.'),
44 '$passwd' => t('Please enter your password for verification:'),
45 '$submit' => t('Remove My Account')