ImpressCMS/impresscms

View on GitHub
htdocs/include/comment_form.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to undeclared constant \_CM_COMAPPROVEUSER
Open

            $rule_text = _CM_COMAPPROVEUSER;
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$cform->addElement(new icms_form_elements_Text(_CM_TITLE, 'com_title', 50, 255, $com_title), true);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement($icons_radio);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

        $noname_checkbox = new icms_form_elements_Checkbox('', 'noname', $noname);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('com_pid', (int) $com_pid));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('com_rootid', (int) $com_rootid));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method display from undeclared class \icms_form_Theme
Open

$cform->display();
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_COMAPPROVEALL
Open

            $rule_text = _CM_COMAPPROVEALL;
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$option_tray = new icms_form_elements_Tray(_OPTIONS, '<br />');
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_ACTIVE
Open

                    XOOPS_COMMENT_ACTIVE => _CM_ACTIVE,
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

$br_checkbox->addOption(1, _CM_DOAUTOWRAP);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('com_pid', (int) $com_pid));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('com_order', $com_order));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_Theme
Open

$cform = new icms_form_Theme(_CM_POSTCOMMENT, 'commentform', 'comment_post.php', 'post', true);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_DELETE
Open

            $button_tray->addElement(new icms_form_elements_Button('', 'com_dodelete', _DELETE, 'submit'));
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_DOAUTOWRAP
Open

$br_checkbox->addOption(1, _CM_DOAUTOWRAP);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_MESSAGEICON
Open

$icons_radio = new icms_form_elements_Radio(_MESSAGEICON, 'com_icon', $com_icon);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_POSTANON
Open

        $noname_checkbox->addOption(1, _POSTANON);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$xcode_checkbox = new icms_form_elements_Checkbox('', 'doxcode', $doxcode);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

$xcode_checkbox->addOption(1, _CM_DOXCODE);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Variable $com_rootid is undeclared
Open

$cform->addElement(new icms_form_elements_Hidden('com_rootid', (int) $com_rootid));
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

if (isset(icms::$module->config['com_rule'])) {
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$button_tray = new icms_form_elements_Tray('' , '&nbsp;');
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Select
Open

            $status_select = new icms_form_elements_Select(_CM_STATUS, 'com_status', $com_status);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

if (!defined('ICMS_ROOT_PATH') || !is_object(icms::$module)) {
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_MESSAGE
Open

$cform->addElement(new icms_form_elements_Dhtmltextarea(_CM_MESSAGE, 'com_text', $com_text, 10, 50), true);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to static property user from undeclared class \icms
Open

    if (false != icms::$user->isAdmin($com_modid)) {
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

            $status_select->addOptionArray(
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

            $button_tray->addElement(new icms_form_elements_Button('', 'com_dodelete', _DELETE, 'submit'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('com_id', $com_id));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

$com_modid = icms::$module->getVar('mid');
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_DOHTML
Open

    $html_checkbox->addOption(1, _CM_DOHTML);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Captcha
Open

    $cform->addElement(new icms_form_elements_Captcha());
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_COMAPPROVEADMIN
Open

            $rule_text = _CM_COMAPPROVEADMIN;
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

    $cform->addElement(new icms_form_elements_Label(_CM_COMRULES, $rule_text));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_TITLE
Open

$cform->addElement(new icms_form_elements_Text(_CM_TITLE, 'com_title', 50, 255, $com_title), true);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

        $option_tray->addElement($noname_checkbox);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Button
Open

            $button_tray->addElement(new icms_form_elements_Button('', 'com_dodelete', _DELETE, 'submit'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$option_tray->addElement($xcode_checkbox);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$option_tray->addElement($br_checkbox);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$button_tray->addElement(new icms_form_elements_Button('', 'com_dopost', _CM_POSTCOMMENT, 'submit'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_POSTCOMMENT
Open

$cform = new icms_form_Theme(_CM_POSTCOMMENT, 'commentform', 'comment_post.php', 'post', true);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

    switch (icms::$module->config['com_rule']) {
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_OPTIONS
Open

$option_tray = new icms_form_elements_Tray(_OPTIONS, '<br />');
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

        $noname_checkbox->addOption(1, _POSTANON);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_STATUS
Open

            $status_select = new icms_form_elements_Select(_CM_STATUS, 'com_status', $com_status);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('com_rootid', (int) $com_rootid));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement($button_tray);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Text(_CM_TITLE, 'com_title', 50, 255, $com_title), true);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_HIDDEN
Open

                    XOOPS_COMMENT_HIDDEN => _CM_HIDDEN,
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

    $html_checkbox = new icms_form_elements_Checkbox('', 'dohtml', $dohtml);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$option_tray->addElement($smiley_checkbox);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$br_checkbox = new icms_form_elements_Checkbox('', 'dobr', $dobr);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
Open

                $hidden_value = icms_core_DataFilter::stripSlashesGPC($_GET[$extra_param]);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$smiley_checkbox = new icms_form_elements_Checkbox('', 'dosmiley', $dosmiley);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

$smiley_checkbox->addOption(1, _CM_DOSMILEY);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

if ('system' != icms::$module->getVar('dirname')) {
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Label
Open

    $cform->addElement(new icms_form_elements_Label(_CM_COMRULES, $rule_text));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Radio
Open

$icons_radio = new icms_form_elements_Radio(_MESSAGEICON, 'com_icon', $com_icon);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Dhtmltextarea
Open

$cform->addElement(new icms_form_elements_Dhtmltextarea(_CM_MESSAGE, 'com_text', $com_text, 10, 50), true);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement($option_tray);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('com_id', $com_id));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Dhtmltextarea(_CM_MESSAGE, 'com_text', $com_text, 10, 50), true);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

    if (icms::$module->config['com_anonpost'] == 1) {
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

    $option_tray->addElement($html_checkbox);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Variable $com_pid is undeclared
Open

$cform->addElement(new icms_form_elements_Hidden('com_pid', (int) $com_pid));
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('com_itemid', $com_itemid));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_COMRULES
Open

    $cform->addElement(new icms_form_elements_Label(_CM_COMRULES, $rule_text));
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method getFileList from undeclared class \icms_core_Filesystem
Open

$subject_icons = icms_core_Filesystem::getFileList(ICMS_ROOT_PATH . "/images/subject/", '', array('gif', 'jpg', 'png'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addOption from undeclared class \icms_form_elements_Radio
Open

    $icons_radio->addOption($iconfile, '<img src="' . ICMS_URL . '/images/subject/' . $iconfile . '" alt="" />');
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

    $html_checkbox->addOption(1, _CM_DOHTML);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('com_itemid', $com_itemid));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$button_tray->addElement(new icms_form_elements_Button('', 'com_dopreview', _PREVIEW, 'submit'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$button_tray->addElement(new icms_form_elements_Button('', 'com_dopost', _CM_POSTCOMMENT, 'submit'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('com_order', $com_order));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_PREVIEW
Open

$button_tray->addElement(new icms_form_elements_Button('', 'com_dopreview', _PREVIEW, 'submit'));
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_POSTCOMMENT
Open

$button_tray->addElement(new icms_form_elements_Button('', 'com_dopost', _CM_POSTCOMMENT, 'submit'));
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$cform->addElement(new icms_form_elements_Hidden('com_mode', $com_mode));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method checkVar from undeclared class \icms_core_DataFilter
Open

            $cform->addElement(new icms_form_elements_Hidden($extra_param, icms_core_DataFilter::checkVar($hidden_value, 'str')));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

            $cform->addElement(new icms_form_elements_Hidden($extra_param, icms_core_DataFilter::checkVar($hidden_value, 'str')));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

$cform->addElement(new icms_form_elements_Hidden('com_mode', $com_mode));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to static property module from undeclared class \icms
Open

    $comment_config = icms::$module->getInfo('comments');
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
Open

                $hidden_value = icms_core_DataFilter::stripSlashesGPC($_POST[$extra_param]);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to static property user from undeclared class \icms
Open

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

Reference to undeclared constant \_CM_PENDING
Open

                    XOOPS_COMMENT_PENDING => _CM_PENDING,
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

            $cform->addElement($status_select);
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_DOSMILEY
Open

$smiley_checkbox->addOption(1, _CM_DOSMILEY);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Reference to undeclared constant \_CM_DOXCODE
Open

$xcode_checkbox->addOption(1, _CM_DOXCODE);
Severity: Minor
Found in htdocs/include/comment_form.php by phan

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

            $cform->addElement(new icms_form_elements_Hidden($extra_param, icms_core_DataFilter::checkVar($hidden_value, 'str')));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_Theme
Open

    $cform->addElement(new icms_form_elements_Captcha());
Severity: Critical
Found in htdocs/include/comment_form.php by phan

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$button_tray->addElement(new icms_form_elements_Button('', 'com_dopreview', _PREVIEW, 'submit'));
Severity: Critical
Found in htdocs/include/comment_form.php by phan

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

    $html_checkbox->addOption(1, _CM_DOHTML);

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

    //$cform->addElement(new icms_form_elements_Hidden('dohtml', $dohtml));

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

    $html_checkbox = new icms_form_elements_Checkbox('', 'dohtml', $dohtml);

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

    

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

    $option_tray->addElement($html_checkbox);

Space found before comma in function call
Open

$button_tray = new icms_form_elements_Tray('' , '&nbsp;');

Unexpected spaces found.
Open

    $option_tray->addElement($html_checkbox);

Unexpected spaces found.
Open

    

Unexpected trailing spaces found.
Open

    

Unexpected spaces found.
Open

    $html_checkbox->addOption(1, _CM_DOHTML);

Unexpected spaces found.
Open

    $html_checkbox = new icms_form_elements_Checkbox('', 'dohtml', $dohtml);

Unexpected spaces found.
Open

    //$cform->addElement(new icms_form_elements_Hidden('dohtml', $dohtml));

There are no issues that match your filters.

Category
Status