bug 1112: Fix things popped up in review:
[cacert-devel.git] / pages / wot / 4.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 require_once(dirname(__FILE__).'/../../includes/wot.inc.php');
19 ?>
20
21 <h3><?=_("Trusted Third Parties")?></h3>
22
23 <p><?=_("The Trusted Third Party (TTP) programme is intended to be used in areas without many CAcert Assurers.")?></p>
24
25 <p><?=_("A Trusted Third Party (TTP) is simply someone in your country that is responsible for witnessing signatures and ID documents. This role is covered by many different titles such as public notary, justice of the peace and so on.")?></p>
26
27 <p><?=_("With the TTP programme you can potentially gain assurance up to a maximum of 100 assurance points.")?></p>
28
29 <p><?=_("Currently CAcert has only developed the TTP programme to the level that you can gain 70 assurance points by TTP assurances.") ?></p>
30
31 <p><?=_("We are working to develop a process that will fill the gap of the missing 30 assurance points to allow you to get the maximum 100 assurance points.")?> </p>
32
33 <p><?=_("In the meanwhile you would need to close this gap with face to face assurances with CAcert Assurers. Think not only travelling to populated countries, but also remember that assurers may occasionally visit your country or area.")?></p>
34
35 <p><?=sprintf(_("If you are interested in the TTP programme, read the pages %s for the basic way how the TTP programme works for you, and %s whether the TTP programme affects the country where you are located."),"<a href='//wiki.cacert.org/TTP/TTPuser'>https://wiki.cacert.org/TTP/TTPuser</a>","<a href='//wiki.cacert.org/TTP/TTPAL'>https://wiki.cacert.org/TTP/TTPAL</a>")?> </p>
36
37 <?
38 // test for points <100
39 if ($_SESSION['profile']['points']<100){
40 // test for TTP assurances
41 if (get_number_of_ttpassurances(intval($_SESSION['profile']['id']))<2){?>
42 <p><?=_("If you want to ask for TTP assurances fill out the missing data and send the request to support@cacert.org to start the process. CAcert will then inform you about the next steps.")?></p>
43 <form method="post" action="wot.php">
44 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
45 <tr>
46 <td class="DataTD"><?=_("Country where you want to visit the TTP")?></td>
47 <td class="DataTD"><select size="1" name="country">
48 <option>Australia</option>
49 <option>Puerto Rico</option>
50 <option>USA</option>
51 </select></td>
52 </tr>
53 <tr>
54 <td class="DataTD"><?=_("I want to take part in the TTP Topup programme")?></td>
55 <td class="DataTD"><input type="checkbox" name="ttptopup" value="1"></td>
56 </tr>
57 <tr>
58 <td colspan="2" >
59 <input type="hidden" name="oldid" value="<?=intval($id)?>">
60 <input type="submit" name="ttp" value="<?=_("I need a TTP assurance")?>">
61 </td>
62 </tr>
63 </table>
64 </form>
65 <? //"
66 } else {
67 /* As soon as the TPP TOPUP Programme is established this routine should be used
68 <p><?=_("As you have already got 2 TTP assurances you can only take part in the TTP TOPUP programme. If you want to ask for the TTP TOPUP programme use the submit button to send the request to support@cacert.org to start the process. CAcert will then inform you about the next steps.")?></p>
69 <form method="post" action="wot.php">
70 <input type="hidden" name="oldid" value="<?=intval($id)?>">
71 <input type="submit" name="ttptopup" value="<?=_("I need a TTP TOPUP")?>">
72 </form>
73 */
74 ?>
75 <p><?=_("We are working to develop the TTP TOPUP process to be able to fill the gap of the missing 30 assurance points to 100 assurance points. Meanwhile you have to close this gap with face to face assurances from CAcert Assurers. Think not only travelling to populated countries, but as well to assurers visiting your country or area.")?></p>
76 <?
77 }
78 } else {
79 ?>
80 <p><?=_("You reached the maximum points that can be granted by the TTP programme and therefore you cannot take part in the TTP programme any more.")?></p>
81 <?
82 }