code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require_once($_SERVER['DOCUMENT_ROOT']."/top.php");
include_once($_SERVER['DOCUMENT_ROOT']."/header.php");
?>

<?php
$is_signin = $_SESSION['is_signin'];

if($is_signin == 'y')
{
$user_id = $_SESSION['user_id'];
$message = $user_id.'님, 로그인 되었습니다.';
header("Location: ".$url['root']."index.php");
exit();
}
else
{
$_SESSION['is_signin'] = "n";
$_SESSION['user_id'] = 'Unknown';
echo "로그인이 실패되었습니다.<br>";
//header("Location: ".$url['root']."signin.php");
//exit();
}
?>

<?php
include_once($_SERVER['DOCUMENT_ROOT']."/footer.php");
?>