language) { case 'ja': ?>新規登録EinschreibungRegister

edit && $data->confirm) { $que = pg_query($db, 'SELECT max(id) AS next FROM members'); $res = pg_fetch_object($que); $data->id = intval($res->next + 1); $data->code = ak_random_string(64); $que = pg_query_params($db, 'INSERT INTO members (id, name, password, mail) VALUES ($1, $2, $3, $4)', array($data->id, $data->username, password_hash($data->password, PASSWORD_BCRYPT), $data->mail)); if($que) { $data->success = true; $que = pg_query_params($db, 'INSERT INTO codes (code, type, id, address, host, port, referer, agent) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)', array($data->code, 'join', $data->id, $_SERVER['REMOTE_ADDR'], gethostbyaddr($_SERVER['REMOTE_ADDR']), $_SERVER['REMOTE_PORT'], $_SERVER['HTTP_REFERER'], $_SERVER['HTTP_USER_AGENT'])); $que = pg_query_params($db, 'UPDATE codes SET valid = TRUE WHERE code = $1 AND type = $2 AND id = $3 AND valid = FALSE AND expired = FALSE', array($data->code, 'join', $data->id)); mail_join($data->language, $data->mail, $data->id, $data->username, $data->code); mail_join($data->language, $email_notice, $data->id, $data->username, $data->code); } else $data->success = false; } ?> edit) { $data->check = true; if(!$data->username) { $data->check = false; $data->error_1 = true; } if(!preg_match('/^([a-z][a-z0-9_]{2,18}[a-z0-9])$/', $data->username) && $data->username) { $data->check = false; $data->error_1 = true; } if(!$data->password) { $data->check = false; $data->error_2 = true; } if($data->password !== $data->again && $data->password) { $data->check = false; $data->error_2 = true; } if(!$data->mail) { $data->check = false; $data->error_3 = true; } if($data->username) { $que = pg_query_params($db, 'SELECT * FROM members WHERE name = $1', array($data->username)); if($res = pg_fetch_object($que) && !$data->success) { $data->check = false; $data->error_4 = true; } if(preg_match('/(shun|tamu)/i', $data->username) && !preg_match('/[0-9_]/i', $data->username)) { $data->check = false; $data->error_4 = true; } if(preg_match('/(admin|staff|root|info|auskunft|manage|master|help)/i', $data->username)) { $data->check = false; $data->error_4 = true; } } if($data->mail) { $que = pg_query_params($db, 'SELECT * FROM members WHERE mail = $1', array($data->mail)); if($res = pg_fetch_object($que) && !$data->success) { $data->check = false; $data->error_5 = true; } if(!preg_match('/^([!-~]+@[!-~]+)$/', $data->mail)) { $data->check = false; $data->error_5 = true; } } } ?> success) { ?>

language) { case 'ja': ?>完了AbschlussDone

check) { ?>

language) { case 'ja': ?>確認BestätigungConfirm

language) { case 'ja': ?>編集RedaktionEdit

success) { ?>

language) { case 'ja': ?>Auskunft.jpへようこそ!確認メールを送信しましたので、アカウントの認証をしてください。Wilkommen bei Auskunft.jp! Sie können eine Bestätigung via Ihre E-mail erhalten, denn bitte machen die Beglaubingung.Welcome to Auskunft.jp! You can receive a confirmation mail, then please validate your account.

confirm) { ?>

language) { case 'ja': ?>登録に失敗しました。Misserfolg einzuschreiben!Failure to register!

check) { ?>

language) { case 'ja': ?>以下の通り登録しますか?Schreiben Sie gewiss im Folgende ein?Do you regster as below certainly?

edit) { ?>

language) { case 'ja': ?>エラーがあります。訂正してください。Es gibt Fehler. Bitte korrigieren es richtig.There are errors. Please change it correctly.

error_1) { ?>

language) { case 'ja': ?>ユーザー名を確認してください。Bitte checken den Username.Please check the username.

error_2) { ?>

language) { case 'ja': ?>パスワードを確認してください。Bitte checken das Passwort.Please check the password.

error_3) { ?>

language) { case 'ja': ?>メールアドレスを確認してください。Bitte checken die E-mail Adresse.Please check the mail address.

error_4) { ?>

language) { case 'ja': ?>指定のユーザー名は既に使用されています。Der Username hat schon benutzt.The username is used already.

error_5) { ?>

language) { case 'ja': ?>指定のメールアドレスでは登録できません。Mit der E-mail Adresse kann man nicht einschreiben.You can't register with the email address.

success) { ?>
check) { ?>
language) { case 'ja': ?>ユーザー名UsernameUsernamecheck) { ?>
language) { case 'ja': ?>パスワードPasswortPasswordcheck) { ?>********
language) { case 'ja': ?>パスワード(確認)Passwort (wieder)Password (again)check) { ?>********
language) { case 'ja': ?>メールアドレスE-mail AdresseE-mail addresscheck) { ?>
/skyscraper.png