bug 1138: added call for account history in account/43.php
authorINOPIAE <inopiae@cacert.org>
Sun, 8 Dec 2013 16:36:23 +0000 (17:36 +0100)
committerINOPIAE <inopiae@cacert.org>
Sun, 8 Dec 2013 16:36:23 +0000 (17:36 +0100)
pages/account/43.php
pages/account/59.php

index 2ba94b0..240d7ed 100644 (file)
@@ -310,6 +310,10 @@ include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
     <td class="DataTD"><?=_("Assurance Points")?>:</td>
     <td class="DataTD"><?=intval($drow['points'])?></td>
   </tr>
+<? // show account history ?>
+  <tr>
+    <td class="DataTD" colspan="2"><a href="account.php?id=59&amp;userid=<?=intval($row['id'])?>"><?=_('Show account history')?></a></td>
+  </tr>
 </table>
 <br/><?
 //ticket number to track SE log ?>
index 773c83a..ef131b8 100644 (file)
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */
-
+include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
 
 $colspandefault=2;
 $userid = intval($_REQUEST['userid']);
 $res =get_user_data($userid);
+
+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!");
+       exit;
+}
+
 $row = mysql_fetch_assoc($res);
 
 $fname = $row['fname'];