Example #1
0
                if ($table['login_count'] == 0) {
                    header('Location: ../user_edit');
                    exit;
                } else {
                    header('Location: ../../mypage');
                    exit;
                }
            } else {
                $error['login'] = '******';
            }
        } else {
            $error['login'] = '******';
        }
    }
}
if (isLoginSuccess()) {
    header('Location: ../index');
    exit;
}
?>


<link rel="stylesheet" type="text/css" href="../../views/assets/css/user/login.css">
<div class="container">
  <div class="row">
    <div class="col-xs-offset-4 col-xs-4">
      <form action="" method="post" class="form-signin mg-btm">
        <h3 class="heading-desc">Login</h3>

        <div class="main">
Example #2
0
<?php

$status = status();
if (!isLoginSuccess() || $status != 1) {
    header('Location: /7th_batch_camp/nexseed_link/user/auth/login');
    exit;
}
if ($page == 'index') {
    if (!empty($_POST)) {
        if ($_POST["first_name"] == '') {
            $error["first_name"] = 'blank';
        }
        if ($_POST["last_name"] == '') {
            $error["last_name"] = 'blank';
        }
        if ($_POST["email"] == '') {
            $error["email"] = 'blank';
        }
        if (strlen($_POST["password"]) < 4) {
            $eroor["password"] = '******';
        }
        if ($_POST["password"] == '') {
            $error["password"] = '******';
        }
        //重複アカウントのチェック
        if (empty($error)) {
            $sql = sprintf('SELECT count(*) AS cnt FROM users
            WHERE email = "%s"', mysqli_real_escape_string($db, $_POST['email']));
            $record = mysqli_query($db, $sql) or die(mysqli_error($db));
            $table = mysqli_fetch_assoc($record);
            if ($table['cnt'] > 0) {
Example #3
0
<?php

// ログイン判定
if (!isLoginSuccess()) {
    header('Location: /7th_batch_camp/nexseed_link/user/auth/login');
    exit;
}
// 最終訪問日更新
visit_log_time_show();
?>
<!DOCTYPE html>
<html lang="ja">
<head>
  <title>NexSeedLink</title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta charset="UTF-8">
<!-- css -->
  <?php 
if ($function == 'mypage') {
    ?>
    <!-- マイページに必要 -->
    <link rel="shortcut icon" href="views/assets/images/seedkun.ico" >
    <link rel="stylesheet" href="views/assets/css/bootstrap.css">
    <link rel="stylesheet" href="views/assets/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="views/assets/css/mypage/style.css">
    <link rel="stylesheet" href="views/assets/css/mypage/main.css" />
    <link rel="stylesheet" href="views/assets/css/mypage/owl.carousel.css" />
    <link rel="stylesheet" href="views/assets/css/mypage/magnific-popup.css" />
    <link rel="stylesheet" href="views/assets/css/mypage/body.css" />
    <link rel="stylesheet" href="views/assets/css/mypage/responsive.css" />