|
|
|
|
½ºÄø® / 2000-04-28 / ¿ÀÈÄ 7:40:48 / 210.222.175.173
Á¶È¸¼ö : 138
|
[Áú¹®] ÄíÅ°..³ ÄíÅ°°¡ ½Ã·Î..y |
<%
set db = server.createobject("adodb.connection")
db.open("dsn=member;uid=cs114;pwd=cs114;")
sql = "select memid, pwd, name, msgcnt from member where memid = '" &
request("id") & "'"
set rs = db.execute(sql)
if (rs.eof or rs.eof) then
%>
<%
else
if rs("pwd") <> request("pwd") then
%>
<%
else
session("id") = rs("memid")
session("name") = rs("name")
response.cookies("id").expires = #2000-5-30 00:00:00#
if response.cookies("id").haskeys then
memid = request.cookies("memid")("id")
memname = request.cookies("memname")("name")
response.cookies("memid")("id") = session("id")
response.cookies("memname")("name") = session("name")
else
response.cookies("memid")("id") = session("id")
response.cookies("memname")("name") = session("name")
end if
sqlstr = "select memid from online where memid = '"& session("id") &"'"
set str = db.execute(sqlstr)
if not(str.eof or str.bof) then%>
<%else
sqlon = "insert into online(memid, timeconn) values"
sqlon = sqlon&" ('"& session("id") &"'"
sqlon = sqlon&", '"& now() & "')"
db.execute sqlon
%>
<%
end if
end if
%>
<%end if%>
<%
db.close
set db = nothing
%>
¼¼¼Çº¯¼ö·Î ÇÏ´Ù°¡ ¾ÈµÇ¼..
ÄíÅ°¸¦ ½ÃµµÇغôµ¥..
¿À´Ã óÀ½ ÄíÅ°¶ó´Â ³ðÀ»..¸¸³ªºÃÀ½´Ù..
ÀÌ°Ô Á¤È®ÇÑ°Ç°¡¿ä?
±Ùµ¥¿ä..
ÀÌ·¸°Ô ·Î±äÇÑ ´ã¿¡..
±×´ãÆäÀÌÁö main.asp¿¡¼´Â »õ·Î°íħÀ» ÇØÁÖ¾î¾ß...
°á°ú°ªÀÌ ³ª¿À´õ±º¿ä..
ÀÌ´Â ¾îÄÉ ÇØÁà¾ß ÇÏ´ÂÁö¿ä..
ÄíÅ°°¡ ½¬¿î °Í¸¸Àº ¾Æ´Õ´Ï´Ù..ÈæÈæ... |
|
|
|