e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

Argument 1 (filename) is true but \is_file() takes string
Open

        if(!is_file($inc) || !is_readable($inc))
Severity: Minor
Found in index.php by phan

Variable $sql is undeclared
Open

            if (!$sql->select("user", "*", "user_xup = '".$prov_id."' ")) // New User
Severity: Minor
Found in index.php by phan

Call with 4 arg(s) to \userlogin::__construct() which only takes 0 arg(s) defined at /code/e107_handlers/login.php:50
Open

                        $usr = new userlogin($user_loginname, $user_pass, 'signup', '');
Severity: Info
Found in index.php by phan

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

            include_lan(e_LANGUAGEDIR.e_LANGUAGE."/".e_LANGUAGE.".php");
Severity: Minor
Found in install.php by phan

Suspicious array access to nullable ?array
Open

        switch ($_POST['stage'])
Severity: Minor
Found in install.php by phan

Variable $tp is undeclared
Open

    $text = $tp->parseTemplate($LOGIN_TABLE,true, $sc);
Severity: Minor
Found in login.php by phan

Variable $tp is undeclared
Open

    echo $tp->parseTemplate($LOGIN_TABLE_FOOTER, true, $sc);
Severity: Minor
Found in login.php by phan

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

    $MEMBERSONLY_TEMPLATE['default']['caption'] = $MEMBERSONLY_CAPTION;
Severity: Info
Found in membersonly.php by phan

Variable $MEMBERSONLY_END is undeclared
Open

    $MEMBERSONLY_TEMPLATE['default']['footer'] = $MEMBERSONLY_END;
Severity: Minor
Found in membersonly.php by phan

Variable $sql is undeclared
Open

                $content = $sql->fetch();
Severity: Minor
Found in online.php by phan

Reference to undeclared constant \APP_PATH
Open

    const TEST_IN_PROGRESS_FILE = APP_PATH."/".self::TEST_IN_PROGRESS;

Argument 3 (default) is false but \e107::pref() takes null defined at /code/e107_handlers/e107_class.php:4016
Open

            $login_iframe  = e107::pref('theme', 'login_iframe', false);
Severity: Minor
Found in e107_themes/bootstrap5/theme.php by phan

Variable $sql is undeclared
Open

        $row = $sql->fetch();
Severity: Minor
Found in fpw.php by phan

When fetching an array index from a value of type bool|string, found an array index of type 'hash', but expected the index to be of type int
Open

        $do_log['user_password_hash']   = $pwdArray['hash'];
Severity: Minor
Found in fpw.php by phan

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

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

Argument 2 (mode) is true but \e_parse::replaceConstants() takes string defined at /code/e107_handlers/e_parse_class.php:3025
Open

        $url = (substr($nfa['gsitemap_url'],0,4)== "http")? $nfa['gsitemap_url'] : SITEURL.$tp->replaceConstants($nfa['gsitemap_url'],TRUE);
Severity: Minor
Found in gsitemap.php by phan

Argument 2 (parseBB) is '' but \e_parse::toHTML() takes bool|false defined at /code/e107_handlers/e_parse_class.php:1532
Open

        $text .= "<li>".$tp->toHTML($nfa['gsitemap_cat'],"","defs").": <a href='".$url."'>".$tp->toHTML($nfa['gsitemap_name'],"","defs")."</a></li>\n";
Severity: Minor
Found in gsitemap.php by phan

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

        $data['must_write'] = 'e107_config.php|{$MEDIA_DIRECTORY}|{$SYSTEM_DIRECTORY}'; // all-sub folders are created on-the-fly
Severity: Info
Found in install.php by phan

Variable $sql is undeclared
Open

                $sql->select("news", "news_title, news_class", "news_id=" . intval($id));
Severity: Minor
Found in online.php by phan

Reference to undeclared constant \APP_PATH
Open

        $system = APP_PATH."/e107_system/".self::TEST_HASH;
Severity
Category
Status
Source
Language