2004-10-16 00:28:17 +00:00
|
|
|
<? /*
|
|
|
|
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
|
|
|
|
|
|
|
|
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.
|
|
|
|
*/ ?>
|
|
|
|
<h3><?=_("Introduction")?></h3>
|
|
|
|
|
|
|
|
<p><?=_("It's been a long time coming, but the wait was worthwhile, finally you are able to get security at the right price... Free!")?></p>
|
|
|
|
|
|
|
|
<p><?=_("For years we've all been charged high amounts of money to pay for security that doesn't and shouldn't cost the earth.")?></p>
|
|
|
|
|
|
|
|
<p><?=_("The primary goals are:")?>
|
|
|
|
<ul>
|
|
|
|
<li><?=_("Inclusion into mainstream browsers!")?></li>
|
|
|
|
<li><?=_("To provide a trust mechanism to go with the security aspects of encryption.")?></li>
|
|
|
|
</ul>
|
2004-10-16 15:32:35 +00:00
|
|
|
<br>
|
2005-12-04 21:04:05 +00:00
|
|
|
<p><a href="http://blog.CAcert.org"><?=_("Latest News")?></a> - [ <a href='http://blog.CAcert.org'><?=_("More News Items")?></a> ]</p>
|
2004-10-16 00:28:17 +00:00
|
|
|
<?
|
2005-12-04 21:04:05 +00:00
|
|
|
/*
|
2005-03-12 19:40:24 +00:00
|
|
|
$query = "select *, UNIX_TIMESTAMP(`when`) as `TS` from news order by `when` desc limit 5";
|
2004-10-16 00:28:17 +00:00
|
|
|
$res = mysql_query($query);
|
|
|
|
while($row = mysql_fetch_assoc($res))
|
|
|
|
{
|
|
|
|
echo "<p><b>".date("Y-m-d", $row['TS'])."</b> - ".$row['short']."</p>\n";
|
|
|
|
if($row['story'] != "")
|
2005-07-01 13:12:14 +00:00
|
|
|
echo "<p>[ <a href='news.php?id=".$row['id']."'>"._("Full Story")."</a> ]</p>\n";
|
2004-10-16 00:28:17 +00:00
|
|
|
}
|
|
|
|
if(mysql_num_rows(mysql_query("select * from `news`")) > 2)
|
2005-07-01 13:12:14 +00:00
|
|
|
echo "<p>[ <a href='news.php'>"._("More News Items")."</a> ]</p>";
|
2005-12-04 21:04:05 +00:00
|
|
|
*/
|
2006-03-05 11:18:16 +00:00
|
|
|
$rss = "";
|
2005-12-04 21:04:05 +00:00
|
|
|
$open = $items = 0;
|
|
|
|
$fp = fopen("http://blog.CAcert.org/feed/rss/", "r");
|
|
|
|
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 != "<item>" && $open == 0)
|
|
|
|
continue;
|
|
|
|
|
|
|
|
if($line == "<item>" && $open == 0)
|
|
|
|
{
|
|
|
|
$open = 1;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
|
|
|
|
if($line == "</item>" && $open == 1)
|
|
|
|
{
|
|
|
|
$items++;
|
|
|
|
if($items >= 2)
|
|
|
|
break;
|
|
|
|
$open == 0;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
if(substr($line, 0, 7) == "<title>")
|
|
|
|
echo "<h3>".trim(substr($line, 7, -8))."</h3>\n";
|
|
|
|
if(substr($line, 0, 13) == "<description>")
|
2006-03-05 11:18:16 +00:00
|
|
|
echo "<p>".recode_string("UTF8..html", str_replace("&", "", trim(substr($line, 13, -14))))."</p>\n";
|
2005-12-04 21:04:05 +00:00
|
|
|
if(substr($line, 0, 6) == "<link>")
|
|
|
|
echo "<p>[ <a href='".trim(substr($line, 6, -7))."'>"._("Full Story")."</a> ]</p>\n";
|
|
|
|
}
|
2004-10-16 00:28:17 +00:00
|
|
|
?>
|