ImpressCMS/impresscms

View on GitHub

Showing 1,583 of 47,681 total issues

File prototype.js has 5999 lines of code (exceeds 250 allowed). Consider refactoring.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

/* Prototype JavaScript framework, version 1.7.3
* (c) 2005-2010 Sam Stephenson
*
* Prototype is freely distributable under the terms of an MIT-style license.
* For details, see the Prototype web site: http://www.prototypejs.org/
Severity: Major
Found in htdocs/install/prototype.js - About 2 wks to fix

    Function icms_module_update has a Cognitive Complexity of 391 (exceeds 5 allowed). Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

    function icms_module_update($dirname) {
    global $icmsConfig, $icmsAdminTpl;
     
    $msgs = array();
     
     
    Severity: Minor
    Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 1 wk to fix

    Function icms_module_update has a Cognitive Complexity of 376 (exceeds 5 allowed). Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

    function icms_module_update($dirname) {
    $dirname = trim($dirname);
    $db =& icms_db_Factory::instance();
    $module_handler = icms::handler('icms_module');
    $module =& $module_handler->getByDirname($dirname);
    Severity: Minor
    Found in htdocs/install/modulesadmin.php - About 1 wk to fix

    Function xoops_module_install has a Cognitive Complexity of 360 (exceeds 5 allowed). Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

    function xoops_module_install($dirname) {
    $dirname = trim($dirname);
    $db =& icms_db_Factory::instance();
    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
    $module_handler = icms::handler('icms_module');
    Severity: Minor
    Found in htdocs/install/modulesadmin.php - About 1 wk to fix

    Function xoops_module_install has a Cognitive Complexity of 344 (exceeds 5 allowed). Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

    function xoops_module_install($dirname) {
    global $icmsConfig, $icmsAdminTpl;
    $dirname = trim($dirname);
    $db = icms_db_Factory::instance();
    $reservedTables = array('avatar',
    Severity: Minor
    Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 1 wk to fix

    File functions.php has 1333 lines of code (exceeds 250 allowed). Consider refactoring.
    Open
    • Open
    • Confirmed
    • Invalid
    • Wontfix
    Cancel

    <?php
    // $Id: functions.php 1032 2007-09-09 13:01:16Z dugris $
    // ------------------------------------------------------------------------ //
    // XOOPS - PHP Content Management System //
    // Copyright (c) 2000 XOOPS.org //
    Severity: Major
    Found in htdocs/include/functions.php - About 3 days to fix

      Function xoops_module_uninstall has a Cognitive Complexity of 165 (exceeds 5 allowed). Consider refactoring.
      Open
      • Open
      • Confirmed
      • Invalid
      • Wontfix
      Cancel

      function xoops_module_uninstall($dirname) {
      global $icmsConfig, $icmsAdminTpl;
       
      $reservedTables = array('avatar',
      'avatar_users_link',
      Severity: Minor
      Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 3 days to fix

      Function icms_cp_header has a Cognitive Complexity of 161 (exceeds 5 allowed). Consider refactoring.
      Open
      • Open
      • Confirmed
      • Invalid
      • Wontfix
      Cancel

      function icms_cp_header() {
      global $icmsConfig, $icmsConfigPlugins, $icmsConfigPersona, $xoopsModule, $xoopsTpl, $xoopsOption, $icmsTheme, $xoTheme, $icmsConfigMultilang, $icmsAdminTpl;
       
      icms::$logger->stopTime('Module init');
      icms::$logger->startTime('ImpressCMS CP Output Init');
      Severity: Minor
      Found in htdocs/include/cp_functions.php - About 3 days to fix

      File modulesadmin.php has 1190 lines of code (exceeds 250 allowed). Consider refactoring.
      Open
      • Open
      • Confirmed
      • Invalid
      • Wontfix
      Cancel

      <?php
      // $Id: modulesadmin.php 12403 2014-01-26 21:35:08Z skenow $
      // ------------------------------------------------------------------------ //
      // XOOPS - PHP Content Management System //
      // Copyright (c) 2000 XOOPS.org //
      Severity: Major
      Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 3 days to fix

        Function AdMenu has a Cognitive Complexity of 145 (exceeds 5 allowed). Consider refactoring.
        Open
        • Open
        • Confirmed
        • Invalid
        • Wontfix
        Cancel

        function AdMenu(id) { this.type = "horizontal"; this.position = { "level1": { "top": 0, "left": 0}, "levelX": { "top": 0, "left": 0}
        }
        this.zIndex = { "visible": 1, "hidden": -1
        }
        this.arrow1 = null; this.arrow2 = null; this.browser = { "ie": Boolean(document.body.currentStyle), "ie5": (navigator.appVersion.indexOf("MSIE 5.5") != -1 || navigator.appVersion.indexOf("MSIE 5.0") != -1)
        Severity: Minor
        Found in htdocs/include/icms_rtl.js - About 2 days to fix

        File main.php has 1044 lines of code (exceeds 250 allowed). Consider refactoring.
        Open
        • Open
        • Confirmed
        • Invalid
        • Wontfix
        Cancel

        <?php
        // $Id: main.php 12399 2014-01-25 17:02:01Z skenow $
        // ------------------------------------------------------------------------ //
        // XOOPS - PHP Content Management System //
        // Copyright (c) 2000 XOOPS.org //
        Severity: Major
        Found in htdocs/modules/system/admin/tplsets/main.php - About 2 days to fix

          Method make_data has 490 lines of code (exceeds 25 allowed). Consider refactoring.
          Open
          • Open
          • Confirmed
          • Invalid
          • Wontfix
          Cancel

          function make_data(&$dbm, &$cm, $adminname, $adminlogin_name, $adminpass, $adminmail, $language, $gruops) {
           
          $tables = array();
           
          // data for table 'groups_users_link'
          Severity: Major
          Found in htdocs/install/makedata.php - About 2 days to fix

            Function jdate has a Cognitive Complexity of 119 (exceeds 5 allowed). Consider refactoring.
            Open
            • Open
            • Confirmed
            • Invalid
            • Wontfix
            Cancel

            function jdate($type,$maket='now') {
            global $icmsConfig;
            icms_loadLanguageFile('core', 'calendar');
            $result='';
            if ($maket=='now') {
            Severity: Minor
            Found in htdocs/include/jalali.php - About 2 days to fix

            File main.php has 945 lines of code (exceeds 250 allowed). Consider refactoring.
            Open
            • Open
            • Confirmed
            • Invalid
            • Wontfix
            Cancel

            <?php
            // $Id: main.php 12460 2014-06-25 03:35:37Z skenow $
            // ------------------------------------------------------------------------ //
            // XOOPS - PHP Content Management System //
            // Copyright (c) 2000 XOOPS.org //
            Severity: Major
            Found in htdocs/modules/system/admin/images/main.php - About 2 days to fix

              Method xoops_module_install has 413 lines of code (exceeds 25 allowed). Consider refactoring.
              Open
              • Open
              • Confirmed
              • Invalid
              • Wontfix
              Cancel

              function xoops_module_install($dirname) {
              global $icmsConfig, $icmsAdminTpl;
              $dirname = trim($dirname);
              $db = icms_db_Factory::instance();
              $reservedTables = array('avatar',
              Severity: Major
              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 2 days to fix

                Method icms_module_update has 406 lines of code (exceeds 25 allowed). Consider refactoring.
                Open
                • Open
                • Confirmed
                • Invalid
                • Wontfix
                Cancel

                function icms_module_update($dirname) {
                global $icmsConfig, $icmsAdminTpl;
                 
                $msgs = array();
                 
                 
                Severity: Major
                Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 2 days to fix

                  Method icms_module_update has 393 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open
                  • Open
                  • Confirmed
                  • Invalid
                  • Wontfix
                  Cancel

                  function icms_module_update($dirname) {
                  $dirname = trim($dirname);
                  $db =& icms_db_Factory::instance();
                  $module_handler = icms::handler('icms_module');
                  $module =& $module_handler->getByDirname($dirname);
                  Severity: Major
                  Found in htdocs/install/modulesadmin.php - About 1 day to fix

                    Method xoops_module_install has 391 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open
                    • Open
                    • Confirmed
                    • Invalid
                    • Wontfix
                    Cancel

                    function xoops_module_install($dirname) {
                    $dirname = trim($dirname);
                    $db =& icms_db_Factory::instance();
                    $reservedTables = array('avatar', 'avatar_users_link', 'block_module_link', 'xoopscomments', 'config', 'configcategory', 'configoption', 'image', 'imagebody', 'imagecategory', 'imgset', 'imgset_tplset_link', 'imgsetimg', 'groups','groups_users_link','group_permission', 'online', 'priv_msgs', 'ranks', 'session', 'smiles', 'users', 'newblocks', 'modules', 'tplfile', 'tplset', 'tplsource', 'xoopsnotifications');
                    $module_handler = icms::handler('icms_module');
                    Severity: Major
                    Found in htdocs/install/modulesadmin.php - About 1 day to fix

                      File modulesadmin.php has 811 lines of code (exceeds 250 allowed). Consider refactoring.
                      Open
                      • Open
                      • Confirmed
                      • Invalid
                      • Wontfix
                      Cancel

                      <?php
                      /**
                      * Installer tables creation page
                      *
                      * See the enclosed file license.txt for licensing information.
                      Severity: Major
                      Found in htdocs/install/modulesadmin.php - About 1 day to fix

                        File browser.php has 802 lines of code (exceeds 250 allowed). Consider refactoring.
                        Open
                        • Open
                        • Confirmed
                        • Invalid
                        • Wontfix
                        Cancel

                        <?php
                        /**
                        * Images Manager - Image Browser
                        *
                        * Used to create an instance of the image manager in a popup window to use with the dhmtl textarea object
                        Severity: Major
                        Found in htdocs/modules/system/admin/images/browser.php - About 1 day to fix

                          File protector.php has 730 lines of code (exceeds 250 allowed). Consider refactoring.
                          Open
                          • Open
                          • Confirmed
                          • Invalid
                          • Wontfix
                          Cancel

                          <?php
                           
                          class Protector {
                          var $mydirname;
                          var $_conn = null;

                            Function protector_postcommon has a Cognitive Complexity of 73 (exceeds 5 allowed). Consider refactoring.
                            Open
                            • Open
                            • Confirmed
                            • Invalid
                            • Wontfix
                            Cancel

                            function protector_postcommon() {
                            global $xoopsModule;
                             
                            // configs writable check
                            if (@$_SERVER['REQUEST_URI'] == '/admin.php' && !is_writable(dirname(__DIR__) . '/configs')) {

                            Function queryFromFile has a Cognitive Complexity of 72 (exceeds 5 allowed). Consider refactoring.
                            Open
                            • Open
                            • Confirmed
                            • Invalid
                            • Wontfix
                            Cancel

                            public function queryFromFile($sql_file_path) {
                            $tables = array();
                             
                            if (!file_exists($sql_file_path)) {
                            return false;
                            Severity: Minor
                            Found in htdocs/install/class/dbmanager.php - About 1 day to fix

                            File preferences.php has 632 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open
                            • Open
                            • Confirmed
                            • Invalid
                            • Wontfix
                            Cancel

                            <?php
                            // $Id: preferences.php 12227 2013-07-19 08:07:21Z fiammy $
                            // %%%%%% Admin Module Name AdminGroup %%%%%
                            // dont change
                            if (!defined('_AM_DBUPDATED')) {
                            Severity: Major
                            Found in htdocs/modules/system/language/english/admin/preferences.php - About 1 day to fix

                              File preferences.php has 629 lines of code (exceeds 250 allowed). Consider refactoring.
                              Open
                              • Open
                              • Confirmed
                              • Invalid
                              • Wontfix
                              Cancel

                              <?php
                              // 08/2008 Updated and adapted for ImpressCMS by evoc - webmaster of www.impresscms.it
                              // Published by ImpressCMS Italian Official Support Site - www.impresscms.it
                              // Updated by evoc - webmaster of ImpressCMS
                              // Updated by Ianez - Xoops Italia Staff
                              Severity: Major
                              Found in htdocs/modules/system/language/italiano/admin/preferences.php - About 1 day to fix

                                File preferences.php has 623 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open
                                • Open
                                • Confirmed
                                • Invalid
                                • Wontfix
                                Cancel

                                <?php
                                // $Id: blauer-fisch $
                                //%%%%%% Admin Module Name AdminGroup %%%%%
                                // dont change
                                if (!defined('_AM_DBUPDATED')) {define("_AM_DBUPDATED","数据库更新成功!");}
                                Severity: Major
                                Found in htdocs/modules/system/language/schinese/admin/preferences.php - About 1 day to fix

                                  File preferences.php has 593 lines of code (exceeds 250 allowed). Consider refactoring.
                                  Open
                                  • Open
                                  • Confirmed
                                  • Invalid
                                  • Wontfix
                                  Cancel

                                  <?php
                                  // $Id: preferences.php 9546 2009-11-14 12:16:02Z Phoenyx $
                                  //%%%%%% Admin Module Name AdminGroup %%%%%
                                  // dont change
                                  if(!defined('_AM_DBUPDATED')){define("_AM_DBUPDATED","Database succesvol bijgewerkt!");}
                                  Severity: Major
                                  Found in htdocs/modules/system/language/nederlands/admin/preferences.php - About 1 day to fix

                                    File update-112-to-122.php has 580 lines of code (exceeds 250 allowed). Consider refactoring.
                                    Open
                                    • Open
                                    • Confirmed
                                    • Invalid
                                    • Wontfix
                                    Cancel

                                    <?php
                                    /**
                                    * DataBase Update Functions - 1.1.2 to 1.2.2 release
                                    *
                                    * @copyright The ImpressCMS Project http://www.impresscms.org/
                                    Severity: Major
                                    Found in htdocs/modules/system/include/update-112-to-122.php - About 1 day to fix

                                      File main.php has 559 lines of code (exceeds 250 allowed). Consider refactoring.
                                      Open
                                      • Open
                                      • Confirmed
                                      • Invalid
                                      • Wontfix
                                      Cancel

                                      <?php
                                      // $Id: main.php 12455 2014-06-24 09:30:49Z sato-san $
                                      // ------------------------------------------------------------------------ //
                                      // XOOPS - PHP Content Management System //
                                      // Copyright (c) 2000 XOOPS.org //
                                      Severity: Major
                                      Found in htdocs/modules/system/admin/preferences/main.php - About 1 day to fix

                                        Method icms_cp_header has 234 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open
                                        • Open
                                        • Confirmed
                                        • Invalid
                                        • Wontfix
                                        Cancel

                                        function icms_cp_header() {
                                        global $icmsConfig, $icmsConfigPlugins, $icmsConfigPersona, $xoopsModule, $xoopsTpl, $xoopsOption, $icmsTheme, $xoTheme, $icmsConfigMultilang, $icmsAdminTpl;
                                         
                                        icms::$logger->stopTime('Module init');
                                        icms::$logger->startTime('ImpressCMS CP Output Init');
                                        Severity: Major
                                        Found in htdocs/include/cp_functions.php - About 1 day to fix

                                          File system_blocks.php has 556 lines of code (exceeds 250 allowed). Consider refactoring.
                                          Open
                                          • Open
                                          • Confirmed
                                          • Invalid
                                          • Wontfix
                                          Cancel

                                          <?php
                                           
                                          // $Id: system_blocks.php 12313 2013-09-15 21:14:35Z skenow $
                                          // ------------------------------------------------------------------------ //
                                          // XOOPS - PHP Content Management System //
                                          Severity: Major
                                          Found in htdocs/modules/system/blocks/system_blocks.php - About 1 day to fix

                                            Function protector_oninstall_base has a Cognitive Complexity of 58 (exceeds 5 allowed). Consider refactoring.
                                            Open
                                            • Open
                                            • Confirmed
                                            • Invalid
                                            • Wontfix
                                            Cancel

                                            function protector_oninstall_base($module, $mydirname) {
                                            // transations on module install
                                            global $ret; // TODO :-D
                                             
                                            if (!is_array($ret)) $ret = array ();

                                            Function setDocument has 215 lines of code (exceeds 25 allowed). Consider refactoring.
                                            Open
                                            • Open
                                            • Confirmed
                                            • Invalid
                                            • Wontfix
                                            Cancel

                                            setDocument = Sizzle.setDocument = function( node ) {
                                            var hasCompare,
                                            doc = node ? node.ownerDocument || node : preferredDoc,
                                            parent = doc.defaultView;
                                             
                                             
                                            Severity: Major
                                            Found in htdocs/install/prototype.js - About 1 day to fix

                                              Method xoops_module_uninstall has 208 lines of code (exceeds 25 allowed). Consider refactoring.
                                              Open
                                              • Open
                                              • Confirmed
                                              • Invalid
                                              • Wontfix
                                              Cancel

                                              function xoops_module_uninstall($dirname) {
                                              global $icmsConfig, $icmsAdminTpl;
                                               
                                              $reservedTables = array('avatar',
                                              'avatar_users_link',
                                              Severity: Major
                                              Found in htdocs/modules/system/admin/modulesadmin/modulesadmin.php - About 1 day to fix

                                                File xoops.js has 512 lines of code (exceeds 250 allowed). Consider refactoring.
                                                Open
                                                • Open
                                                • Confirmed
                                                • Invalid
                                                • Wontfix
                                                Cancel

                                                if ( typeof window.$ != 'function' ) {
                                                function $() {
                                                var elements = new Array();
                                                 
                                                for (var i = 0; i < arguments.length; i++) {
                                                Severity: Major
                                                Found in htdocs/include/xoops.js - About 1 day to fix

                                                  Function Enumerable has 206 lines of code (exceeds 25 allowed). Consider refactoring.
                                                  Open
                                                  • Open
                                                  • Confirmed
                                                  • Invalid
                                                  • Wontfix
                                                  Cancel

                                                  var Enumerable = (function() {
                                                  function each(iterator, context) {
                                                  try {
                                                  this._each(iterator, context);
                                                  } catch (e) {
                                                  Severity: Major
                                                  Found in htdocs/install/prototype.js - About 1 day to fix

                                                    Function formatTimestamp has a Cognitive Complexity of 52 (exceeds 5 allowed). Consider refactoring.
                                                    Open
                                                    • Open
                                                    • Confirmed
                                                    • Invalid
                                                    • Wontfix
                                                    Cancel

                                                    function formatTimestamp($time, $format = "l", $timeoffset = null)
                                                    {
                                                    global $icmsConfig;
                                                     
                                                    $format_copy = $format;
                                                    Severity: Minor
                                                    Found in htdocs/include/functions.php - About 1 day to fix

                                                    File makedata.php has 503 lines of code (exceeds 250 allowed). Consider refactoring.
                                                    Open
                                                    • Open
                                                    • Confirmed
                                                    • Invalid
                                                    • Wontfix
                                                    Cancel

                                                    <?php
                                                    /*
                                                    You may not change or alter any portion of this comment or credits
                                                    of supporting developers from this source code or any supporting source code
                                                    which is considered copyrighted (c) material of the original comment or credit authors.
                                                    Severity: Major
                                                    Found in htdocs/install/makedata.php - About 1 day to fix

                                                      File findusers.php has 498 lines of code (exceeds 250 allowed). Consider refactoring.
                                                      Open
                                                      • Open
                                                      • Confirmed
                                                      • Invalid
                                                      • Wontfix
                                                      Cancel

                                                      <?php
                                                      /**
                                                      * Finds users
                                                      *
                                                      * @copyright The XOOPS project http://www.xoops.org/
                                                      Severity: Minor
                                                      Found in htdocs/include/findusers.php - About 7 hrs to fix

                                                        Function xoops_module_update_system has a Cognitive Complexity of 50 (exceeds 5 allowed). Consider refactoring.
                                                        Open
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        function xoops_module_update_system(&$module, $oldversion = null, $dbVersion = null) {
                                                        global $xoTheme;
                                                         
                                                        $from_112 = $abortUpdate = false;
                                                         
                                                         
                                                        Severity: Minor
                                                        Found in htdocs/modules/system/include/update.php - About 7 hrs to fix

                                                        File index.php has 485 lines of code (exceeds 250 allowed). Consider refactoring.
                                                        Open
                                                        • Open
                                                        • Confirmed
                                                        • Invalid
                                                        • Wontfix
                                                        Cancel

                                                        <?php
                                                        /**
                                                        * Upgrade script of ImpressCMS 1.0 to 1.1
                                                        *
                                                        * @copyright http://www.impresscms.org/ The ImpressCMS Project
                                                        Severity: Minor
                                                        Found in upgrade/upd-icms-1.0-to-1.1/index.php - About 7 hrs to fix

                                                          Method imanager_listimg has 185 lines of code (exceeds 25 allowed). Consider refactoring.
                                                          Open
                                                          • Open
                                                          • Confirmed
                                                          • Invalid
                                                          • Wontfix
                                                          Cancel

                                                          function imanager_listimg($imgcat_id, $start = 0) {
                                                          global $icmsTpl, $target, $type, $query, $limit;
                                                           
                                                          if (!is_object(icms::$user)) {
                                                          $groups = array(ICMS_GROUP_ANONYMOUS);
                                                          Severity: Major
                                                          Found in htdocs/modules/system/admin/images/browser.php - About 7 hrs to fix

                                                            File edituser.php has 463 lines of code (exceeds 250 allowed). Consider refactoring.
                                                            Open
                                                            • Open
                                                            • Confirmed
                                                            • Invalid
                                                            • Wontfix
                                                            Cancel

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

                                                              Function check has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
                                                              Open
                                                              • Open
                                                              • Confirmed
                                                              • Invalid
                                                              • Wontfix
                                                              Cancel

                                                              function check($post = true, $area = '', $allow_repost = true) {
                                                              global $xoopsModule;
                                                               
                                                              $this->_errors = array ();
                                                               
                                                               

                                                              Function b_system_waiting_show has a Cognitive Complexity of 46 (exceeds 5 allowed). Consider refactoring.
                                                              Open
                                                              • Open
                                                              • Confirmed
                                                              • Invalid
                                                              • Wontfix
                                                              Cancel

                                                              function b_system_waiting_show($options) {
                                                              global $icmsConfig;
                                                               
                                                              $userlang = $icmsConfig['language'] ;
                                                               
                                                               
                                                              Severity: Minor
                                                              Found in htdocs/modules/system/blocks/system_waiting.php - About 7 hrs to fix

                                                              File main.php has 461 lines of code (exceeds 250 allowed). Consider refactoring.
                                                              Open
                                                              • Open
                                                              • Confirmed
                                                              • Invalid
                                                              • Wontfix
                                                              Cancel

                                                              <?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

                                                                Method imanager_listimg has 176 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                Open
                                                                • Open
                                                                • Confirmed
                                                                • Invalid
                                                                • Wontfix
                                                                Cancel

                                                                function imanager_listimg($imgcat_id, $start = 0) {
                                                                global $icmsAdminTpl, $query, $limit;
                                                                 
                                                                if (!is_object(icms::$user)) {
                                                                $groups = array(ICMS_GROUP_ANONYMOUS);
                                                                Severity: Major
                                                                Found in htdocs/modules/system/admin/images/main.php - About 7 hrs to fix

                                                                  Method imanager_index has 173 lines of code (exceeds 25 allowed). Consider refactoring.
                                                                  Open
                                                                  • Open
                                                                  • Confirmed
                                                                  • Invalid
                                                                  • Wontfix
                                                                  Cancel

                                                                  function imanager_index($imgcat_id = NULL) {
                                                                  global $icmsAdminTpl, $icmsConfig, $limit;
                                                                   
                                                                  if (!is_object(icms::$user)) {
                                                                  $groups = array(ICMS_GROUP_ANONYMOUS);
                                                                  Severity: Major
                                                                  Found in htdocs/modules/system/admin/images/main.php - About 6 hrs to fix

                                                                    Function apply_conf has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                                                                    Open
                                                                    • Open
                                                                    • Confirmed
                                                                    • Invalid
                                                                    • Wontfix
                                                                    Cancel

                                                                    private function apply_conf() {
                                                                    $db = $GLOBALS['xoopsDB'];
                                                                    if (getDbValue($db, 'configcategory', 'confcat_id', ' confcat_name="_MD_AM_CONTMANAGER"') != 0){return true;}
                                                                    $db->queryF(" INSERT INTO " . $db->prefix("configcategory") . " (confcat_id, confcat_name) VALUES ('9', '_MD_AM_CONTMANAGER')");
                                                                    if (getDbValue($db, 'configcategory', 'confcat_id', ' confcat_name="_MD_AM_PERSON"') != 0){return true;}
                                                                    Severity: Minor
                                                                    Found in upgrade/upd-icms-1.0-to-1.1/index.php - About 6 hrs to fix

                                                                    Function check_uploaded_files has a Cognitive Complexity of 45 (exceeds 5 allowed). Consider refactoring.
                                                                    Open
                                                                    • Open
                                                                    • Confirmed
                                                                    • Invalid
                                                                    • Wontfix
                                                                    Cancel

                                                                    function check_uploaded_files() {
                                                                    if ($this->_done_badext)
                                                                    return $this->_safe_badext;
                                                                    else
                                                                    $this->_done_badext = true;
                                                                    Severity
                                                                    Category