e107inc/e107

View on GitHub
index.php

Summary

Maintainability
A
45 mins
Test Coverage
F
0%

Avoid deeply nested control flow statements.
Open

                    if(!USERID)
                    {
                        require_once(e_HANDLER.'login.php');
                        $usr = new userlogin($user_loginname, $user_pass, 'signup', '');
                    }
Severity: Major
Found in index.php - About 45 mins to fix

    Variable $sql is undeclared
    Open

                    if($newid = $sql->insert('user',$insert,true))
    Severity: Minor
    Found in index.php by phan

    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

    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 'Bad request - destination unreachable - '.$inc;
    Severity: Minor
    Found in index.php by phan

    Call to method authenticate from undeclared class \Hybridauth\Hybridauth
    Open

            $adapter = $hybridauth->authenticate($prov);
    Severity: Critical
    Found in index.php by phan

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

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

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

            $hybridauth = e107::getHybridAuth();
    Severity: Minor
    Found in index.php by phan

    There are no issues that match your filters.

    Category
    Status