Merge branch 'bug-1459' into release (Emergency bugfix)
[cacert-devel.git] / pages / account / 34.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 $query = "select * from `orgdomains` where `id`='".intval($_REQUEST['orgid'])."'";
20 $row = mysql_fetch_assoc(mysql_query($query));
21 $query = "select * from `orginfo` where `id`='".intval($_REQUEST['orgid'])."'";
22 $org = mysql_fetch_assoc(mysql_query($query));
23 $query = "select * from `users` where `id`='".intval($_REQUEST['memid'])."'";
24 $user = mysql_fetch_assoc(mysql_query($query));
25
26 $_SESSION['_config']['domain'] = $row['domain'];
27 ?>
28 <form method="post" action="account.php">
29 <input type="hidden" name="memid" value="<?=intval($_REQUEST['memid'])?>">
30 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
31 <tr>
32 <td colspan="2" class="title"><? printf(_("Delete Admin for %s"), ($org['O'])); ?></td>
33 </tr>
34 <tr>
35 <td class="DataTD" colspan="2"><? printf(_("Are you really sure you want to remove %s from administering this organisation?"), sanitizeHTML($user['fname'])." ".sanitizeHTML($user['lname'])); ?></td>
36 </tr>
37 <tr>
38 <td class="DataTD" colspan="2"><input type="submit" name="cancel" value="<?=_("Cancel")?>">
39 <input type="submit" name="process" value="<?=_("Delete")?>"></td>
40 </tr>
41 </table>
42 <input type="hidden" name="oldid" value="<?=intval($id)?>">
43 <input type="hidden" name="orgid" value="<?=intval($_REQUEST['orgid'])?>">
44
45 </form>