SVN: security/index.php

vip vip at pld-linux.org
Wed Oct 31 17:39:24 CET 2007


Author: vip
Date: Wed Oct 31 17:39:23 2007
New Revision: 8914

Modified:
   security/index.php
Log:
- adapterized for new cve_reader.py


Modified: security/index.php
==============================================================================
--- security/index.php	(original)
+++ security/index.php	Wed Oct 31 17:39:23 2007
@@ -1,6 +1,7 @@
 <?
 ob_start("ob_gzhandler");
 ?>
+<!-- http://www.ajaximpact.com/ajaximpact.php?n=10&id=85&back=/detail_Tutorials.php?id=85 -->
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
 <head>
@@ -13,7 +14,7 @@
 table { border-collapse: collapse; width: 100%; }
 td { padding: 6px 15px; }
 tr.entry { padding: 6px 15px; border-top: 3px solid #ebebe4; border-bottom: 1px solid #ebebe4 }
-tr.branch { padding: 6px 15px; width: 150px; color: red; } 
+tr.branch { padding: 6px 15px; width: 150px; color: red; }
 .thead td, thead td, tfoot td { background-color: #ebebe4 }
 .thead td, thead td { border-bottom: 1px solid #c0c0c0; border-top: 1px solid #c0c0c0; padding: 5px 15px }
 .thead td a, thead td a { color: #000000 }
@@ -33,7 +34,7 @@
 	width: 80px;
 }
 
-.date { 
+.date {
 	width: 80px;
 	text-align: center;
 }
@@ -87,16 +88,73 @@
 	text-align: right;
 }
 
+table.sortable thead {
+    background-color:#eee;
+    color:#666666;
+    font-weight: bold;
+    cursor: default;
+}
 </style>
-
+<script src="sorttable.js"></script>
 </head>
 <body>
-
 <h2>PLD Security Logs</h2>
-<?
-readfile("header.html");
-readfile("security.html");
-readfile("footer.html");
+<p align="center"><a href="rss.xml">Get the RSS feed!</a></p>
+<?php
+
+$header = array('Data', 'Spec','CVE Entry','Revision','Resolved with');
+
+$xml = simplexml_load_file("security.xml");
+
+echo "<table border=0 class='sortable'><tr>";
+
+foreach($header as $i)
+{
+	echo "<td>$i</td>";
+}
+
+echo "</tr>";
+
+foreach($xml->package as $package)
+{
+	echo "<tr><td>"
+		. $package->date . "</td><td>"
+		. $package->spec . "</td><td>";
+
+	foreach($package->cves->entry as $c)
+	{
+		echo "<a href='http://cve.mitre.org/cgi-bin/cvename.cgi?name=" . $c . "'>" . $c . "</a> ";
+	}
+
+	echo "</td><td>";
+	echo '<a href="http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/'
+		. $package->spec
+		.'?rev='
+		. urlencode($package->revision)
+		. '">'
+		. $package->revision
+		. "</a>";
+	echo "</td><td>";
+
+	foreach($package->resolved->entry as $r)
+	{
+		if(!empty($r->autotag))
+		{
+			echo '<a href="http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/'
+				. $package->spec
+				.'?logsort=rev;only_with_tag='
+				. urlencode($r->autotag)
+				. '">';
+			echo $r->autotag . "</a>: ";
+		}
+		echo  $r->revision . "<br/>";
+	}
+	echo "</td></tr>";
+}
+echo "</table>";
 ?>
+<p align="right">
+<img src="http://pl.docs.pld-linux.org/zrzuty_ekr/logo_03.png" alt="PLD" />
+</p>
 </body>
 </html>


More information about the pld-cvs-commit mailing list