first commit
This commit is contained in:
68
Config.asp
Normal file
68
Config.asp
Normal file
@@ -0,0 +1,68 @@
|
||||
<% @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 = "2101023_A"
|
||||
Dim PRJNAME : PRJNAME = "신규 TV컨셉 조사"
|
||||
Dim PCOLOR : PCOLOR = "#364fc7"
|
||||
|
||||
|
||||
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 = "1.235.195.8,20022"
|
||||
DB_NAME2= "kon"
|
||||
UID2 = "kon"
|
||||
PWD2 = "kon#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" -->
|
||||
Reference in New Issue
Block a user