]> git.mxchange.org Git - friendica.git/blobdiff - mod/register.php
Frost-mobile: media query in css for tablets
[friendica.git] / mod / register.php
index b162f62beb35bb949db4cb15f7ace2bd42d4f36f..de86808cb45670d4a3bcc5a6b87a906623a44dee 100644 (file)
@@ -12,7 +12,7 @@ function register_post(&$a) {
        call_hooks('register_post', $arr);
 
        $max_dailies = intval(get_config('system','max_daily_registrations'));
-       if($max_dailes) {
+       if($max_dailies) {
                $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
                if($r && $r[0]['total'] >= $max_dailies) {
                        return;
@@ -45,7 +45,12 @@ function register_post(&$a) {
 
        require_once('include/user.php');
 
-       $result = create_user($_POST);
+       $arr = $_POST;
+
+       $arr['blocked'] = $blocked;
+       $arr['verified'] = $verified;
+
+       $result = create_user($arr);
 
        if(! $result['success']) {
                notice($result['message']);
@@ -177,7 +182,7 @@ function register_content(&$a) {
        }
 
        $max_dailies = intval(get_config('system','max_daily_registrations'));
-       if($max_dailes) {
+       if($max_dailies) {
                $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day");
                if($r && $r[0]['total'] >= $max_dailies) {
                        logger('max daily registrations exceeded.');