changeset 488:7f5ec0c9ab12

Sync.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Dec 2007 15:46:06 +0000
parents d9687a4ef6aa
children c6c7a18aa9e7
files www/latest.php www/loc.php
diffstat 2 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/www/latest.php	Tue Dec 25 15:45:53 2007 +0000
+++ b/www/latest.php	Tue Dec 25 15:46:06 2007 +0000
@@ -65,6 +65,7 @@
   "  <th>Location name</th>\n".
   "  <th>Continent</th>\n".
   "  <th>Coder(s)</th>\n".
+  "  <th>Information</th>\n".
   " </tr>\n";
   
   while (list($ik, $iv) = each($sortTable)) {
@@ -86,11 +87,14 @@
           $fs = "";
           while (list($fKey, $fVal) = each($iv["coders"])) {
             if ($fs != "") $fs .= ", ";
-            $fs .= "<a href=\"loc.php?a=".$fVal."\">".$fVal."</a>";
+            $fs .= "<a href=\"loc.php?a=".htmlentities($fVal)."\">".htmlentities($fVal)."</a>";
           }
           echo $fs;
         }
-        
+        echo "</td>\n".
+        "  <td>";
+        if (isset($iv["freeform"]))
+          echo htmlentities($iv["freeform"]);
         echo "</td>\n".
         " </tr>\n";
   }
--- a/www/loc.php	Tue Dec 25 15:45:53 2007 +0000
+++ b/www/loc.php	Tue Dec 25 15:46:06 2007 +0000
@@ -108,11 +108,10 @@
 <?
 /* Coder/creator information box
  */
-/*
 if (isset($coderName) && isset($wizTable[$coderName]) && count($wizTable[$coderName]) > 1) {
   echo "<div class=\"wizinfo\">\n <table>\n  <tr>\n";
   
-  $s = $wizTable[$coderName]["imageURL"];
+//  $s = $wizTable[$coderName]["imageURL"];
   if (isset($s)) {
     if (substr($s, 0, 6) == "bat://")
       $s = "http://www.bat.org/albums/".substr($s, 6);
@@ -142,7 +141,7 @@
   
   echo "   </td>\n  </tr>\n </table>\n</div>\n";
 }
-*/
+
 
 /* Print list of locations
  */