source code taken from cacert-20090625.tar.bz2
[cacert.git] / cacert / 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><?=_("In light of the number of people having issues with making up a password we have the following suggestions:")?></b><br><br>
22 <?=_("To get a password that will work, we suggest the following example")?>: Fr3d Sm|7h<br><br>
23 <?=_("This 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...")?>
24 </p>
25
26 <form method="post" action="index.php" autocomplete="off">
27 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">
28 <tr>
29 <td colspan="2" class="title"><?=_("My Details")?></td>
30 </tr>
31 <tr>
32 <td class="DataTD" width="125"><?=_("First Name")?>: </td>
33 <td class="DataTD" width="125"><input type="text" name="fname" value="<?=array_key_exists('fname',$_REQUEST)?sanitizeHTML($_REQUEST['fname']):""?>" autocomplete="off"></td>
34 </tr>
35 <tr>
36 <td class="DataTD" valign="top"><?=_("Middle Name(s)")?><br>
37 (<?=_("optional")?>)
38 </td>
39 <td class="DataTD"><input type="text" name="mname" value="<?=array_key_exists('mname',$_REQUEST)?sanitizeHTML($_REQUEST['mname']):""?>" autocomplete="off"></td>
40 </tr>
41 <tr>
42 <td class="DataTD"><?=_("Last Name")?>: </td>
43 <td class="DataTD"><input type="text" name="lname" value="<?=array_key_exists('lname',$_REQUEST)?sanitizeHTML($_REQUEST['lname']):""?>" autocomplete="off"></td>
44 </tr>
45 <tr>
46 <td class="DataTD"><?=_("Suffix")?><br>
47 (<?=_("optional")?>)</td>
48 <td class="DataTD"><input type="text" name="suffix" value="<?=array_key_exists('suffix',$_REQUEST)?sanitizeHTML($_REQUEST['suffix']):""?>" autocomplete="off"></td>
49 </tr>
50 <tr>
51 <td class="DataTD"><?=_("Date of Birth")?><br>
52 (<?=_("dd/mm/yyyy")?>)</td>
53 <td class="DataTD"><nobr><select name="day">
54 <?
55 for($i = 1; $i <= 31; $i++)
56 {
57 echo "<option";
58 if(array_key_exists('day',$_SESSION['signup']) && $_SESSION['signup']['day'] == $i)
59 echo " selected=\"selected\"";
60 echo ">$i</option>";
61 }
62 ?>
63 </select>
64 <select name="month">
65 <?
66 for($i = 1; $i <= 12; $i++)
67 {
68 echo "<option value='$i'";
69 if(array_key_exists('month',$_SESSION['signup']) && $_SESSION['signup']['month'] == $i)
70 echo " selected=\"selected\"";
71 echo ">".ucwords(strftime("%B", mktime(0,0,0,$i,1,date("Y"))))." ($i)</option>\n";
72 }
73 ?>
74 </select>
75 <input type="text" name="year" value="<?=array_key_exists('year',$_SESSION['signup']) ? sanitizeHTML($_SESSION['signup']['year']):""?>" size="4" autocomplete="off"></nobr>
76 </td>
77 </tr>
78 <tr>
79 <td class="DataTD"><?=_("Email Address")?>: </td>
80 <td class="DataTD"><input type="text" name="email" value="<?=array_key_exists('email',$_REQUEST)?sanitizeHTML($_REQUEST['email']):""?>" autocomplete="off"><br/><?=_("I own or am authorised to control this email address")?>
81 </td>
82 </tr>
83 <tr>
84 <td class="DataTD"><?=_("Pass Phrase")?><font color="red">*</font>: </td>
85 <td class="DataTD"><input type="password" name="pword1" autocomplete="off"></td>
86 </tr>
87 <tr>
88 <td class="DataTD"><?=_("Pass Phrase Again")?><font color="red">*</font>: </td>
89 <td class="DataTD"><input type="password" name="pword2" autocomplete="off"></td>
90 </tr>
91 <tr>
92 <td class="DataTD" colspan="2"><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>
93 </tr>
94 <tr>
95 <td class="DataTD" colspan="2"><?=_("Lost Pass Phrase Questions - Please enter five questions and your responses to be used for security verification.")?></td>
96 </tr>
97 <tr>
98 <td class="DataTD">1)&nbsp;<input type="text" name="Q1" size="15" value="<?=array_key_exists('Q1',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q1']):""?>"></td>
99 <td class="DataTD"><input type="text" name="A1" value="<?=array_key_exists('A1',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A1']):""?>" autocomplete="off"></td>
100 </tr>
101 <tr>
102 <td class="DataTD">2)&nbsp;<input type="text" name="Q2" size="15" value="<?=array_key_exists('Q2',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q2']):""?>"></td>
103 <td class="DataTD"><input type="text" name="A2" value="<?=array_key_exists('A2',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A2']):""?>" autocomplete="off"></td>
104 </tr>
105 <tr>
106 <td class="DataTD">3)&nbsp;<input type="text" name="Q3" size="15" value="<?=array_key_exists('Q3',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q3']):""?>"></td>
107 <td class="DataTD"><input type="text" name="A3" value="<?=array_key_exists('A3',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A3']):""?>" autocomplete="off"></td>
108 </tr>
109 <tr>
110 <td class="DataTD">4)&nbsp;<input type="text" name="Q4" size="15" value="<?=array_key_exists('Q4',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q4']):""?>"></td>
111 <td class="DataTD"><input type="text" name="A4" value="<?=array_key_exists('A4',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A4']):""?>" autcomplete="off"></td>
112 </tr>
113 <tr>
114 <td class="DataTD">5)&nbsp;<input type="text" name="Q5" size="15" value="<?=array_key_exists('Q5',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['Q5']):""?>"></td>
115 <td class="DataTD"><input type="text" name="A5" value="<?=array_key_exists('A5',$_SESSION['signup'])?sanitizeHTML($_SESSION['signup']['A5']):""?>" autocomplete="off"></td>
116 </tr>
117 <tr>
118 <td class="DataTD" colspan="2"><?=_("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>
119 </tr>
120 <tr>
121 <td class="DataTD" valign="top"><?=_("Alert me if")?>: </td>
122 <td class="DataTD" align="left">
123 <input type="checkbox" name="general" value="1" <?=array_key_exists('general',$_SESSION['signup'])? ($_SESSION['signup']['general'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("General Announcements")?><br>
124 <input type="checkbox" name="country" value="1" <?=array_key_exists('country',$_SESSION['signup'])? ($_SESSION['signup']['country'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("Country Announcements")?><br>
125 <input type="checkbox" name="regional" value="1" <?=array_key_exists('regional',$_SESSION['signup'])? ($_SESSION['signup']['regional'] == "0" ?"":"checked=\"checked\""):"checked=\"checked\"" ?>><?=_("Regional Announcements")?><br>
126 <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>
127 </tr>
128 <tr>
129 <td class="DataTD" colspan="2"><?=_("When you click on next, we will send a confirmation email to the email address you have entered above.")?></td>
130 </tr>
131 <tr>
132 <td class="DataTD" colspan="2"><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.php">http://www.cacert.org/policy/CAcertCommunityAgreement.php</a></td>
133 </tr>
134
135 <tr>
136 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Next")?>"></td>
137 </tr>
138
139 </table>
140 <input type="hidden" name="oldid" value="<?=$id?>">
141 </form>