ImpressCMS/impresscms

View on GitHub
htdocs/lostpass.php

Summary

Maintainability
A
0 mins
Test Coverage

Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria->add(new icms_db_criteria_Item('level', '-1', '!='));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method __construct from undeclared class \icms_core_Password
Open

    $icmspass = new icms_core_Password();
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('IP', $_SERVER['REMOTE_ADDR']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to static property xoopsDB from undeclared class \icms
Open

                        icms::$xoopsDB->prefix('users'), $pass, 1, (int) $getuser[0]->getVar('uid'));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Compo
Open

$criteria = new icms_db_criteria_Compo();
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('SITEURL', ICMS_URL . '/');
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method setSubject from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method checkVarArray from undeclared class \icms_core_DataFilter
Open

    $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, false);
Severity: Critical
Found in htdocs/lostpass.php by phan

Variable $email is undeclared
Open

if ($email == '') {
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method setTemplate from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setTemplate('lostpass2.tpl');
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->setFromName($icmsConfig['sitename']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method setFromName from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setFromName($icmsConfig['sitename']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('NEWPWD', $newpass);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('SITEURL', ICMS_URL . '/');
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method send from undeclared class \icms_messaging_Handler
Open

        if (!$xoopsMailer->send()) {
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method setSubject from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('IP', $_SERVER['REMOTE_ADDR']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to static property xoopsDB from undeclared class \icms
Open

        if (!icms::$xoopsDB->queryF($sql)) {
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_MAILPWDNG
Open

            echo _US_MAILPWDNG;
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_CONFMAIL
Open

        printf(_US_CONFMAIL, $getuser[0]->getVar('uname'));
Severity: Minor
Found in htdocs/lostpass.php by phan

Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Minor
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_NEWPWDREQ
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method __construct from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer = new icms_messaging_Handler();
Severity: Critical
Found in htdocs/lostpass.php by phan

Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method useMail from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->useMail();
Severity: Critical
Found in htdocs/lostpass.php by phan

Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->setFromName($icmsConfig['sitename']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

$criteria->add(new icms_db_criteria_Item('email',$email));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method __construct from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer = new icms_messaging_Handler();
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method checkVarArray from undeclared class \icms_core_DataFilter
Open

    $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, false);
Severity: Critical
Found in htdocs/lostpass.php by phan

Argument 2 (vars) is null but \sprintf() takes float|int|string
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Minor
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_SORRYNOTFOUND
Open

    $msg = _US_SORRYNOTFOUND;
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method getErrors from undeclared class \icms_messaging_Handler
Open

            echo $xoopsMailer->getErrors();
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_PWDMAILED
Open

        redirect_header('user.php', 3, sprintf(_US_PWDMAILED, $getuser[0]->getVar('uname')), false);
Severity: Minor
Found in htdocs/lostpass.php by phan

Invalid offset "adminmail" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->setFromEmail($icmsConfig['adminmail']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method setFromName from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setFromName($icmsConfig['sitename']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Invalid offset "adminmail" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_SORRYNOTFOUND
Open

        redirect_header('user.php', 2, _US_SORRYNOTFOUND);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method handler from undeclared class \icms
Open

$member_handler = icms::handler('icms_member');
Severity: Critical
Found in htdocs/lostpass.php by phan

Invalid offset "sitename" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->assign('SITENAME', $icmsConfig['sitename']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method setTemplate from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setTemplate('lostpass1.tpl');
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method getErrors from undeclared class \icms_messaging_Handler
Open

            echo $xoopsMailer->getErrors();
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_SORRYNOTFOUND
Open

    redirect_header('user.php', 2, _US_SORRYNOTFOUND);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method add from undeclared class \icms_db_criteria_Compo
Open

$criteria->add(new icms_db_criteria_Item('level', '-1', '!='));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method encryptPass from undeclared class \icms_core_Password
Open

        $pass = $icmspass->encryptPass($newpass);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method send from undeclared class \icms_messaging_Handler
Open

        if (!$xoopsMailer->send()) {
Severity: Critical
Found in htdocs/lostpass.php by phan

Invalid offset "adminmail" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('NEWPWD_LINK', ICMS_URL . '/lostpass.php?email=' . $email . '&code=' . $areyou);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method setToUsers from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setToUsers($getuser[0]);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->assign('ADMINMAIL', $icmsConfig['adminmail']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method setToUsers from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setToUsers($getuser[0]);
Severity: Critical
Found in htdocs/lostpass.php by phan

Reference to undeclared constant \_US_NEWPWDREQ
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Minor
Found in htdocs/lostpass.php by phan

Call to method setFromEmail from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setFromEmail($icmsConfig['adminmail']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method add from undeclared class \icms_db_criteria_Compo
Open

$criteria->add(new icms_db_criteria_Item('email',$email));
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method createSalt from undeclared class \icms_core_Password
Open

        $newpass = $icmspass->createSalt(8);
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method useMail from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->useMail();
Severity: Critical
Found in htdocs/lostpass.php by phan

Call to method setFromEmail from undeclared class \icms_messaging_Handler
Open

        $xoopsMailer->setFromEmail($icmsConfig['adminmail']);
Severity: Critical
Found in htdocs/lostpass.php by phan

Argument 2 (vars) is null but \sprintf() takes float|int|string
Open

        $xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ, $icmsConfig['sitename'], ICMS_URL));
Severity: Minor
Found in htdocs/lostpass.php by phan

Variable $email is undeclared
Open

        $xoopsMailer->assign('NEWPWD_LINK', ICMS_URL . '/lostpass.php?email=' . $email . '&code=' . $areyou);
Severity: Minor
Found in htdocs/lostpass.php by phan

Invalid offset "adminmail" of array type array{startpage:,template_set:mixed}
Open

        $xoopsMailer->setFromEmail($icmsConfig['adminmail']);
Severity: Minor
Found in htdocs/lostpass.php by phan

Tabs must be used to indent lines; spaces are not allowed
Open

    extract($clean_GET);
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

    extract($clean_POST);
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Tabs must be used to indent lines; spaces are not allowed
Open

    $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, false);
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                        icms::$xoopsDB->prefix('users'), $pass, 1, (int) $getuser[0]->getVar('uid'));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                        icms::$xoopsDB->prefix('users'), $pass, 1, (int) $getuser[0]->getVar('uid'));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Only one argument is allowed per line in a multi-line function call
Open

                        icms::$xoopsDB->prefix('users'), $pass, 1, (int) $getuser[0]->getVar('uid'));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Inline control structures are not allowed
Open

    if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

No space found after comma in function call
Open

$criteria->add(new icms_db_criteria_Item('email',$email));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Multi-line function call not indented correctly; expected 8 spaces but found 24
Open

                        icms::$xoopsDB->prefix('users'), $pass, 1, (int) $getuser[0]->getVar('uid'));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Space before opening parenthesis of function call prohibited
Open

    if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Opening parenthesis of a multi-line function call must be the last content on the line
Open

        $sql = sprintf("UPDATE %s SET pass = '%s', pass_expired = '%u' WHERE uid = '%u'",
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

No space found after comma in function call
Open

    $areyou = hash('sha1',substr($getuser[0]->getVar('pass'), -5) . $getuser[0]->getVar('last_login'));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Closing parenthesis of a multi-line function call must be on a line by itself
Open

                        icms::$xoopsDB->prefix('users'), $pass, 1, (int) $getuser[0]->getVar('uid'));
Severity: Minor
Found in htdocs/lostpass.php by phpcodesniffer

Unexpected spaces found.
Open

    extract($clean_POST);
Severity: Minor
Found in htdocs/lostpass.php by editorconfig

Unexpected trailing spaces found.
Open

        
Severity: Minor
Found in htdocs/lostpass.php by editorconfig

Unexpected spaces found.
Open

    extract($clean_GET);
Severity: Minor
Found in htdocs/lostpass.php by editorconfig

Unexpected spaces found.
Open

    $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, false);
Severity: Minor
Found in htdocs/lostpass.php by editorconfig

There are no issues that match your filters.

Category
Status