1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
<!-- note --> |
8 |
<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 |
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 |
|