e107inc/e107

View on GitHub
install.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Argument 2 (newvalue) is 1 but \ini_set() takes string
Open

ini_set('session.use_only_cookies', 1);
Severity: Minor
Found in install.php by phan

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

        include_lan($this->e107->e107_dirs['LANGUAGES_DIRECTORY'].$this->previous_steps['language']."/admin/lan_theme.php");
Severity: Minor
Found in install.php by phan

Invalid offset "e107_version" of array type array{}
Open

define("e_VERSION", $e107info['e107_version']);
Severity: Minor
Found in install.php by phan

Variable $this is undeclared
Open

            define('MPREFIX', $this->previous_steps['mysql']['prefix']);
Severity: Minor
Found in install.php by phan

Argument 2 (newvalue) is 0 but \ini_set() takes string
Open

ini_set('session.use_trans_sid',    0);
Severity: Minor
Found in install.php by phan

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

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

Argument 1 (force_stage) is 3 but \e_install::finish_form() takes bool|false defined at /code/install.php:2120
Open

            $this->finish_form(3);
Severity: Minor
Found in install.php by phan

Returning type null but stage_5() is declared to return string
Open

        return null;
Severity: Minor
Found in install.php by phan

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

            $error = str_replace($srch,$repl, LANINS_144); // too early to use e107::getParser() so use str_replace();
Severity: Minor
Found in install.php by phan

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

        include_lan($this->e107->e107_dirs['LANGUAGES_DIRECTORY'].$this->previous_steps['language']."/lan_installer.php");
Severity: Minor
Found in install.php by phan

Call to undeclared method \e_db::db_Query
Open

        $return =  $sql->db_Query($qry);
Severity: Critical
Found in install.php by phan

Variable $tmpadminpass1 is undeclared
Open

    unset($tmpadminpass1);
Severity: Minor
Found in install.php by phan

Call to undeclared method \e_db::getServerInfo
Open

            $mysql_note = e107::getDb()->getServerInfo();
Severity: Critical
Found in install.php by phan

Function getperms defined at /code/install.php:258 was previously defined at /code/class2.php:1322
Open

function getperms($arg, $ap = '')
Severity: Minor
Found in install.php by phan

Function include_lan defined at /code/install.php:292 was previously defined at /code/class2.php:1935
Open

function include_lan($path, $force = false)
Severity: Minor
Found in install.php by phan

Variable $whatever is undeclared
Open

                unset($whatever);
Severity: Minor
Found in install.php by phan

Returning type null but stage_6() is declared to return string
Open

        return null;
Severity: Minor
Found in install.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

Variable $this is undeclared
Open

        define('THEME', e_THEME.$this->previous_steps['prefs']['sitetheme'].'/');
Severity: Minor
Found in install.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

Suspicious array access to nullable ?array
Open

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

Argument 1 (force_stage) is 3 but \e_install::finish_form() takes bool|false defined at /code/install.php:2120
Open

                $this->finish_form(3);
Severity: Minor
Found in install.php by phan

Function check_class defined at /code/install.php:252 was previously defined at /code/class2.php:1207
Open

function check_class($whatever='')
Severity: Minor
Found in install.php by phan

Argument 3 (force) is 0|3 but \UserHandler::HashPassword() takes false|string defined at /code/e107_handlers/user_handler.php:226
Open

        $hash = $us->HashPassword($this->previous_steps['admin']['password'],$this->previous_steps['admin']['user'], $pwdEncoding);
Severity: Minor
Found in install.php by phan

Function cookie defined at /code/install.php:326 was previously defined at /code/class2.php:1786
Open

function cookie($name, $value, $expire=0, $path = e_HTTP, $domain = '', $secure = false)
Severity: Minor
Found in install.php by phan

There are no issues that match your filters.

Category
Status