e107inc/e107

View on GitHub

Showing 571 of 6,975 total issues

Avoid deeply nested control flow statements.
Open

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

    Avoid deeply nested control flow statements.
    Open

                                        if ($key === array_key_last($authMethod)) { 
                                            return $this->invalidLogin($username,LOGIN_ABORT);
                                        }
    Severity: Major
    Found in e107_handlers/login.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 (($code_stack[$i]['type'] == 'bbcode') && ($code_stack[$i]['code'] == $bbword) && ($code_stack[0]['numbers'] == $matches[3]))
                                            {
                                                $found = TRUE;
                                                break;
                                            }
        Severity: Major
        Found in e107_handlers/bbcode_handler.php - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                                              if ($stacktext != '')
                                              { // Stack the text we've accumulated so far
                                                  array_unshift($code_stack,array('type' => 'text','code' => $stacktext));
                                                  $stacktext = '';
                                              }
          Severity: Major
          Found in e107_handlers/bbcode_handler.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

                                      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(!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 ('!' == 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(!$this->rmtree($dir . $obj))
                                                {
                                                    return false;
                                                }
                        Severity: Major
                        Found in e107_handlers/file_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(!$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

                              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 (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 ($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(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(!$wmcaption)
                                                          {
                                                              $wmcaption = $tp->toHTML($row['gen_ip'], TRUE, 'TITLE');
                                                          }
                                      Severity: Major
                                      Found in e107_core/shortcodes/single/wmessage.php - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                            if(!USERID)
                                                            {
                                                                require_once(e_HANDLER.'login.php');
                                                                $usr = new userlogin($user_loginname, $user_pass, 'signup', '');
                                                            }
                                        Severity: Major
                                        Found in index.php - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language