cvs: pearweb /public_html/feeds feeds.php
| From: | Martin Jansen | Date: | Thu, 15 Jun 2006 21:30:13 +0000 |
| Subject: | cvs: pearweb /public_html/feeds feeds.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-40738@lists.php.net to get a copy of this message | ||
mj Thu Jun 15 21:30:13 2006 UTC
Modified files:
/pearweb/public_html/feeds feeds.php
Log:
* Converted tabs to spaces.
http://cvs.php.net/viewcvs.cgi/pearweb/public_html/feeds/feeds.php?r1=1.6&r2=1.7&diff_format=u
Index: pearweb/public_html/feeds/feeds.php
diff -u pearweb/public_html/feeds/feeds.php:1.6 pearweb/public_html/feeds/feeds.php:1.7
--- pearweb/public_html/feeds/feeds.php:1.6 Thu Apr 6 21:03:56 2006
+++ pearweb/public_html/feeds/feeds.php Thu Jun 15 21:30:13 2006
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Pierre-Alain Joye <pajoye@php.net> |
+----------------------------------------------------------------------+
- $Id: feeds.php,v 1.6 2006/04/06 21:03:56 pajoye Exp $
+ $Id: feeds.php,v 1.7 2006/06/15 21:30:13 mj Exp $
*/
require_once "pepr/pepr.php";
@@ -86,15 +86,14 @@
$item_entries
</rdf:RDF>";
- /* lock free write, thx rasmus for the tip */
- if($dest_file && (!file_exists($dest_file) || filemtime($dest_file) <
(time()-$timeout))) {
- $stream = fopen($url,'r');
- $tmpf = tempnam('/tmp','YWS');
- // Note the direct write from the stream here
- file_put_contents($tmpf, $stream);
- fclose($stream);
- rename($tmpf, $dest_file);
- }
+ if ($dest_file && (!file_exists($dest_file) || filemtime($dest_file) < (time() -
$timeout))) {
+ $stream = fopen($url,'r');
+ $tmpf = tempnam('/tmp','YWS');
+ // Note the direct write from the stream here
+ file_put_contents($tmpf, $stream);
+ fclose($stream);
+ rename($tmpf, $dest_file);
+ }
header("Content-Type: text/xml; charset=iso-8859-1");
echo $rss_feed;
} else {