X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fregmod.php;h=5a90db1f902d0b0265d26c1da3104bb1b5ce3e70;hb=fd8df4c4d6688e5ffd6bc78e14062aa064102715;hp=05f33ab11fff88031e19e727dc7c5ada7143bc71;hpb=21b1e09fad40c846080d8c41d9e7621f0814d3b7;p=friendica.git diff --git a/mod/regmod.php b/mod/regmod.php index 05f33ab11f..5a90db1f90 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -1,6 +1,7 @@ get_baseurl() . '/profile/' . $user[0]['nickname']; - if($url && strlen(get_config('system','directory_submit_url'))) + if($url && strlen(get_config('system','directory'))) proc_run('php',"include/directory.php","$url"); } @@ -119,10 +120,14 @@ function regmod_content(&$a) { if($cmd === 'deny') { - if (!user_deny($hash)) killme(); + user_deny($hash); + goaway($a->get_baseurl()."/admin/users/"); + killme(); } if($cmd === 'allow') { - if (!user_allow($hash)) killme(); + user_allow($hash); + goaway($a->get_baseurl()."/admin/users/"); + killme(); } }