X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fremoveme.php;h=904606fd57cb77b69a1a0b7ef48a9025ff012f25;hb=14dff6b0e0c5ff43df8b2cd8da440bdeaf2b3384;hp=6a56963b6c8a8426ca75613b89ab46f976682250;hpb=0c51305c72acd244dc92bb18c393fdf8fba4889b;p=friendica.git diff --git a/mod/removeme.php b/mod/removeme.php index 6a56963b6c..904606fd57 100644 --- a/mod/removeme.php +++ b/mod/removeme.php @@ -5,6 +5,9 @@ function removeme_post(&$a) { if(! local_user()) return; + if(x($_SESSION,'submanage') && intval($_SESSION['submanage'])) + return; + if((! x($_POST,'qxz_password')) || (! strlen(trim($_POST['qxz_password'])))) return; @@ -24,15 +27,16 @@ function removeme_post(&$a) { } - - function removeme_content(&$a) { if(! local_user()) - goaway($a->get_baseurl()); + goaway(z_root()); $hash = random_string(); + require_once("mod/settings.php"); + settings_init($a); + $_SESSION['remove_account_verify'] = $hash; $tpl = get_markup_template('removeme.tpl'); @@ -45,6 +49,6 @@ function removeme_content(&$a) { '$submit' => t('Remove My Account') )); - return $o; + return $o; -} \ No newline at end of file +}