3e582e3e1f0d6de00d8d27751ab18a7affc33a8e
[cacert.git] / pages / account / 16.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 include_once("../includes/shutdown.php");
19 ?>
20 <form method="post" action="account.php">
21 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
22 <tr>
23 <td colspan="2" class="title"><?=_("New Client Certificate")?></td>
24 </tr>
25 <tr>
26 <td class="DataTD"><?=_("Add")?></td>
27 <td class="DataTD"><?=_("Address")?></td>
28 <? if(array_key_exists('emails',$_SESSION['_config']) && is_array($_SESSION['_config']['emails']))
29 foreach($_SESSION['_config']['emails'] as $val) { ?>
30 <tr>
31 <td class="DataTD"><?=_("Email")?>:</td>
32 <td class="DataTD"><input type="text" name="emails[]" value="<?=$val?>"></td>
33 </tr>
34 <? } ?>
35 <tr>
36 <td class="DataTD"><?=_("Email")?>:</td>
37 <td class="DataTD"><input type="text" name="emails[]"></td>
38 </tr>
39 <tr>
40 <td class="DataTD"><?=_("Name")?>:</td>
41 <td class="DataTD"><input type="text" name="name" value="<?=array_key_exists('name',$_SESSION['_config'])?($_SESSION['_config']['name']):''?>"></td>
42 </tr>
43 <tr>
44 <td class="DataTD"><?=_("Department")?>:</td>
45 <td class="DataTD"><input type="text" name="OU" value="<?=array_key_exists('OU',$_SESSION['_config'])?($_SESSION['_config']['OU']):''?>"></td>
46 </tr>
47 <tr>
48 <td class="DataTD" colspan="2" align="left">
49 <input type="radio" name="rootcert" value="1" checked> <?=_("Sign by class 1 root certificate")?><br>
50 <input type="radio" name="rootcert" value="2"> <?=_("Sign by class 3 root certificate")?><br>
51 <?=str_replace("\n", "<br>\n", wordwrap(_("Please note: The class 3 root certificate needs to be imported into your email program as well as the class 1 root certificate so your email program can build a full trust path chain. Until we are included in browsers this might not be a desirable option for most people"), 60))?>
52 </td>
53 </tr>
54 <? if($_SESSION['profile']['codesign'] && $_SESSION['profile']['points'] >= 100) { ?>
55 <tr>
56 <td class="DataTD" colspan="2" align="left"><input type="checkbox" name="codesign" value="1" /><?=_("Code Signing")?></td>
57 </tr>
58 <? } ?>
59 <tr>
60 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Another Email")?>">
61 <input type="submit" name="process" value="<?=_("Next")?>"></td>
62 </tr>
63 </table>
64 <input type="hidden" name="oldid" value="<?=$id?>">
65 </form>