Merge branch 'release' into bug-1131
[cacert-devel.git] / pages / index / 1.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 <p><?=_("By joining CAcert and becoming a member, you agree to the CAcert Community Agreement. Please take a moment now to read that and agree to it; this will be required to complete the process of joining.")?></p>
19 <p><?=_("Warning! This site requires cookies to be enabled to ensure your privacy and security. This site uses session cookies to store temporary values to prevent people from copying and pasting the session ID to someone else exposing their account, personal details and identity theft as a result.")?></p>
20 <p style="border:dotted 1px #900;padding:0.3em;background-color:#ffe;">
21 <b><?=_("Note: Please enter your date of birth and names as they are written in your official documents.")?></b><br /><br />
22 <?=_("Because CAcert is a certificate authority (CA) people rely on us knowing about the identity of the users of our certificates. So even as we value privacy very much, we need to collect at least some basic information about our members. This is especially the case for everybody who wants to take part in our web of trust.")?>
23 <?=_("Your private information will be used for internal procedures only and will not be shared with third parties.")?>
24 </p>
25 <p style="border:dotted 1px #900;padding:0.3em;background-color:#ffe;">
26 <?=_("A proper password wouldn't match your name or email at all, it contains at least 1 lower case letter, 1 upper case letter, a number, white space and a misc symbol. You get additional security for being over 15 characters and a second additional point for having it over 30. The system starts reducing security if you include any section of your name, or password or email address or if it matches a word from the english dictionary...")?><br><br>
27 <b><?=_("Note: White spaces at the beginning and end of a password will be removed.")?></b>
28 </p>
29
30 <form method="post" action="index.php" autocomplete="off">
31 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">
32 <tr>
33 <td colspan="3" class="title"><?=_("My Details")?></td>
34 </tr>
35
36 <tr>
37 <td class="DataTD" width="125"><?=_("First Name")?>: </td>
38 <td class="DataTD" width="125"><input type="text" name="fname" size="30" value="<?=array_key_exists('fname',$_REQUEST)?sanitizeHTML($_REQUEST['fname']):""?>" autocomplete="off"></td>
39 <td rowspan="4" class="DataTD" width="125"><? printf(_("Help on Names %sin the wiki%s"),'<a href="//wiki.cacert.org/FAQ/HowToEnterNamesInJoinForm" target="_blank">','</a>')?></td>
40 </tr>
41
42 <tr>
43 <td class="DataTD" valign="top"><?=_("Middle Name(s)")?><br>
44 (<?=_("optional")?>)
45 </td>
46 <td class="DataTD"><input type="text" name="mname" size="30" value="<?=array_key_exists('mname',$_REQUEST)?sanitizeHTML($_REQUEST['mname']):""?>" autocomplete="off"></td>
47 </tr>
48
49 <tr>
50 <td class="DataTD"><?=_("Last Name")?>: </td>
51 <td class="DataTD"><input type="text" name="lname" size="30" value="<?=array_key_exists('lname',$_REQUEST)?sanitizeHTML($_REQUEST['lname']):""?>" autocomplete="off"></td>
52 </tr>
53
54 <tr>
55 <td class="DataTD"><?=_("Suffix")?><br>
56 (<?=_("optional")?>)</td>
57 <td class="DataTD"><input type="text" name="suffix" size="30" value="<?=array_key_exists('suffix',$_REQUEST)?sanitizeHTML($_REQUEST['suffix']):""?>" autocomplete="off"><br><?=sprintf(_("Please only write Name Suffixes into this field."))?></td>
58 </tr>
59
60 <tr>
61 <td class="DataTD"><?=_("Date of Birth")?><br>
62 (<?=_("dd/mm/yyyy")?>)</td>
63 <td class="DataTD"><nobr><select name="day">
64 <?
65 for($i = 1; $i <= 31; $i++)
66 {
67 echo "<option";
68 if(array_key_exists('day',$_SESSION['signup']) && $_SESSION['signup']['day'] == $i)
69 echo " selected=\"selected\"";
70 echo ">$i</option>";
71 }
72 ?>
73 </select>
74 <select name="month">
75 <?
76 for($i = 1; $i <= 12; $i++)
77 {
78 echo "<option value='$i'";
79 if(array_key_exists('month',$_SESSION['signup']) && $_SESSION['signup']['month'] == $i)
80 echo " selected=\"selected\"";
81 echo ">".ucwords(strftime("%B", mktime(0,0,0,$i,1,date("Y"))))." ($i)</option>\n";
82 }
83 ?>
84 </select>
85 <input type="text" name="year" value="<?=array_key_exists('year',$_SESSION['signup']) ? sanitizeHTML($_SESSION['signup']['year']):""?>" size="4" autocomplete="off"></nobr>
86 </td>
87 <td class="DataTD">&nbsp;</td>
88 </tr>
89
90 <tr>
91 <td class="DataTD"><?=_("Email Address")?>: </td>
92 <td class="DataTD"><input type="text" name="email" size="30" value="<?=array_key_exists('email',$_REQUEST)?sanitizeHTML($_REQUEST['email']):""?>" autocomplete="off"></td>
93 <td class="DataTD"><?=_("I own or am authorised to control this email address")?></td>
94 </tr>
95
96 <tr>
97 <td class="DataTD"><?=_("Pass Phrase")?><font color="red">*</font>: </td>
98 <td class="DataTD"><input type="password" name="pword1" size="30" autocomplete="off"></td>
99 <td class="DataTD" rowspan="2">&nbsp;</td>
100 </tr>
101 <tr>
102 <td class="DataTD"><?=_("Pass Phrase Again")?><font color="red">*</font>: </td>
103 <td class="DataTD"><input type="password" name="pword2" size="30" autocomplete="off"></td>
104 </tr>
105
106 <tr>
107 <td class="DataTD" colspan="3"><font color="red">*</font><?=_("Please note, in the interests of good security, the pass phrase must be made up of an upper case letter, lower case letter, number and symbol.")?></td>
108 </tr>
109
110 <tr>
111 <td class="DataTD" colspan="3"><?=_("Lost Pass Phrase Questions - Please enter five questions and your responses to be used for security verification.")?></td>
112 </tr>
113
114 <tr>
115 <td class="DataTD">&nbsp;</td>
116 <td class="DataTD"><?=_("Question")?></td>
117 <td class="DataTD"><?=_("Answer")?></td>
118 </tr>
119
120 <tr>
121 <td class="DataTD">1)</td>
122 <td class="DataTD"><input type="text" name="Q1" size="30" value="<?=array_key_exists('Q1',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q1']):""?>"></td>
123 <td class="DataTD"><input type="text" name="A1" size="30" value="<?=array_key_exists('A1',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A1']):""?>" autocomplete="off"></td>
124 </tr>
125
126 <tr>
127 <td class="DataTD">2)</td>
128 <td class="DataTD"><input type="text" name="Q2" size="30" value="<?=array_key_exists('Q2',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q2']):""?>"></td>
129 <td class="DataTD"><input type="text" name="A2" size="30" value="<?=array_key_exists('A2',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A2']):""?>" autocomplete="off"></td>
130 </tr>
131
132 <tr>
133 <td class="DataTD">3)</td>
134 <td class="DataTD"><input type="text" name="Q3" size="30" value="<?=array_key_exists('Q3',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q3']):""?>"></td>
135 <td class="DataTD"><input type="text" name="A3" size="30"value="<?=array_key_exists('A3',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A3']):""?>" autocomplete="off"></td>
136 </tr>
137
138 <tr>
139 <td class="DataTD">4)</td>
140 <td class="DataTD"><input type="text" name="Q4" size="30"" value="<?=array_key_exists('Q4',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q4']):""?>"></td>
141 <td class="DataTD"><input type="text" name="A4" size="30" value="<?=array_key_exists('A4',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A4']):""?>" autcomplete="off"></td>
142 </tr>
143
144 <tr>
145 <td class="DataTD">5)</td>
146 <td class="DataTD"><input type="text" name="Q5" size="30" value="<?=array_key_exists('Q5',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q5']):""?>"></td>
147 <td class="DataTD"><input type="text" name="A5" size="30" value="<?=array_key_exists('A5',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A5']):""?>" autocomplete="off"></td>
148 </tr>
149
150 <tr>
151 <td class="DataTD" colspan="3"><?=_("It's possible to get notifications of up and coming events and even just general announcements, untick any notifications you don't wish to receive. For country, regional and radius notifications to work you must choose your location once you've verified your account and logged in.")?></td>
152 </tr>
153
154 <tr>
155 <td class="DataTD" valign="top"><?=_("Alert me if")?>: </td>
156 <td class="DataTD" align="left">
157 <input type="checkbox" name="general" value="1" <?=array_key_exists('general',$_SESSION['signup'])? ($_SESSION['signup']['general'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("General Announcements")?><br>
158 <input type="checkbox" name="country" value="1" <?=array_key_exists('country',$_SESSION['signup'])? ($_SESSION['signup']['country'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("Country Announcements")?><br>
159 <input type="checkbox" name="regional" value="1" <?=array_key_exists('regional',$_SESSION['signup'])? ($_SESSION['signup']['regional'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("Regional Announcements")?><br>
160 <input type="checkbox" name="radius" value="1" <?=array_key_exists('radius',$_SESSION['signup'])? ($_SESSION['signup']['radius'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("Within 200km Announcements")?></td>
161 <td class="DataTD">&nbsp;</td>
162 </tr>
163
164 <tr>
165 <td class="DataTD" colspan="3"><?=_("When you click on next, we will send a confirmation email to the email address you have entered above.")?></td>
166 </tr>
167 <tr>
168 <td class="DataTD" colspan="3"><input type="checkbox" name="cca_agree" value="1" <?=array_key_exists('cca_agree',$_SESSION['signup'])? ($_SESSION['signup']['cca_agree'] == "1" ?"checked=\"checked\"":""):"" ?> ><?=_("I agree to the terms and conditions of the CAcert Community Agreement")?>: <a href="/policy/CAcertCommunityAgreement.html">http://www.cacert.org/policy/CAcertCommunityAgreement.html</a></td>
169 </tr>
170
171 <tr>
172 <td class="DataTD" colspan="3"><input type="submit" name="process" value="<?=_("Next")?>"></td>
173 </tr>
174
175 </table>
176 <input type="hidden" name="oldid" value="<?=$id?>">
177 </form>