e107inc/e107

View on GitHub

Showing 571 of 6,973 total issues

Avoid deeply nested control flow statements.
Open

                                    if (strpos($lbrks, $sp[$i - 1]) !== false)
                                    {
                                        break;
                                    }
Severity: Major
Found in e107_handlers/e_parse_class.php - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                                switch($data['method'])
                                {
                                    //returns array('caption'=>'', 'text'=>'');
                                    case 'form':
                                        if(method_exists($class, "event_{$data['method']}"))
    Severity: Major
    Found in e107_handlers/event_class.php - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                                          while (!$found && (count($code_stack) != 0))
                                          {
                                              switch ($code_stack[0]['type'])
                                              {
                                                  case 'text' :
      Severity: Major
      Found in e107_handlers/bbcode_handler.php - About 45 mins to fix

        Method form_textarea has 9 arguments (exceeds 7 allowed). Consider refactoring.
        Open

            public function form_textarea($form_name, $form_columns, $form_rows, $form_value, $form_js = '', $form_style = '', $form_wrap = '', $form_readonly = '', $form_tooltip = '') {
        Severity: Major
        Found in e107_handlers/form_handler.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if ($bbword == 'code') $nopro = TRUE;
          Severity: Major
          Found in e107_handlers/bbcode_handler.php - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                                    if(!unlink($dir . $obj))
                                    {
                                        return false;
                                    }
            Severity: Major
            Found in e107_handlers/file_class.php - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                      if(!$disallow_logs) $log->logMessage('Backup of <strong>'.$this->alias.' ('.$this->prefid.')</strong> successfully created.', E_MESSAGE_DEBUG, E_MESSAGE_SUCCESS, $session_messages);
              Severity: Major
              Found in e107_handlers/pref_class.php - About 45 mins to fix

                Method form_comment has 9 arguments (exceeds 7 allowed). Consider refactoring.
                Open

                    function form_comment($action, $table, $id, $subject, $content_type, $return = FALSE, $rating = FALSE, $tablerender = TRUE,$pid = false)
                Severity: Major
                Found in e107_handlers/comment_class.php - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                                      if (isset($fd[$i + 1]))
                                                      {
                                                          $i++;
                                                          $defs['default'] = $fd[$i];
                                                      }
                  Severity: Major
                  Found in e107_handlers/db_table_admin_class.php - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                                    if(!class_exists($val. '_latest'))
                                                    {
                                                        trigger_error('<strong>' .$val . '</strong> is using a deprecated e_latest method. See plugin: _blank/e_dashboard.php ', E_USER_DEPRECATED);
                    
                                                        $oldconfigs[$val] = admin_shortcodes::legacyToConfig($text);
                    Severity: Major
                    Found in e107_core/shortcodes/batch/admin_shortcodes.php - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                              if(rename($path_to_file, $newFile) === true)
                                              {
                                                  $finfo['pathinfo'] = pathinfo($newFile);
                                                  $path_to_file = $newFile;
                                              }
                      Severity: Major
                      Found in e107_handlers/file_class.php - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                                if(deftrue('e_DEBUG_PREFS'))
                                                {
                                                    $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
                                                    $log->logMessage(print_a($backtrace,true),  E_MESSAGE_DEBUG);
                                                }
                        Severity: Major
                        Found in e107_handlers/pref_class.php - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                                              if ($sql2->select($var['db_table'], $var['db_title'], $var['db_id']." = '".$row['comment_item_id']."' "))
                                                              {
                                                                  $row2 = $sql2->fetch();
                                                                  $ret['comment_type'] = $var['plugin_name'];
                                                                  $ret['comment_title'] = $tp->toHTML($row2[$var['db_title']], TRUE, 'emotes_off, no_make_clickable');
                          Severity: Major
                          Found in e107_handlers/comment_class.php - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                                                    if ('!' == substr($disTrim, -1) && $v == str_replace('!', '', $disallow))
                                                                    {    // Exact match search (noticed with exclamation mark in the end of the word)
                                                                        $errMsg = ERR_DISALLOWED_TEXT_EXACT_MATCH;
                                                                    }
                                                                    elseif (stripos($v, $disTrim) !== false)
                            Severity: Major
                            Found in e107_handlers/validator_class.php - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                                      if(deftrue('e_DEBUG_PREFS'))
                                                      {
                                                          $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS,2);
                                                          $log->logMessage(print_a($backtrace,true),  E_MESSAGE_DEBUG);
                                                      }
                              Severity: Major
                              Found in e107_handlers/pref_class.php - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                                    if ($installed = isset($pref['plug_installed'][$var['plugin_path']]))
                                                                    {
                                                                        $qryp = str_replace("{NID}", $row['comment_item_id'], $var['qry']);
                                                                        if ($sql2->gen($qryp))
                                                                        {
                                Severity: Major
                                Found in e107_handlers/comment_class.php - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                          if(!$this->rmtree($dir . $obj))
                                                          {
                                                              return false;
                                                          }
                                  Severity: Major
                                  Found in e107_handlers/file_class.php - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                                        if(E107_DBG_SQLDETAILS)
                                                                        {
                                                                            $mes = e107::getMessage();
                                                                            $mes->add("db_table_admin_class.php :: parse_field_defs() Line: 230 - Unknown definition {$i}: ".$fd[$i], E_MESSAGE_DEBUG);
                                                                        }
                                    Severity: Major
                                    Found in e107_handlers/db_table_admin_class.php - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                              while($rowplug = $sql->fetch())
                                                              {
                                                                  extract($rowplug);
                                                                  if(varset($rowplug[1]))
                                                                  {
                                      Severity: Major
                                      Found in e107_core/shortcodes/batch/admin_shortcodes.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                        if(!$r) $r = 'n/a';
                                        Severity: Major
                                        Found in top.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language