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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 28 - (hide annotations)
Wed Mar 17 23:46:34 2010 UTC (11 years, 7 months ago) by sng
File size: 5196 byte(s)
adding www directory
1 sng 28 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2     <html>
3     <head>
4     <link rel="alternate" type="application/rss+xml" title="RSS" href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss">
5     <link rel="shortcut icon" href="favicon.ico">
6     <title>div-test</title>
7     <style type="text/css">
8     body { font-family: 'sans serif'; font-size: 12pt; background : url(null) fixed no-repeat; background-color: #333333; padding: 0; margin: 0; margin-top: 5px; margin-bottom: 5px; }
9    
10    
11    
12     #header {display: block; width: 980px; height: 121px;margin: auto; padding: auto; background-color: #333333; background-image: url('images/header.png');clear:both;}
13    
14     #header h2{color: white; font-weight: bold; font-size: 2.2em; margin:0;padding: 3px; padding-bottom:0; text-align: center;text-shadow: #333333 2px 2px 4px;
15     }
16     #header h3{color: white; font-weight: bold; font-size: 1.2em; margin:0;padding: 0; text-align: center;text-shadow: #333333 2px 2px 4px;}
17     #header a {text-decoration:none;}
18     /* #contarea {display: block; width: 980px; margin: auto; padding: auto; background-color: #FFF2DD; background-image: url('images/line.png'); background-repeat:repeat-y;clear:both;}*/
19     #contarea {display: block; width: 980px; margin: auto; padding: auto; background-color: #FFF2DD;clear:both;}
20    
21     #linkline { width: 980px; height: 29px;margin: auto; padding: auto; background-image: url('images/linkline.png');clear:both; }
22     #linkline a{float: left; color: white; font-weight: bold; font-size: 1em; text-decoration: none; text-shadow: #333333 2px 2px 4px; padding-left: 10px; padding-right: 10px; padding-top: 3px;}
23     #linkline a:hover{color: #333333;}
24    
25     #linkline .here {color: #333333; text-decoration: none;}
26    
27     #rss { float: right; text-align: right; padding-top: 5px;}
28     /* #menu { float: right; display: block; width: 170px; margin: auto; padding: 15px; color: #AC4210; font-size: 0.8em; font-weight: bold;}
29     #menu h1 {font-size: 2em;text-shadow: gray 2px 2px 4px;}*/
30     /* #content { float: left; display: block; width: 750px; margin: auto; padding: 15px;}*/
31     #content { float: left; display: block; width: 980px; margin: auto; padding: 15px;}
32     #footer {display: block; width: 980px; height: 100px;margin: auto; padding: auto; background-color: #333333; background-image: url('images/footer.png');clear:both;text-shadow: #333333 2px 2px 4px;}
33     #footer p{color: white; font-weight: bold; padding:15px;}
34     #footer a{color: white; font-weight: bold; text-decoration:none;}
35     #footer a:hover{ color: #333333; text-decoration: none;}
36     </style>
37     <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
38     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
39    
40     </head>
41    
42     <body>
43     <a name="news-top"></a>
44     <div id="header">
45     <H2>Clonezilla-SysRescCD<br>08/02/2009 - v 3.1.0</H2>
46     <H3>Last update: 23/12/2009</H3>
47     </div>
48     <div id="linkline">
49     <a href="index.html">Home</a>
50     <a class="here" href="news.php">News</a>
51     <a href="index.html">Documentation</a>
52     <a href="index.html">Download</a>
53     <a href="index.html">Contact</a>
54    
55     <div id="rss">
56     <a class="rright" href="#"><img src="images/rss-orange-11.png" border="0"/></a>
57     </div>
58     </div>
59     <div id="contarea">
60     <div id="content">
61    
62    
63    
64    
65    
66    
67    
68     <p><br>This section has been created by converting the site's <a href="http://clonezilla-sysresccd.hellug.gr/clonezilla-sysresccd.rss">RSS news feed</a> to HTML</p>
69     <!--insertnews-->
70    
71    
72    
73    
74     <?php
75     $file = file_get_contents ('/home/projects/clonezilla-sysresccd/public_html/clonezilla-sysresccd.rss');
76     $eReg = "<title>[^<]*<";
77     $tReg = '<a name=\0"></a>\0';
78     $file = ereg_replace($eReg,$tReg,$file);
79    
80     $file = str_replace('<">','">',$file);
81     $file = str_replace("<a name=<H2>","<a name=\"",$file);
82    
83     $file = str_replace("=<title>","=\"",$file);
84     $file = str_replace("<title>","<H2>",$file);
85     $file = str_replace("</title>"," <span class=\"hideprint\">[<a href=\"#news-top\" title=\"go to top of the page\">^</a>]</span></H2>",$file);
86    
87     $file = str_replace("<pubDate>","<p><b>Date: </b>",$file);
88     $file = str_replace("</pubDate>","<br><br>",$file);
89     $file = str_replace("<description><![CDATA[","",$file);
90     $file = str_replace("]]></description>","</p>",$file);
91     $file = str_replace("<item>","",$file);
92     $file = str_replace("</item>","",$file);
93     //$file = str_replace("<rss>","",$file);
94     $file = str_replace("</rss>","",$file);
95     //$file = str_replace("<channel>","",$file);
96     $file = str_replace("</channel>","",$file);
97    
98     $eReg = "^" . ".*" . "<" . "/image" . ">";
99     $file = ereg_replace($eReg,"",$file);
100    
101    
102     $eReg = "<" . "guid" . "[^<]*" . "<" . "/guid" . ">";
103     $file = ereg_replace($eReg,"",$file);
104    
105    
106     $eReg = "<" . "link" . "[^<]*" . "<" . "/link" . ">";
107     $file = ereg_replace($eReg,"",$file);
108    
109     //$file = ereg_replace();
110    
111     echo $file;
112     echo "<p></p>";
113     ?>
114    
115    
116    
117    
118    
119     </div>
120    
121     <div id="footer">
122     <p>Copyright: &#169; <a href="maito:sng@hellug.gr">Spiros Georgaras &lt;sng@hellug.gr&gt;</a>, 2007-2009<br /><br/>
123     Hosted by <a href="http://www.hellug.gr" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p>
124     </div>
125     </div>
126     </body>
127     </html>

Properties

Name Value
svn:executable *

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26