First commit of tag changes. bug-1444
[cacert-devel.git] / pages / account / 14.php
1 <?php /*
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 <?php if (intval($_REQUEST['force']) === 1)
19 {
20 ?>
21
22 <p style="border:dotted 1px #900;padding:0.3em;bold;color:#ffffff;background-color:#ff0000;"><strong><center>
23 <?php echo _("For your own security you should change your pass phrase immediately!"); ?></center></strong>
24 </p>
25 <?}?>
26
27 <form method="post" action="account.php">
28 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">
29 <tr>
30 <td colspan="2" class="title"><?php echo _("Change Pass Phrase")?></td>
31 </tr>
32 <?php if($_SESSION['_config']['hostname'] != $_SESSION['_config']['securehostname']) { ?>
33 <tr>
34 <td class="DataTD"><?php echo _("Old Pass Phrase")?>: </td>
35 <td class="DataTD"><input type="password" name="oldpassword"></td>
36 </tr>
37 <?php } ?>
38 <tr>
39 <td class="DataTD"><?php echo _("New Pass Phrase")?><font color="red">*</font>: </td>
40 <td class="DataTD"><input type="password" name="pword1"></td>
41 </tr>
42 <tr>
43 <td class="DataTD"><?php echo _("Pass Phrase Again")?><font color="red">*</font>: </td>
44 <td class="DataTD"><input type="password" name="pword2"></td>
45 </tr>
46 <tr>
47 <td class="DataTD" colspan="2"><font color="red">*</font><?php echo _("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 (all white spaces at the beginning and end are removed).")?></td>
48 </tr>
49 <tr>
50 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?php echo _("Update Pass Phrase")?>"></td>
51 </tr>
52 </table>
53 <input type="hidden" name="csrf" value="<?php echo make_csrf('pwchange')?>" />
54 <input type="hidden" name="oldid" value="<?php echo $id?>">
55 </form>