ImpressCMS/impresscms

View on GitHub
htdocs/readpmsg.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method __construct from undeclared class \icms_db_criteria_Item
Open

    $criteria = new icms_db_criteria_Item('to_userid', (int) (icms::$user->getVar('uid')));
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to static property security from undeclared class \icms
Open

        echo icms::$security->getTokenHTML();
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to static property security from undeclared class \icms
Open

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

Call to method setStart from undeclared class \icms_db_criteria_Item
Open

    $criteria->setStart($start);
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_FROMC
Open

                echo _PM_FROMC."".$poster->getVar("user_from")."<br /><br />\n";
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_PRIVATEMESSAGE
Open

    echo "<div><h4>". _PM_PRIVATEMESSAGE."</h4></div><br /><a href='userinfo.php?uid="
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_PREVIOUS
Open

            echo _PM_PREVIOUS." | ";
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to static property security from undeclared class \icms
Open

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

Reference to undeclared constant \_PM_YOUDONTHAVE
Open

        echo '<br /><br />'._PM_YOUDONTHAVE;
Severity: Minor
Found in htdocs/readpmsg.php by phan

Call to method getVar from undeclared class \icms_member_user_Object
Open

            echo "<a href='userinfo.php?uid=". (int) ($poster->getVar("uid"))."'>".$poster->getVar("uname")."</a><br />\n";
Severity: Critical
Found in htdocs/readpmsg.php by phan

Suspicious argument null for an echo/print statement
Open

            echo $icmsConfig['anonymous']; // we need to do this for deleted users
Severity: Minor
Found in htdocs/readpmsg.php by phan

Call to method handler from undeclared class \icms
Open

        $permHandler = icms::handler('icms_member_groupperm');
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_PREVIOUS
Open

            echo "<a href='readpmsg.php?start=". (int) ($previous)."&amp;total_messages=". (int) ($total_messages)."'>"._PM_PREVIOUS."</a> | ";
Severity: Minor
Found in htdocs/readpmsg.php by phan

Call to method isActive from undeclared class \icms_member_user_Object
Open

        if (!$poster->isActive()) {
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method getVar from undeclared class \icms_member_user_Object
Open

            if ($poster->getVar("user_from") != "") {
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method handler from undeclared class \icms
Open

    $pm_handler = icms::handler('icms_data_privmessage');
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method isOnline from undeclared class \icms_member_user_Object
Open

            if ($poster->isOnline()) {
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to static property user from undeclared class \icms
Open

        if (!is_object($pm) || $pm->getVar('to_userid') != icms::$user->getVar('uid') || !$pm_handler->delete($pm)) {
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method getVar from undeclared class \icms_member_user_Object
Open

                echo "<img src='uploads/".$poster->getVar("user_avatar")."' alt='' /><br />\n";
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method checkVar from undeclared class \icms_core_DataFilter
Open

        echo icms_core_DataFilter::checkVar($var, $filterType, 'output') . "<br /><br /></td></tr>
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_NEXT
Open

            echo "<a href='readpmsg.php?start=". (int) ($next)."&amp;total_messages=". (int) ($total_messages)."'>"._PM_NEXT."</a>";
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_NEXT
Open

            echo _PM_NEXT;
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to static property user from undeclared class \icms
Open

        . (int) (icms::$user->getVar("uid")) ."'>". _PM_PROFILE ."</a>&nbsp;
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method getVar from undeclared class \icms_member_user_Object
Open

                echo _PM_FROMC."".$poster->getVar("user_from")."<br /><br />\n";
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method getGroups from undeclared class \icms_member_user_Object
Open

        $filterType = $permHandler->checkRight('use_wysiwygeditor', 1, $poster->getGroups()) ? 'html' : 'text';
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_FROM
Open

            <tr><th colspan='2'>". _PM_FROM ."</th></tr><tr class='even'>\n";
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to static property user from undeclared class \icms
Open

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

Call to method setLimit from undeclared class \icms_db_criteria_Item
Open

    $criteria->setLimit(1);
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_INBOX
Open

        <a href='viewpmsg.php'>". _PM_INBOX ."</a>&nbsp;
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_ONLINE
Open

                echo "<span style='color:#ee0000;font-weight:bold;'>"._PM_ONLINE."</span><br /><br />\n";
Severity: Minor
Found in htdocs/readpmsg.php by phan

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

            echo $icmsConfig['anonymous']; // we need to do this for deleted users
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_SENTC
Open

            "._PM_SENTC."".formatTimestamp($pm_arr[0]->getVar("msg_time"));
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to static property user from undeclared class \icms
Open

    $criteria = new icms_db_criteria_Item('to_userid', (int) (icms::$user->getVar('uid')));
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_DELETE
Open

            <img src='".ICMS_URL."/images/icons/".$GLOBALS["icmsConfig"]["language"]."/delete.gif' alt='"._PM_DELETE."' /></a>";
Severity: Minor
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_DELETED
Open

            redirect_header("viewpmsg.php",1,_PM_DELETED);
Severity: Minor
Found in htdocs/readpmsg.php by phan

Call to method setSort from undeclared class \icms_db_criteria_Item
Open

    $criteria->setSort('msg_time');
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_PROFILE
Open

        . (int) (icms::$user->getVar("uid")) ."'>". _PM_PROFILE ."</a>&nbsp;
Severity: Minor
Found in htdocs/readpmsg.php by phan

Call to method __construct from undeclared class \icms_member_user_Object
Open

        $poster = new icms_member_user_Object((int) $pm_arr[0]->getVar("from_userid"));
Severity: Critical
Found in htdocs/readpmsg.php by phan

Call to method getVar from undeclared class \icms_member_user_Object
Open

            if ($poster->getVar("user_avatar") != "") {
Severity: Critical
Found in htdocs/readpmsg.php by phan

Reference to undeclared constant \_PM_REPLY
Open

                <img src='".ICMS_URL."/images/icons/".$GLOBALS["icmsConfig"]["language"]."/reply.gif' alt='"._PM_REPLY."' /></a>\n";
Severity: Minor
Found in htdocs/readpmsg.php by phan

No space found after comma in function call
Open

            redirect_header("viewpmsg.php",1,_PM_DELETED);
Severity: Minor
Found in htdocs/readpmsg.php by phpcodesniffer

Space after opening parenthesis of function call prohibited
Open

        $pm =& $pm_handler->get( (int) ($_POST['msg_id']));
Severity: Minor
Found in htdocs/readpmsg.php by phpcodesniffer

No space found after comma in function call
Open

    redirect_header("user.php",0);
Severity: Minor
Found in htdocs/readpmsg.php by phpcodesniffer

No space found after comma in function call
Open

            redirect_header("viewpmsg.php",1,_PM_DELETED);
Severity: Minor
Found in htdocs/readpmsg.php by phpcodesniffer

There are no issues that match your filters.

Category
Status