Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
Windows
/
System32
/
srm
/
xslt
/
Edit File Name :
Common_CSV.xsl
<?xml version="1.0"?> <!-- Copyright (C) 2004, Microsoft Corporation --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:global="urn:srm-extension-obj" > <!-- Global variables --> <xsl:variable name="NewLine" select="'
'" /> <!-- Generation method for TXT reports --> <xsl:output method="text"/> <!-- Report Header --> <xsl:template match="ReportHeader"> <xsl:value-of select="global:CsvCell(@ReportTitle)"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(@ReportDescription)"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_GeneratedAt"/> <xsl:value-of select="global:CsvCell(@GeneratedAt)"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(string(@ReportTypeDescription))"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_ReportSettings"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_Machine"/> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(@MachineName))"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_ReportFolders"/> <xsl:text>,</xsl:text> <xsl:apply-templates select="ReportNamespaces" /> <xsl:value-of select="$NewLine" /> <xsl:if test="ReportFilters/@FileNamePattern"> <xsl:value-of select="$SrmStringRes_FileNamePattern"/> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(string(ReportFilters/@FileNamePattern))" /> <xsl:value-of select="$NewLine" /> </xsl:if> <xsl:if test="ReportFilters/Filter/@Name"> <xsl:value-of select="$SrmStringRes_Parameters"/> <xsl:text>,</xsl:text> <xsl:apply-templates select="ReportFilters" /> <xsl:value-of select="$NewLine" /> </xsl:if> <xsl:apply-templates select="ReportWarnings"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="ReportNamespaces"> <xsl:apply-templates select="Namespace"/> </xsl:template> <xsl:template match="Namespace"> <xsl:value-of select="global:CsvCell(string(.))"/> <xsl:text>,</xsl:text> </xsl:template> <xsl:template match="Filter"> <xsl:value-of select="global:CsvCell(concat(@Name,': ',@Value))"/> <xsl:if test="position()!=last()"> <xsl:value-of select="$NewLine" /> <xsl:text>, </xsl:text> </xsl:if> </xsl:template> <xsl:template match="ReportWarnings"> <xsl:if test="Warning"> <xsl:value-of select="$SrmStringRes_Warnings"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="Warning"/> </xsl:if> </xsl:template> <xsl:template match="Warning"> <xsl:value-of select="global:CsvCell(string(.))"/> <xsl:value-of select="$NewLine" /> </xsl:template> <!-- Summaries rendering --> <xsl:template name="FileReportTotals"> <xsl:value-of select="$SrmStringRes_ReportTotals"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_FilesShownInTheReport"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_TotalSizeOnDiskMB"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(ReportTotals/@DisplayFileCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(global:ConvertToMb(string(ReportTotals/@DisplaySize)))" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_AllFilesMatchingReportCriteria"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_TotalSizeOnDiskMB"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(ReportTotals/@FileCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(global:ConvertToMb(string(ReportTotals/@Size)))" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template name="FolderReportTotals"> <xsl:value-of select="$SrmStringRes_ReportTotals"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_FoldersShownInTheReport"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_PropertyValues"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Folders"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(FolderReportTotals/@DisplayGroupCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(FolderReportTotals/@DisplayFileCount)" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_AllFoldersMatchingReportCriteria"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_PropertyValues"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Folders"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(FolderReportTotals/@GroupCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(FolderReportTotals/@FileCount)" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> </xsl:template> <!-- Summaries rendering --> <xsl:template name="GroupReportTotals"> <xsl:variable name="GroupColumnName"> <xsl:choose> <xsl:when test="/StorageReport/ReportHeader/@Type = 'FsrmReportType_FilesByType'">File Groups</xsl:when> <xsl:when test="/StorageReport/ReportHeader/@Type = 'FsrmReportType_FilesByOwner'">Owners</xsl:when> <xsl:when test="/StorageReport/ReportHeader/@Type = 'FsrmReportType_FilesByProperty'">Property Value</xsl:when> </xsl:choose> </xsl:variable> <xsl:value-of select="$SrmStringRes_ReportTotals"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_FilesShownInTheReport"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$GroupColumnName"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_TotalSizeOnDiskMB"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(ReportTotals/@DisplayGroupCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(ReportTotals/@DisplayFileCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(global:ConvertToMb(string(ReportTotals/@DisplaySize)))" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_AllFilesMatchingReportCriteria"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$GroupColumnName"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_TotalSizeOnDiskMB"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="global:CsvCell(ReportTotals/@GroupCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(ReportTotals/@FileCount)" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(global:ConvertToMb(string(ReportTotals/@Size)))" /> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$NewLine" /> </xsl:template> <!-- Summaries rendering --> <xsl:template name="SizeBySummaries"> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByOwner"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByFileGroup"/> </xsl:template> <!-- Summaries rendering for folders --> <xsl:template name="FolderCountBySummaries"> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="FolderSizeByPropertyValue"/> </xsl:template> <!-- Summaries rendering for property values --> <xsl:template name="SizeBySummariesWithPropertyValues"> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByOwner"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByFileGroup"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByPropertyValue"/> </xsl:template> <!-- Summaries rendering for properties --> <xsl:template name="SizeBySummariesWithProperties"> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByOwner"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByFileGroup"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="SizeByProperty"/> </xsl:template> <!-- Report Summary utilities --> <xsl:template match="SizeByOwner"> <xsl:value-of select="$SrmStringRes_SizeByOwner"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_Owner"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_SizeOnDiskMB"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="GroupInfo"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="SizeByProperty"> <xsl:value-of select="$SrmStringRes_SizeByProperty"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_Property"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_SizeOnDiskMB"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="GroupInfo"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="SizeByPropertyValue"> <xsl:value-of select="$SrmStringRes_SizeBy"/> <xsl:text> </xsl:text> <xsl:value-of select="/StorageReport/ReportHeader/ReportFilters/Filter/@Value"/> <xsl:text> </xsl:text> <xsl:value-of select="$SrmStringRes_Value"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_PropertyValue"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_SizeOnDiskMB"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="GroupInfo"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="FolderSizeByPropertyValue"> <xsl:value-of select="$SrmStringRes_FolderDistributionBy"/> <xsl:text> </xsl:text> <xsl:value-of select="/StorageReport/ReportHeader/ReportFilters/Filter/@Value"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_PropertyValue"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Folders"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="FolderGroupInfo"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="SizeByFileGroup"> <xsl:value-of select="$SrmStringRes_SizeByFileGroup"/> <xsl:value-of select="$NewLine" /> <xsl:value-of select="$SrmStringRes_FileGroup"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_SizeOnDiskMB"/> <xsl:text>,</xsl:text> <xsl:value-of select="$SrmStringRes_Files"/> <xsl:value-of select="$NewLine" /> <xsl:apply-templates select="GroupInfo"/> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="GroupInfo"> <xsl:value-of select="global:CsvCell(string(@Name))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(global:ConvertToMb(string(@SizeAllocated)))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(@FileCount)" /> <xsl:value-of select="$NewLine" /> </xsl:template> <xsl:template match="FolderGroupInfo"> <xsl:value-of select="global:CsvCell(string(@Name))" /> <xsl:text>,</xsl:text> <xsl:value-of select="global:CsvCell(@FileCount)" /> <xsl:value-of select="$NewLine" /> </xsl:template> </xsl:stylesheet>
Save