|
|
|
@ -107,6 +107,9 @@ function wuenscheSpecialChar($user, $specialcharname, $newname = ''){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function wuenscheUserRename($user, $newname){
|
|
|
|
|
if($newname == null || strlen(trim($newname)) < 3) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
$sql = 'Insert into user_rename(pre_name, post_name, datum, userid, wunsch) values(\''.$user['nickname'].'\', \''.$newname.'\', now(), '.$user['id'].', 1)';
|
|
|
|
|
mysql_query($sql);
|
|
|
|
|
mysql_query('Update user set nickname = \''.$newname.'\' WHERE id = '.$user['id']);
|
|
|
|
|