e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Argument 3 (selected) is string|string[] but \e_form::select() takes bool|false defined at /code/e107_handlers/form_handler.php:3325
Open

        $text .= e107::getForm()->select('category', $newArray, $_POST['category'], array('default'=>''));
Severity: Minor
Found in upload.php by phan

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

                    if (!(ADMIN && getperms('4')))
Severity: Minor
Found in usersettings.php by phan

Variable $sql is undeclared
Open

                $sql->select("forum", "forum_name, forum_class", "forum_id=" . intval($tmp[0]));
Severity: Minor
Found in online.php by phan

Variable $textstring is undeclared
Open

        $text = $textstart . $textstring . $textend;
Severity: Minor
Found in online.php by phan

Argument 2 (fields) is true but \e_db::retrieve() takes string defined at /code/e107_handlers/e_db_interface.php:153
Open

        $books = e107::getDb()->retrieve("SELECT chapter_id,chapter_sef,chapter_name,chapter_parent,chapter_meta_description,chapter_image,chapter_icon FROM #page_chapters ORDER BY chapter_id ASC" , true);
Severity: Minor
Found in page.php by phan

Invalid offset "chapter_parent" of array type array{book_sef:mixed}|null
Open

        $row['book_id']             = (int) $row['chapter_parent'];
Severity: Minor
Found in page.php by phan

Invalid offset "chapter_parent" of array type array{book_icon:mixed}|array{book_id:int}|array{book_name:mixed}|array{book_sef:}|null
Open

        $row['book_description']    = $this->getDescription($row['chapter_parent']);
Severity: Minor
Found in page.php by phan

Argument 2 (options) is 'w=1200' but \e_parse::thumbUrl() takes array defined at /code/e107_handlers/e_parse_class.php:2531
Open

            $mimg = $tp->thumbUrl($this->page['page_metaimage'],'w=1200', false, true);
Severity: Minor
Found in page.php by phan

Argument 2 (content) is array|string|string[] but \e107::meta() takes null defined at /code/e107_handlers/e107_class.php:2861
Open

            e107::meta('twitter:image', $im);
Severity: Minor
Found in page.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

            echo "<b>multipageFlag</b> ".$this->multipageFlag." <br />";
Severity: Minor
Found in page.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

Argument 2 (needle) is bool but \strpos() takes int|string
Open

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

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

$user_frm = new form;
Severity: Minor
Found in user.php by phan

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

        $parms = $ftotal.",10,".$from.",".e_REQUEST_SELF."?[FROM].forums.".$id;
Severity: Minor
Found in userposts.php by phan

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

                if (count($changedUserData) && isset($user_logging_opts[USER_AUDIT_NEW_SET]))
Severity: Minor
Found in usersettings.php by phan
Severity
Category
Status
Source
Language