Merge branch 'bug-942' into release
[cacert-devel.git] / pages / account / 11.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>
19 <?=_("Please make sure the following details are correct before proceeding any further.")?>
20 </p>
21 <?// print_r($_SESSION['_config']['altrows']); ?>
22 <p>
23 <? if(is_array($_SESSION['_config']['rows']))
24 foreach($_SESSION['_config']['rows'] as $row) { ?>
25 <?=_("CommonName")?>: <?=$row?><br>
26 <? } ?>
27 <? if(is_array($_SESSION['_config']['altrows']))
28 foreach($_SESSION['_config']['altrows'] as $row) { ?>
29 <?=_("subjectAltName")?>: <?=$row?><br>
30 <? } ?>
31 <? if(1 == 0) { ?>
32 <?=_("Organisation")?>: <?=$_SESSION['_config']['O']?><br>
33 <?=_("Org. Unit")?>: <?=$_SESSION['_config']['OU']?><br>
34 <?=_("Location")?>: <?=$_SESSION['_config']['L']?><br>
35 <?=_("State/Province")?>: <?=$_SESSION['_config']['ST']?><br>
36 <?=_("Country")?>: <?=$_SESSION['_config']['C']?><br>
37 <?=_("Email Address")?>: <?=$_SESSION['_config']['emailAddress']?><br>
38 <? } ?>
39 <?=_("No additional information will be included on certificates because it can not be automatically checked by the system.")?>
40 <? if(array_key_exists('rejected',$_SESSION['_config']) && is_array($_SESSION['_config']['rejected'])) { ?>
41 <br><br><?=_("The following hostnames were rejected because the system couldn't link them to your account, if they are valid please verify the domains against your account.")?><br>
42 <? foreach($_SESSION['_config']['rejected'] as $row) { ?>
43 <?=_("Rejected")?>: <a href="account.php?id=7&amp;newdomain=<?=$row?>"><?=$row?></a><br>
44 <? } } ?>
45 <? if(is_array($_SESSION['_config']['rows']) || is_array($_SESSION['_config']['altrows'])) { ?>
46 <form method="post" action="account.php">
47 <input type="submit" name="process" value="<?=_("Submit")?>">
48 <input type="hidden" name="oldid" value="<?=$id?>">
49 </form>
50 <? } else { ?>
51 <br><br><b><?=_("Unable to continue as no valid commonNames or subjectAltNames were present on your certificate request.")?></b>
52 <? } ?>
53 </p>