ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/users/userform.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$location_text = new icms_form_elements_Text(_AM_LOCATION, "user_from", 30, 100, $location_value);

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

$sig_cbox->addOption(1, _US_SHOWSIG);

Reference to static property user from undeclared class \icms
Open

if ($gperm_handler->checkRight("system_admin", XOOPS_SYSTEM_GROUP, icms::$user->getGroups(), 1)) {

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

        $group_select[] = new icms_form_elements_Hidden('groups[' . $key . ']', $group);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($language);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($fct_hidden);

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$sig_tray->addElement($sig_cbox);

Reference to undeclared constant \_THREADED
Open

$umode_select->addOptionArray(array("nest"=>_NESTED, "flat"=>_FLAT, "thread"=>_THREADED));

Reference to undeclared constant \_NEWESTFIRST
Open

$uorder_select->addOptionArray(array("0"=>_OLDESTFIRST, "1"=>_NEWESTFIRST));

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$occupation_text = new icms_form_elements_Text(_AM_OCCUPATION, "user_occ", 30, 100, $occ_value);

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

    $rank_select->addOptionArray($ranklist);

Reference to undeclared constant \_US_SHOWSIG
Open

$sig_cbox->addOption(1, _US_SHOWSIG);

Call to method __construct from undeclared class \icms_form_elements_select_Group
Open

        $group_select = array(new icms_form_elements_select_Group(_US_GROUPS, 'groups', false, $groups, 5, true));

Reference to undeclared constant \_NESTED
Open

$umode_select->addOptionArray(array("nest"=>_NESTED, "flat"=>_FLAT, "thread"=>_THREADED));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

            $group_hidden_select[] = new icms_form_elements_Hidden('groups_hidden[' . $key . ']', $group);

Call to method __construct from undeclared class \icms_form_elements_Textarea
Open

$bio_tarea = new icms_form_elements_Textarea(_US_EXTRAINFO, "bio", $bio_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($email_tray, true);

Reference to undeclared constant \_US_SELECT_LANG
Open

$language = new icms_form_elements_select_Lang(_US_SELECT_LANG,'language', $language_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($umode_select);

Call to method handler from undeclared class \icms
Open

        $group_manager_value = array_intersect_key(icms::handler('icms_member')->getGroupList(), array_flip($gperm_handler->getItemIds('group_manager', icms::$user->getGroups()))) ;

Call to method __construct from undeclared class \icms_form_elements_Button
Open

$submit_button = new icms_form_elements_Button("", "submit", _SUBMIT, "submit");

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($msnm_text);

Call to method __construct from undeclared class \icms_form_elements_Select
Open

$uorder_select = new icms_form_elements_Select(_US_CSORTORDER, "uorder", $uorder_value);

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

$notify_mode_select->addOptionArray(array(XOOPS_NOTIFICATION_MODE_SENDALWAYS=>_NOT_MODE_SENDALWAYS, XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE=>_NOT_MODE_SENDONCE, XOOPS_NOTIFICATION_MODE_SENDONCETHENWAIT=>_NOT_MODE_SENDONCEPERLOGIN));

Reference to undeclared constant \_NOT_MODE_SENDONCEPERLOGIN
Open

$notify_mode_select->addOptionArray(array(XOOPS_NOTIFICATION_MODE_SENDALWAYS=>_NOT_MODE_SENDALWAYS, XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE=>_NOT_MODE_SENDONCE, XOOPS_NOTIFICATION_MODE_SENDONCETHENWAIT=>_NOT_MODE_SENDONCEPERLOGIN));

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$pass_expired_hidden = new icms_form_elements_Hidden('pass_expired', 0);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($aim_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

        $form->addElement($group);

Reference to undeclared constant \_OLDESTFIRST
Open

$uorder_select->addOptionArray(array("0"=>_OLDESTFIRST, "1"=>_NEWESTFIRST));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($mailok_radio);

Call to method addOption from undeclared class \icms_form_elements_Checkbox
Open

$email_cbox->addOption(1, _AM_AOUTVTEAD);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$yim_text = new icms_form_elements_Text(_AM_YIM, "user_yim", 25, 25, $yim_value);

Call to method __construct from undeclared class \icms_form_elements_Textarea
Open

if ($icmsConfigUser['allow_htsig'] == 0) {$sig_tarea = new icms_form_elements_Textarea("", "user_sig", $sig_value);}

Reference to undeclared constant \_NOT_NOTIFYMETHOD
Open

$notify_method_select = new icms_form_elements_Select(_NOT_NOTIFYMETHOD, 'notify_method', $notify_method_value);

Reference to static property user from undeclared class \icms
Open

    if (in_array(XOOPS_GROUP_ADMIN, icms::$user->getGroups())) {

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

        $group_array->addOptionArray($group_manager_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($uname_text, true);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($uorder_select);

Variable $form_isedit is undeclared
Open

if (!$form_isedit) {

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($pwd_text2);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$email_text = new icms_form_elements_Text("", "email", 30, 60, $email_value);

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$email_cbox = new icms_form_elements_Checkbox("", "user_viewemail", $email_cbox_value);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$msnm_text = new icms_form_elements_Text(_AM_MSNM, "user_msnm", 30, 100, $msnm_value);

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

$uorder_select->addOptionArray(array("0"=>_OLDESTFIRST, "1"=>_NEWESTFIRST));

Reference to undeclared constant \_NOT_METHOD_DISABLE
Open

$notify_method_select->addOptionArray(array(XOOPS_NOTIFICATION_METHOD_DISABLE=>_NOT_METHOD_DISABLE, XOOPS_NOTIFICATION_METHOD_PM=>_NOT_METHOD_PM, XOOPS_NOTIFICATION_METHOD_EMAIL=>_NOT_METHOD_EMAIL));

Call to method __construct from undeclared class \icms_form_elements_select_Lang
Open

$language = new icms_form_elements_select_Lang(_US_SELECT_LANG,'language', $language_value);

Reference to static property user from undeclared class \icms
Open

        $group_manager_value = array_intersect_key(icms::handler('icms_member')->getGroupList(), array_flip($gperm_handler->getItemIds('group_manager', icms::$user->getGroups()))) ;

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($icq_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($bio_tarea);

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

    $uid_hidden = new icms_form_elements_Hidden("uid", $uid_value);

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$email_tray = new icms_form_elements_Tray(_AM_EMAIL, "<br />");

Call to method __construct from undeclared class \icms_form_elements_select_Timezone
Open

$timezone_select = new icms_form_elements_select_Timezone(_US_TIMEZONE, "timezone_offset", $timezone_value);

Reference to undeclared constant \_US_TIMEZONE
Open

$timezone_select = new icms_form_elements_select_Timezone(_US_TIMEZONE, "timezone_offset", $timezone_value);

Reference to undeclared constant \_NOT_METHOD_PM
Open

$notify_method_select->addOptionArray(array(XOOPS_NOTIFICATION_METHOD_DISABLE=>_NOT_METHOD_DISABLE, XOOPS_NOTIFICATION_METHOD_PM=>_NOT_METHOD_PM, XOOPS_NOTIFICATION_METHOD_EMAIL=>_NOT_METHOD_EMAIL));

Call to method addOption from undeclared class \icms_form_elements_Select
Open

    $rank_select->addOption(0, "--------------");

Call to method handler from undeclared class \icms
Open

$gperm_handler = icms::handler('icms_member_groupperm');

Reference to undeclared constant \_US_GROUPS
Open

        $group_array = new icms_form_elements_Select(_US_GROUPS, 'groups',$groups, 5, true);

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

        $group_select[] = new icms_form_elements_Hidden('groups[' . $key . ']', $group);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($sig_tray);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($notify_mode_select);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$icq_text = new icms_form_elements_Text(_AM_ICQ, "user_icq", 15, 15, $icq_value);

Call to method __construct from undeclared class \icms_form_elements_Tray
Open

$sig_tray = new icms_form_elements_Tray(_AM_SIGNATURE, "<br />");

Call to method __construct from undeclared class \icms_form_elements_Select
Open

$notify_method_select = new icms_form_elements_Select(_NOT_NOTIFYMETHOD, 'notify_method', $notify_method_value);

Reference to undeclared constant \_NOT_NOTIFYMODE
Open

$notify_mode_select = new icms_form_elements_Select(_NOT_NOTIFYMODE, 'notify_mode', $notify_mode_value);

Call to method __construct from undeclared class \icms_form_elements_Password
Open

$pwd_text = new icms_form_elements_Password(_AM_PASSWORD, "password", 10, 255, '', false, ($icmsConfigUser['pass_level']?'password_adv':''));

Call to method __construct from undeclared class \icms_form_elements_Select
Open

        $group_array = new icms_form_elements_Select(_US_GROUPS, 'groups',$groups, 5, true);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($name_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($location_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($pwd_text);

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$email_tray->addElement($email_text, true);

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$sig_tray->addElement($sig_tarea);

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

$umode_select->addOptionArray(array("nest"=>_NESTED, "flat"=>_FLAT, "thread"=>_THREADED));

Call to method __construct from undeclared class \icms_form_elements_Radioyn
Open

$mailok_radio = new icms_form_elements_Radioyn(_US_MAILOK, 'user_mailok', (int) ($mailok_value));

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

            $group_hidden_select[] = new icms_form_elements_Hidden('groups_hidden[' . $key . ']', $group);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($url_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($yim_text);

Call to method display from undeclared class \icms_form_Theme
Open

$form->display();

Call to method __construct from undeclared class \icms_form_elements_Label
Open

$uid_label = new icms_form_elements_Label(_AM_USERID, $uid_value);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$login_name_text = new icms_form_elements_Text(_AM_LOGINNAME, "login_name", 25, 25, $login_name_value);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$interest_text = new icms_form_elements_Text(_AM_INTEREST, "user_intrest", 30, 150, $interest_value);

Reference to undeclared constant \_NOT_METHOD_EMAIL
Open

$notify_method_select->addOptionArray(array(XOOPS_NOTIFICATION_METHOD_DISABLE=>_NOT_METHOD_DISABLE, XOOPS_NOTIFICATION_METHOD_PM=>_NOT_METHOD_PM, XOOPS_NOTIFICATION_METHOD_EMAIL=>_NOT_METHOD_EMAIL));

Call to method addOption from undeclared class \icms_form_elements_Select
Open

    $rank_select->addOption(0, _AM_NSRID);

Call to method __construct from undeclared class \icms_form_elements_Password
Open

$pwd_text2 = new icms_form_elements_Password(_AM_RETYPEPD, "pass2", 10, 255);

Call to method __construct from undeclared class \icms_form_Theme
Open

$form = new icms_form_Theme($form_title, "userinfo", "admin.php", "post", true);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($interest_text);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($rank_select);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($pwd_text, true);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($pass_expired_hidden);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($submit_button);

Call to method addElement from undeclared class \icms_form_elements_Tray
Open

$email_tray->addElement($email_cbox);

Call to method __construct from undeclared class \icms_form_elements_Select
Open

$umode_select = new icms_form_elements_Select(_US_CDISPLAYMODE, "umode", $umode_value);

Reference to undeclared constant \_US_CDISPLAYMODE
Open

$umode_select = new icms_form_elements_Select(_US_CDISPLAYMODE, "umode", $umode_value);

Reference to undeclared constant \_FLAT
Open

$umode_select->addOptionArray(array("nest"=>_NESTED, "flat"=>_FLAT, "thread"=>_THREADED));

Reference to undeclared constant \_US_CSORTORDER
Open

$uorder_select = new icms_form_elements_Select(_US_CSORTORDER, "uorder", $uorder_value);

Call to method addOptionArray from undeclared class \icms_form_elements_Select
Open

$notify_method_select->addOptionArray(array(XOOPS_NOTIFICATION_METHOD_DISABLE=>_NOT_METHOD_DISABLE, XOOPS_NOTIFICATION_METHOD_PM=>_NOT_METHOD_PM, XOOPS_NOTIFICATION_METHOD_EMAIL=>_NOT_METHOD_EMAIL));

Variable $mailok_value is undeclared
Open

$mailok_radio = new icms_form_elements_Radioyn(_US_MAILOK, 'user_mailok', (int) ($mailok_value));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($login_name_text, true);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($pwd_text2, true);

Call to method __construct from undeclared class \icms_form_elements_Checkbox
Open

$sig_cbox = new icms_form_elements_Checkbox("", "attachsig", $sig_cbox_value);

Reference to undeclared constant \_US_EXTRAINFO
Open

$bio_tarea = new icms_form_elements_Textarea(_US_EXTRAINFO, "bio", $bio_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($pass_expired_hidden, true);

Call to method __construct from undeclared class \icms_form_elements_Select
Open

$rank_select = new icms_form_elements_Select(_AM_RANK, "rank", $rank_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($op_hidden);

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$fct_hidden = new icms_form_elements_Hidden("fct", "users");

Call to method __construct from undeclared class \icms_form_elements_Hidden
Open

$op_hidden = new icms_form_elements_Hidden("op", $op_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($occupation_text);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$uname_text = new icms_form_elements_Text(_AM_NICKNAME, "username", 25, 25, $uname_value);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$name_text = new icms_form_elements_Text(_AM_NAME, "name", 30, 60, $name_value);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$aim_text = new icms_form_elements_Text(_AM_AIM, "user_aim", 18, 18, $aim_value);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($uid_hidden);

Call to method __construct from undeclared class \icms_form_elements_Select
Open

$notify_mode_select = new icms_form_elements_Select(_NOT_NOTIFYMODE, 'notify_mode', $notify_mode_value);

Reference to undeclared constant \_NOT_MODE_SENDONCE
Open

$notify_mode_select->addOptionArray(array(XOOPS_NOTIFICATION_MODE_SENDALWAYS=>_NOT_MODE_SENDALWAYS, XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE=>_NOT_MODE_SENDONCE, XOOPS_NOTIFICATION_MODE_SENDONCETHENWAIT=>_NOT_MODE_SENDONCEPERLOGIN));

Reference to undeclared constant \_US_MAILOK
Open

$mailok_radio = new icms_form_elements_Radioyn(_US_MAILOK, 'user_mailok', (int) ($mailok_value));

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($notify_method_select);

Call to method __construct from undeclared class \icms_form_elements_Text
Open

$url_text = new icms_form_elements_Text(_AM_URL, "url", 30, 100, $url_value);

Call to method __construct from undeclared class \icms_form_elements_Dhtmltextarea
Open

else {$sig_tarea = new icms_form_elements_Dhtmltextarea("", "user_sig", $sig_value);}

Reference to undeclared constant \_NOT_MODE_SENDALWAYS
Open

$notify_mode_select->addOptionArray(array(XOOPS_NOTIFICATION_MODE_SENDALWAYS=>_NOT_MODE_SENDALWAYS, XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE=>_NOT_MODE_SENDONCE, XOOPS_NOTIFICATION_MODE_SENDONCETHENWAIT=>_NOT_MODE_SENDONCEPERLOGIN));

Reference to undeclared constant \_US_GROUPS
Open

        $group_select = array(new icms_form_elements_select_Group(_US_GROUPS, 'groups', false, $groups, 5, true));

Reference to undeclared constant \_SUBMIT
Open

$submit_button = new icms_form_elements_Button("", "submit", _SUBMIT, "submit");

Call to method addElement from undeclared class \icms_form_Theme
Open

$form->addElement($timezone_select);

Call to method addElement from undeclared class \icms_form_Theme
Open

    $form->addElement($group);

Expected 1 space after closing brace; newline found
Open

if ($icmsConfigUser['allow_htsig'] == 0) {$sig_tarea = new icms_form_elements_Textarea("", "user_sig", $sig_value);}

Closing brace must be on a line by itself
Open

if ($icmsConfigUser['allow_htsig'] == 0) {$sig_tarea = new icms_form_elements_Textarea("", "user_sig", $sig_value);}

No space found after comma in function call
Open

        $group_array = new icms_form_elements_Select(_US_GROUPS, 'groups',$groups, 5, true);

A closing tag is not permitted at the end of a PHP file
Open

?>

Newline required after opening brace
Open

if ($icmsConfigUser['allow_htsig'] == 0) {$sig_tarea = new icms_form_elements_Textarea("", "user_sig", $sig_value);}

Expected 1 space after closing brace; newline found
Open

}

No space found after comma in function call
Open

        $group_hidden = array_diff($groups,array_flip($group_manager_value));

Newline required after opening brace
Open

else {$sig_tarea = new icms_form_elements_Dhtmltextarea("", "user_sig", $sig_value);}

No space found after comma in function call
Open

$language = new icms_form_elements_select_Lang(_US_SELECT_LANG,'language', $language_value);

Closing brace must be on a line by itself
Open

else {$sig_tarea = new icms_form_elements_Dhtmltextarea("", "user_sig", $sig_value);}

There are no issues that match your filters.

Category
Status