include_once('../manage/config.php');
if($_REQUEST[login]){
$query = "select * from user where user_id = '{$_REQUEST[id]}' and pass = '{$_REQUEST[pw]}'";
$r = mysql_query($query, $db) or mysql_error($db);
if(mysql_num_rows($r)){
################################
$timestamp = time();
$period = $timestamp + 1 * 24 * 3600;
setcookie('id', $_REQUEST[id], $period);
################################
header ('Location: index.html');
}else{
$error = "
IDまたはパスワードが違います。
";
}
}else if($_REQUEST[logout]){
################################
setcookie('id', '');
################################
header ('Location: index.html');
}
?>
レイズコーポレーション●世田谷・渋谷・目黒ならおまかせ!