cvs: phpweb / index.php

From: Date: Sat, 03 May 2003 15:31:04 +0000
Subject: cvs: phpweb / index.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17249@lists.php.net to get a copy of this message
goba Sat May 3 11:31:04 2003 EDT Modified files: /phpweb index.php Log: Mark events with special <span>s based on country Index: phpweb/index.php diff -u phpweb/index.php:1.369 phpweb/index.php:1.370 --- phpweb/index.php:1.369 Fri May 2 16:56:38 2003 +++ phpweb/index.php Sat May 3 11:31:04 2003 @@ -155,7 +155,7 @@ while (!feof($fp)) { // Get information event elements from file - list($d, $m, $y, $url, $desc, $id) = fgetcsv($fp, 8192); + list($d, $m, $y, $ccode, $desc, $id) = fgetcsv($fp, 8192); // Fgetcvs() returns an array with a single null element // for a blank line, which we need to skip @@ -186,9 +186,9 @@ // There is no event with this description in this month if (!isset($seen[$desc])) { // Add event to sidebar - $RSIDEBAR_DATA .= "$d. <a href=\"cal.php?id=$id\">" . + $RSIDEBAR_DATA .= "<span class=\"event_$ccode\">$d. <a href=\"cal.php?id=$id\">" . htmlspecialchars(stripslashes($desc)) . - "</a><br />\n"; + "</a></span><br />\n"; // Set seen flag $seen[$desc] = TRUE; }

« previous php.mirrors (#17249) next »