From 5316ca41814a7946be6a79f70fdc30775a8f95c5 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 13 Aug 2006 19:21:26 +0000 Subject: [PATCH] bug #233 --- includes/account.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/account.php b/includes/account.php index d28d3e2..aae58a0 100644 --- a/includes/account.php +++ b/includes/account.php @@ -2011,6 +2011,11 @@ $month = intval($_REQUEST['month']); $year = intval($_REQUEST['year']); $userid = intval($_REQUEST['userid']); + $query = "select `lname`,`dob` from `users` where `id`='$userid'"; + $details = mysql_fetch_assoc(mysql_query($query)); + $query = "insert into `adminlog` set `when`=NOW(),`old-lname`='${details['lname']}',`old-dob`='${details['dob']}', + `new-lname`='$lname',`new-dob`='$year-$month-$day',`uid`='$userid',`adminid`='".$_SESSION['profile']['id']."'"; + mysql_query($query); $query = "update `users` set `lname`='$lname',`dob`='$year-$month-$day' where `id`='$userid'"; mysql_query($query); }