/* LibreSSL - CAcert web application Copyright (C) 2004-2008 CAcert Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?>
=sprintf(_("If you want to have free certificates issued to you, join the %s CAcert Community %s."),"","")?>
=sprintf(_("If you want to use certificates issued by CAcert, read the CAcert %s Root Distribution License %s."),'',"")?> =sprintf(_("This license applies to using the CAcert %s root keys %s."),'','')?>
if(!array_key_exists('mconn',$_SESSION) || !$_SESSION['mconn']) echo ""._("Most CAcert functions are currently unavailable. Please come back later.")."";?>%s
\n\n",_('Latest News')); $xml = "/www/pages/index/feed.rss"; // FIXME: use relative path to allow operation with different document root $dom = new DOMDocument(); $dom->preserveWhiteSpace = false; $dom->Load($xml); $xpath = new DOMXPath($dom); //Create an XPath query $query = "//channel/item"; $items = $xpath->query($query); $count = 0; foreach($items as $id => $item) { $query = "./title"; $nodeList = $xpath->query($query, $item); $title = recode_string("UTF8..html" , $nodeList->item(0)->nodeValue); $query = "./link"; $nodeList = $xpath->query($query, $item); $link = htmlspecialchars($nodeList->item(0)->nodeValue); $query = "./description"; $nodeList = $xpath->query($query, $item); $description = $nodeList->item(0)->nodeValue; // The description may contain HTML entities => convert them $description = html_entity_decode($description, ENT_COMPAT | ENT_HTML401, 'UTF-8'); // Description may contain HTML markup and unicode characters => encode them // If we didn't decode and then encode again, (i.e. take the content // as it is in the RSS feed) we might inject harmful markup $description = recode_string("UTF8..html", $description); printf("%s
\n", nl2br($description)); $title = ''; $description = ''; $link = ''; $count++; if ($count >= 3) { break; } } ?> [ =_('More News Items')?> ]=sprintf(_("Have you passed the CAcert %s Assurer Challenge %s yet?"),'','')?>
=sprintf(_("Have you read the CAcert %sCommunity Agreement%s yet?"),'','')?>
=sprintf(_("For general documentation and help, please visit the CAcert %sWiki Documentation site %s."),'','')?> =sprintf(_("For specific policies, see the CAcert %sApproved Policies page%s."),'',"")?>
=_("If you are located in Australia, use bank transfer instead.")?>
=_("CAcert bank account details:")?>