Ignore:
Timestamp:
Feb 28, 2016, 10:54:30 AM (9 years ago)
Author:
chronos
Message:
  • Modified: Use object oriented approach for page drawing using Application class.
  • Added: SQL updated will be automatic using UpdateTrace.php file.
  • Added: Use generic setup page at URL /setup for SQL structure update.
  • Modified: Update Common package to newer version.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/RSS.php

    r61 r69  
    11<?php
    22
    3 class RSS 
     3class RSS
    44{
    55  var $Charset;
     
    99  var $WebmasterEmail;
    1010  var $Items;
    11  
     11
    1212  function __construct()
    1313  {
     
    1717
    1818  function Generate()
    19   { 
     19  {
    2020    $Result = '<?xml version="1.0" encoding="'.$this->Charset.'" ?>'."\n". //<?
    2121  '<rss version="2.0">'."\n".
     
    2626  "    <language>cs</language>\n".
    2727  "    <webMaster>".$this->WebmasterEmail."</webMaster>\n".
    28   "    <pubDate>".date('r')."</pubDate>\n". 
     28  "    <pubDate>".date('r')."</pubDate>\n".
    2929  "    <ttl>20</ttl>\n";
    3030    foreach($this->Items as $Item)
     
    3333        '      <title>'.htmlspecialchars($Item['Title'])."</title>\n".
    3434        '      <description>'.htmlspecialchars($Item['Description'])."</description>\n".
    35         '      <pubDate>'.date('r',$Item['Time'])."</pubDate>\n".
    36         '      <link>'.$Item['Link']."</link>\n".
     35  '      <pubDate>'.date('r',$Item['Time'])."</pubDate>\n".
     36  '      <link>'.$Item['Link']."</link>\n".
    3737        "    </item>\n";
    3838    }
Note: See TracChangeset for help on using the changeset viewer.