bug-1023 changed 6.php to new coding (preparation for thawte-points/PoJAM/...) ....
[cacert-devel.git] / pages / wot / 6.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 <?
19
20 function makecap()
21 {
22 }
23
24 if(!array_key_exists('notarise',$_SESSION['_config']))
25 {
26 echo "Error: No user data found.";
27 exit;
28 }
29
30 $row = $_SESSION['_config']['notarise'];
31
32 if($_SESSION['profile']['ttpadmin'] == 1)
33 $methods = array("Face to Face Meeting", "Trusted 3rd Parties", "TopUP");
34 else
35 $methods = array("Face to Face Meeting", "Trusted 3rd Parties");
36
37 $fname = $row['fname'];
38 $mname = $row['mname'];
39 $lname = $row['lname'];
40 $suffix = $row['suffix'];
41 $dob = $row['dob'];
42
43 $cap=makecap($fname,$mname,$lname,$suffix,$dob,$row['email'],$_SESSION['profile']['fname'].$_SESSION['profile']['mname'].$_SESSION['profile']['lname'].$_SESSION['profile']['suffix']);
44
45 include_once($_SESSION['_config']['filepath']."/includes/wot.inc.php");
46
47 AssureHead(_("Assurance Confirmation"),sprintf(_("Please check the following details match against what you witnessed when you met %s in person. You MUST NOT proceed unless you are sure the details are correct. You may be held responsible by the CAcert Arbitrator for any issues with this Assurance."), $fname));
48 AssureTextLine(_("Name"),$fname." ".$mname." ".$lname." ".$suffix);
49 AssureTextLine(_("Date of Birth"),$dob." ("._("YYYY-MM-DD").")");
50 AssureBoxLine("certify",sprintf(_("I certify that %s %s %s has appeared in person"), $fname, $mname, $lname));
51 AssureInboxLine("location",_("Location"),array_key_exists('location',$_SESSION['_config'])?$_SESSION['_config']['location']:"","");
52 AssureInboxLine("date",_("Date"),array_key_exists('location',$_SESSION['_config'])?$_SESSION['_config']['location']:"","<br/>"._("Only fill this in if you assured the person on a different day"));
53 if($_SESSION['profile']['ttpadmin'] == 1)
54 AssureMethodLine(_("Method"),$methods,_("Only tick the next box if the Assurance was face to face."));
55 AssureBoxLine("assertion",_("I believe that the assertion of identity I am making is correct, complete and verifiable. I have seen original documentation attesting to this identity. I accept that the CAcert Arbitrator may call upon me to provide evidence in any dispute, and I may be held responsible."));
56 AssureBoxLine("rules",_("I have read and understood the Assurance Policy and the Assurance Handbook and am making this Assurance subject to and in compliance with the policy and handbook."));
57 AssureTextLine(_("Policy"),"<a href=\"/policy/AssurancePolicy.php\" target=\"_NEW\">"._("Assurance Policy")."</a> - <a href=\"http://wiki.cacert.org/AssuranceHandbook2\" target=\"_NEW\">"._("Assurance Handbook")."</a>");
58 AssureInboxLine("points",_("Points"),"","<br />(Max. ".maxpoints().")");
59 AssureCCABoxLine("CCAAgreed",sprintf(_("Check this box only if %s agreed to the <a href=\"/policy/CAcertCommunityAgreement.php\">CAcert Community Agreement</a>"),$fname));
60 AssureCCABoxLine("CCAAgree",_("Check this box only if YOU agree to the <a href=\"/policy/CAcertCommunityAgreement.php\">CAcert Community Agreement</a>"));
61 AssureTextLine(_("WoT Form"),"<a href=\"".$cap."\" target=\"_NEW\">A4 - "._("WoT Form")."</a> <a href=\"".$cap."&amp;format=letter\" target=\"_NEW\">US - "._("WoT Form")."</a>");
62 AssureFoot($id,_("I confirm this Assurance"));
63 ?>