]> dev.renevier.net Git - syp.git/blobdiff - items.php
images are stored on a ftp server
[syp.git] / items.php
index af0192f5ef61bdedd76a9c75876a4fbcd6cb5c61..f8774032cb89d25a7e3b287624124418498dfc10 100644 (file)
--- a/items.php
+++ b/items.php
@@ -8,7 +8,7 @@ require_once ("./inc/db/mysql.php");
 
 function main ($features) {
 
-    header("Cache-control: no-cache");
+    header ("Cache-control: no-cache");
 
     echo '<?xml version="1.0" encoding="UTF-8"?>
 <kml xmlns="http://www.opengis.net/kml/2.2">
@@ -32,7 +32,8 @@ function main ($features) {
                     $title;
 
         if ($imgurl) {
-            $imgurlHTML = sprintf ('<img alt="%s" src="%s">', $alt, $imgurl);
+            $imgurlHTML = sprintf ('<a href="%s"><img alt="%s" src="%s"></a>',
+                                    $imgurl, $alt, $imgurl);
         } else {
             $imgurlHTML = "";
         }