e107inc/e107

View on GitHub

Showing 571 of 6,975 total issues

File form_handler.php has 5402 lines of code (exceeds 2000 allowed). Consider refactoring.
Open

<?php
/*
 * e107 website system
 *
 * Copyright (C) 2008-2012 e107 Inc (e107.org)
Severity: Major
Found in e107_handlers/form_handler.php - About 1 wk to fix

    File admin_ui.php has 5070 lines of code (exceeds 2000 allowed). Consider refactoring.
    Open

    <?php
    /*
     * e107 website system
     *
     * Copyright (C) 2008-2012 e107 Inc (e107.org)
    Severity: Major
    Found in e107_handlers/admin_ui.php - About 1 wk to fix

      File plugin_class.php has 3572 lines of code (exceeds 2000 allowed). Consider refactoring.
      Open

      <?php
      /*
       * e107 website system
       *
       * Copyright (C) 2008-2013 e107 Inc (e107.org)
      Severity: Major
      Found in e107_handlers/plugin_class.php - About 4 days to fix

        File e107_class.php has 3520 lines of code (exceeds 2000 allowed). Consider refactoring.
        Open

        <?php
        /*
         * e107 website system
         *
         * Copyright (C) 2008-2012 e107 Inc (e107.org)
        Severity: Major
        Found in e107_handlers/e107_class.php - About 4 days to fix

          File e_parse_class.php has 3508 lines of code (exceeds 2000 allowed). Consider refactoring.
          Open

          <?php
          /*
          * e107 website system
          *
          * Copyright (C) 2008-2016 e107 Inc (e107.org)
          Severity: Major
          Found in e107_handlers/e_parse_class.php - About 4 days to fix

            File application.php has 2980 lines of code (exceeds 2000 allowed). Consider refactoring.
            Open

            <?php
            /*
             * e107 website system
             *
             * Copyright (C) 2008-2012 e107 Inc (e107.org)
            Severity: Major
            Found in e107_handlers/application.php - About 3 days to fix

              File image.php has 2619 lines of code (exceeds 2000 allowed). Consider refactoring.
              Open

              <?php
              /*
               * e107 website system
               *
               * Copyright (C) 2008-2009 e107 Inc (e107.org)
              Severity: Major
              Found in e107_admin/image.php - About 2 days to fix

                File model_class.php has 2131 lines of code (exceeds 2000 allowed). Consider refactoring.
                Open

                <?php
                /*
                 * e107 website system
                 *
                 * Copyright (C) 2008-2010 e107 Inc (e107.org)
                Severity: Major
                Found in e107_handlers/model_class.php - About 5 hrs to fix

                  Consider simplifying this complex logical expression.
                  Open

                            if(($this->curLayout == 'legacyCustom' || $this->curLayout=='legacyDefault') && (isset($CUSTOMHEADER) || isset($CUSTOMFOOTER)) )  // 0.6 themes.
                          {
                               if($this->curLayout == 'legacyCustom')
                              {
                                  $HEADER = ($CUSTOMHEADER) ? $CUSTOMHEADER : $HEADER;
                  Severity: Critical
                  Found in e107_handlers/menumanager_class.php - About 3 hrs to fix

                    File admin.php has 2005 lines of code (exceeds 2000 allowed). Consider refactoring.
                    Open

                    <?php
                    /*
                     * e107 website system
                     *
                     * Copyright (C) 2008-2017 e107 Inc (e107.org)
                    Severity: Major
                    Found in e107_plugins/download/includes/admin.php - About 2 hrs to fix

                      Consider simplifying this complex logical expression.
                      Open

                              if(defined('e_PAGE_LANGUAGE') && ($detect_language = $this->isValid(e_PAGE_LANGUAGE))) // page specific override.
                              {
                                  $doNothing = '';
                                  // Do nothing as $detect_language is set.
                              }
                      Severity: Critical
                      Found in e107_handlers/language_class.php - About 1 hr to fix

                        Consider simplifying this complex logical expression.
                        Open

                                        if(stripos($line, 'no such address') !== false
                                            || stripos($line, 'Recipient address rejected') !== false
                                            || stripos($line, 'User unknown in virtual alias table') !== false)
                                        {
                                            return '5.1.1';
                        Severity: Critical
                        Found in e107_handlers/bounce_handler.php - About 1 hr to fix

                          Method _modifyListQrySearch has 16 arguments (exceeds 7 allowed). Consider refactoring.
                          Open

                              public function _modifyListQrySearch($listQry, $searchTerm, $filterOptions, string $tablePath,  string $tableFrom, string $primaryName, $raw, $orderField, $qryAsc, $forceFrom, int $qryFrom, $forceTo, int $perPage, $qryField,  $isfilter, $handleAction)
                          Severity: Major
                          Found in e107_handlers/admin_ui.php - About 1 hr to fix

                            Consider simplifying this complex logical expression.
                            Open

                                    if(empty($code)
                                    || empty($this->editableCodes)
                                    || empty($this->editableCodes['shortcodes'][$lcode])
                                    || !isset($this->editableCodes['perms'])
                                    || empty($this->editableCodes['table'])
                            Severity: Critical
                            Found in e107_handlers/shortcode_handler.php - About 1 hr to fix

                              Method sendemail has 12 arguments (exceeds 7 allowed). Consider refactoring.
                              Open

                              function sendemail($send_to, $subject, $message, $to_name='', $send_from='', $from_name='', $attachments='', $Cc='', $Bcc='', $returnpath='', $returnreceipt=false,$inline ='')
                              Severity: Major
                              Found in e107_handlers/mail.php - About 1 hr to fix

                                Method user_extended_modify has 12 arguments (exceeds 7 allowed). Consider refactoring.
                                Open

                                    function user_extended_modify($id, $name, $text, $type, $parms, $values, $default, $required, $read, $write, $applicable, $parent)
                                Severity: Major
                                Found in e107_handlers/user_extended_class.php - About 1 hr to fix

                                  Method user_extended_add has 12 arguments (exceeds 7 allowed). Consider refactoring.
                                  Open

                                      function user_extended_add($name, $text='', $type='', $parms='', $values='', $default='', $required='', $read='', $write='', $applicable='', $order='', $parent='')
                                  Severity: Major
                                  Found in e107_handlers/user_extended_class.php - About 1 hr to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if(!is_array($info) || ($info['user_admin'] == 1 && (!defined('ADMINPERMS') || ADMINPERMS !== '0')) || ((!defined('ADMINPERMS') || ADMINPERMS !== '0') && !getperms('4')))
                                                    {
                                                        e107::redirect();
                                                        exit();
                                                    }
                                    Severity: Major
                                    Found in usersettings.php - About 1 hr to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                              if(($ForceCache != false ) || ($syscache == false && $this->UserCacheActive) || ($syscache == true && $this->SystemCacheActive) && !e107::getParser()->checkHighlighting())
                                              {
                                                  $cache_file = (isset($this) && $this instanceof ecache ? $this->cache_fname($CacheTag, $syscache) : self::cache_fname($CacheTag, $syscache));
                                                  @file_put_contents($cache_file, ($bRaw? $Data : self::CACHE_PREFIX.$Data) );
                                                  @chmod($cache_file, 0755); //Cache should not be world-writeable
                                      Severity: Major
                                      Found in e107_handlers/cache_handler.php - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if(($ForcedCheck != false ) || ($syscache == false && $this->UserCacheActive) || ($syscache == true && $this->SystemCacheActive) && !e107::getParser()->checkHighlighting())
                                                {
                                                    $cache_file = (isset($this) && $this instanceof ecache ? $this->cache_fname($CacheTag, $syscache) : self::cache_fname($CacheTag, $syscache));
                                        
                                                    if(file_exists($cache_file))
                                        Severity: Major
                                        Found in e107_handlers/cache_handler.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language