improve smb share size
This commit is contained in:
		| @ -43,12 +43,13 @@ action = function(host) | |||||||
|   -- Get more information on each share |   -- Get more information on each share | ||||||
|   for i = 1, #shares, 1 do |   for i = 1, #shares, 1 do | ||||||
|     local share = shares[i] |     local share = shares[i] | ||||||
|  |     if (share ~= nil) then | ||||||
|       local status, result = get_share_info(host, share) |       local status, result = get_share_info(host, share) | ||||||
|  |       if (status) then | ||||||
|         response[share] = result |         response[share] = result | ||||||
|       end |       end | ||||||
|  |     end | ||||||
|   --table.sort(response) |   end | ||||||
|  |  | ||||||
|   return response |   return response | ||||||
| end | end | ||||||
|  | |||||||
							
								
								
									
										10
									
								
								results.xsl
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								results.xsl
									
									
									
									
									
								
							| @ -34,11 +34,11 @@ | |||||||
|     margin: auto; |     margin: auto; | ||||||
| } | } | ||||||
|  |  | ||||||
| .share-size.primary { | .button.share-size { | ||||||
|     --bg: #1678c2; |     --bg: #21ba45; | ||||||
| } | } | ||||||
|  |  | ||||||
| .share-size.item { | .item.share-size { | ||||||
|     --bg: white; |     --bg: white; | ||||||
| } | } | ||||||
|  |  | ||||||
| @ -118,7 +118,7 @@ | |||||||
|     <div class="column"> |     <div class="column"> | ||||||
|         <xsl:variable name="status"> |         <xsl:variable name="status"> | ||||||
|             <xsl:choose> |             <xsl:choose> | ||||||
|                 <xsl:when test="$scannedHost/status/@state='up'">info</xsl:when> |                 <xsl:when test="$scannedHost/status/@state='up'">success</xsl:when> | ||||||
|                 <xsl:otherwise>error</xsl:otherwise> |                 <xsl:otherwise>error</xsl:otherwise> | ||||||
|             </xsl:choose> |             </xsl:choose> | ||||||
|         </xsl:variable> |         </xsl:variable> | ||||||
| @ -153,7 +153,7 @@ | |||||||
|             <xsl:when test="$scannedPort/script[@id='http-info']/elem[@key='status']>=500">red</xsl:when> |             <xsl:when test="$scannedPort/script[@id='http-info']/elem[@key='status']>=500">red</xsl:when> | ||||||
|             <xsl:when test="$scannedPort/script[@id='http-info']/elem[@key='status']>=400">yellow</xsl:when> |             <xsl:when test="$scannedPort/script[@id='http-info']/elem[@key='status']>=400">yellow</xsl:when> | ||||||
|             <xsl:when test="$scannedPort/state/@state='filtered'">yellow</xsl:when> |             <xsl:when test="$scannedPort/state/@state='filtered'">yellow</xsl:when> | ||||||
|             <xsl:when test="$scannedPort/state/@state='open'">primary</xsl:when> |             <xsl:when test="$scannedPort/state/@state='open'">green</xsl:when> | ||||||
|             <xsl:otherwise>red</xsl:otherwise> |             <xsl:otherwise>red</xsl:otherwise> | ||||||
|         </xsl:choose> |         </xsl:choose> | ||||||
|     </xsl:variable> |     </xsl:variable> | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user