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