Changeset 2296 for trunk/feed.php
- Timestamp:
- Apr 4, 2008, 9:47:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/feed.php
r2152 r2296 3 3 // | PhpWebGallery - a PHP based picture gallery | 4 4 // | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net | 5 // | Copyright (C) 2003-200 7PhpWebGallery Team - http://phpwebgallery.net |5 // | Copyright (C) 2003-2008 PhpWebGallery Team - http://phpwebgallery.net | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | file : $Id$ … … 139 139 $item->descriptionHtmlSyndicated = true; 140 140 141 $item->date = ts_to_iso8601(mysqldt_to_ts($dbnow));141 $item->date = mysqldt_to_ts($dbnow); 142 142 $item->author = 'PhpWebGallery notifier'; 143 143 $item->guid= sprintf('%s', $dbnow);; … … 191 191 $item->descriptionHtmlSyndicated = true; 192 192 193 $item->date = ts_to_iso8601(mysqldt_to_ts($date));193 $item->date = mysqldt_to_ts($date); 194 194 $item->author = 'PhpWebGallery notifier'; 195 195 $item->guid= sprintf('%s', 'pics-'.$date);; … … 198 198 } 199 199 200 $fileName= $conf['local_data_dir'].'/tmp'; 201 @mkdir($fileName); // just in case 202 $fileName.='/feed.xml'; 200 203 // send XML feed 201 echo $rss->saveFeed('RSS2.0', '', true);204 echo $rss->saveFeed('RSS2.0', $fileName, true); 202 205 ?>
Note: See TracChangeset
for help on using the changeset viewer.