PHP Classes

File: phprotector/.log_style.xsl

Recommend this page to a friend!
  Classes of Hugo Sousa  >  PHProtector  >  phprotector/.log_style.xsl  >  Download  
File: phprotector/.log_style.xsl
Role: Auxiliary data
Content type: text/plain
Description: XML document transformation and presentation file for logs
Class: PHProtector
Analyse HTTP requests to detect security attacks
Author: By
Last change:
Date: 12 years ago
Size: 1,165 bytes


Class file image Download
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">

<xsl:template match="/">
  <h2>PhProtector v0.3.1 </h2>
    <table border="0" >
      <tr bgcolor="#B4C4D1">
        <th>HTTP Request</th>
      <xsl:for-each select="logs/log">
      <tr bgcolor="#EAEEF3">
        <td><xsl:value-of select="date"/></td>
        <td><xsl:value-of select="ip"/></td>
        <td><xsl:value-of select="hostname"/></td>
        <td><xsl:value-of select="browser"/></td>
        <td><xsl:value-of select="request"/></td>
        <xsl:if test="score &gt; 0.5">
        <td bgcolor="#FF6600"><xsl:value-of select="score"/></td>
        <xsl:if test="score &lt;= 0.5">
        <td ><xsl:value-of select="score"/></td>
        <td><xsl:value-of select="referer"/></td>
For more information send a message to info at phpclasses dot org.