ImpressCMS/impresscms

View on GitHub
htdocs/invite.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to static property xoopsDB from undeclared class \icms
Open

            icms::$xoopsDB->query($sql);
Severity: Critical
Found in htdocs/invite.php by phan

Call to method useMail from undeclared class \icms_messaging_Handler
Open

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

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

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

Reference to static property security from undeclared class \icms
Open

            $stop .= implode('<br />', icms::$security->getErrors()) . "<br />";
Severity: Critical
Found in htdocs/invite.php by phan

Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
Open

$email = isset($_POST['email']) ? trim(icms_core_DataFilter::stripSlashesGPC($_POST['email'])) : '';
Severity: Critical
Found in htdocs/invite.php by phan

Reference to static property xoopsDB from undeclared class \icms
Open

            $sql = sprintf('INSERT INTO ' . icms::$xoopsDB->prefix('invites') . '
Severity: Critical
Found in htdocs/invite.php by phan

Reference to undeclared constant \_US_INVITESENT
Open

                    echo _US_INVITESENT;
Severity: Minor
Found in htdocs/invite.php by phan

Reference to static property user from undeclared class \icms
Open

                            is_object(icms::$user) ? icms::$user->getVar('uid') : 0,
Severity: Critical
Found in htdocs/invite.php by phan

Call to method setTemplate from undeclared class \icms_messaging_Handler
Open

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

Call to method setFromEmail from undeclared class \icms_messaging_Handler
Open

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

Reference to undeclared constant \_US_INVITEREGLINK
Open

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

Reference to static property security from undeclared class \icms
Open

        if (!icms::$security->check()) {
Severity: Critical
Found in htdocs/invite.php by phan

Call to method __construct from undeclared class \icms_messaging_Handler
Open

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

Argument 1 (prefix) is int but \uniqid() takes string
Open

            $invite_code = substr(md5(uniqid(mt_rand(), 1)), 0, 8);
Severity: Minor
Found in htdocs/invite.php by phan

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

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

Reference to undeclared constant \_US_INVITEDBERR
Open

                $stop .= _US_INVITEDBERR;
Severity: Minor
Found in htdocs/invite.php by phan

Variable $invite_form is undeclared
Open

        $invite_form->display();
Severity: Minor
Found in htdocs/invite.php by phan

Reference to undeclared constant \_US_INVITEBYMEMBER
Open

    redirect_header('index.php', 6, _US_INVITEBYMEMBER);
Severity: Minor
Found in htdocs/invite.php by phan

Reference to undeclared constant \_US_INVALIDMAIL
Open

            $stop .= _US_INVALIDMAIL . '<br />';
Severity: Minor
Found in htdocs/invite.php by phan

Argument 2 (more_entropy) is 1 but \uniqid() takes bool
Open

            $invite_code = substr(md5(uniqid(mt_rand(), 1)), 0, 8);
Severity: Minor
Found in htdocs/invite.php by phan

Call to method checkVar from undeclared class \icms_core_DataFilter
Open

        if (!icms_core_DataFilter::checkVar($email, 'email')) {
Severity: Critical
Found in htdocs/invite.php by phan

Call to method setFromName from undeclared class \icms_messaging_Handler
Open

                $xoopsMailer->setFromName($icmsConfig['sitename']);
Severity: Critical
Found in htdocs/invite.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/invite.php by phan

Reference to static property user from undeclared class \icms
Open

if ($icmsConfigUser['activation_type'] == 3 && $icmsConfigUser['allow_register'] == 0 && !is_object(icms::$user)) {
Severity: Critical
Found in htdocs/invite.php by phan

Call to method instance from undeclared class \icms_form_elements_captcha_Object
Open

        $icmsCaptcha = icms_form_elements_captcha_Object::instance();
Severity: Critical
Found in htdocs/invite.php by phan

Reference to static property xoopsDB from undeclared class \icms
Open

                            icms::$xoopsDB->quoteString(addslashes($invite_code)),
Severity: Critical
Found in htdocs/invite.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

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

Call to method assign from undeclared class \icms_messaging_Handler
Open

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

Call to method assign from undeclared class \icms_messaging_Handler
Open

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

Call to method assign from undeclared class \icms_messaging_Handler
Open

                $xoopsMailer->assign('REGISTERLINK', ICMS_URL . '/register.php?code=' . $invite_code);
Severity: Critical
Found in htdocs/invite.php by phan

Call to method send from undeclared class \icms_messaging_Handler
Open

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

Reference to static property xoopsDB from undeclared class \icms
Open

                            icms::$xoopsDB->quoteString(addslashes($email)),
Severity: Critical
Found in htdocs/invite.php by phan

Reference to static property xoopsDB from undeclared class \icms
Open

                            icms::$xoopsDB->quoteString(addslashes(serialize(array())))
Severity: Critical
Found in htdocs/invite.php by phan

Reference to static property xoopsDB from undeclared class \icms
Open

            if (icms::$xoopsDB->getAffectedRows() == 1) {
Severity: Critical
Found in htdocs/invite.php by phan

Call to method setSubject from undeclared class \icms_messaging_Handler
Open

                $xoopsMailer->setSubject(sprintf(_US_INVITEREGLINK, ICMS_URL));
Severity: Critical
Found in htdocs/invite.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/invite.php by phan

Call to method assign from undeclared class \icms_messaging_Handler
Open

                $xoopsMailer->assign('USEREMAIL', $email);
Severity: Critical
Found in htdocs/invite.php by phan

Call to method setToEmails from undeclared class \icms_messaging_Handler
Open

                $xoopsMailer->setToEmails($email);
Severity: Critical
Found in htdocs/invite.php by phan

Reference to undeclared constant \_US_INVITEMAILERR
Open

                    $stop .= _US_INVITEMAILERR;
Severity: Minor
Found in htdocs/invite.php by phan

Variable $invite_form is undeclared
Open

            $invite_form->display();
Severity: Minor
Found in htdocs/invite.php by phan

Blank line found at end of control structure
Open


Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            is_object(icms::$user) ? icms::$user->getVar('uid') : 0,
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            icms::$xoopsDB->quoteString(addslashes(serialize(array())))
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

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

            $sql = sprintf('INSERT INTO ' . icms::$xoopsDB->prefix('invites') . '
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

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

                        );
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            time(),
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            icms::$xoopsDB->quoteString(addslashes($invite_code)),
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

Multi-line function call not indented correctly; expected 16 spaces but found 28
Open

                            icms::$xoopsDB->quoteString(addslashes($email)),
Severity: Minor
Found in htdocs/invite.php by phpcodesniffer

There are no issues that match your filters.

Category
Status