From 5a37deface43ba29e4975ab7d57f367bb1fac172 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Aug 2006 22:12:25 +0000 Subject: [PATCH] bug #168 --- includes/account.php | 12 +++++++++++- pages/account/41.php | 28 ++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/includes/account.php b/includes/account.php index 8f0b372..9547c46 100644 --- a/includes/account.php +++ b/includes/account.php @@ -1900,7 +1900,7 @@ unset($oldid); } - if($oldid == 41) + if($oldid == 41 && $_REQUEST['action'] == 'default') { $lang = mysql_real_escape_string($_REQUEST['lang']); foreach($_SESSION['_config']['translations'] as $key => $val) @@ -1922,6 +1922,16 @@ exit; } + 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'"); + showheader(_("My CAcert.org Account!")); + echo _("Your language setting has been updated."); + showfooter(); + exit; + } + if(($id == 42 || $id == 43 || $id == 44 || $id == 48 || $id == 49 || $id == 50 || $oldid == 42 || $oldid == 43 || $oldid == 44 || $oldid == 48 || $oldid == 49 || $oldid == 50) && $_SESSION['profile']['admin'] != 1) diff --git a/pages/account/41.php b/pages/account/41.php index c17f2b5..0f7d20b 100644 --- a/pages/account/41.php +++ b/pages/account/41.php @@ -37,4 +37,32 @@ + + +
+ + + + + + + + + + + +
: +
">
+ +