X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fregmod.php;h=5a90db1f902d0b0265d26c1da3104bb1b5ce3e70;hb=bb5421d9253da0cbe587fe542df540ae6e3c06c4;hp=2e3ca414e3408277425cea9477a2a9000e10b1fd;hpb=db949bb802448184bfe5164d8d3dd86ddf51b187;p=friendica.git diff --git a/mod/regmod.php b/mod/regmod.php index 2e3ca414e3..5a90db1f90 100644 --- a/mod/regmod.php +++ b/mod/regmod.php @@ -3,7 +3,6 @@ require_once('include/enotify.php'); require_once('include/user.php'); -if(! function_exists('user_allow')) { function user_allow($hash) { $a = get_app(); @@ -56,14 +55,14 @@ function user_allow($hash) { info( t('Account approved.') . EOL ); return true; } -} + } // This does not have to go through user_remove() and save the nickname // permanently against re-registration, as the person was not yet // allowed to have friends on this system -if(! function_exists('user_deny')) { + function user_deny($hash) { $register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1", @@ -92,10 +91,9 @@ function user_deny($hash) { ); notice( sprintf(t('Registration revoked for %s'), $user[0]['username']) . EOL); return true; -} + } -if(! function_exists('regmod_content')) { function regmod_content(&$a) { global $lang; @@ -133,4 +131,3 @@ function regmod_content(&$a) { killme(); } } -}