68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
<% @Language='vbscript' codepage='65001'%>
|
|
|
|
<!--METADATA TYPE= "typelib" NAME= "ADODB Type Library" FILE="C:\Program Files\Common Files\SYSTEM\ADO\msado15.dll" -->
|
|
<%
|
|
Option Explicit
|
|
|
|
Response.CharSet="utf-8"
|
|
Session.codepage="65001"
|
|
Response.codepage="65001"
|
|
Response.ContentType="text/html;charset=utf-8"
|
|
|
|
'Survey DB 설정
|
|
Dim SV_NAME,DB_NAME,UID,PWD
|
|
Dim SV_NAME1,DB_NAME1,UID1,PWD1,SV_NAME2,DB_NAME2,UID2,PWD2
|
|
Dim DBconn
|
|
|
|
Dim User_Agent : User_Agent = Request.ServerVariables("HTTP_USER_AGENT") '접속자 브라우저 타입
|
|
Dim PRJCODE : PRJCODE = "[@PROJECTCODE]"
|
|
Dim PRJNAME : PRJNAME = "[@PROJECTTITLE]"
|
|
Dim PCOLOR : PCOLOR = "[@PROJECTCOLOR]"
|
|
|
|
|
|
Dim ip: ip = Request.ServerVariables("REMOTE_ADDR"): 'Response.Write ip
|
|
Dim DevNode: DevNode = "real"
|
|
|
|
If( ip = "10.10.13.82" or ip = "10.10.13.115" or ip = "10.10.13.117" or ip = "10.10.13.118" or ip = "10.10.13.130" )Then
|
|
DevNode = "dev"
|
|
Else
|
|
DevNode = "real"
|
|
End if
|
|
'-------------------------------//
|
|
|
|
DevNode = "real"
|
|
|
|
'#######################################################################################
|
|
'DB 설정값 Read
|
|
'#######################################################################################
|
|
|
|
SV_NAME = "1.235.195.34"
|
|
DB_NAME= "capi"
|
|
UID = "sa"
|
|
PWD = "krco#51304"
|
|
|
|
SV_NAME1 = "1.235.195.34"
|
|
DB_NAME1= "krc_survey"
|
|
UID1 = "sa"
|
|
PWD1 = "krco#51304"
|
|
|
|
If( DevNode = "dev" )then
|
|
SV_NAME2 = "10.10.13.177,1313"
|
|
DB_NAME2= "kon"
|
|
UID2 = "kon"
|
|
PWD2 = "kon#51304"
|
|
Else
|
|
SV_NAME2 = "mssql-7sq2n-kr.vpc-pub-cdb.ntruss.com"
|
|
DB_NAME2= "konkiwi"
|
|
UID2 = "kadmin"
|
|
PWD2 = "it#51304"
|
|
end if
|
|
|
|
%>
|
|
<!-- #include Virtual = "./Lib/DBConn.asp" -->
|
|
<!-- #include Virtual = "./Lib/DBLib.asp" -->
|
|
<!-- #include Virtual = "./Lib/FileLib.asp" -->
|
|
<!-- #include Virtual = "./Lib/SiteFunc.asp" -->
|
|
<!-- #include Virtual = "./Lib/CAPICOM.asp" -->
|
|
<!-- #include Virtual = "./Lib/Func.asp" -->
|
|
<!-- #include Virtual = "./Lib/aspJSON1.17.asp" --> |