Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / key-feed-viewer / feed-proxy.php
index faa1738..3d71c41 100644 (file)
@@ -1,12 +1,12 @@
-<?php\r
-// this is an example server-side proxy to load feeds\r
-$feed = $_REQUEST['feed'];\r
-if($feed != '' && strpos($feed, 'http') === 0){\r
-       header('Content-Type: text/xml');\r
-       $xml = file_get_contents($feed);\r
-       $xml = str_replace('<content:encoded>', '<content>', $xml);\r
-       $xml = str_replace('</content:encoded>', '</content>', $xml);\r
-       $xml = str_replace('</dc:creator>', '</author>', $xml);\r
-       echo str_replace('<dc:creator', '<author', $xml);\r
-       return;\r
-}\r
+<?php
+// this is an example server-side proxy to load feeds
+$feed = $_REQUEST['feed'];
+if($feed != '' && strpos($feed, 'http') === 0){
+       header('Content-Type: text/xml');
+       $xml = file_get_contents($feed);
+       $xml = str_replace('<content:encoded>', '<content>', $xml);
+       $xml = str_replace('</content:encoded>', '</content>', $xml);
+       $xml = str_replace('</dc:creator>', '</author>', $xml);
+       echo str_replace('<dc:creator', '<author', $xml);
+       return;
+}