summaryrefslogtreecommitdiff
path: root/pages/account/58.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-01-09 14:20:33 +0100
committerINOPIAE <inopiae@cacert.org>2013-01-09 14:20:33 +0100
commitc1856e28f8c8d55c1d49b533b10cc1b88e02984c (patch)
tree4cabad064e4647cabde3a002d6d6192eb76391aa /pages/account/58.php
parent5501ed2683fcffc9bb866e9120090dbf66eb374b (diff)
downloadcacert-devel-c1856e28f8c8d55c1d49b533b10cc1b88e02984c.tar.gz
cacert-devel-c1856e28f8c8d55c1d49b533b10cc1b88e02984c.tar.xz
cacert-devel-c1856e28f8c8d55c1d49b533b10cc1b88e02984c.zip
bug 1008: Add call on pages/account/43.php and small changes in pages/account/58.php
Diffstat (limited to 'pages/account/58.php')
-rw-r--r--pages/account/58.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/pages/account/58.php b/pages/account/58.php
index 44429e6..dda96e6 100644
--- a/pages/account/58.php
+++ b/pages/account/58.php
@@ -22,10 +22,11 @@ if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST)
echo _('You do not have access to this page');
} else {
$user_id = intval($_REQUEST['userid']);
+ $query = "select * from `users` where `id`='$user_id' and `users`.`deleted`=0";
+ $res = mysql_query($query);
if(mysql_num_rows($res) <= 0){
echo _("I'm sorry, the user you were looking for seems to have disappeared! Bad things are a foot!");
} else {
- $row = mysql_fetch_assoc($res);
$query = "select `users`.`fname`, `users`.`mname`, `users`.`lname`, `orginfo`.`o`, `org`.`masteracc`
FROM `users`, `orginfo`, `org`
WHERE `users`.`id` = `org`.`memid` AND `orginfo`.`id` = `org`.`orgid`
@@ -46,8 +47,8 @@ if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST)
</tr><?
while($drow = mysql_fetch_assoc($res)){?>
<tr>
- <td class="DataTD"><?=$data['o']?></td>
- <td class="DataTD"><?=$data['masteracc']?></td>
+ <td class="DataTD"><?=$drow['o']?></td>
+ <td class="DataTD"><?=$drow['masteracc'] ? _("Yes") : _("No") ?></td>
</tr>
<?}
?></table>