6cca117117136da9d589dc1e594dad8f3437c98e
[cacert-devel.git] / pages / index / 0.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */ ?>
18 <h3><?=_("Are you new to CAcert?")?></h3>
19
20 <p><?=_("CAcert.org is a community-driven Certificate Authority that issues certificates to the public at large for free.")?></p>
21
22 <p><?=_("CAcert's goal is to promote awareness and education on computer security through the use of encryption, specifically by providing cryptographic certificates. These certificates can be used to digitally sign and encrypt email, authenticate and authorize users connecting to websites and secure data transmission over the internet. Any application that supports the Secure Socket Layer Protocol (SSL or TLS) can make use of certificates signed by CAcert, as can any application that uses X.509 certificates, e.g. for encryption or code signing and document signatures.")?></p>
23
24 <p><?=sprintf(_("If you want to have free certificates issued to you, %s join the CAcert Community %s."),'<a href="https://www.cacert.org/index.php?id=1">', '</a>')?></p>
25
26 <p><?=sprintf(_("If you want to use certificates issued by CAcert, read the CAcert %s Root Distribution License %s."),'<a href="/policy/RootDistributionLicense.html">',"</a>")?>
27 <?=sprintf(_("This license applies to using the CAcert %s root keys %s."),'<a href="/index.php?id=3">','</a>')?></p>
28
29
30 <? if(!array_key_exists('mconn',$_SESSION) || !$_SESSION['mconn']) echo "<font size='+1'>"._("Most CAcert functions are currently unavailable. Please come back later.")."</font>";?>
31
32
33
34 <div class="newsbox">
35 <?
36 printf("<p id='lnews'>%s</p>\n\n",_('Latest News'));
37
38 $xml = "/www/pages/index/feed.rss"; // FIXME: use relative path to allow operation with different document root
39 $dom = new DOMDocument();
40 $dom->preserveWhiteSpace = false;
41 $dom->Load($xml);
42
43 $xpath = new DOMXPath($dom); //Create an XPath query
44
45 $query = "//channel/item";
46 $items = $xpath->query($query);
47
48 $count = 0;
49 foreach($items as $id => $item) {
50 $query = "./title";
51 $nodeList = $xpath->query($query, $item);
52 $title = recode_string("UTF8..html" , $nodeList->item(0)->nodeValue);
53
54 $query = "./link";
55 $nodeList = $xpath->query($query, $item);
56 $link = htmlspecialchars($nodeList->item(0)->nodeValue);
57
58 $query = "./description";
59 $nodeList = $xpath->query($query, $item);
60 $description = $nodeList->item(0)->nodeValue;
61 // The description may contain HTML entities => convert them
62 $description = html_entity_decode($description, ENT_COMPAT | ENT_HTML401, 'UTF-8');
63 // Description may contain HTML markup and unicode characters => encode them
64 // If we didn't decode and then encode again, (i.e. take the content
65 // as it is in the RSS feed) we might inject harmful markup
66 $description = recode_string("UTF8..html", $description);
67
68 printf("<h3><a href=\"%s\">%s</a></h3>\n", $link, $title);
69 printf("<p>%s</p>\n", nl2br($description));
70
71 $title = '';
72 $description = '';
73 $link = '';
74
75 $count++;
76 if ($count >= 3) {
77 break;
78 }
79 }
80 ?>
81
82 [ <a href="http://blog.CAcert.org/"><?=_('More News Items')?></a> ]
83 </div>
84 <hr/>
85
86 <h3><?=_("For CAcert Community Members")?></h3>
87
88 <p><?=sprintf(_("Have you passed the CAcert %s Assurer Challenge %s yet?"),'<a href="http://wiki.cacert.org/wiki/AssurerChallenge">','</a>')?></p>
89
90 <p><?=sprintf(_("Have you read the CAcert %sCommunity Agreement%s yet?"),'<a href="/policy/CAcertCommunityAgreement.html">','</a>')?></p>
91
92 <p><?=sprintf(_("For general documentation and help, please visit the CAcert %sWiki Documentation site %s."),'<a href="http://wiki.CAcert.org">','</a>')?>
93 <?=sprintf(_("For specific policies, see the CAcert %sApproved Policies page%s."),'<a href="/policy/">',"</a>")?></p>
94
95 <h3><?=_("Do you want to help CAcert?")?></h3>
96 <b><?=_("We are facing an uphill battle to fund this service and could do with your help?")?></b><br/>
97
98 <?=_("If you can, please donate.")?><br />
99 <?=_("AU$50 per year for this button")?><br />
100 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
101 <input type="hidden" name="cmd" value="_s-xclick">
102 <input type="image" src="/images/payment2a.png" border="0" name="submit" alt="PayPal">
103 <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHsQYJKoZIhvcNAQcEoIIHojCCB54CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBxGkBs/mmEZRh6K8mwoFJtMp+osc6AkkbKTcC9vaFbZNIDEYXCuhGWEoAZDXXZDO+AhMezeG0ug87wjDMKFkI5g5ma8uGlhQvZ6Qu1Ra8zeL9iUUk6uPpiq1h2kjD0C9CgoZmrHpKB+T8+EXFG5PISbwqqoE8OOavsxMNGhTzxJzELMAkGBSsOAwIaBQAwggEtBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECPQ/Y13nrcTCgIIBCOLwLR4pRGnq0o5O9jGmhbF2+u56cBWCoRbZGcgoQqHXgdPKTS4EkXmu1wvLa5Y4XTgL6HUVavYViJAONgLkVyktAHlkl5XPycaAuTL4NyXCJf1VjscXS7tPv0CZ8w2JU5MlzsQ8w0UTQF0+4WDpcsj+klTlO5KyyWMaScZBsziGndfeyfO6Navv3Z5SiHb92D/i9Xf4wZaex6pX3u14WPsczTkUpne6qXmgwPS7jG+oPjWPrPRCHpe/wn3P/AC1WyHzr4X8YxR9+2gbjmyE+2RwS5vqFKcApNxuoAAtLoS2IKGg872PJUctAZEoPt2FCwisFwf170tc9gb1dtRe6KymAMRr6T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E692Ag422H7yRIr/9j/iKG4Thia/Oflx4TdL+IFJBAyPK9v6zZNZtBgPBynXb048hsP16l2vi0k5Q2JKiPDsEfBhGI+HnxLXEaUWAcVfCsQFvd2A1sxRr67ip5y2wwBelUecP3AjJ+YcxggGaMIIBlgIBATCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA4MDUwMjA0NDIyOFowIwYJKoZIhvcNAQkEMRYEFHfXhKQoFxBqqG6q/87VmWf4364dMA0GCSqGSIb3DQEBAQUABIGAwPUhL0gvCMysU8a9lqGuYdNm54FYsogI2LXv6vNHKc5/xTHJ65LSV8mhmyWwxL8fUDu8IHOZbccSipiUaQTsPr57tRrwmXOV+7VC/NIciK1ulwvWwazcvP96fdr9B5OqxjxDz8AsEcXnRjFm4LehsdnP9Z9B/Z9/nwT6htjxyO0=-----END PKCS7-----
104 ">
105 </form>
106 <?=_("or a one off donation for this button whatever you can afford to help")?>
107 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
108 <input type="hidden" name="cmd" value="_s-xclick">
109 <input type="image" src="/images/payment2a.png" border="0" name="submit" alt="Make payments with PayPal">
110 <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0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cNAQEBBQAEgYBpwhhgz5ED5qxBosfMaifzIr2anV5ScQqqQbC1hphWBQ4e2PT5+TQWCcQkrTh2UTp3vC81Y8vYZ+fussa+zPBE8DmeFDfzpLJo+TQHZUiKxWUDu6drv3o3mV3VjAkaqIhAdubhEOxj2bbKND3IRT1lfIVVSUipndKzRjukZJK39A==-----END PKCS7-----
111 ">
112 </form>
113 <p><?=_("If you are located in Australia, use bank transfer instead.")?></p>
114
115 <p><?=_("CAcert bank account details:")?></p>
116 <ul class="no_indent">
117 <li>Account Name: CAcert Inc</li>
118 <li>SWIFT: WPACAU2S</li>
119 <li>BSB: 032073</li>
120 <li>Account No.: 180264</li>
121 </ul>
122 <br /><br />
123
124 <?=_("If you want to participate in CAcert.org, have a look")?> <a href="http://wiki.cacert.org/wiki/HelpingCAcert"><?=_("here")?></a> <?=_("and")?> <a href="http://wiki.cacert.org/wiki/SystemTasks"><?=_("here")?></a>.