bug 1138: added call for account history from account details
authorINOPIAE <inopiae@cacert.org>
Sun, 8 Dec 2013 16:57:57 +0000 (17:57 +0100)
committerINOPIAE <inopiae@cacert.org>
Sun, 8 Dec 2013 16:57:57 +0000 (17:57 +0100)
includes/account.php
pages/account/13.php
pages/account/59.php

index 6a92669..6ce8de1 100644 (file)
                exit;
        }
 
+       if($id == 59){
+               $support=0;
+               if ($oldid==43) {
+                       se_write_log($_REQUEST['userid'], $_SESSION['profile']['id'], 'View account history', $_REQUEST['ticketno']);
+                       $support=1;
+               }
+       }
+
+
        if(intval($cert) > 0)
                $_SESSION['_config']['cert'] = intval($cert);
        if(intval($orgid) > 0)
index 1c1cfc6..7aa95f1 100644 (file)
   </tr>
 <? } ?>
   <tr>
+    <td colspan="2" class="title"><a href="account.php?id=59&amp;userid=<?=$_SESSION['profile']['id']?>"><?=_('Show account history')?></a></td>
+  </tr>
+  <tr>
     <td colspan="2" class="title"><a href="account.php?id=13&amp;showdetails=<?=!$showdetails?>"><?=_("View secret question & answers and OTP phrases")?></a></td>
   </tr>
   <? if($showdetails){ ?>
index ef131b8..f9aadab 100644 (file)
@@ -18,7 +18,7 @@
 include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
 
 $colspandefault=2;
-$userid = intval($_REQUEST['userid']);
+//$userid = intval($_REQUEST['userid']);
 $res =get_user_data($userid);
 
 if(mysql_num_rows($res) <= 0)
@@ -38,7 +38,7 @@ $name = $fname." ".$mname." ".$lname." ".$suffix;
 $email = $row['email'];
 $alerts =get_alerts($userid);
 
-$support=0;
+
 
 ?>
 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">