class2.php
Avoid too many return
statements within this method. Open
Open
return false;
Avoid too many return
statements within this method. Open
Open
return $latchedAccess;
Variable $mySQLpassword
is undeclared Open
Open
$legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
- Exclude checks
Variable $mySQLprefix
is undeclared Open
Open
$legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
- Exclude checks
Call to undeclared method \e_db::db_Connect
Open
Open
$merror=$sql->db_Connect($sql_info['server'], $sql_info['user'], $sql_info['password'], $sql_info['defaultdb']);
- Exclude checks
Argument 6 (secure)
is int
but \setcookie()
takes bool
Open
Open
setcookie($name, $value, $expire, $path, $domain, $secure, true);
- Exclude checks
Argument 2 (parseBB)
is ''
but \e_parse::toHTML()
takes bool|false
defined at /code/e107_handlers/e_parse_class.php:1532
Open
Open
define('SITENAME', trim($tp->toHTML($pref['sitename'], '', 'USER_TITLE,er_on,defs')));
- Exclude checks
Argument 2 (default)
is false
but \e107::getRegistry()
takes null
defined at /code/e107_handlers/e107_class.php:865
Open
Open
return e107::getRegistry('core/cachedvars/'.$id, false);
- Exclude checks
Argument 4 (noWhere)
is 'no_where'
but \e_db::select()
takes bool|false
defined at /code/e107_handlers/e_db_interface.php:265
Open
Open
$sql->select($table, '*', 'ORDER BY '.$orderfield.' DESC LIMIT 1', 'no_where');
- Exclude checks
Argument 6 (secure)
is int
but \setcookie()
takes bool
Open
Open
setcookie($name, $value, $expire, $path, $domain, $secure, true);
- Exclude checks
Call to undeclared method \e_db::db_SetErrorReporting
Open
Open
$sql->db_SetErrorReporting(false);
- Exclude checks
Variable $backtrace
was undeclared, but array fields are being added to it. Open
Open
$backtrace[0] = (isset($trace[1]) ? $trace[1] : "");
- Exclude checks
Suspicious array access to nullable ?array|?mixed|?string
Open
Open
$text .= str_replace($this->docroot,'', $val['file']).":".$val['line'];
- Exclude checks
Argument 2 (parseBB)
is ''
but \e_parse::toHTML()
takes bool|false
defined at /code/e107_handlers/e_parse_class.php:1532
Open
Open
define('SITEDESCRIPTION', $tp->toHTML($pref['sitedescription'], '', 'emotes_off,defs'));
- Exclude checks
Returning type string
but include_lan()
is declared to return bool
Open
Open
return e107::includeLan($path, $force);
- Exclude checks
Variable $mySQLuser
is undeclared Open
Open
$legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
- Exclude checks
Variable $dirPaths
is undeclared Open
Open
unset($dirPaths,$e107_paths);
- Exclude checks
Variable $backtrace
was undeclared, but array fields are being added to it. Open
Open
$backtrace[0] = (isset($trace[1]) ? $trace[1] : "");
- Exclude checks
Argument 1 (options)
is null
but \debug_backtrace()
takes bool|int
Open
Open
e107::getMessage()->addDebug('Deprecated get_user_data() backtrace:<pre>'."\n".print_r(debug_backtrace(null,2), true).'</pre>');
- Exclude checks
Argument 3 (expires)
is string
but \setcookie()
takes int
Open
Open
setcookie($name, $value, $expire, $path, $domain, $secure, true);
- Exclude checks
Suspicious array access to ?mixed
Open
Open
$text .= str_replace($this->docroot,'', $val['file']).":".$val['line'];
- Exclude checks
Variable $colours
was undeclared, but array fields are being added to it. Open
Open
$index = 0; $colours[0] = "#C1C1C1"; $colours[1] = "#B6B6B6";
- Exclude checks
Returning type null
but cookie()
is declared to return void
Open
Open
return null;
- Exclude checks
Variable $mySQLserver
is undeclared Open
Open
$legacy_sql_info = compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix');
- Exclude checks
Argument 2 (parseBB)
is ''
but \e_parse::toHTML()
takes bool|false
defined at /code/e107_handlers/e_parse_class.php:1532
Open
Open
define('SITEDISCLAIMER', $tp->toHTML($pref['sitedisclaimer'], '', 'emotes_off,defs'));
- Exclude checks
Variable $user
is undeclared Open
Open
define('ADMINID', $user->getAdminId());
- Exclude checks
Returning type null
but handle_error()
is declared to return bool
Open
Open
return null;
- Exclude checks
Reference to undeclared property \e_db->mySQLlanguage
Open
Open
$sql2->mySQLlanguage = e_LANGUAGE;
- Exclude checks
Variable $tp
is undeclared Open
Open
define('SITECONTACTINFO', (!empty($pref['sitecontactinfo']) ? $tp->toHTML($pref['sitecontactinfo'], true, 'emotes_off,defs') : ''));
- Exclude checks
Argument 1 (options)
is null
but \debug_backtrace()
takes bool|int
Open
Open
'Call to deprecated function get_user_data() (class2.php) '."\n".print_r(debug_backtrace(null,2), true),
- Exclude checks
Variable $user
is undeclared Open
Open
define('ADMINPWCHANGE', $user->getAdminPwchange());
- Exclude checks
Variable $error
was undeclared, but array fields are being added to it. Open
Open
$error['short'] = " Internal Error Message: {$message}, Line <mark>{$line}</mark> of {$file}<br />\n";
- Exclude checks
Reference to undeclared property \e_db->mySQLlanguage
Open
Open
$sql->mySQLlanguage = e_LANGUAGE;
- Exclude checks
Reference to undeclared constant \FORCE_USERUPDATE
Open
Open
if (defset('e_PAGE') === 'usersettings.php' || defset('e_REQUEST_URI') === e107::url('user/myprofile/edit') || (defined('FORCE_USERUPDATE') && !FORCE_USERUPDATE) || strpos(e_SELF, ADMINDIR))
- Exclude checks