summaryrefslogtreecommitdiff
path: root/includes/account.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-05-01 22:40:00 +0200
committerINOPIAE <inopiae@cacert.org>2013-05-01 22:40:00 +0200
commita8fa9c12a6001ff97cfefced3a68b0f788a02b65 (patch)
tree41b58d2b67b95d0dfaf9deb465ff21c82999459c /includes/account.php
parent494eb5923b8a682e2de786c284344b504211da8d (diff)
downloadcacert-devel-a8fa9c12a6001ff97cfefced3a68b0f788a02b65.tar.gz
cacert-devel-a8fa9c12a6001ff97cfefced3a68b0f788a02b65.tar.xz
cacert-devel-a8fa9c12a6001ff97cfefced3a68b0f788a02b65.zip
bug 782: fixed typo
Diffstat (limited to 'includes/account.php')
-rw-r--r--includes/account.php45
1 files changed, 21 insertions, 24 deletions
diff --git a/includes/account.php b/includes/account.php
index 898c58c..d54fbd9 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1135,30 +1135,27 @@
if($oldid == 5 && array_key_exists('change',$_REQUEST) && $_REQUEST['change'] != "")
{
- showheader(_("My CAcert.org Account!"));
- //echo _("Now changing the settings for the following certificates:")."<br>\n";
- foreach($_REQUEST as $id => $val)
- {
- //echo $id."<br/>";
- if(substr($id,0,5)=="cert_")
- {
- $id = intval(substr($id,5));
- $dis=(array_key_exists('disablelogin_'.$id,$_REQUEST) && $_REQUEST['disablelogin_'.$id]=="1")?"0":"1";
- //echo "$id -> ".$_REQUEST['disablelogin_'.$id]."<br/>\n";
- mysql_query("update `emailcerts` set `disablelogin`='$dis' where `id`='$id' and `memid`='".$_SESSION['profile']['id']."'");
- //$row = mysql_fetch_assoc($res);
- }
- if(substr($id,0,14)=="check_comment_")
- {
- $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']."'");
- //$row = mysql_fetch_assoc($res);
- }
- }
- echo(_("Certificate settings have been changed.")."<br/>\n");
- showfooter();
- exit;
+ showheader(_("My CAcert.org Account!"));
+ foreach($_REQUEST as $id => $val)
+ {
+ 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']."'");
+ }
+ 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']."'");
+ }
+ }
+ }
+ echo(_("Certificate settings have been changed.")."<br/>\n");
+ showfooter();
+ exit;
}