e107inc/e107

View on GitHub

Showing 6,974 of 6,975 total issues

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

if (!varset($pref['maintainance_flag']) && !getperms('0')) // Allow main admin to test and view template before going offline.
Severity: Minor
Found in sitedown.php by phan

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

    $pref['subnews_class'] = e_UC_MEMBER;
Severity: Info
Found in submitnews.php by phan

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

        $minDimensions = e107::pref('core','subnews_attach_minsize',false);
Severity: Minor
Found in submitnews.php by phan

Argument 1 (message) is ?'Error uploading image'|?'You must give your name and email address'|?string but \eMessage::addWarning() takes string defined at /code/e107_handlers/message_handler.php:282
Open

            $mes->addWarning($message);
Severity: Minor
Found in submitnews.php by phan

When fetching an array index from a value of type array<int>|array<int>|int|string,</int></int> found an array index of type 'photo', but expected the index to be of type int
Open

            if (varset($_FILES['file_userfile']['error']['avatar'], false) === UPLOAD_ERR_OK || varset($_FILES['file_userfile']['error']['photo'], false) == UPLOAD_ERR_OK)
Severity: Minor
Found in usersettings.php by phan

Invalid offset "user_loginname" of array type array{user_ban:0}|array{user_ban:2}|array{user_class:''}|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(!$sql->select("user", "user_id", "user_loginname='".$allData['data']['user_loginname']."' AND user_password='".$allData['data']['user_password']."'"))
Severity: Minor
Found in signup.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender(LAN_SIGNUP_8,$text);
Severity: Minor
Found in signup.php by phan

Function req defined at /code/signup.php:668 was previously defined at /code/usersettings.php:1166
Open

function req($field)
Severity: Minor
Found in signup.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 $sql is undeclared
Open

            if(!$sql->select("user", "user_id", "user_loginname='".$allData['data']['user_loginname']."' AND user_password='".$allData['data']['user_password']."'"))
Severity: Minor
Found in signup.php by phan

Variable $tp is undeclared
Open

            $signupData[$a] = $tp->toForm(varset($allData['data'][$a],''));
Severity: Minor
Found in signup.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

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

if ((!ADMIN || !getperms("4")) && e_QUERY && e_QUERY != "update" && substr(e_QUERY, 0, 4) !== 'del=')
Severity: Minor
Found in usersettings.php by phan

Argument 1 (posted) is false|string but \UserHandler::hasReadonlyField() takes array defined at /code/e107_handlers/user_handler.php:192
Open

                if ($this->getValidationKey($new_data) !== $_POST['updated_key'] || ($userMethods->hasReadonlyField($new_data) !==false))
Severity: Minor
Found in usersettings.php by phan
Severity
Category
Status
Source
Language