summaryrefslogtreecommitdiff
path: root/includes/account.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2012-11-21 09:22:53 +0100
committerINOPIAE <inopiae@cacert.org>2012-11-21 09:22:53 +0100
commitf4838bd359669c262faa0d7c145e3ee64718cca6 (patch)
tree512845fc0006df883d578d34284e5e2ffb0ddcbd /includes/account.php
parentef4fa3cf7a767df0813577cf920e9a51939d452a (diff)
downloadcacert-devel-f4838bd359669c262faa0d7c145e3ee64718cca6.tar.gz
cacert-devel-f4838bd359669c262faa0d7c145e3ee64718cca6.tar.xz
cacert-devel-f4838bd359669c262faa0d7c145e3ee64718cca6.zip
bug 782: Update routine for description in includes/account.php, new view in pages/account/6.php, small changes in pages/account/5.php
Diffstat (limited to 'includes/account.php')
-rw-r--r--includes/account.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/includes/account.php b/includes/account.php
index 0b7bf85..07b93b6 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1155,6 +1155,23 @@
}
+ if($oldid == 6 && $_REQUEST['certid'] != "")
+ {
+ if(trim($_REQUEST['description']) != ""){
+ $description= trim(mysql_real_escape_string(stripslashes($_REQUEST['description'])));
+ }else{
+ $description= "";
+ }
+ }
+ if(trim($_REQUEST['disablelogin']) == "1"){
+ $disablelogin = 1;
+ }else{
+ $disablelogin = 0;
+ }
+ }
+ mysql_query("update `emailcerts` set `disablelogin`='$disablelogin', `description`='description' where `id`='".$_REQUEST['certid']."' and `memid`='".$_SESSION['profile']['id']."'");
+
+ }
if($oldid == 13 && $process != "")
{
csrf_check("perschange");