Merge branch 'bug-1276' into release
[cacert-devel.git] / pages / account / 21.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
19 $org = $_SESSION['_config']['row'];
20 if ($org['id'] <= 0) {
21 $org = $_SESSION['_config']['altrow'];
22 }
23 ?>
24
25 <p>
26 <?=_("Please make sure the following details are correct before proceeding ".
27 "any further.")?>
28 </p>
29
30 <p><?
31 if (is_array($_SESSION['_config']['rows'])) {
32 foreach ($_SESSION['_config']['rows'] as $row) {
33 echo _("CommonName"), ": $row<br>\n";
34 }
35 }
36
37 if (is_array($_SESSION['_config']['altrows'])) {
38 foreach ($_SESSION['_config']['altrows'] as $row) {
39 echo _("subjectAltName"), ": $row<br>\n";
40 }
41 }
42
43 echo _("Organisation"), ": {$org['O']}<br>\n";
44 echo _("Org. Unit"), ": ", sanitizeHTML($_SESSION['_config']['OU']), "<br>\n";
45 echo _("Location"), ": {$org['L']}<br>\n";
46 echo _("State/Province"), ": {$org['ST']}<br>\n";
47 echo _("Country"), ": {$org['C']}<br>\n";
48 ?>
49
50 <form method="post" action="account.php">
51 <p>
52 <input type="submit" name="process" value="<?=_("Submit")?>">
53 <input type="hidden" name="oldid" value="<?=$id?>">
54 </p>
55
56 <?
57 if ($_SESSION['profile']['admin'] == 1) {
58 ?>
59 <p>
60 <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
61 <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
62 <br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
63 <input type="checkbox" name="ocspcert" value="OCSPCert"/>
64 <?=_("OCSP certificate")?>
65 </p>
66 <?
67 }
68 ?>
69
70 </form>