|
|
@ -23,8 +23,6 @@
|
|
|
|
<li><?=_("Inclusion into mainstream browsers!")?></li>
|
|
|
|
<li><?=_("Inclusion into mainstream browsers!")?></li>
|
|
|
|
<li><?=_("To provide a trust mechanism to go with the security aspects of encryption.")?></li>
|
|
|
|
<li><?=_("To provide a trust mechanism to go with the security aspects of encryption.")?></li>
|
|
|
|
</ul>
|
|
|
|
</ul>
|
|
|
|
<br>
|
|
|
|
|
|
|
|
<p><a href="http://blog.CAcert.org"><?=_("Latest News")?></a> - [ <a href='http://blog.CAcert.org'><?=_("More News Items")?></a> ]</p>
|
|
|
|
|
|
|
|
<?
|
|
|
|
<?
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
$query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc limit 5";
|
|
|
|
$query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc limit 5";
|
|
|
@ -40,38 +38,44 @@
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
$rss = "";
|
|
|
|
$rss = "";
|
|
|
|
$open = $items = 0;
|
|
|
|
$open = $items = 0;
|
|
|
|
$fp = fopen("http://blog.CAcert.org/feed/rss/", "r");
|
|
|
|
$fp = @fopen("http://blog.CAcert.org/feed/rss/", "r");
|
|
|
|
while(!feof($fp))
|
|
|
|
if($fp)
|
|
|
|
$rss .= trim(fgets($fp, 4096));
|
|
|
|
|
|
|
|
fclose($fp);
|
|
|
|
|
|
|
|
$rss = str_replace("><", ">\n<", $rss);
|
|
|
|
|
|
|
|
$lines = explode("\n", $rss);
|
|
|
|
|
|
|
|
foreach($lines as $line)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$line = trim($line);
|
|
|
|
echo '<br><p><a href="http://blog.CAcert.org">'._('Latest News').'</a> - [ <a href="http://blog.CAcert.org">'._('More News Items').'</a> ]</p>';
|
|
|
|
|
|
|
|
|
|
|
|
if($line != "<item>" && $open == 0)
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($line == "<item>" && $open == 0)
|
|
|
|
while(!feof($fp))
|
|
|
|
|
|
|
|
$rss .= trim(fgets($fp, 4096));
|
|
|
|
|
|
|
|
fclose($fp);
|
|
|
|
|
|
|
|
$rss = str_replace("><", ">\n<", $rss);
|
|
|
|
|
|
|
|
$lines = explode("\n", $rss);
|
|
|
|
|
|
|
|
foreach($lines as $line)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$open = 1;
|
|
|
|
$line = trim($line);
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($line == "</item>" && $open == 1)
|
|
|
|
if($line != "<item>" && $open == 0)
|
|
|
|
{
|
|
|
|
continue;
|
|
|
|
$items++;
|
|
|
|
|
|
|
|
if($items >= 2)
|
|
|
|
if($line == "<item>" && $open == 0)
|
|
|
|
break;
|
|
|
|
{
|
|
|
|
$open == 0;
|
|
|
|
$open = 1;
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($line == "</item>" && $open == 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$items++;
|
|
|
|
|
|
|
|
if($items >= 2)
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
$open == 0;
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(substr($line, 0, 7) == "<title>")
|
|
|
|
|
|
|
|
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";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(substr($line, 0, 7) == "<title>")
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|