diff options
-rw-r--r-- | includes/account.php | 12 | ||||
-rw-r--r-- | 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 @@ </tr> <? } ?> <tr> - <td class="DataTD" colspan="8"> + <td class="DataTD" colspan="9"> <a href="account.php?id=5&viewall=<?=!$viewall?>"><b><?=$viewall?_("Hide old certificates"):_("View all certificates")?></b></a> </td> </tr> <tr> - <td class="DataTD" colspan="8"> + <td class="DataTD" colspan="9"> <?=_("* Comment is NOT included in the certificate as it is inteded for your personal reference only. To change the comment go to the certificate view with hitting email address.")?> </td> </tr> |