Files
core/index.php
T
Hide_D 1c4709ea65 Setting 클래스들 접근 방법을 변경
-global 없이 사용가능
-isExist()를 isExists()로 변경
2018-03-19 00:30:52 +09:00

87 lines
2.8 KiB
PHP

<?php
require('_common.php');
require(ROOT.'/f_config/SETTING.php');
if(!$SETTING->isExists()){
header ('Location:install.php');
die();
}
require(ROOT.'/f_config/DB.php');
require(ROOT.'/f_func/class._Session.php');
$SESSION = new _SESSION();
use utilphp\util as util;
if($SESSION->isLoggedIn()){
header ('Location:i_entrance/entrance.php');
die();
}
$access_token = $SESSION->get('access_token');
?>
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>삼국지 모의전투 HiD 서버</title>
<script src="e_lib/jquery-3.2.1.min.js"></script>
<script src="e_lib/bootstrap.bundle.min.js"></script>
<script src="e_lib/jquery.validate.min.js"></script>
<script src="e_lib/sha512.min.js"></script>
<script src="js/login.js"></script>
<link type="text/css" rel="stylesheet" href="e_lib/bootstrap.min.css">
<link type="text/css" rel="stylesheet" href="css/login.css">
</head>
<body>
<div class="container">
<h1 class="row justify-content-md-center">삼국지 모의전투 HiD</h1>
<div class="row justify-content-md-center">
<div class="col col-12 col-md-10 col-lg-7">
<div class="card">
<h3 class="card-header">
로그인
</h3>
<div class="card-body">
<form id="main_form" method="post" action="#">
<div class="form-group row">
<label for="username" class="col-sm-3 col-form-label">계정명</label>
<div class="col-sm-9">
<input type="text" class="form-control" name="username" id="username" placeholder="계정명"/>
</div>
</div>
<div class="form-group row">
<label for="password" class="col-sm-3 col-form-label">비밀번호</label>
<div class="col-sm-9">
<input type="password" class="form-control" name="password" id="password" placeholder="비밀번호"/>
</div>
</div>
<input type="hidden" id="global_salt" name="global_salt" value="<?=getGlobalSalt()?>">
<div class="form-group row">
<div class="col-sm-3"></div>
<div class="col-sm-9">
<button type="submit" class="btn btn-primary btn-lg btn-block login-button">로그인</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>