Esempio n. 1
0
    }
    // 名前入力チェック
    isset($_POST['sei']) ? $sei = h($_POST['sei']) : ($sei = '');
    isset($_POST['mei']) ? $mei = h($_POST['mei']) : ($mei = '');
    if ($sei === '' || $mei === '') {
        $errormode = 1;
        $name_er = 1;
    }
    // アカウト登録処理
    if ($mode === 'submit' && $errormode === 0) {
        // アカウント登録
        $ac = new ACCOUNT();
        $ac->addAccount($accountname, $pwd1, $sei, $mei, $email, $sid);
        $name = $sei . ' ' . $mei;
        // 確認メールの送信
        $mailsend = new MailAddr();
        $mailsend->chkAddrMailSend($email, $name, $sid);
        $mode = 'addaccount';
        $_SESSION['account'] = $email;
        $_SESSION['name'] = $sei . " " . $mei . "(仮)";
        $_SESSION['level'] = '0';
    }
}
?>
<!DOCTYPE html>
<html lang="ja">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
Esempio n. 2
0
    // エラーなしなのでログインチャレンジ
    if ($errormode == 0) {
        $account = h($_POST['account']);
        $password = h($_POST['password']);
        $ac = new ACCOUNT();
        $userdata = $ac->Login($account, $password);
        $stat = $stat . 'mode : user account check.<br />';
    }
    // ログインの確認
    if (isset($userdata)) {
        $_SESSION['account'] = $account;
        $_SESSION['name'] = h($userdata['name']);
        $_SESSION['usertype_cd'] = h($userdata['usertype_cd']);
        $stat = $stat . 'mode : succsess user login.<br />';
        include_once 'lib/mailaddrlib.php';
        $smail = new MailAddr();
        $smail->chkAddrMailSend($account, $_SESSION['name'], $_SESSION['id']);
        echo 'mailsend.';
    } else {
        $_SESSION['account'] = '';
        $_SESSION['name'] = '';
        $_SESSION['level'] = '';
    }
}
foreach (array("id", "account", "name") as $v) {
    $p[$v] = filter_input(INPUT_GET, $v);
}
?>
<html lang="ja">
  <head>
  </head>