e107inc/e107

View on GitHub
fpw.php

Summary

Maintainability
A
0 mins
Test Coverage
F
18%

Variable $sql is undeclared
Open

    if ($sql->select('tmp', '*', "`tmp_ip`='pwreset' AND `tmp_info` LIKE '%".FPW_SEPARATOR.$tmpinfo."' "))
Severity: Minor
Found in fpw.php by phan

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

if (USER && !getperms('0'))
Severity: Minor
Found in fpw.php by phan

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

        if(!getperms('0')) // disabled when testing as main-admin.
Severity: Minor
Found in fpw.php by phan

Variable $FPW_TABLE is undeclared
Open

elseif(!$FPW_TABLE)
Severity: Minor
Found in fpw.php by phan

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

        $do_log['password_action']     = LAN_FPW18;
Severity: Info
Found in fpw.php by phan

Variable $admin_log is undeclared
Open

        $admin_log->user_audit(USER_AUDIT_PW_RES,$do_log,0,$do_log['user_name']);
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

            $tmp = $sql->fetch();
Severity: Minor
Found in fpw.php by phan

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

        if(getperms('0')) // Test Mode.
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

        $row = $sql->fetch();
Severity: Minor
Found in fpw.php by phan

When fetching an array index from a value of type bool|string, found an array index of type 'hash', but expected the index to be of type int
Open

        $do_log['user_password_hash']   = $pwdArray['hash'];
Severity: Minor
Found in fpw.php by phan

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

        if(getperms('0'))
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

            $sql->select('user', 'user_email', "user_id=".intval($uid));
Severity: Minor
Found in fpw.php by phan

Variable $text is undeclared
Open

        $ns->tablerender(LAN_03, $text.e107::getMessage()->render());
Severity: Minor
Found in fpw.php by phan

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

    if(getperms('0'))
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

        $row = $sql->fetch();
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

        if ($result = $sql->select('tmp', '*', "`tmp_ip` = 'pwreset' AND `tmp_info` LIKE '".$row['user_loginname'].FPW_SEPARATOR."%'"))
Severity: Minor
Found in fpw.php by phan

Variable $ns is undeclared
Open

        $ns->tablerender(LAN_03, $text.e107::getMessage()->render());
Severity: Minor
Found in fpw.php by phan

Call to deprecated function \secure_image::verify_code() defined at /code/e107_handlers/secure_img_handler.php:119
Open

        if (!$sec_img->verify_code($_POST['rand_num'], $_POST['code_verify']))
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

    if($sql->select('user', '*', $query))
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

            $sql->delete('tmp', "`tmp_time` = ".$row['tmp_time']." AND `tmp_info` = '".$row['tmp_info']."' ");
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

        $sql->delete('tmp', "tmp_time < ".time()); // cleanup table.
Severity: Minor
Found in fpw.php by phan

Variable $ns is undeclared
Open

            $ns->tablerender("Testing Mode", nl2br($message));
Severity: Minor
Found in fpw.php by phan

Variable $ns is undeclared
Open

$ns->tablerender($caption, $text, 'fpw');
Severity: Minor
Found in fpw.php by phan

When fetching an array index from a value of type bool|string, found an array index of type 'password', but expected the index to be of type int
Open

        $newpw = $pwdArray['password'];
Severity: Minor
Found in fpw.php by phan

Invalid offset "user_name" of array type array{expires:string,user_password_hash:string,user_password:string,activation_code:''|string,user_loginname:mixed,password_action:'User clicked on password reset link'}|array{user_email:,expires:string,user_password_hash:string,user_password:string,activation_code:''|string,user_loginname:mixed,password_action:'User clicked on password reset link'}
Open

        $admin_log->user_audit(USER_AUDIT_PW_RES,$do_log,0,$do_log['user_name']);
Severity: Minor
Found in fpw.php by phan

Variable $sql is undeclared
Open

        $sql->insert('tmp', $insertQry);
Severity: Minor
Found in fpw.php by phan

There are no issues that match your filters.

Category
Status