]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Merge pull request #2932 from Hypolite/issue/missing-private-image-src
[friendica.git] / mod / regmod.php
index 05f33ab11fff88031e19e727dc7c5ada7143bc71..bbe733003a56dfe11ea9affceabd03f7be00fcb0 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 
 require_once('include/enotify.php');
+require_once('include/user.php');
 
 function user_allow($hash) {
 
@@ -35,8 +36,8 @@ 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')))
-                       proc_run('php',"include/directory.php","$url");
+               if($url && strlen(get_config('system','directory')))
+                       proc_run(PRIORITY_LOW, "include/directory.php", $url);
        }
 
        push_lang($register[0]['language']);
@@ -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();
        }
 }