summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-05-13 22:22:35 +0200
committerINOPIAE <inopiae@cacert.org>2013-05-13 22:22:35 +0200
commitb4af4ce47b780a6fb46300dcf8c04eaaa56dc213 (patch)
tree0707fea5a8bfcb0e34fd023f4643980cccb5a6e0
parent8bfc6bd266b4e849987040b3db63e7b80d8c47d5 (diff)
downloadcacert-devel-b4af4ce47b780a6fb46300dcf8c04eaaa56dc213.tar.gz
cacert-devel-b4af4ce47b780a6fb46300dcf8c04eaaa56dc213.tar.xz
cacert-devel-b4af4ce47b780a6fb46300dcf8c04eaaa56dc213.zip
bug 782: changed variable names in account.php, adjusted table in account/5.php
-rw-r--r--includes/account.php12
-rw-r--r--pages/account/5.php4
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&amp;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>