e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Call to deprecated function \resize_image() defined at /code/e107_handlers/resize_handler.php:47
Open

                                if (!resize_image(e_UPLOAD.$filename, e_UPLOAD.$submitnews_file, $pref['subnews_resize']))
Severity: Minor
Found in submitnews.php by phan

Argument #2 of this call to \strpos is typically a literal or constant but isn't, but argument #1 (which is typically a variable) is a literal or constant. The arguments may be in the wrong order.
Open

        define('ADMIN', strpos(e_SELF, (e107::getFolder('admin')) != false || strpos(e_PAGE, 'admin') !== false));
Severity: Minor
Found in thumb.php by phan

Argument 1 (var) is ?array|?array{user_class:string}|?array{user_email:mixed,user_class:string,user_image:mixed,user_name:mixed,user_sess:'',user_loginname:mixed}|?array{user_email:mixed,user_class:string,user_image:mixed,user_name:mixed,user_sess:''}|?array{user_email?:null,user_class:string,user_image:mixed,user_name:mixed,user_sess:''}|?array{user_image:mixed,user_name:mixed,user_sess:''}|?array{user_loginname:mixed,user_class:string,user_image:mixed,user_name:mixed,user_sess:'',user_email:mixed}|?array{user_loginname:mixed,user_class:string,user_image:mixed,user_name:mixed,user_sess:''}|?array{user_loginname?:null,user_class:string,user_image:mixed,user_name:mixed,user_sess:'',user_email:mixed}|?array{user_name:mixed}|?array{user_password:,user_email:mixed|null,user_class:string,user_image:mixed,user_name:mixed,user_sess:'',user_prefs:array|string,user_loginname:mixed|null}|?array{user_password:}|?array{user_password?:null,user_email:mixed|null,user_class:string,user_image:mixed,user_name:mixed,user_sess:'',user_prefs:array|string,user_loginname:mixed|null}|?array{user_prefs:array|string}|?array{user_sess:''}|?array{}|?bool|?string but \count() takes \Countable|array
Open

            if (count($changedUserData))
Severity: Minor
Found in usersettings.php by phan

Argument 2 (value) is 1 but \e_form::button() takes array|string defined at /code/e107_handlers/form_handler.php:3876
Open

                ".e107::getForm()->button('SaveValidatedInfo',1, 'submit', LAN_ENTER)."
Severity: Minor
Found in usersettings.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

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

$full_perms = getperms("0") || check_class(varset($pref['memberlist_access'], 253));        // Controls display of info from other users
Severity: Minor
Found in user.php by phan

Call to deprecated function \e107::getDateConvert() defined at /code/e107_handlers/e107_class.php:1948
Open

    $gen = e107::getDateConvert();
Severity: Minor
Found in userposts.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

Argument 4 (mediaCat) is null but \e_form::bbarea() takes string defined at /code/e107_handlers/form_handler.php:2446
Open

                    ".e107::getForm()->bbarea('submitnews_item', $tp->toForm(vartrue($_POST['submitnews_item'])),null, null, 'large')."
Severity: Minor
Found in submitnews.php by phan

Argument 5 (pid) is null but \comment::enter_comment() takes \unknown_type|string defined at /code/e107_handlers/comment_class.php:675
Open

        $cobj->enter_comment($_POST['author_name'], $_POST['comment'], 'profile', $id, null, $_POST['subject']);
Severity: Minor
Found in user.php by phan

When fetching an array index from a value of type array<int>|array<int>|int|string,</int></int> found an array index of type 'avatar', but expected the index to be of type int
Open

            if (varset($_FILES['file_userfile']['error']['avatar'], false) === UPLOAD_ERR_OK || varset($_FILES['file_userfile']['error']['photo'], false) == UPLOAD_ERR_OK)
Severity: Minor
Found in usersettings.php by phan

Suspicious array access to nullable ?array|?array{user_class:string}|?array{user_image:mixed,user_name:mixed,user_sess:''}|?array{user_name:mixed}|?array{user_sess:''}|?array{}|?bool|?string
Open

                $loginname = $changedUserData['user_loginname'] ? $changedUserData['user_loginname'] : $udata['user_loginname'];
Severity: Minor
Found in usersettings.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
Severity
Category
Status
Source
Language