X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fremoveme.php;h=ee88bd76a55212d89521eea7b12e782266b76b2e;hb=ed30635bee9a9c1876f83288f38dd0dfa31a43d4;hp=62b9a6d13aa561491ca8af6d9f7cfcdfcf6ae84e;hpb=a4cbdc241423ca84eff2e888cf5c0a2cecea5f2a;p=friendica.git diff --git a/mod/removeme.php b/mod/removeme.php old mode 100644 new mode 100755 index 62b9a6d13a..ee88bd76a5 --- 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; @@ -29,13 +32,13 @@ function removeme_post(&$a) { function removeme_content(&$a) { if(! local_user()) - goaway($a->get_baseurl()); + goaway(z_root()); $hash = random_string(); $_SESSION['remove_account_verify'] = $hash; - $tpl = load_view_file('view/removeme.tpl'); + $tpl = get_markup_template('removeme.tpl'); $o .= replace_macros($tpl, array( '$basedir' => $a->get_baseurl(), '$hash' => $hash,