ImpressCMS/impresscms

View on GitHub
htdocs/resetpass.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to static property xoopsDB from undeclared class \icms
Open

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

Call to method setSubject from undeclared class \icms_messaging_Handler
Open

    $xoopsMailer->setSubject(sprintf(_US_PWDRESET, ICMS_URL));
Severity: Critical
Found in htdocs/resetpass.php by phan

Reference to undeclared constant \_US_SORRYINCORRECTPASS
Open

        redirect_header('user.php?op=resetpass', 2, _US_SORRYINCORRECTPASS);
Severity: Minor
Found in htdocs/resetpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

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

Reference to undeclared constant \_US_PWDRESET
Open

    $xoopsMailer->setSubject(sprintf(_US_PWDRESET, ICMS_URL));
Severity: Minor
Found in htdocs/resetpass.php by phan

Call to method verifyPass from undeclared class \icms_core_Password
Open

    if (!$icmspass->verifyPass($c_password, icms::$user->getVar('login_name'))) {
Severity: Critical
Found in htdocs/resetpass.php by phan

Reference to static property user from undeclared class \icms
Open

    redirect_header('user.php', 3, sprintf(_US_PWDRESET, icms::$user->getVar('uname')), FALSE);
Severity: Critical
Found in htdocs/resetpass.php by phan

Reference to undeclared constant \_US_SORRYNOTFOUND
Open

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

Call to method setTemplate from undeclared class \icms_messaging_Handler
Open

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

Call to method send from undeclared class \icms_messaging_Handler
Open

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

Variable $password2 is undeclared
Open

if ($password == '' || $password2 == '') {
Severity: Minor
Found in htdocs/resetpass.php by phan

Call to method getErrors from undeclared class \icms_messaging_Handler
Open

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

Reference to static property xoopsDB from undeclared class \icms
Open

                    icms::$xoopsDB->prefix('users'),
Severity: Critical
Found in htdocs/resetpass.php by phan

Reference to static property user from undeclared class \icms
Open

    redirect_header('user.php?op=resetpass', 3, sprintf(_US_SORRYMUSTENTERPASS, icms::$user->getVar('uname')), FALSE);
Severity: Critical
Found in htdocs/resetpass.php by phan

Call to method setToUsers from undeclared class \icms_messaging_Handler
Open

    $xoopsMailer->setToUsers(icms::$user->getVar('uid'));
Severity: Critical
Found in htdocs/resetpass.php by phan

Reference to undeclared constant \_US_PASSNOTSAME
Open

    redirect_header('user.php?op=resetpass', 3, sprintf(_US_PASSNOTSAME, ''), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

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

Reference to undeclared constant \_US_PWDRESET
Open

    redirect_header('user.php', 3, sprintf(_US_PWDRESET, icms::$user->getVar('uname')), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phan

Variable $password2 is undeclared
Open

if ((isset($password)) && ($password !== $password2)) {
Severity: Minor
Found in htdocs/resetpass.php by phan

Reference to static property user from undeclared class \icms
Open

    if (!$icmspass->verifyPass($c_password, icms::$user->getVar('login_name'))) {
Severity: Critical
Found in htdocs/resetpass.php by phan

Call to method encryptPass from undeclared class \icms_core_Password
Open

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

Call to method setFromEmail from undeclared class \icms_messaging_Handler
Open

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

Call to method setFromName from undeclared class \icms_messaging_Handler
Open

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

Reference to static property user from undeclared class \icms
Open

                    (int) icms::$user->getVar('uid')
Severity: Critical
Found in htdocs/resetpass.php by phan

Call to method __construct from undeclared class \icms_core_Password
Open

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

Call to method __construct from undeclared class \icms_messaging_Handler
Open

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

Call to method useMail from undeclared class \icms_messaging_Handler
Open

    $xoopsMailer->useMail();
Severity: Critical
Found in htdocs/resetpass.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/resetpass.php by phan

Reference to undeclared constant \_US_SORRYMUSTENTERPASS
Open

    redirect_header('user.php?op=resetpass', 3, sprintf(_US_SORRYMUSTENTERPASS, icms::$user->getVar('uname')), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phan

Reference to undeclared constant \_US_PWDTOOSHORT
Open

    redirect_header('user.php?op=resetpass', 2, sprintf(_US_PWDTOOSHORT, $icmsConfigUser['minpass']), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phan

Reference to undeclared constant \_US_RESETPWDNG
Open

        echo _US_RESETPWDNG;
Severity: Minor
Found in htdocs/resetpass.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/resetpass.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/resetpass.php by phan

Variable $password is undeclared
Open

if ($password == '' || $password2 == '') {
Severity: Minor
Found in htdocs/resetpass.php by phan

Reference to static property user from undeclared class \icms
Open

if (!icms::$user) {
Severity: Critical
Found in htdocs/resetpass.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

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

Reference to static property user from undeclared class \icms
Open

    $xoopsMailer->setToUsers(icms::$user->getVar('uid'));
Severity: Critical
Found in htdocs/resetpass.php by phan

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/resetpass.php by phpcodesniffer

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

    $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

    redirect_header('user.php?op=resetpass', 3, sprintf(_US_SORRYMUSTENTERPASS, icms::$user->getVar('uname')), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

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

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

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

    redirect_header('user.php', 2, sprintf(_US_SORRYNOTFOUND, 3, ''), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

    redirect_header('user.php', 3, sprintf(_US_PWDRESET, icms::$user->getVar('uname')), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

    $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

    redirect_header('user.php?op=resetpass', 3, sprintf(_US_PASSNOTSAME, ''), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

    redirect_header('user.php?op=resetpass', 2, sprintf(_US_PWDTOOSHORT, $icmsConfigUser['minpass']), FALSE);
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

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

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

TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
Open

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

Inline control structures are not allowed
Open

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

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

                    icms::$xoopsDB->prefix('users'),
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

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

                    (int) icms::$user->getVar('uid')
Severity: Minor
Found in htdocs/resetpass.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/resetpass.php by phpcodesniffer

Whitespace found at end of line
Open

 * 
Severity: Minor
Found in htdocs/resetpass.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/resetpass.php by phpcodesniffer

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

                    $pass,
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

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

                    0,
Severity: Minor
Found in htdocs/resetpass.php by phpcodesniffer

Unexpected spaces found.
Open

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

Unexpected spaces found.
Open

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

Unexpected spaces found.
Open

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

Unexpected trailing spaces found.
Open

 * 
Severity: Minor
Found in htdocs/resetpass.php by editorconfig

Unexpected spaces found.
Open

    $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
Severity: Minor
Found in htdocs/resetpass.php by editorconfig

There are no issues that match your filters.

Category
Status