2004-10-16 00:28:17 +00:00
< ? /*
2008-04-06 19:45:09 +00:00
LibreSSL - CAcert web application
Copyright ( C ) 2004 - 2008 CAcert Inc .
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
This program is free software ; you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; version 2 of the License .
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
This program is distributed in the hope that it will be useful ,
but WITHOUT ANY WARRANTY ; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
GNU General Public License for more details .
2004-10-16 00:28:17 +00:00
2008-04-06 19:45:09 +00:00
You should have received a copy of the GNU General Public License
along with this program ; if not , write to the Free Software
Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston , MA 02110 - 1301 USA
2006-08-16 00:00:01 +00:00
*/
include_once ( " ../includes/shutdown.php " );
?>
2004-10-16 00:28:17 +00:00
< form method = " post " action = " account.php " >
< table align = " center " valign = " middle " border = " 0 " cellspacing = " 0 " cellpadding = " 0 " class = " wrapper " >
< tr >
< td colspan = " 2 " class = " title " >< ? = _ ( " New Client Certificate " ) ?> </td>
</ tr >
< tr >
< td class = " DataTD " >< ? = _ ( " Add " ) ?> </td>
< td class = " DataTD " >< ? = _ ( " Address " ) ?> </td>
2008-09-01 22:25:02 +00:00
< ? if ( array_key_exists ( 'emails' , $_SESSION [ '_config' ]) && is_array ( $_SESSION [ '_config' ][ 'emails' ]))
2006-08-14 01:31:49 +00:00
foreach ( $_SESSION [ '_config' ][ 'emails' ] as $val ) { ?>
2004-10-16 00:28:17 +00:00
< tr >
< td class = " DataTD " >< ? = _ ( " Email " ) ?> :</td>
2013-07-17 08:19:05 +00:00
< td class = " DataTD " >< input type = " text " name = " emails[] " value = " <?= $val ?> " /></ td >
2004-10-16 00:28:17 +00:00
</ tr >
< ? } ?>
< tr >
< td class = " DataTD " >< ? = _ ( " Email " ) ?> :</td>
2013-07-17 08:19:05 +00:00
< td class = " DataTD " >< input type = " text " name = " emails[] " /></ td >
2004-10-16 00:28:17 +00:00
</ tr >
< tr >
< td class = " DataTD " >< ? = _ ( " Name " ) ?> :</td>
2013-07-17 08:19:05 +00:00
< td class = " DataTD " >< input type = " text " name = " name " value = " <?=array_key_exists('name', $_SESSION['_config'] )?( $_SESSION['_config'] ['name']):''?> " /></ td >
2006-08-14 01:31:49 +00:00
</ tr >
< tr >
< td class = " DataTD " >< ? = _ ( " Department " ) ?> :</td>
2013-07-17 08:19:05 +00:00
< td class = " DataTD " >< input type = " text " name = " OU " value = " <?=array_key_exists('OU', $_SESSION['_config'] )?( $_SESSION['_config'] ['OU']):''?> " /></ td >
2004-10-16 00:28:17 +00:00
</ tr >
2005-05-23 01:53:59 +00:00
< tr >
< td class = " DataTD " colspan = " 2 " align = " left " >
2013-07-17 08:19:05 +00:00
< input type = " radio " name = " rootcert " value = " 1 " checked /> < ? = _ ( " Sign by class 1 root certificate " ) ?> <br />
< input type = " radio " name = " rootcert " value = " 2 " /> < ? = _ ( " Sign by class 3 root certificate " ) ?> <br />
2005-05-23 01:53:59 +00:00
< ? = 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 )) ?>
</ td >
</ tr >
2007-12-19 22:10:35 +00:00
< ? if ( $_SESSION [ 'profile' ][ 'codesign' ] && $_SESSION [ 'profile' ][ 'points' ] >= 100 ) { ?>
< tr >
< td class = " DataTD " colspan = " 2 " align = " left " >< input type = " checkbox " name = " codesign " value = " 1 " />< ? = _ ( " Code Signing " ) ?> </td>
</ tr >
< ? } ?>
2013-07-17 08:19:05 +00:00
< tr >
< td class = " DataTD " colspan = " 2 " align = " left " >
2013-11-06 16:28:19 +00:00
< ? = _ ( " Optional comment, only used in the certificate overview " ) ?> <br />
2013-07-17 08:19:05 +00:00
< input type = " text " name = " description " maxlength = " 80 " size = 80 />
</ td >
</ tr >
2004-10-16 00:28:17 +00:00
< tr >
2011-10-21 20:01:45 +00:00
< td class = " DataTD " colspan = " 2 " >< input type = " submit " name = " add_email " value = " <?=_( " Another Email " )?> " >
2013-07-17 08:19:05 +00:00
< input type = " submit " name = " process " value = " <?=_( " Next " )?> " /></ td >
2004-10-16 00:28:17 +00:00
</ tr >
</ table >
< input type = " hidden " name = " oldid " value = " <?= $id ?> " >
</ form >