File edituser.php
has 463 lines of code (exceeds 250 allowed). Consider refactoring. Open
<?php
// $Id: edituser.php 12313 2013-09-15 21:14:35Z skenow $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
Avoid deeply nested control flow statements. Open
if (0 === strpos($oldavatar_path, ICMS_UPLOAD_PATH) && is_file($oldavatar_path)) {
unlink($oldavatar_path);
}
Avoid deeply nested control flow statements. Open
if (!empty($oldavatar) && preg_match("/^cavt/", strtolower($oldavatar))) {
$avatars =& $avt_handler->getObjects(new icms_db_criteria_Item('avatar_file', $oldavatar));
if (!empty($avatars) && count($avatars) == 1 && is_object($avatars[0])) {
$avt_handler->delete($avatars[0]);
$oldavatar_path = str_replace("\\", "/", realpath(ICMS_UPLOAD_PATH . '/' . $oldavatar));
TODO found Open
// TODO: add this to admin user-edit functions...
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$errors[] .= sprintf(_US_NICKNAMETOOLONG, $icmsConfigUser['maxuname']) . "<br />";
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', icms::$security->getErrors()));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if (icms::$user->getVar('uid') != $uid) {
- Exclude checks
Call to method icms_substr
from undeclared class \icms_core_DataFilter
Open
$edituser->setVar('user_sig', icms_core_DataFilter::icms_substr($signature, 0, (int) $icmsConfigUser['sig_max_length']));
- Exclude checks
Reference to undeclared constant \_US_PROFILE
Open
echo '<a href="userinfo.php?uid=' . (int) icms::$user->getVar('uid') . '">' . _US_PROFILE . '</a>
- Exclude checks
Reference to undeclared constant \_US_EDITPROFILE
Open
<span style="font-weight:bold;">»»</span> ' . _US_EDITPROFILE . '<br /><br />';
- Exclude checks
Reference to undeclared constant \_US_WEBSITE
Open
$url_text = new icms_form_elements_Text(_US_WEBSITE, 'url', 30, 100, icms::$user->getVar('url', 'E'));
- Exclude checks
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', icms::$user->getVar('timezone_offset'));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$member_handler = icms::handler('icms_member');
- Exclude checks
Call to method stripSlashesGPC
from undeclared class \icms_core_DataFilter
Open
$vpass = icms_core_DataFilter::stripSlashesGPC(trim($vpass));
- Exclude checks
Call to method icms_substr
from undeclared class \icms_core_DataFilter
Open
$edituser->setVar('bio', icms_core_DataFilter::icms_substr($bio, 0, 255));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Checkbox
Open
$email_cbox = new icms_form_elements_Checkbox('', 'user_viewemail', $email_cbox_value);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chguname'] == 1) {
- Exclude checks
Reference to undeclared constant \_US_NICKNAME
Open
$uname_label = new icms_form_elements_Text(_US_NICKNAME, 'uname', 30, 60, icms::$user->getVar('uname', 'E'));
- Exclude checks
Reference to undeclared constant \_US_NICKNAME
Open
$uname_label = new icms_form_elements_Label(_US_NICKNAME, icms::$user->getVar('uname'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$timezone_select = new icms_form_elements_select_Timezone(_US_TIMEZONE, 'timezone_offset', icms::$user->getVar('timezone_offset'));
- Exclude checks
Reference to undeclared constant \_US_TIMEZONE
Open
$timezone_select = new icms_form_elements_select_Timezone(_US_TIMEZONE, 'timezone_offset', icms::$user->getVar('timezone_offset'));
- Exclude checks
Reference to undeclared constant \_US_AIM
Open
$aim_text = new icms_form_elements_Text(_US_AIM, 'user_aim', 18, 18, icms::$user->getVar('user_aim', 'E'));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_htsig'] == 0) {
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Tray
Open
$sig_tray = new icms_form_elements_Tray(_US_SIGNATURE, '<br />');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$umode_select = new icms_form_elements_Select(_US_CDISPLAYMODE, 'umode', icms::$user->getVar('umode'));
- Exclude checks
Reference to undeclared constant \_US_CSORTORDER
Open
$uorder_select = new icms_form_elements_Select(_US_CSORTORDER, 'uorder', icms::$user->getVar('uorder'));
- Exclude checks
Reference to undeclared constant \_US_SELECT_THEME
Open
$selected_theme = new icms_form_elements_Select(_US_SELECT_THEME, 'theme_selected' , icms::$user->getVar('theme'));
- Exclude checks
Call to method addOption
from undeclared class \icms_form_elements_Select
Open
$selected_language->addOption($language, $language);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($msnm_text);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($sig_tray);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($notify_method_select);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($bio_tarea);
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Reference to undeclared constant \_US_CHOOSEAVT
Open
$form2 = new icms_form_Theme(_US_CHOOSEAVT, 'uploadavatar', 'edituser.php', 'post', TRUE);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form2->addElement(new icms_form_elements_Label(sprintf(_US_POSTSNOTENOUGH, icms_conv_nr2local($icmsConfigUser['avatar_minposts'])), _US_UNCHOOSEAVT));
- Exclude checks
Reference to undeclared constant \_US_POSTSNOTENOUGH
Open
$form2->addElement(new icms_form_elements_Label(sprintf(_US_POSTSNOTENOUGH, icms_conv_nr2local($icmsConfigUser['avatar_minposts'])), _US_UNCHOOSEAVT));
- Exclude checks
Call to method getSavedDestination
from undeclared class \icms_file_MediaUploadHandler
Open
@unlink($uploader->getSavedDestination());
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to undeclared constant \_US_NICKNAMETOOLONG
Open
$errors[] .= sprintf(_US_NICKNAMETOOLONG, $icmsConfigUser['maxuname']) . "<br />";
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
foreach ($icmsConfigUser['bad_unames'] as $bu) {
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
list($count) = icms::$xoopsDB->fetchRow($result);
- Exclude checks
Call to method stripSlashesGPC
from undeclared class \icms_core_DataFilter
Open
$password = icms_core_DataFilter::stripSlashesGPC(trim($password));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['pass_level'] > 20) {
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chgmail'] == 1) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$icq_text = new icms_form_elements_Text(_US_ICQ, 'user_icq', 15, 15, icms::$user->getVar('user_icq', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$aim_text = new icms_form_elements_Text(_US_AIM, 'user_aim', 18, 18, icms::$user->getVar('user_aim', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$location_text = new icms_form_elements_Text(_US_LOCATION, 'user_from', 30, 100, icms::$user->getVar('user_from', 'E'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($location_text);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
$form = new icms_form_Theme(_US_UPLOADMYAVATAR, 'uploadavatar', 'edituser.php', 'post', TRUE);
- Exclude checks
Reference to undeclared constant \_US_MAXIMGSZ
Open
$form->addElement(new icms_form_elements_Label(_US_MAXIMGSZ, icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$avatar_tray->addElement(new icms_form_elements_Label('', "<img src='" . ICMS_UPLOAD_URL . "/" . icms::$user->getVar("user_avatar", "E") . "' name='avatar' id='avatar' alt='' /> <a href=\"javascript:openWithSelfMain('" . ICMS_URL . "/misc.php?action=showpopups&type=avatars','avatars',600,400);\">" . _LIST . "</a>"));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form2->addElement($avatar_tray);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if (empty($uid) || icms::$user->getVar('uid') != $uid) {
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$avt_handler = icms::handler('icms_data_avatar');
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
icms::$xoopsDB->query($sql);
- Exclude checks
Call to method stripSlashesGPC
from undeclared class \icms_core_DataFilter
Open
$uname = icms_core_DataFilter::stripSlashesGPC(trim($uname));
- Exclude checks
Call to method stripSlashesGPC
from undeclared class \icms_core_DataFilter
Open
? icms_core_DataFilter::stripSlashesGPC(trim($old_password))
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
echo '<a href="userinfo.php?uid=' . (int) icms::$user->getVar('uid') . '">' . _US_PROFILE . '</a>
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$form->addElement(new icms_form_elements_Hidden("uname", icms::$user->getVar('login_name')));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$email_text = new icms_form_elements_Text('', 'email', 30, 60, icms::$user->getVar('email'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($name_text);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$aim_text = new icms_form_elements_Text(_US_AIM, 'user_aim', 18, 18, icms::$user->getVar('user_aim', 'E'));
- Exclude checks
Reference to undeclared constant \_US_SIGNATURE
Open
$sig_tray = new icms_form_elements_Tray(_US_SIGNATURE, '<br />');
- Exclude checks
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));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$notify_mode_select = new icms_form_elements_Select(_NOT_NOTIFYMODE, 'notify_mode', icms::$user->getVar('notify_mode'));
- Exclude checks
Reference to undeclared constant \_US_EXTRAINFO
Open
$bio_tarea = new icms_form_elements_Textarea(_US_EXTRAINFO, 'bio', icms::$user->getVar('bio', 'E'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$pwd_tray->addElement($pwd_text);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$form->addElement(new icms_form_elements_Label(_US_MAXPIXEL, icms_conv_nr2local($icmsConfigUser['avatar_width']) . ' x ' . icms_conv_nr2local($icmsConfigUser['avatar_height'])));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$avatar_handler = icms::handler('icms_data_avatar');
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$form2->addElement(new icms_form_elements_Label(sprintf(_US_POSTSNOTENOUGH, icms_conv_nr2local($icmsConfigUser['avatar_minposts'])), _US_UNCHOOSEAVT));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$oldavatar = icms::$user->getVar('user_avatar');
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
icms::$xoopsDB->quoteString($uploader->getSavedFileName()),
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$avt_handler->addUser($avatar->getVar('avatar_id'), (int) icms::$user->getVar('uid'));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Reference to undeclared constant \_US_PROFUPDATED
Open
redirect_header('userinfo.php?t=' . time() . '&uid=' . (int) icms::$user->getVar('uid'), 0, _US_PROFUPDATED);
- Exclude checks
Call to method stripSlashesGPC
from undeclared class \icms_core_DataFilter
Open
$email = icms_core_DataFilter::stripSlashesGPC(trim($email));
- Exclude checks
Reference to undeclared constant \_US_PROFUPDATED
Open
redirect_header('userinfo.php?uid=' . $uid, 0, _US_PROFUPDATED);
- Exclude checks
Call to method checkVar
from undeclared class \icms_core_DataFilter
Open
if ($email == '' || !icms_core_DataFilter::checkVar($email, 'email', 0, 1)) {
- Exclude checks
Reference to undeclared constant \_US_PASSNOTSAME
Open
$errors[] = _US_PASSNOTSAME;
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$uname_label = new icms_form_elements_Text(_US_NICKNAME, 'uname', 30, 60, icms::$user->getVar('uname', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$url_text = new icms_form_elements_Text(_US_WEBSITE, 'url', 30, 100, icms::$user->getVar('url', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$sig_cbox_value = icms::$user->getVar('attachsig') ? 1 : 0;
- Exclude checks
Call to method addOption
from undeclared class \icms_form_elements_Select
Open
$selected_theme->addOption($theme, $theme);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Textarea
Open
$bio_tarea = new icms_form_elements_Textarea(_US_EXTRAINFO, 'bio', icms::$user->getVar('bio', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Password
Open
$pwd_text2 = new icms_form_elements_Password('', 'vpass', 10, 255);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($yim_text);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($token_hidden);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_File
Open
$form->addElement(new icms_form_elements_File(_US_SELFILE, 'avatarfile', icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])), TRUE);
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form->display();
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$form2->addElement(new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid')));
- Exclude checks
Call to method getSavedFileName
from undeclared class \icms_file_MediaUploadHandler
Open
icms::$xoopsDB->quoteString($uploader->getSavedFileName()),
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if (empty($uid) || icms::$user->getVar('uid') != $uid) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if (!is_object(icms::$user)) {
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
$result = icms::$xoopsDB->query($sql);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chguname'] == 1) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden("uname", icms::$user->getVar('login_name')));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$email_tray->addElement($email_text);
- Exclude checks
Call to method addOption
from undeclared class \icms_form_elements_Checkbox
Open
$email_cbox->addOption(1, _US_ALLOWVIEWEMAIL);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($uname_label);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$name_text = new icms_form_elements_Text(_US_REALNAME, 'name', 30, 60, icms::$user->getVar('name', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$yim_text = new icms_form_elements_Text(_US_YIM, 'user_yim', 25, 25, icms::$user->getVar('user_yim', 'E'));
- Exclude checks
Reference to undeclared constant \_FLAT
Open
$umode_select->addOptionArray(array('nest'=>_NESTED, 'flat'=>_FLAT, 'thread'=>_THREADED));
- Exclude checks
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));
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($timezone_select);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chgmail'] == 1) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($op_hidden);
- Exclude checks
Reference to undeclared constant \_US_INVALIDMAIL
Open
$errors[] = _US_INVALIDMAIL;
- Exclude checks
Call to method setRequired
from undeclared class \icms_form_Theme
Open
$form->setRequired($email_text);
- Exclude checks
Reference to undeclared constant \_US_PWDTOOSHORT
Open
$errors[] = sprintf(_US_PWDTOOSHORT, $icmsConfigUser['minpass']);
- Exclude checks
Reference to undeclared constant \_US_UPLOADMYAVATAR
Open
<span style="font-weight:bold;">»»</span> ' . _US_UPLOADMYAVATAR . '</p>';
- Exclude checks
Reference to undeclared constant \_US_BADPWD
Open
$errors[] = _US_BADPWD;
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Button
Open
$form2->addElement(new icms_form_elements_Button('', 'submit2', _SUBMIT, 'submit'));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_htsig'] == 0) {
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Tray
Open
$email_tray = new icms_form_elements_Tray(_US_EMAIL, '<br />');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$uname_label = new icms_form_elements_Text(_US_NICKNAME, 'uname', 30, 60, icms::$user->getVar('uname', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$yim_text = new icms_form_elements_Text(_US_YIM, 'user_yim', 25, 25, icms::$user->getVar('user_yim', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Tray
Open
$sig_tray = new icms_form_elements_Tray(_US_SIGNATURE, '<br />');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Checkbox
Open
$sig_cbox = new icms_form_elements_Checkbox('', 'attachsig', $sig_cbox_value);
- Exclude checks
Reference to undeclared constant \_THREADED
Open
$umode_select->addOptionArray(array('nest'=>_NESTED, 'flat'=>_FLAT, 'thread'=>_THREADED));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$bio_tarea = new icms_form_elements_Textarea(_US_EXTRAINFO, 'bio', icms::$user->getVar('bio', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Radioyn
Open
$cookie_radio = new icms_form_elements_Radioyn(_US_USECOOKIE, 'usecookie', $cookie_radio_value, _YES, _NO);
- Exclude checks
Reference to undeclared constant \_US_TYPEPASSTWICE
Open
$pwd_tray = new icms_form_elements_Tray(_US_PASSWORD . '<br />' . _US_TYPEPASSTWICE);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$op_hidden = new icms_form_elements_Hidden('op', 'saveuser');
- Exclude checks
Call to method setExtra
from undeclared class \icms_form_Theme
Open
$form->setExtra('enctype="multipart/form-data"');
- Exclude checks
Reference to undeclared constant \_US_AVATAR
Open
$avatar_tray = new icms_form_elements_Tray(_US_AVATAR, ' ');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$avatar_tray->addElement(new icms_form_elements_Label('', "<img src='" . ICMS_UPLOAD_URL . "/" . icms::$user->getVar("user_avatar", "E") . "' name='avatar' id='avatar' alt='' /> <a href=\"javascript:openWithSelfMain('" . ICMS_URL . "/misc.php?action=showpopups&type=avatars','avatars',600,400);\">" . _LIST . "</a>"));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['avatar_allow_upload'] == 1 && icms::$user->getVar('posts') < $icmsConfigUser['avatar_minposts']) {
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', icms::$security->getErrors()));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$avatar->setVar('avatar_name', icms::$user->getVar('uname'));
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', icms::$security->getErrors()));
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT);
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT);
- Exclude checks
Call to method checkVarArray
from undeclared class \icms_core_DataFilter
Open
$clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if (strlen($uname) < $icmsConfigUser['minuname']) {
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chgmail'] == 1) {
- Exclude checks
Variable $url
is undeclared Open
$edituser->setVar('url', formatURL($url));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$selected_theme = new icms_form_elements_Select(_US_SELECT_THEME, 'theme_selected' , icms::$user->getVar('theme'));
- Exclude checks
Reference to undeclared constant \_US_SELECT_LANG
Open
$selected_language = new icms_form_elements_Select(_US_SELECT_LANG, 'language_selected', icms::$user->getVar('language'));
- Exclude checks
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));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Button
Open
$submit_button = new icms_form_elements_Button('', 'submit', _US_SAVECHANGES, 'submit');
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($pwd_text_old);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($uid_hidden);
- Exclude checks
Reference to undeclared constant \_US_AVATAR
Open
echo "<h4>" . _US_AVATAR . "</h4>";
- Exclude checks
Reference to undeclared constant \_US_PROFILE
Open
echo '<p><a href="userinfo.php?uid=' . (int) icms::$user->getVar('uid') . '">' . _US_PROFILE . '</a>
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if ($icmsConfigUser['avatar_allow_upload'] == 1 && icms::$user->getVar('posts') >= $icmsConfigUser['avatar_minposts']) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Label(_US_MAXPIXEL, icms_conv_nr2local($icmsConfigUser['avatar_width']) . ' x ' . icms_conv_nr2local($icmsConfigUser['avatar_height'])));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('op', 'avatarupload'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
$form2 = new icms_form_Theme(_US_CHOOSEAVT, 'uploadavatar', 'edituser.php', 'post', TRUE);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Tray
Open
$avatar_tray = new icms_form_elements_Tray(_US_AVATAR, ' ');
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form2->addElement(new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid')));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form2->addElement(new icms_form_elements_Button('', 'submit2', _SUBMIT, 'submit'));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method setPrefix
from undeclared class \icms_file_MediaUploadHandler
Open
$uploader->setPrefix('cavt');
- Exclude checks
Call to method getSavedFileName
from undeclared class \icms_file_MediaUploadHandler
Open
$avatar->setVar('avatar_file', $uploader->getSavedFileName());
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($email)));
- Exclude checks
Call to method error
from undeclared class \icms_core_Message
Open
icms_core_Message::error($errors);
- Exclude checks
Reference to undeclared constant \_US_ICQ
Open
$icq_text = new icms_form_elements_Text(_US_ICQ, 'user_icq', 15, 15, icms::$user->getVar('user_icq', 'E'));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allwshow_sig'] == 1) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$sig_tray->addElement($sig_cbox);
- Exclude checks
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));
- Exclude checks
Reference to undeclared constant \_US_EDITPROFILE
Open
echo "<a href='edituser.php' title='" . _US_EDITPROFILE . "'>" . _US_EDITPROFILE . "</a>";
- Exclude checks
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));
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$member_handler = icms::handler('icms_member');
- Exclude checks
Reference to undeclared constant \_NO
Open
$cookie_radio = new icms_form_elements_Radioyn(_US_USECOOKIE, 'usecookie', $cookie_radio_value, _YES, _NO);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$pwd_text = new icms_form_elements_Password('', 'password', 10, 255, "", FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
list($count) = icms::$xoopsDB->fetchRow($result);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($cookie_radio);
- Exclude checks
Reference to undeclared constant \_US_EMAILTAKEN
Open
$errors[] .= _US_EMAILTAKEN . "<br />";
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
echo '<p><a href="userinfo.php?uid=' . (int) icms::$user->getVar('uid') . '">' . _US_PROFILE . '</a>
- Exclude checks
Reference to undeclared constant \_US_EMAIL
Open
$email_tray = new icms_form_elements_Tray(_US_EMAIL, '<br />');
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$oldavatar = icms::$user->getVar('user_avatar');
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$email_text = new icms_form_elements_Text('', 'email', 30, 60, icms::$user->getVar('email'));
- Exclude checks
Reference to undeclared constant \_US_INVALIDNICKNAME
Open
$errors[] = _US_INVALIDNICKNAME;
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['avatar_allow_upload'] == 1 && icms::$user->getVar('posts') >= $icmsConfigUser['avatar_minposts']) {
- Exclude checks
Reference to undeclared constant \_US_ALLOWVIEWEMAIL
Open
$email_cbox->addOption(1, _US_ALLOWVIEWEMAIL);
- Exclude checks
Reference to undeclared constant \_US_NICKNAMETOOSHORT
Open
$errors[] .= sprintf(_US_NICKNAMETOOSHORT, $icmsConfigUser['minuname']) . "<br />";
- Exclude checks
Reference to undeclared constant \_US_MAXPIXEL
Open
$form->addElement(new icms_form_elements_Label(_US_MAXPIXEL, icms_conv_nr2local($icmsConfigUser['avatar_width']) . ' x ' . icms_conv_nr2local($icmsConfigUser['avatar_height'])));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$email_tray->addElement($email_cbox);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$form->addElement(new icms_form_elements_Label(_US_MAXIMGSZ, icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])));
- Exclude checks
Reference to undeclared constant \_US_NAMERESERVED
Open
$errors[] .= _US_NAMERESERVED . "<br />";
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid')));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($url_text);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$avatar_select = new icms_form_elements_Select('', 'user_avatar', icms::$user->getVar('user_avatar'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$occupation_text = new icms_form_elements_Text(_US_OCCUPATION, 'user_occ', 30, 100, icms::$user->getVar('user_occ', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
(int) icms::$user->getVar('uid')
- Exclude checks
Call to method checkVar
from undeclared class \icms_core_DataFilter
Open
$signature = icms_core_DataFilter::checkVar($user_sig, 'text', 'input');
- Exclude checks
Reference to undeclared constant \_US_OCCUPATION
Open
$occupation_text = new icms_form_elements_Text(_US_OCCUPATION, 'user_occ', 30, 100, icms::$user->getVar('user_occ', 'E'));
- Exclude checks
Call to method addSlashes
from undeclared class \icms_core_DataFilter
Open
$user_avatar = icms_core_DataFilter::addSlashes(trim($user_avatar));
- Exclude checks
Call to method __construct
from undeclared class \icms_core_Password
Open
$icmspass = new icms_core_Password();
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$criteria_avatar = new icms_db_criteria_Compo(new icms_db_criteria_Item('avatar_file', $user_avatar));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$sig_tarea = new icms_form_elements_Dhtmltextarea('', 'user_sig', icms::$user->getVar('user_sig', 'E'));
- Exclude checks
Call to method encryptPass
from undeclared class \icms_core_Password
Open
$pass = $icmspass->encryptPass($password);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$sig_tray->addElement($sig_tarea);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($login_name_label);
- Exclude checks
Call to method addOptionArray
from undeclared class \icms_form_elements_Select
Open
$umode_select->addOptionArray(array('nest'=>_NESTED, 'flat'=>_FLAT, 'thread'=>_THREADED));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden("uname", icms::$user->getVar('login_name')));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$uorder_select = new icms_form_elements_Select(_US_CSORTORDER, 'uorder', icms::$user->getVar('uorder'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$uname_label = new icms_form_elements_Label(_US_NICKNAME, icms::$user->getVar('uname'));
- Exclude checks
Call to method getDirList
from undeclared class \icms_core_Filesystem
Open
foreach (icms_core_Filesystem::getDirList(ICMS_ROOT_PATH . "/language/") as $language) {
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$notify_method_select = new icms_form_elements_Select(_NOT_NOTIFYMETHOD, 'notify_method', icms::$user->getVar('notify_method'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$name_text = new icms_form_elements_Text(_US_REALNAME, 'name', 30, 60, icms::$user->getVar('name', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$notify_method_select = new icms_form_elements_Select(_NOT_NOTIFYMETHOD, 'notify_method', icms::$user->getVar('notify_method'));
- Exclude checks
Reference to undeclared constant \_US_CDISPLAYMODE
Open
$umode_select = new icms_form_elements_Select(_US_CDISPLAYMODE, 'umode', icms::$user->getVar('umode'));
- Exclude checks
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));
- Exclude checks
Reference to undeclared constant \_NOT_NOTIFYMODE
Open
$notify_mode_select = new icms_form_elements_Select(_NOT_NOTIFYMODE, 'notify_mode', icms::$user->getVar('notify_mode'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$notify_mode_select = new icms_form_elements_Select(_NOT_NOTIFYMODE, 'notify_mode', icms::$user->getVar('notify_mode'));
- Exclude checks
Reference to undeclared constant \_US_PASSWORD
Open
$pwd_tray = new icms_form_elements_Tray(_US_PASSWORD . '<br />' . _US_TYPEPASSTWICE);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$mailok_radio = new icms_form_elements_Radioyn(_US_MAILOK, 'user_mailok', (int) icms::$user->getVar('user_mailok'));
- Exclude checks
Reference to undeclared constant \_US_OLD_PASSWORD
Open
$pwd_text_old = new icms_form_elements_Password(_US_OLD_PASSWORD, 'old_password', 10, 255);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($pwd_tray_old);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Radioyn
Open
$mailok_radio = new icms_form_elements_Radioyn(_US_MAILOK, 'user_mailok', (int) icms::$user->getVar('user_mailok'));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chgmail'] == 1) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if ($icmsConfigUser['avatar_allow_upload'] == 1 && icms::$user->getVar('posts') < $icmsConfigUser['avatar_minposts']) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($pwd_change_radio);
- Exclude checks
Call to method display
from undeclared class \icms_form_Theme
Open
$form2->display();
- Exclude checks
Call to method addOptionArray
from undeclared class \icms_form_elements_Select
Open
$avatar_select->addOptionArray($avatar_handler->getList('S'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if ($icmsConfigUser['avatar_allow_upload'] == 1 && icms::$user->getVar('posts') >= $icmsConfigUser['avatar_minposts']) {
- Exclude checks
Reference to undeclared constant \_US_UNCHOOSEAVT
Open
$form2->addElement(new icms_form_elements_Label(sprintf(_US_POSTSNOTENOUGH, icms_conv_nr2local($icmsConfigUser['avatar_minposts'])), _US_UNCHOOSEAVT));
- Exclude checks
Call to method upload
from undeclared class \icms_file_MediaUploadHandler
Open
if ($uploader->upload()) {
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form2->addElement(new icms_form_elements_Hidden('op', 'avatarchoose'));
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
icms::$xoopsDB->prefix('users'),
- Exclude checks
Call to method fetchMedia
from undeclared class \icms_file_MediaUploadHandler
Open
if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
echo icms::$user->getHtmlErrors();
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$avatars =& $avt_handler->getObjects(new icms_db_criteria_Item('avatar_file', $oldavatar));
- Exclude checks
Call to method add
from undeclared class \icms_db_criteria_Compo
Open
$criteria_avatar->add(new icms_db_criteria_Item('avatar_type', "S"));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
icms::$user->setVar('user_avatar', $user_avatar);
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$avatars =& $avt_handler->getObjects(new icms_db_criteria_Item('avatar_file', $user_avatar));
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
$result = icms::$xoopsDB->query($sql);
- Exclude checks
Reference to undeclared constant \_US_NICKNAMETAKEN
Open
$errors[] .= _US_NICKNAMETAKEN . "<br />";
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allwshow_sig'] == 1) {
- Exclude checks
Reference to undeclared constant \_US_PROFUPDATED
Open
redirect_header('userinfo.php?uid=' . $uid, 1, _US_PROFUPDATED);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$email_text = new icms_form_elements_Label('', icms::$user->getVar('email'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($email_tray);
- Exclude checks
Reference to undeclared constant \_US_LOCATION
Open
$location_text = new icms_form_elements_Text(_US_LOCATION, 'user_from', 30, 100, icms::$user->getVar('user_from', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$sig_tarea = new icms_form_elements_Textarea('', 'user_sig', icms::$user->getVar('user_sig', 'E'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$sig_tray->addElement($sig_cbox);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Dhtmltextarea
Open
$sig_tarea = new icms_form_elements_Dhtmltextarea('', 'user_sig', icms::$user->getVar('user_sig', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$sig_cbox_value = icms::$user->getVar('attachsig') ? 1 : 0;
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$selected_theme = new icms_form_elements_Select(_US_SELECT_THEME, 'theme_selected' , icms::$user->getVar('theme'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$pwd_tray->addElement($pwd_text2);
- Exclude checks
Reference to undeclared constant \_US_MAILOK
Open
$mailok_radio = new icms_form_elements_Radioyn(_US_MAILOK, 'user_mailok', (int) icms::$user->getVar('user_mailok'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$uid_hidden = new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$uid_hidden = new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($icq_text);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($aim_text);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($umode_select);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($uorder_select);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($mailok_radio);
- Exclude checks
Reference to undeclared constant \_US_UPLOADMYAVATAR
Open
$form = new icms_form_Theme(_US_UPLOADMYAVATAR, 'uploadavatar', 'edituser.php', 'post', TRUE);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_File(_US_SELFILE, 'avatarfile', icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])), TRUE);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form->addElement(new icms_form_elements_Hidden('op', 'avatarupload'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid')));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Button('', 'submit', _SUBMIT, 'submit'));
- Exclude checks
Reference to undeclared constant \_SUBMIT
Open
$form->addElement(new icms_form_elements_Button('', 'submit', _SUBMIT, 'submit'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$avatar_tray->addElement($avatar_select);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$form2->addElement(new icms_form_elements_Label(sprintf(_US_POSTSNOTENOUGH, icms_conv_nr2local($icmsConfigUser['avatar_minposts'])), _US_UNCHOOSEAVT));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form2->addElement(new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid')));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$criteria_avatar->add(new icms_db_criteria_Item('avatar_type', "S"));
- Exclude checks
Call to method checkVarArray
from undeclared class \icms_core_DataFilter
Open
$clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['allow_chguname'] == 1) {
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$errors[] .= sprintf(_US_NICKNAMETOOSHORT, $icmsConfigUser['minuname']) . "<br />";
- Exclude checks
Reference to static property xoopsDB
from undeclared class \icms
Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($uname)));
- Exclude checks
Reference to undeclared constant \_US_SORRYINCORRECTPASS
Open
$errors[] = _US_SORRYINCORRECTPASS;
- Exclude checks
Call to method checkVar
from undeclared class \icms_core_DataFilter
Open
$signature = icms_core_DataFilter::checkVar($user_sig, 'html', 'input');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$login_name_label = new icms_form_elements_Label(_US_LOGINNAME, icms::$user->getVar('login_name'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$email_text = new icms_form_elements_Label('', icms::$user->getVar('email'));
- Exclude checks
Reference to undeclared constant \_US_SHOWSIG
Open
$sig_cbox->addOption(1, _US_SHOWSIG);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$uorder_select = new icms_form_elements_Select(_US_CSORTORDER, 'uorder', icms::$user->getVar('uorder'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Tray
Open
$pwd_tray = new icms_form_elements_Tray(_US_PASSWORD . '<br />' . _US_TYPEPASSTWICE);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($occupation_text);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($submit_button);
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement(new icms_form_elements_Label(_US_MAXIMGSZ, icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])));
- Exclude checks
Reference to undeclared constant \_US_SELFILE
Open
$form->addElement(new icms_form_elements_File(_US_SELFILE, 'avatarfile', icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])), TRUE);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$form->addElement(new icms_form_elements_File(_US_SELFILE, 'avatarfile', icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])), TRUE);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if ($icmsConfigUser['avatar_allow_upload'] == 1 && icms::$user->getVar('posts') >= $icmsConfigUser['avatar_minposts']) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
redirect_header('userinfo.php?t=' . time() . '&uid=' . (int) icms::$user->getVar('uid'), 0, _US_PROFUPDATED);
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if (strlen($uname) > $icmsConfigUser['maxuname']) {
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
if (strlen($password) < $icmsConfigUser['minpass']) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
setcookie($icmsConfig['usercookie'], icms::$user->getVar('login_name'), time()+ 31536000);
- Exclude checks
Reference to undeclared constant \_US_LOGINNAME
Open
$login_name_label = new icms_form_elements_Label(_US_LOGINNAME, icms::$user->getVar('login_name'));
- Exclude checks
Call to method utf8_strrev
from undeclared class \icms_core_DataFilter
Open
|| $password == icms_core_DataFilter::utf8_strrev($username, TRUE)
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$icq_text = new icms_form_elements_Text(_US_ICQ, 'user_icq', 15, 15, icms::$user->getVar('user_icq', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$uname_label = new icms_form_elements_Label(_US_NICKNAME, icms::$user->getVar('uname'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$interest_text = new icms_form_elements_Text(_US_INTEREST, 'user_intrest', 30, 150, icms::$user->getVar('user_intrest', 'E'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$url_text = new icms_form_elements_Text(_US_WEBSITE, 'url', 30, 100, icms::$user->getVar('url', 'E'));
- Exclude checks
Reference to undeclared constant \_US_YIM
Open
$yim_text = new icms_form_elements_Text(_US_YIM, 'user_yim', 25, 25, icms::$user->getVar('user_yim', 'E'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_elements_Tray
Open
$sig_tray->addElement($sig_tarea);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$msnm_text = new icms_form_elements_Text(_US_MSNM, 'user_msnm', 30, 100, icms::$user->getVar('user_msnm', 'E'));
- Exclude checks
Call to method addOption
from undeclared class \icms_form_elements_Checkbox
Open
$sig_cbox->addOption(1, _US_SHOWSIG);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$msnm_text = new icms_form_elements_Text(_US_MSNM, 'user_msnm', 30, 100, icms::$user->getVar('user_msnm', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$selected_language = new icms_form_elements_Select(_US_SELECT_LANG, 'language_selected', icms::$user->getVar('language'));
- Exclude checks
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));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$location_text = new icms_form_elements_Text(_US_LOCATION, 'user_from', 30, 100, icms::$user->getVar('user_from', 'E'));
- Exclude checks
Reference to undeclared constant \_YES
Open
$cookie_radio = new icms_form_elements_Radioyn(_US_USECOOKIE, 'usecookie', $cookie_radio_value, _YES, _NO);
- Exclude checks
Reference to undeclared constant \_US_SAVECHANGES
Open
$submit_button = new icms_form_elements_Button('', 'submit', _US_SAVECHANGES, 'submit');
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$interest_text = new icms_form_elements_Text(_US_INTEREST, 'user_intrest', 30, 150, icms::$user->getVar('user_intrest', 'E'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($interest_text);
- Exclude checks
Reference to undeclared constant \_NESTED
Open
$umode_select->addOptionArray(array('nest'=>_NESTED, 'flat'=>_FLAT, 'thread'=>_THREADED));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($selected_theme);
- Exclude checks
Reference to undeclared constant \_NEWESTFIRST
Open
$uorder_select->addOptionArray(array(XOOPS_COMMENT_OLD1ST => _OLDESTFIRST, XOOPS_COMMENT_NEW1ST => _NEWESTFIRST));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($selected_language);
- Exclude checks
Reference to undeclared constant \_OLDESTFIRST
Open
$uorder_select->addOptionArray(array(XOOPS_COMMENT_OLD1ST => _OLDESTFIRST, XOOPS_COMMENT_NEW1ST => _NEWESTFIRST));
- Exclude checks
Reference to undeclared constant \_NOT_NOTIFYMETHOD
Open
$notify_method_select = new icms_form_elements_Select(_NOT_NOTIFYMETHOD, 'notify_method', icms::$user->getVar('notify_method'));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($pwd_tray);
- Exclude checks
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));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Password
Open
$pwd_text = new icms_form_elements_Password('', 'password', 10, 255, "", FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$form->addElement(new icms_form_elements_Label(_US_MAXPIXEL, icms_conv_nr2local($icmsConfigUser['avatar_width']) . ' x ' . icms_conv_nr2local($icmsConfigUser['avatar_height'])));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Label
Open
$form->addElement(new icms_form_elements_Label(_US_MAXIMGSZ, icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])));
- Exclude checks
Call to method addElement
from undeclared class \icms_form_Theme
Open
$form->addElement($notify_mode_select);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$form->addElement(new icms_form_elements_Hidden('uid', (int) icms::$user->getVar('uid')));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$avatar_tray->addElement(new icms_form_elements_Label('', "<img src='" . ICMS_UPLOAD_URL . "/" . icms::$user->getVar("user_avatar", "E") . "' name='avatar' id='avatar' alt='' /> <a href=\"javascript:openWithSelfMain('" . ICMS_URL . "/misc.php?action=showpopups&type=avatars','avatars',600,400);\">" . _LIST . "</a>"));
- Exclude checks
Call to method setExtra
from undeclared class \icms_form_elements_Select
Open
$avatar_select->setExtra("onchange='showImgSelected(\"avatar\", \"user_avatar\", \"uploads\", \"\", \"" . ICMS_URL . "\")'");
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Hidden
Open
$form2->addElement(new icms_form_elements_Hidden('op', 'avatarchoose'));
- Exclude checks
Reference to undeclared constant \_LIST
Open
$avatar_tray->addElement(new icms_form_elements_Label('', "<img src='" . ICMS_UPLOAD_URL . "/" . icms::$user->getVar("user_avatar", "E") . "' name='avatar' id='avatar' alt='' /> <a href=\"javascript:openWithSelfMain('" . ICMS_URL . "/misc.php?action=showpopups&type=avatars','avatars',600,400);\">" . _LIST . "</a>"));
- Exclude checks
Call to method getMediaType
from undeclared class \icms_file_MediaUploadHandler
Open
$avatar->setVar('avatar_mimetype', $uploader->getMediaType());
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', icms::$security->getErrors()));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT . "<br />" . implode('<br />', icms::$security->getErrors()));
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Compo
Open
$criteria_avatar = new icms_db_criteria_Compo(new icms_db_criteria_Item('avatar_file', $user_avatar));
- Exclude checks
Reference to undeclared constant \_SUBMIT
Open
$form2->addElement(new icms_form_elements_Button('', 'submit2', _SUBMIT, 'submit'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$oldavatar = icms::$user->getVar('user_avatar');
- Exclude checks
Variable $icmsConfigUser
is undeclared Open
$errors[] = sprintf(_US_PWDTOOSHORT, $icmsConfigUser['minpass']);
- Exclude checks
Reference to undeclared constant \_US_NOEDITRIGHT
Open
redirect_header('index.php', 3, _US_NOEDITRIGHT);
- Exclude checks
Call to method __construct
from undeclared class \icms_form_Theme
Open
$form = new icms_form_Theme(_US_EDITPROFILE, 'userinfo', 'edituser.php', 'post', TRUE);
- Exclude checks
Call to method __construct
from undeclared class \icms_file_MediaUploadHandler
Open
$uploader = new icms_file_MediaUploadHandler(ICMS_UPLOAD_PATH, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png'), $icmsConfigUser['avatar_maxsize'], $icmsConfigUser['avatar_width'], $icmsConfigUser['avatar_height']);
- Exclude checks
Reference to undeclared constant \_US_EDITPROFILE
Open
$form = new icms_form_Theme(_US_EDITPROFILE, 'userinfo', 'edituser.php', 'post', TRUE);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$avt_handler->addUser($avatars[0]->getVar('avatar_id'), icms::$user->getVar('uid'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$login_name_label = new icms_form_elements_Label(_US_LOGINNAME, icms::$user->getVar('login_name'));
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$email_cbox_value = icms::$user->getVar('user_viewemail') ? 1 : 0;
- Exclude checks
Reference to undeclared constant \_US_REALNAME
Open
$name_text = new icms_form_elements_Text(_US_REALNAME, 'name', 30, 60, icms::$user->getVar('name', 'E'));
- Exclude checks
Reference to undeclared constant \_US_INTEREST
Open
$interest_text = new icms_form_elements_Text(_US_INTEREST, 'user_intrest', 30, 150, icms::$user->getVar('user_intrest', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Checkbox
Open
$sig_cbox = new icms_form_elements_Checkbox('', 'attachsig', $sig_cbox_value);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$selected_language = new icms_form_elements_Select(_US_SELECT_LANG, 'language_selected', icms::$user->getVar('language'));
- Exclude checks
Reference to undeclared constant \_US_USECOOKIE
Open
$cookie_radio = new icms_form_elements_Radioyn(_US_USECOOKIE, 'usecookie', $cookie_radio_value, _YES, _NO);
- Exclude checks
Variable $icmsConfigMultilang
is undeclared Open
if ($icmsConfigMultilang['ml_enable']) {
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Select
Open
$avatar_select = new icms_form_elements_Select('', 'user_avatar', icms::$user->getVar('user_avatar'));
- Exclude checks
Call to method getErrors
from undeclared class \icms_file_MediaUploadHandler
Open
echo $uploader->getErrors();
- Exclude checks
Call to method handler
from undeclared class \icms
Open
$member_handler = icms::handler('icms_member');
- Exclude checks
Call to method __construct
from undeclared class \icms_db_criteria_Item
Open
$avatars =& $avt_handler->getObjects(new icms_db_criteria_Item('avatar_file', $oldavatar));
- Exclude checks
Reference to undeclared constant \_US_MSNM
Open
$msnm_text = new icms_form_elements_Text(_US_MSNM, 'user_msnm', 30, 100, icms::$user->getVar('user_msnm', 'E'));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Text
Open
$occupation_text = new icms_form_elements_Text(_US_OCCUPATION, 'user_occ', 30, 100, icms::$user->getVar('user_occ', 'E'));
- Exclude checks
Reference to undeclared constant \_US_SIGNATURE
Open
$sig_tray = new icms_form_elements_Tray(_US_SIGNATURE, '<br />');
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Textarea
Open
$sig_tarea = new icms_form_elements_Textarea('', 'user_sig', icms::$user->getVar('user_sig', 'E'));
- Exclude checks
Reference to undeclared constant \_US_SHOWSIG
Open
$sig_cbox->addOption(1, _US_SHOWSIG);
- Exclude checks
Call to method addOption
from undeclared class \icms_form_elements_Checkbox
Open
$sig_cbox->addOption(1, _US_SHOWSIG);
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
$umode_select = new icms_form_elements_Select(_US_CDISPLAYMODE, 'umode', icms::$user->getVar('umode'));
- Exclude checks
Call to method addOptionArray
from undeclared class \icms_form_elements_Select
Open
$uorder_select->addOptionArray(array(XOOPS_COMMENT_OLD1ST => _OLDESTFIRST, XOOPS_COMMENT_NEW1ST => _NEWESTFIRST));
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Password
Open
$pwd_text_old = new icms_form_elements_Password(_US_OLD_PASSWORD, 'old_password', 10, 255);
- Exclude checks
Reference to undeclared constant \_US_OLDDELETED
Open
echo '<div style="text-align:center;"><h4 style="color:#ff0000; font-weight:bold;">' . _US_OLDDELETED . '</h4>';
- Exclude checks
Call to method __construct
from undeclared class \icms_form_elements_Button
Open
$form->addElement(new icms_form_elements_Button('', 'submit', _SUBMIT, 'submit'));
- Exclude checks
Reference to static property security
from undeclared class \icms
Open
if (!icms::$security->check()) {
- Exclude checks
Reference to static property user
from undeclared class \icms
Open
if (!$member_handler->insertUser(icms::$user)) {
- Exclude checks
Identical blocks of code found in 2 locations. Consider refactoring. Open
if ($oldavatar && preg_match("/^cavt/", strtolower($oldavatar))) {
$avatars =& $avt_handler->getObjects(new icms_db_criteria_Item('avatar_file', $oldavatar));
if (!empty($avatars) && count($avatars) == 1 && is_object($avatars[0])) {
$avt_handler->delete($avatars[0]);
$oldavatar_path = str_replace("\\", "/", realpath(ICMS_UPLOAD_PATH . '/' . $oldavatar));
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 157.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if (!empty($oldavatar) && preg_match("/^cavt/", strtolower($oldavatar))) {
$avatars =& $avt_handler->getObjects(new icms_db_criteria_Item('avatar_file', $oldavatar));
if (!empty($avatars) && count($avatars) == 1 && is_object($avatars[0])) {
$avt_handler->delete($avatars[0]);
$oldavatar_path = str_replace("\\", "/", realpath(ICMS_UPLOAD_PATH . '/' . $oldavatar));
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 157.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
} else {
$sig_tray = new icms_form_elements_Tray(_US_SIGNATURE, '<br />');
$sig_tarea = new icms_form_elements_Dhtmltextarea('', 'user_sig', icms::$user->getVar('user_sig', 'E'));
$sig_tray->addElement($sig_tarea);
$sig_cbox_value = icms::$user->getVar('attachsig') ? 1 : 0;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 128.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Identical blocks of code found in 2 locations. Consider refactoring. Open
if ($icmsConfigUser['allow_htsig'] == 0) {
$sig_tray = new icms_form_elements_Tray(_US_SIGNATURE, '<br />');
$sig_tarea = new icms_form_elements_Textarea('', 'user_sig', icms::$user->getVar('user_sig', 'E'));
$sig_tray->addElement($sig_tarea);
$sig_cbox_value = icms::$user->getVar('attachsig') ? 1 : 0;
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 128.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($email) {
$sql = sprintf('SELECT COUNT(*) FROM %s WHERE email = %s',
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($email)));
$result = icms::$xoopsDB->query($sql);
list($count) = icms::$xoopsDB->fetchRow($result);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 111.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
Similar blocks of code found in 2 locations. Consider refactoring. Open
if ($uname) {
$sql = sprintf('SELECT COUNT(*) FROM %s WHERE uname = %s',
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($uname)));
$result = icms::$xoopsDB->query($sql);
list($count) = icms::$xoopsDB->fetchRow($result);
- Read upRead up
Duplicated Code
Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:
Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).
Tuning
This issue has a mass of 111.
We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.
The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.
If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.
See codeclimate-duplication
's documentation for more information about tuning the mass threshold in your .codeclimate.yml
.
Refactorings
- Extract Method
- Extract Class
- Form Template Method
- Introduce Null Object
- Pull Up Method
- Pull Up Field
- Substitute Algorithm
Further Reading
- Don't Repeat Yourself on the C2 Wiki
- Duplicated Code on SourceMaking
- Refactoring: Improving the Design of Existing Code by Martin Fowler. Duplicated Code, p76
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$edituser->setVar('pass', $pass, TRUE);
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
extract($clean_GET);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$edituser->setVar('uname', $uname, TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$pwd_text = new icms_form_elements_Password('', 'password', 10, 255, "", FALSE, ($icmsConfigUser['pass_level']?'password_adv':''));
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
'uid' => 'int',
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
extract($clean_POST);
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
'user_sig' => 'html',
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
|| strripos($password, $username) === TRUE
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
$clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
|| $password == icms_core_DataFilter::utf8_strrev($username, TRUE)
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form2 = new icms_form_Theme(_US_CHOOSEAVT, 'uploadavatar', 'edituser.php', 'post', TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form = new icms_form_Theme(_US_UPLOADMYAVATAR, 'uploadavatar', 'edituser.php', 'post', TRUE);
- Exclude checks
Space found before comma in function call Open
$selected_theme = new icms_form_elements_Select(_US_SELECT_THEME, 'theme_selected' , icms::$user->getVar('theme'));
- Exclude checks
Tabs must be used to indent lines; spaces are not allowed Open
$clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$edituser->setVar('email', $email, TRUE);
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form->addElement(new icms_form_elements_File(_US_SELFILE, 'avatarfile', icms_conv_nr2local($icmsConfigUser['avatar_maxsize'])), TRUE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE" Open
$clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
- Exclude checks
TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE" Open
$form = new icms_form_Theme(_US_EDITPROFILE, 'userinfo', 'edituser.php', 'post', TRUE);
- Exclude checks
Terminating statement must be indented to the same level as the CASE body Open
break;
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($uname)));
- Exclude checks
Only one argument is allowed per line in a multi-line function call Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($email)));
- Exclude checks
Inline control structures are not allowed Open
if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($uname)));
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 24 Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($email)));
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 24 Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($uname)));
- Exclude checks
Space before opening parenthesis of function call prohibited Open
if (isset($_GET['filter_post'])) unset ($_GET['filter_post']);
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
$sql = sprintf('SELECT COUNT(*) FROM %s WHERE email = %s',
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 29 Open
(int) icms::$user->getVar('uid')
- Exclude checks
Closing brace indented incorrectly; expected 8 spaces, found 4 Open
}
- Exclude checks
Closing parenthesis of a multi-line function call must be on a line by itself Open
icms::$xoopsDB->prefix('users'), icms::$xoopsDB->quoteString(addslashes($email)));
- Exclude checks
Line indented incorrectly; expected 2 tabs, found 1 Open
}
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 29 Open
icms::$xoopsDB->quoteString($uploader->getSavedFileName()),
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
$sql = sprintf('SELECT COUNT(*) FROM %s WHERE uname = %s',
- Exclude checks
Opening parenthesis of a multi-line function call must be the last content on the line Open
$sql = sprintf("UPDATE %s SET user_avatar = %s WHERE uid = '%u'",
- Exclude checks
Multi-line function call not indented correctly; expected 28 spaces but found 29 Open
icms::$xoopsDB->prefix('users'),
- Exclude checks
Unexpected spaces found. Open
'user_sig' => 'html',
- Exclude checks
Unexpected spaces found. Open
icms::$xoopsDB->quoteString($uploader->getSavedFileName()),
- Exclude checks
Unexpected spaces found. Open
(int) icms::$user->getVar('uid')
- Exclude checks
Unexpected spaces found. Open
$clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, FALSE);
- Exclude checks
Unexpected spaces found. Open
extract($clean_POST);
- Exclude checks
Unexpected spaces found. Open
'uid' => 'int',
- Exclude checks
Unexpected spaces found. Open
icms::$xoopsDB->prefix('users'),
- Exclude checks
Unexpected spaces found. Open
extract($clean_GET);
- Exclude checks
Unexpected spaces found. Open
$clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, FALSE);
- Exclude checks