2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
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.
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.
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
18 include_once("../includes/shutdown.php");
20 <form method
="post" action
="account.php">
21 <table align
="center" valign
="middle" border
="0" cellspacing
="0" cellpadding
="0" class="wrapper">
23 <td colspan
="2" class="title"><?
=_("New Client Certificate")?
></td
>
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) { ?
>
31 <td
class="DataTD"><?
=_("Email")?
>:</td
>
32 <td
class="DataTD"><input type
="text" name
="emails[]" value
="<?=$val?>"/></td
>
36 <td
class="DataTD"><?
=_("Email")?
>:</td
>
37 <td
class="DataTD"><input type
="text" name
="emails[]"/></td
>
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
>
44 <td
class="DataTD"><?
=_("Department")?
>:</td
>
45 <td
class="DataTD"><input type
="text" name
="OU" value
="<?=array_key_exists('OU',$_SESSION['_config'])?(sanitizeHTML($_SESSION['_config']['OU'])):''?>"/></td
>
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))?
>
54 <?
if($_SESSION['profile']['codesign'] && $_SESSION['profile']['points'] >= 100) { ?
>
56 <td
class="DataTD" colspan
="2" align
="left"><input type
="checkbox" name
="codesign" value
="1" /><?
=_("Code Signing")?
></td
>
60 <td
class="DataTD" colspan
="2" align
="left">
61 <?
=_("Optional comment, only used in the certificate overview")?
><br
/>
62 <input type
="text" name
="description" maxlength
="80" size
=80 />
66 <td
class="DataTD" colspan
="2"><input type
="submit" name
="add_email" value
="<?=_("Another Email
")?>">
67 <input type
="submit" name
="process" value
="<?=_("Next
")?>" /></td
>
70 <input type
="hidden" name
="oldid" value
="<?=$id?>">