/[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 133 by sng, Wed Sep 22 14:44:59 2010 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 75  Line 75 
75  <body>  <body>
76  <div id="header">  <div id="header">
77  <a name="news-top"></a>  <a name="news-top"></a>
78  <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>
79  <H2>Clonezilla-SysRescCD</H2>  <H2>Clonezilla-SysRescCD</H2>
80  <H3>What's New</H3>  <H3>What's New</H3>
81    <div style="margin:0; padding: 3px; width: 980; position relative;">    <div style="margin:0; padding: 3px; width: 980; position relative;">
82      <div style="position: absolute; left: 0px;"><H4>10/08/2010 - v 3.1.0</H4></div>      <div style="position: absolute; left: 0px;"><H4>15/09/2010 - v 3.1.0</H4></div>
83      <div style="position: absolute; right: 0px;"><H4>Last update: 13/08/2010</H4></div>      <div style="position: absolute; right: 0px;"><H4>Last update: 18/09/2010</H4></div>
84    </div>    </div>
85  </div>  </div>
86  <div id="linkline">  <div id="linkline">
# Line 117  the site's <a href="http://clonezilla-sy Line 117  the site's <a href="http://clonezilla-sy
117    
118    
119  <?php  <?php
120    error_reporting(E_ALL);
121    // error_reporting(E_ERROR);
122    ini_set('display_errors', '1');
123    
124  $file = file_get_contents ('./clonezilla-sysresccd.rss');  $file = file_get_contents ('./clonezilla-sysresccd.rss');
125  $eReg = "<title>[^<]*<";  $eReg = "#<title>[^<]*<#";
126  $tReg = '<a name=\0"></a>\0';  $tReg = '<a name=\0"></a>\0';
127  $file = ereg_replace($eReg,$tReg,$file);  $file = preg_replace($eReg,$tReg,$file);
128    
129  $file = str_replace('<">','">',$file);  $file = str_replace('<">','">',$file);
130  $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 144  $file = str_replace("</rss>","",$file);
144  //$file = str_replace("<channel>","",$file);  //$file = str_replace("<channel>","",$file);
145  $file = str_replace("</channel>","",$file);  $file = str_replace("</channel>","",$file);
146    
147  $eReg = "^" . ".*" . "<" . "/image" . ">";  $eReg = "#^" . ".*" . "<" . "/image" . ">#";
148  $file = ereg_replace($eReg,"",$file);  $file = preg_replace($eReg,"",$file);
149    
150    
151    $eReg = "#<" . "guid" . "[^<]*" . "<" . "/guid" . ">#";
152    $file = preg_replace($eReg,"",$file);
153    
154    
155    $eReg = "#<" . "link" . "[^<]*" . "<" . "/link" . ">#";
156    $file = preg_replace($eReg,"",$file);
157    
158    
159    
160    $eReg = "#<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>.*</image>#is";
161    $file = preg_replace($eReg,"",$file);
162    
163    
164    
165    // Get top navigation div
166    $eReg = "#<div id=\"docline-top\">.*#";
167    $numMatch = preg_match($eReg,$file,$matches);
168    if($numMatch > 0)
169      $topNav = $matches[0];
170    // echo $topNav;
171    
172  $eReg = "<" . "guid" . "[^<]*" . "<" . "/guid" . ">";  // Get bottom navigation div
173  $file = ereg_replace($eReg,"",$file);  $eReg = "#<div id=\"docline-bottom\">.*#";
174    $numMatch = preg_match($eReg,$file,$matches);
175    if($numMatch > 0)
176      $bottomNav = $matches[0];
177    // echo $bottomNav;
178    
179    // Remove text starting from line 1 to
180    //   line containing <body> tag
181    $eReg="#<html.*</head>#is";
182    $file = preg_replace($eReg,"",$file);
183    $eReg = "#<!DOCTYPE HTML PUBLIC.*#i";
184    $file = preg_replace($eReg,"",$file);
185    $eReg = "#<body.*#i";
186    $file = preg_replace($eReg,"",$file);
187    
 $eReg = "<" . "link" . "[^<]*" . "<" . "/link" . ">";  
 $file = ereg_replace($eReg,"",$file);  
188    
189  //$file = ereg_replace();  //$file = ereg_replace();
190    
# Line 167  $file = ereg_replace($eReg,"",$file); Line 202  $file = ereg_replace($eReg,"",$file);
202    
203    <div id="footer">    <div id="footer">
204    <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.1.0">Spiros Georgaras</a>, 2007-2010<br /><br/>
205    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>
206    </div>    </div>
207  </div>  </div>
208  </body>  </body>

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26