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

Diff of /trunk/www/news.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 95 by sng, Fri Aug 13 14:09:29 2010 UTC revision 167 by sng, Mon May 9 17:18:42 2011 UTC
# Line 5  Line 5 
5  <link rel="shortcut icon" href="favicon.ico">  <link rel="shortcut icon" href="favicon.ico">
6  <title>Clonezilla-SysRescCD - What's New</title>  <title>Clonezilla-SysRescCD - What's New</title>
7    <style type="text/css">    <style type="text/css">
8      body { font-family: Arial, 'sans serif';  color: black;  font-size: 12pt; background : url(null) fixed no-repeat; background-color: #333333; padding: 0; margin: 0; margin-top: 5px;  margin-bottom: 5px; }      body { font-family: Arial, 'sans serif';  color: black;  font-size: 12pt; background : fixed no-repeat; background-color: #333333; padding: 0; margin: 0; margin-top: 5px;  margin-bottom: 5px; }
9    
10            
11            
# Line 66  Line 66 
66      #content .red{color: white; background-color: Red; font-weight: bold;}      #content .red{color: white; background-color: Red; font-weight: bold;}
67      #lphp{text-align: right; padding-left: 10px; padding-right: 10px; padding-top: 50px; float: right;}      #lphp{text-align: right; padding-left: 10px; padding-right: 10px; padding-top: 50px; float: right;}
68      #lphp a{padding-left: 5px;}      #lphp a{padding-left: 5px;}
69        #warning { margin: 5px; padding: .4em; background-color: Red; color: White; align: center; font-weight: bold; border-width: 2px; border-color: white; border-style: solid; }
70        #warning a { color: white; font-weight: bold; text-decoration: underline;  }
71    </style>    </style>
72    <link href="warning.css" rel="stylesheet" type="text/css" />  
73    <!--
74    The file waring.css exists only in the root of the site
75    and it hides the UNSTABLE warnings. Its contents are
76        #warning { display: none; }
77    -->
78  <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">  <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd backup restore samba">
79  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
80    
81  </head>  </head>
82    
83  <body>  <body>
84    <div id="warning" align="center">
85    WARNING<br>
86    This is the UNSTABLE version of Clonezilla-SysRescCD<br>
87    To access our current stable version, please click <a href="../index.html">here</a>
88    </div>
89  <div id="header">  <div id="header">
90  <a name="news-top"></a>  <a name="news-top"></a>
91  <div id="lphp" style=""><a target="_blank" href="onepage.html"><img src="images/chain.png" border="0" /></a><a target="_blank" href="printable.php"><img src="images/print_it.png" border="0" /></a></div>  <div id="lphp" style=""><a target="_blank" title="Display all in one long page" href="onepage.html"><img src="images/chain.png" border="0" /></a><a target="_blank" title="Display printable page" href="printable.php"><img src="images/print_it.png" border="0" /></a></div>
92  <H2>Clonezilla-SysRescCD</H2>  <H2>Clonezilla-SysRescCD</H2>
93  <H3>What's New</H3>  <H3>What's New</H3>
94    <div style="margin:0; padding: 3px; width: 980; position relative;">    <div style="margin:0; padding: 3px; width: 980; position relative;">
95      <div style="position: absolute; left: 0px;"><H4>10/08/2010 - v 3.1.0</H4></div>      <div style="position: absolute; left: 0px;"><H4>30/09/2010 - v 3.2.0</H4></div>
96      <div style="position: absolute; right: 0px;"><H4>Last update: 13/08/2010</H4></div>      <div style="position: absolute; right: 0px;"><H4>Last update: 09/05/2011</H4></div>
97    </div>    </div>
98  </div>  </div>
99  <div id="linkline">  <div id="linkline">
# Line 117  the site's <a href="http://clonezilla-sy Line 130  the site's <a href="http://clonezilla-sy
130    
131    
132  <?php  <?php
133    error_reporting(E_ALL);
134    // error_reporting(E_ERROR);
135    ini_set('display_errors', '1');
136    
137  $file = file_get_contents ('./clonezilla-sysresccd.rss');  $file = file_get_contents ('./clonezilla-sysresccd.rss');
138  $eReg = "<title>[^<]*<";  $eReg = "#<title>[^<]*<#";
139  $tReg = '<a name=\0"></a>\0';  $tReg = '<a name=\0"></a>\0';
140  $file = ereg_replace($eReg,$tReg,$file);  $file = preg_replace($eReg,$tReg,$file);
141    
142  $file = str_replace('<">','">',$file);  $file = str_replace('<">','">',$file);
143  $file = str_replace("<a name=<H2>","<a name=\"",$file);  $file = str_replace("<a name=<H2>","<a name=\"",$file);
# Line 140  $file = str_replace("</rss>","",$file); Line 157  $file = str_replace("</rss>","",$file);
157  //$file = str_replace("<channel>","",$file);  //$file = str_replace("<channel>","",$file);
158  $file = str_replace("</channel>","",$file);  $file = str_replace("</channel>","",$file);
159    
160  $eReg = "^" . ".*" . "<" . "/image" . ">";  $eReg = "#^" . ".*" . "<" . "/image" . ">#";
161  $file = ereg_replace($eReg,"",$file);  $file = preg_replace($eReg,"",$file);
162    
163    
164    $eReg = "#<" . "guid" . "[^<]*" . "<" . "/guid" . ">#";
165    $file = preg_replace($eReg,"",$file);
166    
167    
168    $eReg = "#<" . "link" . "[^<]*" . "<" . "/link" . ">#";
169    $file = preg_replace($eReg,"",$file);
170    
171    
 $eReg = "<" . "guid" . "[^<]*" . "<" . "/guid" . ">";  
 $file = ereg_replace($eReg,"",$file);  
172    
173    $eReg = "#<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>.*</image>#is";
174    $file = preg_replace($eReg,"",$file);
175    
176    
177    
178    // Get top navigation div
179    $eReg = "#<div id=\"docline-top\">.*#";
180    $numMatch = preg_match($eReg,$file,$matches);
181    if($numMatch > 0)
182      $topNav = $matches[0];
183    // echo $topNav;
184    
185    // Get bottom navigation div
186    $eReg = "#<div id=\"docline-bottom\">.*#";
187    $numMatch = preg_match($eReg,$file,$matches);
188    if($numMatch > 0)
189      $bottomNav = $matches[0];
190    // echo $bottomNav;
191    
192    // Remove text starting from line 1 to
193    //   line containing <body> tag
194    $eReg="#<html.*</head>#is";
195    $file = preg_replace($eReg,"",$file);
196    $eReg = "#<!DOCTYPE HTML PUBLIC.*#i";
197    $file = preg_replace($eReg,"",$file);
198    $eReg = "#<body.*#i";
199    $file = preg_replace($eReg,"",$file);
200    
 $eReg = "<" . "link" . "[^<]*" . "<" . "/link" . ">";  
 $file = ereg_replace($eReg,"",$file);  
201    
202  //$file = ereg_replace();  //$file = ereg_replace();
203    
# Line 166  $file = ereg_replace($eReg,"",$file); Line 214  $file = ereg_replace($eReg,"",$file);
214  <!--<a name="template-top"></a>-->  <!--<a name="template-top"></a>-->
215    
216    <div id="footer">    <div id="footer">
217    <p>Copyright: &#169; <a href="mailto:&#115;&#110;&#103;&#064;&#104;&#101;&#108;&#108;&#117;&#103;&#046;&#103;&#114;?subject=About Clonezilla-SysRescCD v 3.1.0">Spiros Georgaras</a>, 2007-2010<br /><br/>    <p>Copyright: &#169; <a href="mailto:&#115;&#110;&#103;&#064;&#104;&#101;&#108;&#108;&#117;&#103;&#046;&#103;&#114;?subject=About Clonezilla-SysRescCD v 3.2.0">Spiros Georgaras</a>, 2007-2010<br /><br/>
218    Hosted by <a href="http://www.hellug.gr" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p>    Hosted by <a href="http://hellug.gr/index.php/OSullogos/Tautothta?from=Main.HELLUG" target="_blank" title="Hellenic Linux User Group">HEL.L.U.G.</a></p>
219    </div>    </div>
220  </div>  </div>
221    <div id="warning" align="center">
222    WARNING<br>
223    This is the UNSTABLE version of Clonezilla-SysRescCD<br>
224    To access our current stable version, please click <a href="../index.html">here</a>
225    </div>
226  </body>  </body>
227  </html>  </html>

Legend:
Removed from v.95  
changed lines
  Added in v.167

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26