ImpressCMS/impresscms

View on GitHub
htdocs/include/notification_select.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to static property module from undeclared class \icms
Open

                if (!empty($event['admin_only']) && !icms::$user->isAdmin(icms::$module->getVar('mid'))) {
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_ACTIVENOTIFICATIONS
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Variable $xoopsTpl is undeclared
Open

                $xoopsTpl->assign('user_method', _NOT_EMAIL);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_NOTIFICATIONOPTIONS
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Variable $xoopsTpl is undeclared
Open

                $xoopsTpl->assign('user_method', _NOT_PM);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_NOTIFICATIONMETHODIS
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to static property user from undeclared class \icms
Open

                if (!empty($event['admin_only']) && !icms::$user->isAdmin(icms::$module->getVar('mid'))) {
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_CATEGORY
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_UPDATENOW
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_PM
Open

                $xoopsTpl->assign('user_method', _NOT_PM);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to static property user from undeclared class \icms
Open

$xoops_notification['show'] = isset(icms::$module) && is_object(icms::$user) && icms_data_notification_Handler::isEnabled('inline') ? 1 : 0;
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_UPDATEOPTIONS
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Call to method isEnabled from undeclared class \icms_data_notification_Handler
Open

$xoops_notification['show'] = isset(icms::$module) && is_object(icms::$user) && icms_data_notification_Handler::isEnabled('inline') ? 1 : 0;
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to static property user from undeclared class \icms
Open

            $subscribed_events = $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], icms::$module->getVar('mid'), icms::$user->getVar('uid'));
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_CHECKALL
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to static property user from undeclared class \icms
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Variable $xoopsTpl is undeclared
Open

                $xoopsTpl->assign('user_method', _NOT_DISABLE);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_EVENTS
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to static property module from undeclared class \icms
Open

$xoops_notification['show'] = isset(icms::$module) && is_object(icms::$user) && icms_data_notification_Handler::isEnabled('inline') ? 1 : 0;
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_EVENT
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to static property user from undeclared class \icms
Open

        switch (icms::$user->getVar('notify_method')) {
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Variable $xoopsTpl is undeclared
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Call to method handler from undeclared class \icms
Open

    $notification_handler = icms::handler('icms_data_notification');
Severity: Critical
Found in htdocs/include/notification_select.php by phan

Reference to static property module from undeclared class \icms
Open

            $subscribed_events = $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], icms::$module->getVar('mid'), icms::$user->getVar('uid'));
Severity: Critical
Found in htdocs/include/notification_select.php by phan

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

            $section['name'] = $category['name'];

Reference to undeclared constant \_NOT_CHANGE
Open

        $xoopsTpl->assign(array('lang_activenotifications' => _NOT_ACTIVENOTIFICATIONS, 'lang_notificationoptions' => _NOT_NOTIFICATIONOPTIONS, 'lang_updateoptions' => _NOT_UPDATEOPTIONS, 'lang_updatenow' => _NOT_UPDATENOW, 'lang_category' => _NOT_CATEGORY, 'lang_event' => _NOT_EVENT, 'lang_events' => _NOT_EVENTS, 'lang_checkall' => _NOT_CHECKALL, 'lang_notificationmethodis' => _NOT_NOTIFICATIONMETHODIS, 'lang_change' => _NOT_CHANGE, 'editprofile_url' => ICMS_URL . '/edituser.php?uid=' . icms::$user->getVar('uid')));
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Variable $xoopsTpl is undeclared
Open

$xoopsTpl->assign('xoops_notification', $xoops_notification);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_DISABLE
Open

                $xoopsTpl->assign('user_method', _NOT_DISABLE);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Reference to undeclared constant \_NOT_EMAIL
Open

                $xoopsTpl->assign('user_method', _NOT_EMAIL);
Severity: Minor
Found in htdocs/include/notification_select.php by phan

Expected 1 blank line at end of file; 2 found
Open

$xoopsTpl->assign('xoops_notification', $xoops_notification);

There are no issues that match your filters.

Category
Status