<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<og:head headType="query" />
<jsp:directive.include file="/jsp/custom/query_info.jsp" />

<!-- キーのチェック・復号化 -->
<og:value command="SET" key="DECRYPTKEY">
	<og:column name="DUMMY" value="{@ac}" renderer="CRYPT" writable="false" td="false" />
</og:value>

<og:value command="SQL">
	select A.USERID, A.FGJ
	from AN04 A
	where A.USERID = '{@DECRYPTKEY}'
</og:value>

<!-- ANE0005:不正にアクセスされている可能性があります。アドレスをご確認下さい。-->
<og:dataCheck command="NEW" msg="ANE0005">
	'{@USERID}'.length > 0
</og:dataCheck>

<og:dataCheck command="NEW" msg="ANE0024">
	'{@FGJ}' == '0'
</og:dataCheck>

<og:query command="NEW" scope="request">
	update AN04
	set FGJ = '1'
		,DYUPD = '{@USER.YMDH}'
		,PGUPD = '{@GUI.KEY}'
		,PGPUPD = '{@GUI.KEY}'
		,USRUPD = '{@USER.ID}'
	where USERID = '{@USERID}'
</og:query>

<div style="padding:10px;">
	<og:text>{@LBL.ANM0011}</og:text>
	<br />
	<br />
	<og:link href="../index.jsp" lbl="ANM0002" useGamenId="false" />
</div>

<jsp:directive.include file="/jsp/common/htmlend.jsp" />
</jsp:root>
