Merge branch 'bug-1394' into testserver-stable
[cacert-devel.git] / pages / account / 27.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 $orgid = intval($_REQUEST['orgid']);
20 $row = mysql_fetch_assoc(mysql_query("select * from `orginfo` where `id`='" . $orgid . "'"));
21 $orgname = $row['O'];
22 $contactmail = $row['contact'];
23 $town = $row['L'];
24 $state = $row['ST'];
25 $country = $row['C'];
26 $comment = $row['comments'];
27 ?>
28 <form method="post" action="account.php">
29 <?
30 org_edit_org_table($orgname, $contactmail, $town, $state, $country, $comment, 1);
31 ?>
32 <input type="hidden" name="oldid" value="<?=intval($id)?>">
33 <input type="hidden" name="orgid" value="<?=$orgid?>">
34 <input type="hidden" name="csrf" value="<?=make_csrf('orgdetchange')?>" />
35 </form>