XoopsModules25x/xoopsinfo

View on GitHub

Showing 1,065 of 16,781 total issues

Consider simplifying this complex logical expression.
Open

if ( !support.opacity ) {
    jQuery.cssHooks.opacity = {
        get: function( elem, computed ) {

            // IE uses filters for opacity
Severity: Major
Found in phpsysinfo/js/jQuery/jquery.js - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

            if ( s.crossDomain == null ) {
                parts = rurl.exec( s.url.toLowerCase() );
                s.crossDomain = !!( parts &&
                    ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
                        ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
    Severity: Major
    Found in phpsysinfo/js/jQuery/jquery.js - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

          if ( ( !id || !cache[ id ] || ( !pvt && !cache[ id ].data ) ) &&
              data === undefined && typeof name === "string" ) {
              return;
          }
      Severity: Major
      Found in phpsysinfo/js/jQuery/jquery.js - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

                    if ( matcher[ expando ] ) {
                        // Find the next relative operator (if any) for proper handling
                        j = ++i;
                        for ( ; j < len; j++ ) {
                            if ( Expr.relative[ tokens[j].type ] ) {
        Severity: Major
        Found in phpsysinfo/js/jQuery/jquery.js - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                  if ( window.getComputedStyle ) {
                      divStyle = window.getComputedStyle( div, null );
                      pixelPositionVal = ( divStyle || {} ).top !== "1%";
                      reliableMarginLeftVal = ( divStyle || {} ).marginLeft === "2px";
                      boxSizingReliableVal = ( divStyle || { width: "4px" } ).width === "4px";
          Severity: Major
          Found in phpsysinfo/js/jQuery/jquery.js - About 40 mins to fix

            Consider simplifying this complex logical expression.
            Open

                    if ( delegateCount && cur.nodeType &&
                        ( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
            
                        /* jshint eqeqeq: false */
                        for ( ; cur != this; cur = cur.parentNode || this ) {
            Severity: Major
            Found in phpsysinfo/js/jQuery/jquery.js - About 40 mins to fix

              Consider simplifying this complex logical expression.
              Open

                                  if ( nCell.nodeName.toUpperCase() == "TD" ||
                                       nCell.nodeName.toUpperCase() == "TH" )
                                  {
                                      /* Get the col and rowspan attributes from the DOM and sanitise them */
                                      var iColspan = nCell.getAttribute('colspan') * 1;
              Severity: Major
              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 40 mins to fix

                Consider simplifying this complex logical expression.
                Open

                                if ( $(this).data("jGrowl") != undefined && $(this).data("jGrowl").created != undefined && 
                                     ($(this).data("jGrowl").created.getTime() + parseInt($(this).data("jGrowl").life))  < (new Date()).getTime() && 
                                     $(this).data("jGrowl").sticky != true && 
                                     ($(this).data("jGrowl.pause") == undefined || $(this).data("jGrowl.pause") != true) ) {
                
                
                Severity: Major
                Found in phpsysinfo/js/jQuery/jquery.jgrowl.js - About 40 mins to fix

                  Consider simplifying this complex logical expression.
                  Open

                              if (isset($buffer[2]) && $buffer[2] == "Current"
                                 && $buffer[1] == "Full"
                                 && isset($buffer[6]) && preg_match("/^(\S+)\sW$/", $buffer[6], $value)
                                 && $buffer[5] !== "Init") {
                                  $dev = new SensorDevice();
                  Severity: Major
                  Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 40 mins to fix

                    Consider simplifying this complex logical expression.
                    Open

                                if (isset($buffer[2]) && $buffer[2] == "Temperature"
                                   && $buffer[1] == "Full"
                                   && isset($buffer[6]) && preg_match("/^(\S+)\sC$/", $buffer[6], $value)
                                   && $buffer[5] !== "Init") {
                                    $dev = new SensorDevice();
                    Severity: Major
                    Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 40 mins to fix

                      Consider simplifying this complex logical expression.
                      Open

                                  if (isset($buffer[2]) && $buffer[2] == "Current"
                                     && $buffer[1] == "Full"
                                     && isset($buffer[6]) && preg_match("/^(\S+)\sA$/", $buffer[6], $value)
                                     && $buffer[5] !== "Init") {
                                      $dev = new SensorDevice();
                      Severity: Major
                      Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 40 mins to fix

                        Consider simplifying this complex logical expression.
                        Open

                                    if (isset($buffer[2]) && $buffer[2] == "Voltage"
                                       && $buffer[1] == "Full"
                                       && isset($buffer[6]) && preg_match("/^(\S+)\sV$/", $buffer[6], $value)
                                       && $buffer[5] !== "Init") {
                                        $dev = new SensorDevice();
                        Severity: Major
                        Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 40 mins to fix

                          Consider simplifying this complex logical expression.
                          Open

                                              if (((($ali=$aliases) && isset($ali[$name])) || (($ali=$aliases2) && isset($ali[$name]))) && isset($ali[$name]['id']) && ($ali[$name]['id'] !== "")) {
                                                  foreach ($allNetworkAdapterConfigurations as $NetworkAdapterConfiguration) {
                                                      if ($ali[$name]['id']==$NetworkAdapterConfiguration['SettingID']) {
                                                          $mininame = $ali[$name]['name'];
                                                          if (preg_match('/^isatap\.({[A-Fa-f0-9\-]*})/', $mininame))
                          Severity: Major
                          Found in phpsysinfo/includes/os/class.WINNT.inc.php - About 40 mins to fix

                            Consider simplifying this complex logical expression.
                            Open

                                                if ($macexist
                            //                        || ($device['CurrentBandwidth'] >= 1000000)
                                                    || ($device['BytesTotalPersec'] != 0)
                                                    || ($device['BytesSentPersec'] != 0)
                                                    || ($device['BytesReceivedPersec'] != 0)
                            Severity: Major
                            Found in phpsysinfo/includes/os/class.WINNT.inc.php - About 40 mins to fix

                              Consider simplifying this complex logical expression.
                              Open

                                          if (isset($buffer[2]) && $buffer[2] == "Fan"
                                             && $buffer[1] == "Full"
                                             && isset($buffer[6]) && preg_match("/^(\S+)\sRPM$/", $buffer[6], $value)
                                             && $buffer[5] !== "Init") {
                                              $dev = new SensorDevice();
                              Severity: Major
                              Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 40 mins to fix

                                Consider simplifying this complex logical expression.
                                Open

                                                if (isset($distro['Description'])
                                                   && ($distro['Description'] != "n/a")
                                                   && (!isset($distro['Distributor ID'])
                                                   || (($distro['Distributor ID'] != "n/a")
                                                   && ($distro['Description'] != $distro['Distributor ID'])))) {
                                Severity: Major
                                Found in phpsysinfo/includes/os/class.Linux.inc.php - About 40 mins to fix

                                  Consider simplifying this complex logical expression.
                                  Open

                                                                  if ($total > 0 && $total2 > 0 && $load > 0 && $load2 > 0 && $total2 != $total && $load2 != $load) {
                                                                      $this->_cpu_loads[$cpu] = (100 * ($load2 - $load)) / ($total2 - $total);
                                                                  }
                                  Severity: Major
                                  Found in phpsysinfo/includes/os/class.Linux.inc.php - About 40 mins to fix

                                    Consider simplifying this complex logical expression.
                                    Open

                                                    if (isset($distro_tmp[0]) && !is_null($distro_tmp[0]) && (trim($distro_tmp[0]) != "") &&
                                                         isset($distro_tmp[1]) && !is_null($distro_tmp[1]) && (trim($distro_tmp[1]) != "")) {
                                                        $distro[trim($info_tmp[0])] = trim($info_tmp[1]);
                                                    }
                                    Severity: Major
                                    Found in phpsysinfo/includes/os/class.Linux.inc.php - About 40 mins to fix

                                      Consider simplifying this complex logical expression.
                                      Open

                                                  if (defined('PSI_PLUGIN_BAT_SHOW_SERIAL') && PSI_PLUGIN_BAT_SHOW_SERIAL
                                                     && isset($bat_item['serialnumber'])
                                                     && ($bat_item['serialnumber'] !== "")
                                                     && ($bat_item['serialnumber'] !== "0")
                                                     && ($bat_item['serialnumber'] !== "0000")) {
                                      Severity: Major
                                      Found in phpsysinfo/plugins/bat/class.bat.inc.php - About 40 mins to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                    if (!(defined('PSI_SYSTEM_CODEPAGE') && defined('PSI_SYSTEM_LANG')) //also if both not overloaded in phpsysinfo.ini
                                                       && $contents && (preg_match('/^(LANG="?[^"\n]*"?)/m', $contents, $matches)
                                                       || preg_match('/^RC_(LANG="?[^"\n]*"?)/m', $contents, $matches)
                                                       || preg_match('/^\s*export (LANG="?[^"\n]*"?)/m', $contents, $matches))) {
                                                        if (!defined('PSI_SYSTEM_CODEPAGE')) {
                                        Severity: Major
                                        Found in phpsysinfo/read_config.php - About 40 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language