diff --git a/includes/account.php b/includes/account.php index 9547c46..cae3f56 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1924,8 +1924,18 @@ if($oldid == 41 && $_REQUEST['action'] == 'addsec') { - $lang = mysql_real_escape_string($_REQUEST['addlang']); - mysql_query("insert into `addlang` set `userid`='".$_SESSION['profile']['id']."', `lang`='$lang'"); + $addlang = mysql_real_escape_string($_REQUEST['addlang']); + mysql_query("insert into `addlang` set `userid`='".$_SESSION['profile']['id']."', `lang`='$addlang'"); + showheader(_("My CAcert.org Account!")); + echo _("Your language setting has been updated."); + showfooter(); + exit; + } + + if($oldid == 41 && $_REQUEST['action'] == 'dellang') + { + $remove = mysql_real_escape_string($_REQUEST['remove']); + mysql_query("delete from `addlang` where `userid`='".$_SESSION['profile']['id']."' and `lang`='$remove'"); showheader(_("My CAcert.org Account!")); echo _("Your language setting has been updated."); showfooter(); diff --git a/pages/account/41.php b/pages/account/41.php index 0f7d20b..358dd2b 100644 --- a/pages/account/41.php +++ b/pages/account/41.php @@ -21,6 +21,7 @@