/[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 134 by sng, Fri Sep 24 12:58:07 2010 UTC revision 144 by sng, Thu Oct 7 02:13:03 2010 UTC
# Line 104  hr{color: Black; background-color: Black Line 104  hr{color: Black; background-color: Black
104  .docline-top a{color: #990000; font-weight: bold;}  .docline-top a{color: #990000; font-weight: bold;}
105  .docline-bottom {color: #990000 ; font-weight: bold; display:block;}  .docline-bottom {color: #990000 ; font-weight: bold; display:block;}
106  .docline-bottom a{color: #990000; font-weight: bold;}  .docline-bottom a{color: #990000; font-weight: bold;}
107        #warning { margin: 0; padding: .4em; background-color: Red; color: White; align: center; font-weight: bold; border-width: 2px; border-color: white; border-style: solid; }
108        #warning a { color: white; font-weight: bold; text-decoration: underline;  }
109    
110  @media print {  @media print {
111  .docline-top {display: none;}  .docline-top {display: none;}
112  .docline-bottom {display: none;}  .docline-bottom {display: none;}
113        #warning { margin: 0; padding: .4em; background-color: Red; color: White; align: center; font-weight: bold; border-width: 2px; border-color: white; border-style: solid; }
114        #warning a { color: white; font-weight: bold; text-decoration: underline;  }
115  }  }
116  </style>  </style>
117    <link href="warning.css" rel="stylesheet" type="text/css" />  
118    <!--
119    The file waring.css exists only in the root of the site
120    and it hides the BETA warnings. Its contents are
121        #warning { display: none; }
122    -->
123    
124  <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd">  <META NAME="Keywords" CONTENT="multiboot Multi Boot bootable cd rescue clonezilla sysresccd">
125  </head>  </head>
126  <body style="margin: 40pt;">  <body style="margin: 40pt;">
127    <!--<div id="warning" align="center">
128    WARNING<br>
129    This is the BETA version of Clonezilla-SysRescCD<br>
130    To acces our current stable version, please click <a href="index.html">here</a>
131    </div>-->
132  <?php  <?php
133    
134  if($pageUrlName == "news.php" ){  if($pageUrlName == "news.php" ){
# Line 154  if($pageUrlName == "news.php" ){ Line 170  if($pageUrlName == "news.php" ){
170    $eReg = "#<" . "link" . "[^<]*" . "<" . "/link" . ">#";    $eReg = "#<" . "link" . "[^<]*" . "<" . "/link" . ">#";
171    
172    
173    // Remove <link> content  //  $file = preg_replace($eReg,"",$file);
174    $file = preg_replace( "#<link>.*</link>#i" , "" , $file );  //   $indexFile = file_get_contents ("./index.html");
175    //   $headerTokken = preg_match("#<div id=\"header\".*<div id=\"contarea\">#is", $indexFile , $matches);
176    //   if( $headerTokken == 0 )
177    //     echo "<big>Error: Cannot find header in <b>index.html</b>!!!</big>";
178    //   else{
179    //     $headerTokken = $matches[0];
180    //     $headerTokken = preg_replace( "#<div id=\"lphp\".*#" , "" , $headerTokken );
181    //     $headerTokken = preg_replace( "#<div id=\"linkline\">.*<div id=\"contarea\">#is" , "" , $headerTokken );
182    //     $headerTokken = str_replace("position: absolute; left: 0px;","position: absolute; left: 40pt;",$headerTokken);
183    //     $headerTokken = str_replace("position: absolute; right: 0px;","position: absolute; right: 40pt;",$headerTokken);
184    //     $headerTokken = preg_replace( "#Well*come#" , "What's New" , $headerTokken );
185    //     $headerTokken = preg_replace( "#</H2>.*<H3>#is" , "<br>" , $headerTokken );
186    // //    $headerTokken = preg_replace( "#(.*)</div>$#is" , "$1<div></div style=\"margin-bottom: 300px;\"></div>" , $headerTokken );
187    // //    $headerTokken = str_replace( " style=\"margin:0; padding: 3px; width: 980; position relative;\">" , ">" , $headerTokken );
188    //     echo $headerTokken;
189    //   }
190    // //  $file = preg_replace( "#<body style=\"margin: 40pt;\">#" , "<body style=\"margin: 40pt;\">\n".$headerTokken , $file );
191    //
192    
193    echo "<H2>Clonezilla-SysRescCD<br>What's New</H2>";    echo "<H2>Clonezilla-SysRescCD<br>What's New</H2>";
194    
195  } else {  } else {
196        
197      
198    // Remove RSS    // Remove RSS
199    $eReg="#<div id=\"lphp\" style=.*</div>#";    $eReg="#<div id=\"lphp\" style=.*</div>#";
200    $file=preg_replace($eReg,"",$file);    $file=preg_replace($eReg,"",$file);
# Line 242  echo $file; Line 276  echo $file;
276    
277    
278  ?>  ?>
279    
280    
281    
282    <div id="warning" align="center">
283    WARNING<br>
284    This is the BETA version of Clonezilla-SysRescCD<br>
285    To acces our current stable version, please click <a href="index.html">here</a>
286    </div>
287  </body>  </body>
288  </html>  </html>

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

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26