$value) $_REQUEST['new'][$key] = "'".$db->escape_string(trim($value))."'"; $pw = strtolower(substr(md5(time()),1,8)); if ($users->get_user_by_login($_REQUEST['new']['login'])) header("Location: {$_SERVER['PHP_SELF']}?module={$mod}&action=error&errno=60058"); else { if (mail($mail,"Benutzeranmeldung",$mailtext)) { $id = $users->add_user($_REQUEST['new']['login'],$pw,$mail,$_REQUEST['new']['fname'],$_REQUEST['new']['lname'],$_REQUEST['new']['nick'],0,$system['page']['id']); header("Location: {$_SERVER['PHP_SELF']}?module={$mod}&action=done&result={$id}"); } else header("Location: {$_SERVER['PHP_SELF']}?module={$mod}&action=error&errno=60055"); } } else header("Location: {$_SERVER['PHP_SELF']}?module={$mod}&action=error&errno=60061"); } else header("Location: {$_SERVER['PHP_SELF']}?module={$mod}&action=error&errno=60057"); break; } ?>