Sorry

This feed does not validate.

In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.

Source: http://www.disc.be/disc.xml

  1. <?php
  2. Header("Content-Type: application/xml;");
  3. require_once("HTML/Template/IT.php");
  4. include('admin/da.php');
  5. $data = getLast(10);
  6.   $tpl = new HTML_Template_IT(".");
  7.   $tpl->loadTemplatefile("rss.tpl");
  8.   $tpl->setVariable("pubDate",date("r",$data[0]["datum"]));
  9. foreach($data as $key => $row){
  10.   $tpl->setCurrentBlock("item");
  11.   $tpl->setVariable("datum",date("r",$row["datum"]));
  12.   $tpl->setVariable("titel",$row["titel"]);
  13.   $tpl->setVariable("link","http://www.disc.be/nieuws.php?id=$key");
  14.   $tpl->setVariable("bericht",htmlentities($row["tekst"]));
  15.   $extra="";
  16.   if($row["image"]!="" && $row["size"]!=0){
  17.      $extra .= "<enclosure url=\"http://www.disc.be/dbpics/" . $row["image"] ."\" length=\"" . $row["size"] . "\" type=\"image/jpeg\" />";
  18.   }
  19.  if($row["bijlage"]!="" ){
  20.    $beschrijving="";
  21.    if($row["weergave"]==""){
  22.      $beschrijving = "bijlage";
  23.    }else{
  24.      $beschrijving =$row["weergave"];
  25.    }
  26.      $extra .= "<disc:bijlage>http://www.disc.be/dbbijlagen/" . $row["bijlage"] ."</disc:bijlage>";
  27.      $extra .= "<disc:beschrijving>" . $beschrijving ."</disc:beschrijving>";
  28.   }
  29.   $tpl->setVariable("extra",$extra);
  30.   $tpl->parseCurrentBlock("item");
  31.  
  32. }
  33. $tpl->show();
  34. ?>
  35.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda