Merge branch 'bug-1394' into testserver-stable
[cacert-devel.git] / pages / account / 24.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 $orgname = '';
20 $contactmail = '';
21 $town = '';
22 $state = '';
23 $country = '';
24 $comment = '';
25
26 // Reset session variables regarding Org's, present empty form
27 if (array_key_exists('O',$_SESSION['_config'])) $_SESSION['_config']['O'] = "";
28 if (array_key_exists('contact',$_SESSION['_config'])) $_SESSION['_config']['contact'] = "";
29 if (array_key_exists('L',$_SESSION['_config'])) $_SESSION['_config']['L'] = "";
30 if (array_key_exists('ST',$_SESSION['_config'])) $_SESSION['_config']['ST'] = "";
31 if (array_key_exists('C',$_SESSION['_config'])) $_SESSION['_config']['C'] = "";
32 if (array_key_exists('comments',$_SESSION['_config'])) $_SESSION['_config']['comments'] = "";
33
34 ?>
35 <form method="post" action="account.php">
36 <?
37 org_edit_org_table($orgname, $contactmail, $town, $state, $country, $comment, 0);
38 ?>
39 <input type="hidden" name="oldid" value="<?=$id?>">
40 </form>