From b4af4ce47b780a6fb46300dcf8c04eaaa56dc213 Mon Sep 17 00:00:00 2001 From: INOPIAE Date: Mon, 13 May 2013 22:22:35 +0200 Subject: bug 782: changed variable names in account.php, adjusted table in account/5.php --- includes/account.php | 12 ++++++------ pages/account/5.php | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/includes/account.php b/includes/account.php index 7de3546..7e29084 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1140,16 +1140,16 @@ { if(substr($id,0,5)=="cert_") { - $id = intval(substr($id,5)); - $dis=(array_key_exists('disablelogin_'.$id,$_REQUEST) && $_REQUEST['disablelogin_'.$id]=="1")?"0":"1"; - mysql_query("update `emailcerts` set `disablelogin`='$dis' where `id`='$id' and `memid`='".$_SESSION['profile']['id']."'"); + $cid = intval(substr($id,5)); + $dis=(array_key_exists('disablelogin_'.$cid,$_REQUEST) && $_REQUEST['disablelogin_'.$cid]=="1")?"0":"1"; + mysql_query("update `emailcerts` set `disablelogin`='$dis' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'"); } if(substr($id,0,14)=="check_comment_") { if (!empty($_REQUEST['check_comment_'.$id])) { - $id = intval(substr($id,14)); - $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$id]))); - mysql_query("update `emailcerts` set `description`='$comment' where `id`='$id' and `memid`='".$_SESSION['profile']['id']."'"); + $cid = intval(substr($id,14)); + $comment=trim(mysql_real_escape_string(stripslashes($_REQUEST['comment_'.$cid]))); + mysql_query("update `emailcerts` set `description`='$comment' where `id`='$cid' and `memid`='".$_SESSION['profile']['id']."'"); } } } diff --git a/pages/account/5.php b/pages/account/5.php index ab7a8c9..133e0fe 100644 --- a/pages/account/5.php +++ b/pages/account/5.php @@ -99,13 +99,13 @@ - + - + -- cgit v1.2.1