ImpressCMS/impresscms

View on GitHub
htdocs/modules/system/admin/findusers/main.php

Summary

Maintainability
F
1 wk
Test Coverage

File main.php has 461 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
// $Id: main.php 12313 2013-09-15 21:14:35Z skenow $
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
Severity: Minor
Found in htdocs/modules/system/admin/findusers/main.php - About 7 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                        if ($counter == 1 && $currentpage > 5) {
                            $hiddenform .= "... ";
                        }
    Severity: Major
    Found in htdocs/modules/system/admin/findusers/main.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if ($counter == $totalpages && $currentpage < $totalpages - 4) {
                              $hiddenform .= "... ";
                          }
      Severity: Major
      Found in htdocs/modules/system/admin/findusers/main.php - About 45 mins to fix

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $icq_text = new icms_form_elements_Text("", "user_icq", 30, 100);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $uname_tray->addElement($uname_match);

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $icq_tray = new icms_form_elements_Tray(_AM_ICQ, "&nbsp;");

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $aim_tray->addElement($aim_match);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

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

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

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

        Call to method addOptionArray from undeclared class \icms_form_elements_Radio
        Open

            $type_radio->addOptionArray(array("actv" => _AM_ACTIVE, "inactv" => _AM_INACTIVE, "both" => _AM_BOTH));

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($uname_tray);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($group_select);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($icq_tray);

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('name', '%' . icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('email', '%' . icms_core_DataFilter::addSlashes(trim($user_email)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email))));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq))));

        Call to method __construct from undeclared class \icms_form_elements_select_Group
        Open

            $group_select = new icms_form_elements_select_Group(_AM_GROUPS, "selgroups", NULL, FALSE, 5, TRUE);

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $login_name_match = new icms_form_elements_select_Matchoption("", "user_login_name_match");

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $lastlog_less = new icms_form_elements_Text(_AM_LASTLOGLESS, "user_lastlog_less", 10, 5);

        Call to method __construct from undeclared class \icms_form_elements_Radio
        Open

            $type_radio = new icms_form_elements_Radio(_AM_SHOWTYPE, "user_type", "actv");

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($yim_tray);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($reg_more);

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq)), 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

            $inacttotal = icms_conv_nr2local($member_handler->getUserCount(new icms_db_criteria_Item('level', 0)));

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

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

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $login_name_tray = new icms_form_elements_Tray(_AM_LOGINNAME, "&nbsp;");

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $icq_match = new icms_form_elements_select_Matchoption("", "user_icq_match");

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $yim_text = new icms_form_elements_Text("", "user_yim", 30, 100);

        Call to method __construct from undeclared class \icms_form_elements_Radio
        Open

            $mailok_radio = new icms_form_elements_Radio(_AM_SHOWMAILOK, "user_mailok", "both");

        Reference to static property security from undeclared class \icms
        Open

        } elseif ($op == "submit" & icms::$security->check()) {

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('email', '%' . icms_core_DataFilter::addSlashes(trim($user_email)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', '%' . icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $uname_tray->addElement($uname_text);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $name_text = new icms_form_elements_Text("", "user_name", 30, 60);

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $name_tray = new icms_form_elements_Tray(_AM_REALNAME, "&nbsp;");

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $name_tray->addElement($name_text);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $limit_text = new icms_form_elements_Text(_AM_LIMIT, "limit", 6, 2);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($op_hidden);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($submit_button);

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', '%' . icms_core_DataFilter::addSlashes(trim($user_uname)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name))));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('email', '%' . icms_core_DataFilter::addSlashes(trim($user_email)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

            $acttotal = icms_conv_nr2local($member_handler->getUserCount(new icms_db_criteria_Item('level', 0, '>')));

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $login_name_text = new icms_form_elements_Text("", "user_login_name", 30, 60);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $login_name_tray->addElement($login_name_match);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $login_name_tray->addElement($login_name_text);

        Call to method __construct from undeclared class \icms_form_elements_Hidden
        Open

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

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($msnm_tray);

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('name', '%' . icms_core_DataFilter::addSlashes(trim($user_name)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email))));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim))));

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $aim_tray = new icms_form_elements_Tray(_AM_AIM, "&nbsp;");

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $yim_match = new icms_form_elements_select_Matchoption("", "user_yim_match");

        Reference to undeclared constant \_SUBMIT
        Open

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

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', '%' . icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('name', '%' . icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', '%' . icms_core_DataFilter::addSlashes(trim($user_login_name)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                $criteria->add(new icms_db_criteria_Item('user_from', '%' . icms_core_DataFilter::addSlashes(trim($user_from)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $email_match = new icms_form_elements_select_Matchoption("", "user_email_match");

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $url_text = new icms_form_elements_Text(_AM_URLC, "user_url", 30, 100);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $aim_tray->addElement($aim_text);

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $msnm_tray = new icms_form_elements_Tray(_AM_MSNM, "&nbsp;");

        Call to method addOptionArray from undeclared class \icms_form_elements_Radio
        Open

            $mailok_radio->addOptionArray(array("mailok" => _AM_MAILOK, "mailng" => _AM_MAILNG, "both" => _AM_BOTH));

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($posts_more);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($type_radio);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($order_select);

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', '%' . icms_core_DataFilter::addSlashes(trim($user_uname)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name))));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('email', '%' . icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                $criteria->add(new icms_db_criteria_Item('url', $url . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', '%' . icms_core_DataFilter::addSlashes(trim($user_aim)), 'LIKE'));

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $uname_match = new icms_form_elements_select_Matchoption("", "user_uname_match");

        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);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $lastlog_more = new icms_form_elements_Text(_AM_LASTLOGMORE, "user_lastlog_more", 10, 5);

        Call to method __construct from undeclared class \icms_form_Theme
        Open

            $form = new icms_form_Theme(_AM_FINDUS, "uesr_findform", "admin.php", 'post', TRUE);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($reg_less);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($fct_hidden);

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('name', '%' . icms_core_DataFilter::addSlashes(trim($user_name)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', '%' . icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('email', '%' . icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim))));

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $email_tray->addElement($email_text);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $yim_tray->addElement($yim_match);

        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);

        Call to method addOptionArray from undeclared class \icms_form_elements_Select
        Open

            $order_select->addOptionArray(array("ASC" => _AM_ASC, "DESC" => _AM_DESC));

        Call to method __construct from undeclared class \icms_form_elements_Hidden
        Open

                $group_hidden = new icms_form_elements_Hidden("group", (int) $group);

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim))));

        Call to method checkVarArray from undeclared class \icms_core_DataFilter
        Open

            $clean_POST = icms_core_DataFilter::checkVarArray($_POST, $filter_post, false);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $aim_text = new icms_form_elements_Text("", "user_aim", 30, 100);

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $aim_match = new icms_form_elements_select_Matchoption("", "user_aim_match");

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $msnm_tray->addElement($msnm_match);

        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($posts_less);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($sort_select);

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', '%' . icms_core_DataFilter::addSlashes(trim($user_login_name)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', '%' . icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));

        Reference to static property user from undeclared class \icms
        Open

        if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $name_match = new icms_form_elements_select_Matchoption("", "user_name_match");

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $uname_text = new icms_form_elements_Text("", "user_uname", 30, 60);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $icq_tray->addElement($icq_match);

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $uname_tray = new icms_form_elements_Tray(_AM_UNAME, "&nbsp;");

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $yim_tray->addElement($yim_text);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $name_tray->addElement($name_match);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $reg_less = new icms_form_elements_Text(_AM_REGLESS, "user_reg_less", 10, 5);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $posts_less = new icms_form_elements_Text(_AM_POSTSLESS, "user_posts_less", 10, 5);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $msnm_tray->addElement($msnm_text);

        Call to method __construct from undeclared class \icms_form_elements_Select
        Open

            $sort_select = new icms_form_elements_Select(_AM_SORT, "user_sort");

        Call to method __construct from undeclared class \icms_form_elements_Button
        Open

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

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($limit_text);

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $posts_more = new icms_form_elements_Text(_AM_POSTSMORE, "user_posts_more", 10, 5);

        Call to method __construct from undeclared class \icms_form_elements_Select
        Open

            $order_select = new icms_form_elements_Select(_AM_ORDER, "user_order");

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($email_tray);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($aim_tray);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($mailok_radio);

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', '%' . icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));

        Call to method checkVarArray from undeclared class \icms_core_DataFilter
        Open

            $clean_GET = icms_core_DataFilter::checkVarArray($_GET, $filter_get, false);

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $email_tray = new icms_form_elements_Tray(_AM_EMAIL, "&nbsp;");

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $email_tray->addElement($email_match);

        Call to method addElement from undeclared class \icms_form_elements_Tray
        Open

            $icq_tray->addElement($icq_text);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($lastlog_more);

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('name', '%' . icms_core_DataFilter::addSlashes(trim($user_name)), 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email))));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                $criteria->add(new icms_db_criteria_Item('user_from', '%' . icms_core_DataFilter::addSlashes(trim($user_from)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->add(new icms_db_criteria_Item('posts', (int) $user_posts_less, '<'));

        Call to method setSort from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->setSort($sort);

        Call to method setLimit from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->setLimit($limit);

        Call to method setStart from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->setStart($start);

        Variable $icmsModule is undeclared
        Open

        if (!is_object(icms::$user) || !is_object($icmsModule) || !icms::$user->isAdmin($icmsModule->getVar('mid'))) {

        Call to method handler from undeclared class \icms
        Open

            $member_handler = icms::handler('icms_member');

        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($lastlog_less);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

                $form->addElement($group_hidden);

        Call to method __construct from undeclared class \icms_db_criteria_Compo
        Open

            $criteria = new icms_db_criteria_Compo();

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', '%' . icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('email', '%' . icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->add(new icms_db_criteria_Item('url', $url . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', '%' . icms_core_DataFilter::addSlashes(trim($user_aim)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', '%' . icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm))));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                $criteria->add(new icms_db_criteria_Item('user_intrest', '%' . icms_core_DataFilter::addSlashes(trim($user_intrest)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->add(new icms_db_criteria_Item('user_intrest', '%' . icms_core_DataFilter::addSlashes(trim($user_intrest)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('level', 0, '>'));

        Call to method handler from undeclared class \icms
        Open

                    $member_handler = icms::handler('icms_member');

        Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
        Open

                        $hiddenform .= "<input type='hidden' name='start' value='" . $start . "' />\n";

        Call to method __construct from undeclared class \icms_form_elements_Tray
        Open

            $yim_tray = new icms_form_elements_Tray(_AM_YIM, "&nbsp;");

        Call to method __construct from undeclared class \icms_form_elements_select_Matchoption
        Open

            $msnm_match = new icms_form_elements_select_Matchoption("", "user_msnm_match");

        Call to method __construct from undeclared class \icms_form_elements_Text
        Open

            $reg_more = new icms_form_elements_Text(_AM_REGMORE, "user_reg_more", 10, 5);

        Call to method addOptionArray from undeclared class \icms_form_elements_Select
        Open

            $sort_select->addOptionArray(array("uname" => _AM_UNAME, "login_name" => _AM_LOGINNAME, "email" => _AM_EMAIL, "last_login" => _AM_LASTLOGIN, "user_regdate" => _AM_REGDATE, "posts" => _AM_POSTS));

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($occupation_text);

        Call to method display from undeclared class \icms_form_Theme
        Open

            $form->display();

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', '%' . icms_core_DataFilter::addSlashes(trim($user_uname)), 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('name', '%' . icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', '%' . icms_core_DataFilter::addSlashes(trim($user_login_name)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', '%' . icms_core_DataFilter::addSlashes(trim($user_yim)), 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', '%' . icms_core_DataFilter::addSlashes(trim($user_yim)), 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm)), 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                $criteria->add(new icms_db_criteria_Item('user_intrest', '%' . icms_core_DataFilter::addSlashes(trim($user_intrest)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('level', 0, '>='));

        Reference to undeclared constant \_DELETE
        Open

                echo "<tr class='foot'><td><select name='fct'><option value='users'>" . _DELETE . "</option><option value='mailusers'>" . _AM_SENDMAIL . "</option>";

        Call to method __construct from undeclared class \icms_form_elements_Hidden
        Open

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

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($name_tray);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($login_name_tray);

        Call to method addElement from undeclared class \icms_form_Theme
        Open

            $form->addElement($url_text);

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name))));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('login_name', '%' . icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', '%' . icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('user_regdate', $time, '>'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                $criteria->add(new icms_db_criteria_Item('posts', (int) $user_posts_more, '>'));

        Reference to undeclared constant \_SENDEMAILTO
        Open

                    printf(_SENDEMAILTO, $foundusers[$j]->getVar("uname", "E"));

        Reference to undeclared constant \_SUBMIT
        Open

                echo "</td><td colspan='12'>" . icms::$security->getTokenHTML() . "<input type='submit' value='" . _SUBMIT . "' /></td></tr></table></form>\n";

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('last_login', $time, '<'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                $criteria->add(new icms_db_criteria_Item('posts', (int) $user_posts_less, '<'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('level', 0, '='));

        Reference to static property security from undeclared class \icms
        Open

                echo "</td><td colspan='12'>" . icms::$security->getTokenHTML() . "<input type='submit' value='" . _SUBMIT . "' /></td></tr></table></form>\n";

        null passed to foreach instead of array
        Open

                    foreach ($_POST as $k => $v) {

        Reference to static property security from undeclared class \icms
        Open

                            $hiddenform .= icms::$security->getTokenHTML() . "\n";

        Suspicious type null of a variable or expression used to build a string. (Expected type to be able to cast to a string)
        Open

                        $hiddenform .= "<input type='hidden' name='limit' value='" . $limit . "' />\n";

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));

        Call to method stripSlashesGPC from undeclared class \icms_core_DataFilter
        Open

                            $hiddenform .= "<input type='hidden' name='" . icms_core_DataFilter::htmlSpecialChars($k) . "' value='" . icms_core_DataFilter::htmlSpecialChars(icms_core_DataFilter::stripSlashesGPC($v)) . "' />\n";

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->add(new icms_db_criteria_Item('user_from', '%' . icms_core_DataFilter::addSlashes(trim($user_from)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('user_regdate', $time, '>'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('user_mailok', 1));

        Variable $user_sort is undeclared
        Open

            $sort = (!in_array($user_sort, $validsort)) ? "uname" : $user_sort;

        Reference to undeclared constant \_SENDPMTO
        Open

                    printf(_SENDPMTO, $foundusers[$j]->getVar("uname", "E"));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('last_login', $time, '<'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('user_mailok', 0));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('user_mailok', 0));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('user_mailok', 0, '>='));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('level', 0, '='));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', '%' . icms_core_DataFilter::addSlashes(trim($user_yim)), 'LIKE'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('last_login', $time, '>'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('last_login', $time, '>'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('user_regdate', $time, '<'));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('user_mailok', 1));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('user_mailok', 0, '>='));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                    $criteria->add(new icms_db_criteria_Item('level', 0, '>='));

        Reference to undeclared constant \_VISITWEBSITE
        Open

                        echo "<a href='" . $foundusers[$j]->getVar("url", "E") . "' target='_blank'><img src='" . ICMS_URL . "/images/icons/" . $GLOBALS["icmsConfig"]["language"] . "/www.gif' border='0' alt='" . _VISITWEBSITE . "' /></a>";

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->add(new icms_db_criteria_Item('posts', (int) $user_posts_more, '>'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', '%' . icms_core_DataFilter::addSlashes(trim($user_aim)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('level', 0, '>'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', '%' . icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));

        Reference to undeclared constant \_EDIT
        Open

                    echo "<td align='center'><a href='" . ICMS_MODULES_URL . "/system/admin.php?fct=users&amp;uid=" . $foundusers[$j]->getVar("uid") . "&amp;op=modifyUser'><img src='" . ICMS_IMAGES_SET_URL . "/actions/edit.png' alt=" . _EDIT . " title=" . _EDIT . " /></a></td></tr>\n";

        Call to method htmlSpecialChars from undeclared class \icms_core_DataFilter
        Open

                            $hiddenform .= "<input type='hidden' name='" . icms_core_DataFilter::htmlSpecialChars($k) . "' value='" . icms_core_DataFilter::htmlSpecialChars(icms_core_DataFilter::stripSlashesGPC($v)) . "' />\n";

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                $criteria->add(new icms_db_criteria_Item('user_occ', '%' . icms_core_DataFilter::addSlashes(trim($user_occ)) . '%', 'LIKE'));

        Call to method setOrder from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->setOrder($order);

        Reference to static property security from undeclared class \icms
        Open

            redirect_header('admin.php?fct=findusers', 3, implode('<br />', icms::$security->getErrors()));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_icq', '%' . icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_aim', '%' . icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim))));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm)), 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                $criteria->add(new icms_db_criteria_Item('user_occ', '%' . icms_core_DataFilter::addSlashes(trim($user_occ)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                    $criteria->add(new icms_db_criteria_Item('user_regdate', $time, '<'));

        Call to method handler from undeclared class \icms
        Open

            $member_handler = icms::handler('icms_member');

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_yim', '%' . icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));

        Call to method addSlashes from undeclared class \icms_core_DataFilter
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));

        Call to method add from undeclared class \icms_db_criteria_Compo
        Open

                        $criteria->add(new icms_db_criteria_Item('user_msnm', '%' . icms_core_DataFilter::addSlashes(trim($user_msnm))));

        Call to method __construct from undeclared class \icms_db_criteria_Item
        Open

                $criteria->add(new icms_db_criteria_Item('user_occ', '%' . icms_core_DataFilter::addSlashes(trim($user_occ)) . '%', 'LIKE'));

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

            if (!empty($user_icq)) {
                $match = (!empty($user_icq_match)) ? (int) $user_icq_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('user_icq', icms_core_DataFilter::addSlashes(trim($user_icq)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 1 other location - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 341..363

        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 231.

        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

        Further Reading

        Similar blocks of code found in 2 locations. Consider refactoring.
        Open

            if (!empty($user_msnm)) {
                $match = (!empty($user_msnm_match)) ? (int) $user_msnm_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('user_msnm', icms_core_DataFilter::addSlashes(trim($user_msnm)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 1 other location - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 272..294

        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 231.

        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

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

            if (!empty($user_login_name)) {
                $match = (!empty($user_login_name_match)) ? (int) $user_login_name_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('login_name', icms_core_DataFilter::addSlashes(trim($user_login_name)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 176..198
        htdocs/modules/system/admin/findusers/main.php on lines 199..221
        htdocs/modules/system/admin/findusers/main.php on lines 245..267
        htdocs/modules/system/admin/findusers/main.php on lines 295..317
        htdocs/modules/system/admin/findusers/main.php on lines 318..340

        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 227.

        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

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

            if (!empty($user_uname)) {
                $match = (!empty($user_uname_match)) ? (int) $user_uname_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('uname', icms_core_DataFilter::addSlashes(trim($user_uname)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 199..221
        htdocs/modules/system/admin/findusers/main.php on lines 222..244
        htdocs/modules/system/admin/findusers/main.php on lines 245..267
        htdocs/modules/system/admin/findusers/main.php on lines 295..317
        htdocs/modules/system/admin/findusers/main.php on lines 318..340

        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 227.

        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

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

            if (!empty($user_aim)) {
                $match = (!empty($user_aim_match)) ? (int) $user_aim_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('user_aim', icms_core_DataFilter::addSlashes(trim($user_aim)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 176..198
        htdocs/modules/system/admin/findusers/main.php on lines 199..221
        htdocs/modules/system/admin/findusers/main.php on lines 222..244
        htdocs/modules/system/admin/findusers/main.php on lines 245..267
        htdocs/modules/system/admin/findusers/main.php on lines 318..340

        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 227.

        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

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

            if (!empty($user_yim)) {
                $match = (!empty($user_yim_match)) ? (int) $user_yim_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('user_yim', icms_core_DataFilter::addSlashes(trim($user_yim)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 176..198
        htdocs/modules/system/admin/findusers/main.php on lines 199..221
        htdocs/modules/system/admin/findusers/main.php on lines 222..244
        htdocs/modules/system/admin/findusers/main.php on lines 245..267
        htdocs/modules/system/admin/findusers/main.php on lines 295..317

        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 227.

        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

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

            if (!empty($user_email)) {
                $match = (!empty($user_email_match)) ? (int) $user_email_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('email', icms_core_DataFilter::addSlashes(trim($user_email)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 176..198
        htdocs/modules/system/admin/findusers/main.php on lines 199..221
        htdocs/modules/system/admin/findusers/main.php on lines 222..244
        htdocs/modules/system/admin/findusers/main.php on lines 295..317
        htdocs/modules/system/admin/findusers/main.php on lines 318..340

        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 227.

        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

        Further Reading

        Similar blocks of code found in 6 locations. Consider refactoring.
        Open

            if (!empty($user_name)) {
                $match = (!empty($user_name_match)) ? (int) $user_name_match : XOOPS_MATCH_START;
                switch ($match) {
                    case XOOPS_MATCH_START:
                        $criteria->add(new icms_db_criteria_Item('name', icms_core_DataFilter::addSlashes(trim($user_name)) . '%', 'LIKE'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 5 other locations - About 7 hrs to fix
        htdocs/modules/system/admin/findusers/main.php on lines 176..198
        htdocs/modules/system/admin/findusers/main.php on lines 222..244
        htdocs/modules/system/admin/findusers/main.php on lines 245..267
        htdocs/modules/system/admin/findusers/main.php on lines 295..317
        htdocs/modules/system/admin/findusers/main.php on lines 318..340

        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 227.

        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

        Further Reading

        Identical blocks of code found in 2 locations. Consider refactoring.
        Open

                    while ($counter <= $totalpages) {
                        if ($counter == $currentpage) {
                            $hiddenform .= "<strong>" . $counter . "</strong> ";
                        } elseif (($counter > $currentpage - 4 && $counter < $currentpage + 4) || $counter == 1 || $counter == $totalpages) {
                            if ($counter == $totalpages && $currentpage < $totalpages - 4) {
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 1 other location - About 4 hrs to fix
        htdocs/include/findusers.php on lines 571..586

        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 168.

        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

        Further Reading

        Similar blocks of code found in 3 locations. Consider refactoring.
        Open

            if (!empty($user_reg_more) && is_numeric($user_reg_more)) {
                $f_user_reg_more = (int) trim($user_reg_more);
                $time = time() - (60 * 60 * 24 * $f_user_reg_more);
                if ($time > 0) {
                    $criteria->add(new icms_db_criteria_Item('user_regdate', $time, '<'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 2 other locations - About 40 mins to fix
        htdocs/modules/system/admin/findusers/main.php on lines 374..380
        htdocs/modules/system/admin/findusers/main.php on lines 381..387

        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 94.

        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

        Further Reading

        Similar blocks of code found in 3 locations. Consider refactoring.
        Open

            if (!empty($user_lastlog_less) && is_numeric($user_lastlog_less)) {
                $f_user_lastlog_less = (int) trim($user_lastlog_less);
                $time = time() - (60 * 60 * 24 * $f_user_lastlog_less);
                if ($time > 0) {
                    $criteria->add(new icms_db_criteria_Item('last_login', $time, '>'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 2 other locations - About 40 mins to fix
        htdocs/modules/system/admin/findusers/main.php on lines 374..380
        htdocs/modules/system/admin/findusers/main.php on lines 388..394

        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 94.

        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

        Further Reading

        Similar blocks of code found in 3 locations. Consider refactoring.
        Open

            if (!empty($user_lastlog_more) && is_numeric($user_lastlog_more)) {
                $f_user_lastlog_more = (int) trim($user_lastlog_more);
                $time = time() - (60 * 60 * 24 * $f_user_lastlog_more);
                if ($time > 0) {
                    $criteria->add(new icms_db_criteria_Item('last_login', $time, '<'));
        Severity: Major
        Found in htdocs/modules/system/admin/findusers/main.php and 2 other locations - About 40 mins to fix
        htdocs/modules/system/admin/findusers/main.php on lines 381..387
        htdocs/modules/system/admin/findusers/main.php on lines 388..394

        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 94.

        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

        Further Reading

        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
        Open

            $group_select = new icms_form_elements_select_Group(_AM_GROUPS, "selgroups", NULL, FALSE, 5, TRUE);

        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
        Open

            $form = new icms_form_Theme(_AM_FINDUS, "uesr_findform", "admin.php", 'post', TRUE);

        TRUE, FALSE and NULL must be lowercase; expected "true" but found "TRUE"
        Open

                $foundusers = &$member_handler->getUsersByGroupLink($groups, $criteria, TRUE);

        TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
        Open

            $group_select = new icms_form_elements_select_Group(_AM_GROUPS, "selgroups", NULL, FALSE, 5, TRUE);

        TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
        Open

            $group_select = new icms_form_elements_select_Group(_AM_GROUPS, "selgroups", NULL, FALSE, 5, TRUE);

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

        icms_cp_footer();

        Inline control structures are not allowed
        Open

            if (isset($_POST['filter_get'])) unset($_POST['filter_get']);

        There are no issues that match your filters.

        Category
        Status