e107inc/e107

View on GitHub
signup.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Invalid offset "user_name" of array type array{user_ban:0}|array{user_ban:2}|array{user_ip:string}|array{user_join:int}|array{user_password:bool|string}|array{user_prefs:array|string}|array{user_sess:string}
Open

        if(!vartrue($allData['data']['user_name']))
Severity: Minor
Found in signup.php by phan

Argument 2 (login_name) is null but \UserHandler::HashPassword() takes string defined at /code/e107_handlers/user_handler.php:226
Open

            $allData['data']['user_prefs'] = e107::serialize(array('email_password' => $userMethods->HashPassword($savePassword, $allData['data']['user_email'])));
Severity: Minor
Found in signup.php by phan

Invalid offset "user_loginname" of array type array{user_ban:0}|array{user_ban:2}|array{user_sess:string}
Open

        $allData['data']['user_password'] = $userMethods->HashPassword($savePassword,$allData['data']['user_loginname']);
Severity: Minor
Found in signup.php by phan

Invalid offset "user_email" of array type array{user_ban:0}|array{user_ban:2}|array{user_password:bool|string}|array{user_sess:string}
Open

            $allData['data']['user_prefs'] = e107::serialize(array('email_password' => $userMethods->HashPassword($savePassword, $allData['data']['user_email'])));
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

        $signup_data['user_realname'] = $tp->toDB($_POST['realname']);
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

            $sql->gen("INSERT INTO `#user_extended` (user_extended_id) values ('{$nid}')");
Severity: Minor
Found in signup.php by phan

Suspicious type true of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

            $extraErrors[] = $badCodeMsg."\\n";
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender("", $message);
Severity: Minor
Found in signup.php by phan

Invalid offset "user_loginname" of array type array{user_ban:0}|array{user_ban:2}|array{user_ip:string}|array{user_join:int}|array{user_password:bool|string}|array{user_prefs:array|string}|array{user_sess:string}
Open

            $allData['data']['user_name'] = $allData['data']['user_loginname'];    
Severity: Minor
Found in signup.php by phan

Invalid offset "user_loginname" of array type array{user_ban:0}|array{user_ban:2}|array{user_class:''}|array{user_ip:string}|array{user_join:int}|array{user_name:null}|array{user_password:bool|string}|array{user_perms:''}|array{user_prefs:''}|array{user_prefs:array|string}|array{user_realm:''}|array{user_sess:string}|array{user_signature:''}
Open

            $adviseLoginName = LAN_SIGNUP_65.': '.$allData['data']['user_loginname'].'<br />'.LAN_SIGNUP_66.'<br />';
Severity: Minor
Found in signup.php by phan

Variable $admin_log is undeclared
Open

        $admin_log->user_audit(USER_AUDIT_SIGNUP,$signup_data);
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

            $sql->update('user_extended', $eufVals);
Severity: Minor
Found in signup.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

if ((USER || (intval($pref['user_reg']) !== 1) || (vartrue($pref['auth_method'],'e107') != 'e107')) && !getperms('0'))
Severity: Minor
Found in signup.php by phan

Variable $this is undeclared
Open

        if(empty($noPasswordInput) && !isset($_POST['password1']) && $this->pref['user_reg_veri'] === 1)
Severity: Minor
Found in signup.php by phan

Argument 1 (classList) is 0 but \user_class::get_editable_classes() takes string defined at /code/e107_handlers/userclass_class.php:273
Open

            $publicClasses = e107::getUserClass()->get_editable_classes(e_UC_PUBLIC, true);
Severity: Minor
Found in signup.php by phan

Invalid offset "user_loginname" of array type array{user_ban:0}|array{user_ban:2}|array{user_ip:string}|array{user_join:int}|array{user_name:null}|array{user_password:bool|string}|array{user_prefs:array|string}|array{user_sess:string}
Open

            $signup_data['user_name'] = $allData['data']['user_loginname'];
Severity: Minor
Found in signup.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

                if(getperms('0'))
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

                    $ns->tablerender(LAN_SIGNUP_75, LAN_SIGNUP_101);
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

    $ns->tablerender(LAN_SIGNUP_78, $text, 'coppa');
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

            if($ipcount = $sql->select('user', '*', "user_ip='".$allData['user_ip']."' and user_ban !='2' "))
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

        if ($_POST['email'] && $sql->select("user", "*", "user_email='".$_POST['email']."' AND user_ban='".USER_BANNED."'"))
Severity: Minor
Found in signup.php by phan

Argument 2 (login_name) is null but \UserHandler::HashPassword() takes string defined at /code/e107_handlers/user_handler.php:226
Open

        $allData['data']['user_password'] = $userMethods->HashPassword($savePassword,$allData['data']['user_loginname']);
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

        $nid = $sql->insert('user', $allData);
Severity: Minor
Found in signup.php by phan

Invalid offset "user_login" of array type array{activation_url:string}|array{user_ban:0}|array{user_ban:2}|array{user_class:''}|array{user_id:}|array{user_ip:string}|array{user_join:int}|array{user_name:null}|array{user_password:bool|string}|array{user_perms:''}|array{user_prefs:''}|array{user_prefs:array|string}|array{user_realm:''}|array{user_sess:string}|array{user_signature:''}
Open

                if(!vartrue($allData['data']['user_name'])) $allData['data']['user_name'] = $allData['data']['user_login'];
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

            $text = $tp->parseTemplate($COPPA_FAIL);
Severity: Minor
Found in signup.php by phan

Variable $signupData was undeclared, but array fields are being added to it.
Open

            $signupData[$a] = $tp->toForm(varset($allData['data'][$a],''));
Severity: Info
Found in signup.php by phan

Call to deprecated class \form defined at /code/e107_handlers/form_handler.php:8340
Open

$rs = new form;
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender(LAN_SIGNUP_78, $text, 'coppa');
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

                $user_class_update = $sql->update("user", "user_class = '{$allData['data']['user_class']}' WHERE user_name='{$allData['data']['user_name']}' LIMIT 1");
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender($after_signup['caption'], $after_signup['text']);
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

                $text = $tp->toHTML(str_replace('{NEWLOGINNAME}', $loginname, $pref['signup_text_after']), TRUE, 'parse_sc,defs')."<br />";
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

    $text = $tp->parseTemplate($COPPA_TEMPLATE, TRUE, $signup_shortcodes);
Severity: Minor
Found in signup.php by phan

Invalid offset "user_email" of array type array{user_ban:0}|array{user_ban:2}|array{user_class:''}|array{user_ip:string}|array{user_join:int}|array{user_name:null}|array{user_password:bool|string}|array{user_perms:''}|array{user_prefs:''}|array{user_prefs:array|string}|array{user_realm:''}|array{user_sess:string}|array{user_signature:''}
Open

            if (((int) $pref['user_reg_veri'] !== 2) && $allData['data']['user_email'])        // Don't send if email address blank - means that its not compulsory
Severity: Minor
Found in signup.php by phan

Argument 1 (user_id) is false but \e107::getSystemUser() takes int defined at /code/e107_handlers/e107_class.php:2081
Open

                    $sysuser = e107::getSystemUser(false, false);
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

$text = $tp->parseTemplate($SIGNUP_BEGIN.$SIGNUP_BODY.$SIGNUP_END, TRUE, $signup_shortcodes);
Severity: Minor
Found in signup.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

            $adviseLoginName = LAN_SIGNUP_65.': '.$allData['data']['user_loginname'].'<br />'.LAN_SIGNUP_66.'<br />';
Severity: Minor
Found in signup.php by phan

Call to deprecated function \getperms() defined at /code/class2.php:1322
Open

                if(getperms('0') && !empty($_POST['simulation']))
Severity: Minor
Found in signup.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

            if(!$sql->select("user", "user_id", "user_loginname='".$allData['data']['user_loginname']."' AND user_password='".$allData['data']['user_password']."'"))
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

                $ns->tablerender("", LAN_SIGNUP_36);
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

$ns->tablerender(LAN_SIGNUP_79, e107::getMessage()->render('default', true).$text, 'signup' );
Severity: Minor
Found in signup.php by phan

Variable $row is undeclared
Open

            if ($init_class = $userMethods->userClassUpdate($row, 'userpartial'))
Severity: Minor
Found in signup.php by phan

Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
Open

                $user_class_update = $sql->update("user", "user_class = '{$allData['data']['user_class']}' WHERE user_name='{$allData['data']['user_name']}' LIMIT 1");
Severity: Minor
Found in signup.php by phan

Invalid offset "user_loginname" of array type array{user_ban:0}|array{user_ban:2}|array{user_class:''}|array{user_ip:string}|array{user_join:int}|array{user_name:null}|array{user_password:bool|string}|array{user_perms:''}|array{user_prefs:''}|array{user_prefs:array|string}|array{user_realm:''}|array{user_sess:string}|array{user_signature:''}
Open

            if(!$sql->select("user", "user_id", "user_loginname='".$allData['data']['user_loginname']."' AND user_password='".$allData['data']['user_password']."'"))
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender(LAN_SIGNUP_8,$text);
Severity: Minor
Found in signup.php by phan

Function req defined at /code/signup.php:668 was previously defined at /code/usersettings.php:1166
Open

function req($field)
Severity: Minor
Found in signup.php by phan

Variable $sql is undeclared
Open

            if(!$sql->select("user", "user_id", "user_loginname='".$allData['data']['user_loginname']."' AND user_password='".$allData['data']['user_password']."'"))
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

            $signupData[$a] = $tp->toForm(varset($allData['data'][$a],''));
Severity: Minor
Found in signup.php by phan

There are no issues that match your filters.

Category
Status