/[clonezilla-sysresccd]/trunk/www/working/.news.php
ViewVC logotype

Annotation of /trunk/www/working/.news.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (hide annotations)
Fri May 21 14:49:03 2010 UTC (13 years, 10 months ago) by sng
File size: 1723 byte(s)
adding missing icons, fixing icons paths

1 sng 28
2    
3    
4    
5    
6    
7     <!-- note -->
8 sng 56 <div align="center" style="margin-bottom: 0"><table style="margin-bottom: 0" class="note" border="0" cellpadding="20"><tr><td valign="top"><img src="images/info.png"></td><td>
9 sng 28 This section has been created by converting<br>
10     the site's <a href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss">RSS news feed</a> to HTML
11     </td></tr></table></div>
12     <!--insertnews-->
13    
14    
15    
16    
17     <?php
18     $file = file_get_contents ('./clonezilla-sysresccd.rss');
19     $eReg = "<title>[^<]*<";
20     $tReg = '<a name=\0"></a>\0';
21     $file = ereg_replace($eReg,$tReg,$file);
22    
23     $file = str_replace('<">','">',$file);
24     $file = str_replace("<a name=<H2>","<a name=\"",$file);
25    
26     $file = str_replace("=<title>","=\"",$file);
27     $file = str_replace("<title>","<H2>",$file);
28     $file = str_replace("</title>"," <span class=\"hideprint\">[<a href=\"#news-top\" title=\"go to top of the page\">^</a>]</span></H2>",$file);
29    
30     $file = str_replace("<pubDate>","<p><b>Date: </b>",$file);
31     $file = str_replace("</pubDate>","<br><br>",$file);
32     $file = str_replace("<description><![CDATA[","",$file);
33     $file = str_replace("]]></description>","</p>",$file);
34     $file = str_replace("<item>","",$file);
35     $file = str_replace("</item>","",$file);
36     //$file = str_replace("<rss>","",$file);
37     $file = str_replace("</rss>","",$file);
38     //$file = str_replace("<channel>","",$file);
39     $file = str_replace("</channel>","",$file);
40    
41     $eReg = "^" . ".*" . "<" . "/image" . ">";
42     $file = ereg_replace($eReg,"",$file);
43    
44    
45     $eReg = "<" . "guid" . "[^<]*" . "<" . "/guid" . ">";
46     $file = ereg_replace($eReg,"",$file);
47    
48    
49     $eReg = "<" . "link" . "[^<]*" . "<" . "/link" . ">";
50     $file = ereg_replace($eReg,"",$file);
51    
52     //$file = ereg_replace();
53    
54     echo $file;
55     echo "<p></p>
56    
57     </div>";
58     ?>
59    
60    
61    
62    
63    

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26