박준성 :: 20260428 :: new contact용 정보조회 :: new contact에서 사용해야 하는 내부 정보 조회용 page 신설
This commit is contained in:
@@ -37,6 +37,7 @@ adoConn.open session("db_connect")
|
||||
|
||||
If split(request.servervariables("HTTP_url"), "/")(1) <> "login.asp" _
|
||||
And split(split(request.servervariables("HTTP_url"), "/")(1), "?")(0) <> "login_ok.asp" _
|
||||
And split(request.servervariables("HTTP_url"), "/")(1) <> "new-contact-get-info.asp" _
|
||||
And split(request.servervariables("HTTP_url"), "/")(1) <> "nk" Then
|
||||
call Time_Check(Session("Login_Check"))
|
||||
End If
|
||||
|
||||
33
new-contact-get-info.asp
Normal file
33
new-contact-get-info.asp
Normal file
@@ -0,0 +1,33 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||
dim remoteIp : remoteIp = Request.ServerVariables("REMOTE_ADDR")
|
||||
dim query : query = ""
|
||||
dim returnString : returnString = ""
|
||||
|
||||
query = query & " SELECT [client_id], [internal_no], [external_no], [client_ip] " & VbCrlf
|
||||
query = query & " FROM [new_cati].[dbo].[client] WITH(NOLOCK) " & VbCrlf
|
||||
query = query & " WHERE client_ip = '" & remoteIp & "' " & VbCrlf
|
||||
|
||||
adoRs.open query, adoconn, 1,1
|
||||
IF adors.recordCount > 0 then
|
||||
returnString = returnString & "{" & VbCrlf
|
||||
returnString = returnString & "'client_id':'" & adoRs("client_id") & "'," & VbCrlf
|
||||
returnString = returnString & " 'internal_no':'" & adoRs("internal_no") & "'," & VbCrlf
|
||||
returnString = returnString & " 'external_no':'" & adoRs("external_no") & "'," & VbCrlf
|
||||
returnString = returnString & " 'client_ip':'" & adoRs("client_ip") & "'" & VbCrlf
|
||||
returnString = returnString & "}" & VbCrlf
|
||||
ELSE
|
||||
returnString = returnString & "{" & VbCrlf
|
||||
returnString = returnString & "'client_id':''," & VbCrlf
|
||||
returnString = returnString & " 'internal_no':''," & VbCrlf
|
||||
returnString = returnString & " 'external_no':''," & VbCrlf
|
||||
returnString = returnString & " 'client_ip':''" & VbCrlf
|
||||
returnString = returnString & "}" & VbCrlf
|
||||
END IF
|
||||
|
||||
response.write returnString
|
||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
%>
|
||||
Reference in New Issue
Block a user