]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
DE update to the strings
[friendica.git] / mod / regmod.php
index 05f33ab11fff88031e19e727dc7c5ada7143bc71..5a90db1f902d0b0265d26c1da3104bb1b5ce3e70 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 require_once('include/enotify.php');
+require_once('include/user.php');
 
 function user_allow($hash) {
 
@@ -35,7 +36,7 @@ function user_allow($hash) {
        );
        if(count($r) && $r[0]['net-publish']) {
                $url = $a->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();
        }
 }