first commit
This commit is contained in:
41
capi/login_chk.asp
Normal file
41
capi/login_chk.asp
Normal file
@@ -0,0 +1,41 @@
|
||||
<!-- #include Virtual="/include/Header.asp"-->
|
||||
|
||||
<!--#include virtual = "/Lib/RSExec.asp" -->
|
||||
<%
|
||||
|
||||
Dim userid : userid = Request.Form("userid") '로그인 ID
|
||||
Dim userpw : userpw = Request.Form("userpw") '로그인 PW
|
||||
Dim UNAME
|
||||
|
||||
dim SQL, rs
|
||||
DBConnect2()
|
||||
|
||||
|
||||
SQL = " select USERNAME, USERID from KonKiwi.dbo.KON_CAPI_TB where USERNAME = '"& userid &"' and USERPHONE = '" & userpw & "' "
|
||||
|
||||
Set rs = DBExec(SQL,"kon")
|
||||
If Not rs.EOF Then
|
||||
UNAME = rs(0)
|
||||
USERID = rs(1)
|
||||
|
||||
Call DBExecClose(rs)
|
||||
|
||||
session("MYUNID") = USERID
|
||||
session("MYUNNAME") = UNAME
|
||||
|
||||
''''''' 관리자의 경우 면접원명 표시, 검색 추가 '''''''
|
||||
If USERID = "P00000015" Then
|
||||
Response.Redirect "./adminUser.asp"
|
||||
Else
|
||||
Response.Redirect "./user.asp"
|
||||
End If
|
||||
Else
|
||||
Call DBExecClose(rs)
|
||||
Response.Write "<script type='text/javascript'>alert('입력하신 정보가 정확하지 않습니다.\n다시 한번 정확히 입력해 주시기 바랍니다'); window.history.go(-1);</script>"
|
||||
|
||||
End If
|
||||
|
||||
Response.End
|
||||
|
||||
|
||||
%>
|
||||
Reference in New Issue
Block a user