Changeset 2296
- Timestamp:
- Apr 4, 2008, 9:47:07 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 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 ?> -
trunk/include/feedcreator.class.php
r2132 r2296 157 157 158 158 // your local timezone, set to "" to disable or for GMT 159 define("TIME_ZONE","+0 1:00");159 define("TIME_ZONE","+00:00"); 160 160 161 161 -
trunk/include/section_init.inc.php
r2201 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$ … … 287 287 { 288 288 $query = ' 289 SELECT image_id289 SELECT DISTINCT image_id 290 290 FROM '.IMAGE_CATEGORY_TABLE.' INNER JOIN '.IMAGES_TABLE.' ON image_id=id 291 291 WHERE image_id IN ('.implode(',', $items).') … … 293 293 $conf['order_by'].' 294 294 ;'; 295 $items = array_unique( 296 array_from_query($query, 'image_id') 297 ); 295 $items = array_from_query($query, 'image_id'); 298 296 } 299 297 … … 304 302 array( 305 303 'title' => $title, 306 'items' => array_values($items),304 'items' => $items, 307 305 ) 308 306 );
Note: See TracChangeset
for help on using the changeset viewer.