summaryrefslogtreecommitdiff
path: root/pages/account/43.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2014-01-20 16:31:40 +0100
committerINOPIAE <inopiae@cacert.org>2014-01-20 16:31:40 +0100
commit536674a62c15bed0de8cb897b2d25ed35774f5ce (patch)
tree0939e2c33c739676d8d130a3e94ecee3e012c7bd /pages/account/43.php
parenta8ad88d816358d70dbaff28f587bdb258a7e5391 (diff)
downloadcacert-devel-536674a62c15bed0de8cb897b2d25ed35774f5ce.tar.gz
cacert-devel-536674a62c15bed0de8cb897b2d25ed35774f5ce.tar.xz
cacert-devel-536674a62c15bed0de8cb897b2d25ed35774f5ce.zip
bug 1138: inserted revoke certificate handling
Diffstat (limited to 'pages/account/43.php')
-rw-r--r--pages/account/43.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/pages/account/43.php b/pages/account/43.php
index bee4b20..34fc1ec 100644
--- a/pages/account/43.php
+++ b/pages/account/43.php
@@ -952,6 +952,7 @@ if(intval($_REQUEST['userid']) > 0) {
<input type="hidden" name="oldid" value="43">
<input type="hidden" name="userid" value="<?=intval($userid)?>">
<input type="submit" value="<?=_('revoke certificates')?>">
+ <input type="hidden" name="ticketno" value="<?=$ticketno?>"/>
</form>
</td>
</tr>
@@ -1008,7 +1009,7 @@ if(intval($_REQUEST['userid']) > 0) {
<td class="DataTD"><?=intval($drow['points'])?></td>
<td class="DataTD"><?=sanitizeHTML($drow['location'])?></td>
<td class="DataTD"><?=sanitizeHTML($drow['method'])?></td>
- <td class="DataTD"><a href="account.php?id=43&amp;userid=<?=intval($drow['to'])?>&amp;assurance=<?=intval($drow['id'])?>&amp;csrf=<?=make_csrf('admdelassurance')?>" onclick="return confirm('<?=sprintf(_("Are you sure you want to revoke the assurance with ID &quot;%s&quot;?"),$drow['id'])?>');"><?=_("Revoke")?></a></td>
+ <td class="DataTD"><a href="account.php?id=43&amp;userid=<?=intval($drow['to'])?>&amp;assurance=<?=intval($drow['id'])?>&amp;csrf=<?=make_csrf('admdelassurance')?>&amp;ticketno=<?=$ticketno?>" onclick="return confirm('<?=sprintf(_("Are you sure you want to revoke the assurance with ID &quot;%s&quot;?"),$drow['id'])?>');"><?=_("Revoke")?></a></td>
</tr>
<?
}
@@ -1055,7 +1056,7 @@ if(intval($_REQUEST['userid']) > 0) {
<td class="DataTD"><?=$drow['points']?></td>
<td class="DataTD"><?=$drow['location']?></td>
<td class="DataTD"><?=$drow['method']?></td>
- <td class="DataTD"><a href="account.php?id=43&userid=<?=$drow['from']?>&assurance=<?=$drow['id']?>&amp;csrf=<?=make_csrf('admdelassurance')?>" onclick="return confirm('<?=sprintf(_("Are you sure you want to revoke the assurance with ID &quot;%s&quot;?"),$drow['id'])?>');"><?=_("Revoke")?></a></td>
+ <td class="DataTD"><a href="account.php?id=43&userid=<?=$drow['from']?>&assurance=<?=$drow['id']?>&amp;csrf=<?=make_csrf('admdelassurance')?>&amp;ticketno=<?=$ticketno?>" onclick="return confirm('<?=sprintf(_("Are you sure you want to revoke the assurance with ID &quot;%s&quot;?"),$drow['id'])?>');"><?=_("Revoke")?></a></td>
</tr>
<?
}
@@ -1080,10 +1081,10 @@ if(isset($_GET['shownotary'])) {
showassuredby();
break;
case 'assuredto15':
- output_received_assurances(intval($_GET['userid']),1);
+ output_received_assurances(intval($_GET['userid']),1,$ticketno);
break;
case 'assuredby15':
- output_given_assurances(intval($_GET['userid']),1);
+ output_given_assurances(intval($_GET['userid']),1, $ticketno);
break;
}
}