e107inc/e107

View on GitHub

Showing 6,972 of 6,973 total issues

File form_handler.php has 5385 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 2614 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 2130 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_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

                                  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

                                    Consider simplifying this complex logical expression.
                                    Open

                                            if((strpos($eng_line,"[link=")!==FALSE && strpos($trans_line,"[link=")===FALSE) || (strpos($eng_line,"[b]")!==FALSE && strpos($trans_line,"[b]")===FALSE))
                                            {
                                                $error[] = $def. ": ".LAN_CHECK_30;
                                            }
                                            elseif((strpos($eng_line,"[")!==FALSE && strpos($trans_line,"[")===FALSE) || (strpos($eng_line,"]")!==FALSE && strpos($trans_line, "]")===FALSE))
                                    Severity: Major
                                    Found in e107_admin/lancheck.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