This file is part of CAcert. CAcert has been released under the CAcert Source License which can be found included with these source files or can be downloaded from the internet from the following address: http://www.cacert.org/src-lic.php CAcert is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more details. */ ?>

"._("Wiki Documentation")."", "MoinMoin")?>.

".date("Y-m-d", $row['TS'])." - ".$row['short']."

\n"; if($row['story'] != "") echo "

[ "._("Full Story")." ]

\n"; } if(mysql_num_rows(mysql_query("select * from `news`")) > 2) echo "

[ "._("More News Items")." ]

"; */ $rss = ""; $open = $items = 0; $fp = @fopen("http://blog.CAcert.org/feed/rss/", "r"); if($fp) { echo '

'._('Latest News').' - [ '._('More News Items').' ]

'; while(!feof($fp)) $rss .= trim(fgets($fp, 4096)); fclose($fp); $rss = str_replace("><", ">\n<", $rss); $lines = explode("\n", $rss); foreach($lines as $line) { $line = trim($line); if($line != "" && $open == 0) continue; if($line == "" && $open == 0) { $open = 1; continue; } if($line == "" && $open == 1) { $items++; if($items >= 2) break; $open == 0; continue; } if(substr($line, 0, 7) == "") echo "<h3>".str_replace("&#", "&#", recode_string("UTF8..html", str_replace("&", "", trim(substr($line, 7, -8)))))."</h3>\n"; if(substr($line, 0, 13) == "<description>") echo "<p>".str_replace("&#", "&#", recode_string("UTF8..html", str_replace("&", "", trim(substr($line, 13, -14)))))."</p>\n"; if(substr($line, 0, 6) == "<link>") echo "<p>[ <a href='".trim(substr($line, 6, -7))."'>"._("Full Story")."</a> ]</p>\n"; } } ?>