e107inc/e107

View on GitHub
thumb.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

Variable $mySQLuser is undeclared
Open

            $legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
Severity: Minor
Found in thumb.php by phan

Variable $mySQLpassword is undeclared
Open

            $legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
Severity: Minor
Found in thumb.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

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 2 (newvalue) is 1 but \ini_set() takes string
Open

ini_set('gd.jpeg_ignore_warning', 1);
Severity: Minor
Found in thumb.php by phan

Variable $mySQLserver is undeclared
Open

            $legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
Severity: Minor
Found in thumb.php by phan

There are no issues that match your filters.

Category
Status