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

Diff of /trunk/www/printable.php

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

revision 133 by sng, Wed Sep 22 14:44:59 2010 UTC revision 134 by sng, Fri Sep 24 12:58:07 2010 UTC
# Line 154  if($pageUrlName == "news.php" ){ Line 154  if($pageUrlName == "news.php" ){
154    $eReg = "#<" . "link" . "[^<]*" . "<" . "/link" . ">#";    $eReg = "#<" . "link" . "[^<]*" . "<" . "/link" . ">#";
155    
156    
157  //  $file = preg_replace($eReg,"",$file);    // Remove <link> content
158  //   $indexFile = file_get_contents ("./index.html");    $file = preg_replace( "#<link>.*</link>#i" , "" , $file );
 //   $headerTokken = preg_match("#<div id=\"header\".*<div id=\"contarea\">#is", $indexFile , $matches);  
 //   if( $headerTokken == 0 )  
 //     echo "<big>Error: Cannot find header in <b>index.html</b>!!!</big>";  
 //   else{  
 //     $headerTokken = $matches[0];  
 //     $headerTokken = preg_replace( "#<div id=\"lphp\".*#" , "" , $headerTokken );  
 //     $headerTokken = preg_replace( "#<div id=\"linkline\">.*<div id=\"contarea\">#is" , "" , $headerTokken );  
 //     $headerTokken = str_replace("position: absolute; left: 0px;","position: absolute; left: 40pt;",$headerTokken);  
 //     $headerTokken = str_replace("position: absolute; right: 0px;","position: absolute; right: 40pt;",$headerTokken);  
 //     $headerTokken = preg_replace( "#Well*come#" , "What's New" , $headerTokken );  
 //     $headerTokken = preg_replace( "#</H2>.*<H3>#is" , "<br>" , $headerTokken );  
 // //    $headerTokken = preg_replace( "#(.*)</div>$#is" , "$1<div></div style=\"margin-bottom: 300px;\"></div>" , $headerTokken );  
 // //    $headerTokken = str_replace( " style=\"margin:0; padding: 3px; width: 980; position relative;\">" , ">" , $headerTokken );  
 //     echo $headerTokken;  
 //   }  
 // //  $file = preg_replace( "#<body style=\"margin: 40pt;\">#" , "<body style=\"margin: 40pt;\">\n".$headerTokken , $file );  
 //  
159    
160    echo "<H2>Clonezilla-SysRescCD<br>What's New</H2>";    echo "<H2>Clonezilla-SysRescCD<br>What's New</H2>";
161    
162  } else {  } else {
163        
     
164    // Remove RSS    // Remove RSS
165    $eReg="#<div id=\"lphp\" style=.*</div>#";    $eReg="#<div id=\"lphp\" style=.*</div>#";
166    $file=preg_replace($eReg,"",$file);    $file=preg_replace($eReg,"",$file);

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26