<% @CODEPAGE="65001" language="VBScript" %> <% Dim SV_NAME,DB_NAME , UID, PWD, ConnectString, AdoConn dim Prj_Year '프로젝트 연도(DB 테이블의 키 중 일부 dim admin_ip dim adors dim adorsCategory dim domain_url 'SV_NAME="10.10.13.200" 'UID = "sa" 'PWD = "krco#51304" SV_NAME="10.10.11.6" UID = "sa" PWD = "krco#51304" DB_NAME = "contact" prj_year = "2014" if mid(Request.ServerVariables("remote_addr"), 1, 6) = "10.10." then domain_url = "http://10.10.10.7" else domain_url = "http://localhost" end if admin_ip = "10.10.17.53" ''kmac db ConnectString = "Provider=SQLOLEDB.1;Password=" & PWD & ";Persist Security Info=True;User ID=" & UID & ";Initial Catalog=" & DB_NAME & ";Data Source=" & SV_NAME Set AdoConn = Server.CreateObject("ADODB.Connection") AdoConn.Open ConnectString set adors = server.CreateObject("ADODB.RECORDSET") set adorsCategory = server.CreateObject("ADODB.RECORDSET") '경고 메세지 보여주기 Function Alert(msg) msg = replace(msg, "'", " ") Response.Write "" ' Response.End End Function %>