<!--#include file="../inc/base64.asp"-->
<%
dim checkusername,checkuserpass,checklogin
dim m_name,m_pass,m_type,m_score,haslogin
if(session("TotCms_UserName")<>"") then
	haslogin=true
	m_name=session("TotCms_UserName")
else
	if(request.Cookies("TotCms_Cookie")("UserName")<>"") then
		m_name=Base64decode(request.Cookies("TotCms_Cookie")("UserName"))
		m_pass=request.Cookies("TotCms_Cookie")("UserPass")
		m_type=Base64decode(request.Cookies("TotCms_Cookie")("UserType"))
		m_score=Base64decode(request.Cookies("TotCms_Cookie")("Score"))
		session("TotCms_UserName")=m_name
		session("TotCms_UserPass")=m_pass
		session("TotCms_UserType")=m_type
		session("TotCms_UserScore")=m_score
		haslogin=true
	else
		haslogin=false
	end if
end if
checkusername=session("TotCms_UserName")
if(haslogin=false) then
	response.Redirect("/login.asp")
else
	
end if
%>