<% '------------- List --------------------------------------------------- '1. ¹®ÀÚ¿­Ã³¸®ÇÔ¼ö1 - InputValue(strvalue) '2. ¹®ÀÚ¿­Ã³¸®ÇÔ¼ö2 - InputValue2(strvalue) -->textareaÀû¿ë½Ã¿¡»ç¿ë.. '3. ´ëºÐ·ù¸í±¸Çϱâ - fun_cateLName(CateL_idx) '4. ¼ÒºÐ·ù¸í±¸Çϱâ - fun_cateSName(CateL_idx, CateS_idx) '5. »ý³â¿ùÀÏ·Î ³ªÀ̱¸Çϱâ - mnai (ssn) '6. Àαâ°Ë»ö¾î³ªÅ¸³»±â - TopSearch_Keyword(val) '7. DBConnection - dbconnect() ->subÇÔ¼ö '8. °ü¸®ÀÚÆäÀÌÁö üũ - security_ad_cms() '9. ij½¬ÃʱâÈ­ - no_cache() '10. Æú´õ°Ë»çÈÄ ¾øÀ¸¸é »ý¼º - FolderCreate(strDir) '11. DB¿¬°áÇØÁ¦ - DBnothing() -->»èÁ¦¿¹Á¤.. '12. ¸¶¿ì½º¿À¹ö½Ã»ö»óÀû¿ë - trmouseover(clr) '13. ·¹ÄÚµå¼Â¿¬°áÇØÁ¦ - RSnothing(rsobj) '14. °ü¸®ÀÚÆäÀÌÁöŸÀÌÆ² '15. °Ô½ÃÆÇ Á¦¸ñ¾Ë¾Æ³»±â bbs_name_str(a_num) '16. ÆË¾÷¶ç¿ì´Â¸ðµâ popup_view() '---------------------------------------------------------------------- 'Set func = server.CreateObject("func.sites") '************** Information **************************************** ' Program Title : ¹®ÀÚ¿­Ã³¸®±¸¹®1 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* 'function InputValue(strvalue) ' strvalue = trim(strvalue) ' strvalue = Replace(strvalue,"'","''") 'strvalue = Replace(strvalue,chr(34), """) 'strvalue = Replace(strvalue,",", "") 'strvalue = Replace(strvalue,"%", "") 'strvalue = Replace(strvalue,"<", "<") 'strvalue = Replace(strvalue,">", ">") 'strvalue = Replace(strvalue, "", "") 'strvalue = Replace(strvalue, "", "") 'strvalue = Replace(strvalue,chr(13),"
") 'strvalue = Replace(strvalue,"\","") ' strvalue = Replace(strvalue," ","  ") ' strvalue = Replace(strvalue,"\t","   ") ' InputValue = strvalue 'end function 'function InputValue(strvalue) ' strvalue = func.InputValue(strvalue) ' InputValue = strvalue 'end function '************** Information **************************************** ' Program Title : ¹®ÀÚ¿­Ã³¸®±¸¹®2 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* 'function InputValue2(strvalue) 'strvalue = trim(strvalue) 'strvalue = Replace(strvalue,"'","''") 'strvalue = Replace(strvalue,",", "") 'strvalue = Replace(strvalue,"%", "") 'strvalue = Replace(strvalue,"<", "<") 'strvalue = Replace(strvalue,">", ">") 'strvalue = Replace(strvalue, "", "") 'strvalue = Replace(strvalue, "", "") 'strvalue = Replace(strvalue,chr(13),"
") 'strvalue = Replace(strvalue,"\","") ' strvalue = Replace(strvalue," ","  ") ' strvalue = Replace(strvalue,"\t","   ") ' InputValue2 = strvalue 'end function '************** Information **************************************** ' Program Title : ¹®ÀÚ¿­Ã³¸®±¸¹®1 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function InputValue(strvalue) strvalue = trim(strvalue) strvalue = Replace(strvalue,"'","''") strvalue = Replace(strvalue,chr(34), """) strvalue = Replace(strvalue, "", "") strvalue = Replace(strvalue, "", "") InputValue = strvalue end function '************** Information **************************************** ' Program Title : ¹®ÀÚ¿­Ã³¸®±¸¹®2 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function InputValue2(strvalue) strvalue = trim(strvalue) strvalue = Replace(strvalue,"'","''") strvalue = Replace(strvalue, "", "") strvalue = Replace(strvalue, "", "") InputValue2 = strvalue end function '************** Information **************************************** ' Program Title : ¹®ÀÚ¿­Ã³¸®±¸¹®3 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006. 3. 14 '********************************************************************* Function InputValue3( CheckValue ) CheckValue = replace(CheckValue, "&" , "&") CheckValue = replace(CheckValue, "<", "<") CheckValue = replace(CheckValue, ">", ">") CheckValue = replace(CheckValue, "'", "`") CheckValue = replace(CheckValue, " ", "  ") CheckValue = replace(CheckValue, vbcrlf,"
") InputValue3 = CheckValue End Function '************** Information **************************************** ' Program Title : ¹®ÀÚ¿­Ã³¸®±¸¹®4 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006. 3. 14 '********************************************************************* function InputValue4(strvalue) strvalue = trim(strvalue) strvalue = Replace(strvalue,"'","''") InputValue4 = strvalue end Function 'ÅØ½ºÆ®¿¡¸®¾î¿¡¼­ ºÒ·¯Áú °æ¿ì Function outputValue( CheckValue ) CheckValue = replace(CheckValue, "&", "&") CheckValue = replace(CheckValue, "<", "<") CheckValue = replace(CheckValue, ">", ">") CheckValue = replace(CheckValue, "  ", " ") CheckValue = replace(CheckValue, "
", vbcrlf) outputValue = CheckValue End Function '************** Information **************************************** ' Program Title : ÅØ½ºÆ®¸ðµå ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function getTextmode(strvalue) if strvalue <> "" or not isnull(strvalue) then strvalue=Replace(strvalue, "<" , "<") strvalue=Replace(strvalue, ">" , ">") strvalue=Replace(strvalue,chr(13),"
") strvalue=Replace(strvalue," ","  ") strvalue=Replace(strvalue,"\t","   ") getTextmode = strvalue end if end Function function InputValue6(strvalue) strvalue = trim(strvalue) strvalue = Replace(strvalue," ","") strvalue = left(strvalue,16) strvalue = left(strvalue,10)&"-"&right(strvalue,6) strvalue = Replace(strvalue,":","-") InputValue6 = strvalue end function '************** Information **************************************** ' Program Title : ´ëºÐ·ù¸í ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function fun_cateLName(CateL_idx) SQL = "SELECT CateL_name FROM C_CateL WHERE CateL_idx="&CateL_idx Set Rsx = Dbcon.Execute(SQL) CateL_name = Rsx(0) Set Rsx = Nothing fun_cateLName = CateL_name end function '************** Information **************************************** ' Program Title : ¼ÒºÐ·ù¸í ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function fun_cateSName(CateL_idx, CateS_idx) SQL = "SELECT CateS_name FROM C_CateS WHERE CateL_idx="&CateL_idx&"and CateS_idx = "&CateS_idx Set Rsx = Dbcon.Execute(SQL) CateS_name = Rsx(0) Set Rsx = Nothing fun_cateSName = CateS_name end function '************** Information **************************************** ' Program Title : ³ªÀ̱¸ÇÏ´ÂÇÔ¼ö ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 10 '********************************************************************* function mnai (ssn) dim y_mon, ssn_r y_mon=cint((year(date())-cint("19" & left(ssn,2)))/4) if mid(ssn,7,1)="1" or mid(ssn,7,1)="2" then ssn_r = "19" & left(ssn,2) & "-" & mid(ssn,3,2) & "-" & mid(ssn,5,2) else ssn_r = "20" & left(ssn,2) & "-" & mid(ssn,3,2) & "-" & mid(ssn,5,2) end if mnai = fix((datediff("d",cdate(ssn_r),date())-y_mon)/365) End Function '************** Information **************************************** ' Program Title : Àαâ°Ë»ö¾î ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function TopSearch_Keyword(val) sql = "select top "&val&" search_keyword, count(search_keyword) as tot from C_search group by search_keyword order by tot desc" set rs_keyword = dbcon.execute(sql) do while not rs_keyword.eof response.write "  "&rs_keyword("search_keyword") rs_keyword.MoveNext Loop Set rs_keyword = Nothing end function '************** Information **************************************** ' Program Title : °ü¸®ÀÚÆäÀÌÁö üũ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function security_ad_cms() If Request.Cookies("security_ad_cms") <> "ok" then response.write "" & VbCrLf response.end end if end function '************** Information **************************************** ' Program Title : ȸ¿ø·Î±×ÀΠüũ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function member_login_chk(url) If Request.Cookies("M_id") = "" then response.write "" & VbCrLf set dbcon = nothing response.end end if end function '************** Information **************************************** ' Program Title : °ü¸®ÀÚ Ã¼Å© ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function no_cache() Response.Expires = -1 Response.Expiresabsolute = Now() - 1 Response.AddHeader "Pragma", "no_cache" Response.AddHeader "cache-control", "no-cache" Response.CacheControl = "no-cache" end function '************** Information **************************************** ' Program Title : Æú´õ°Ë»çÈÄ ¾øÀ¸¸é »ý¼º ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function FolderCreate(strDir) Set FSO = Server.CreateObject("Scripting.FileSystemObject") If FSO.FolderExists(strDir) = False Then 'Æú´õ°¡ ¾øÀ¸¸é »õ·Î »ý¼ºÇÑ´Ù.. FSO.CreateFolder(strDir) End if set FSO = nothing end function '************** Information **************************************** ' Program Title : DB¿¬°áÇØÁ¦ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function DBnothing() dbcon.close set dbcon = nothing end function '************** Information **************************************** ' Program Title : DB¿¬°áÇØÁ¦ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function page(url) v_temp = Int((v_page - 1) / v_block) * v_block + 1 If v_temp = 1 Then 'Response.Write "[ÀÌÀü " & v_block & "°³]" Else Response.Write"[ÀÌÀü]" End If v_loop = 1 Do Until v_loop > v_block Or v_temp > v_totalpage If v_temp = CInt(v_page) Then Response.Write "" & v_temp &" " Else Response.Write"" & v_temp & " " End If v_temp = v_temp + 1 v_loop = v_loop + 1 Loop If v_temp > v_totalpage Then 'Response.Write "[´ÙÀ½ " &v_block&"°³]" Else Response.Write"[´ÙÀ½]" End If end function '************** Information **************************************** ' Program Title : ÆäÀÌÁö2 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function page2(url) v_temp = Int((v_page - 1) / v_block) * v_block + 1 If v_temp = 1 Then 'Response.Write "[ÀÌÀü " & v_block & "°³]" Else Response.Write"" End If v_loop = 1 Do Until v_loop > v_block Or v_temp > v_totalpage If v_temp = CInt(v_page) Then Response.Write "" & v_temp &" " Else Response.Write"[" & v_temp & "] " End If v_temp = v_temp + 1 v_loop = v_loop + 1 Loop If v_temp > v_totalpage Then 'Response.Write "[´ÙÀ½ " &v_block&"°³]" Else Response.Write"" End If end function '************** Information **************************************** ' Program Title : ÆäÀÌÁö3 ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006. 03. 14 '********************************************************************* Function page3(url, getCode) v_temp = Int((v_page - 1) / v_block) * v_block + 1 If v_temp = 1 Then 'Response.Write "[ÀÌÀü " & v_block & "°³]" Else Response.Write"[ÀÌÀü]" End If v_loop = 1 Do Until v_loop > v_block Or v_temp > v_totalpage If v_temp = CInt(v_page) Then Response.Write "" & v_temp &" " Else Response.Write"" & v_temp & " " End If v_temp = v_temp + 1 v_loop = v_loop + 1 Loop If v_temp > v_totalpage Then 'Response.Write "[´ÙÀ½ " &v_block&"°³]" Else Response.Write"[´ÙÀ½]" End If end Function '************** Information **************************************** ' Program Title : ¸¶¿ì½º¿À¹ö½Ã»ö»óÀû¿ë ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. 13 '********************************************************************* function trmouseover(clr) response.write "onMouseOver=this.style.backgroundColor='"&clr&"' onMouseOut=this.style.backgroundColor=''" end function '************** Information **************************************** ' Program Title : ·¹ÄÚµå¼Â¿¬°áÇØÁ¦ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. '********************************************************************* function RSnothing(rsobj) rsobj.close set rsobj = nothing end function '************** Information **************************************** ' Program Title : ŸÀÌÆ² ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. '********************************************************************* function title_str(str,w) %>
<%=str%>
<% end function '************** Information **************************************** ' Program Title : ŸÀÌÆ² ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. '********************************************************************* function title_str2(str,w,help) %>
<%=str%> <%=help%>
<% end function '************** Information **************************************** ' Program Title : ŸÀÌÆ² ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. '********************************************************************* function title_str3(str,path) %>
<%=str%> <%=path%>
<% end function '************** Information **************************************** ' Program Title : °Ô½ÃÆÇ Á¦¸ñ¾Ë¾Æ³»±âbbs_name_str(a_num) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function bbs_name_str(a_num) if a_num <> "" then sql = "select a_bbsname from bbs_ad_cms where a_num="&a_num set rs = dbcon.execute(sql) a_bbsname = rs(0) set rs = nothing end if bbs_name_str = a_bbsname end function '************** Information **************************************** ' Program Title : ÆË¾÷¶ç¿ì´Â ¸ðµâ popup_view() ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 09. 03 '********************************************************************* function popup_view() getdate_str = replace(left(now(),10),"-","") sql = " select * from popup " sql = sql&" where status = 'Y' and " 'sql = sql&" left(edate,10) >= left(getdate(),10) and left(sdate,10) <= left(getdate(),10)" sql = sql&" convert(int,convert(varchar(20),edate,112)) >= CONVERT(int,'"&getdate_str&"') and " sql = sql&" convert(int,convert(varchar(20),sdate,112)) <= CONVERT(int,'"&getdate_str&"')" set rs = Dbcon.Execute(sql) do while not rs.eof idx = trim(rs("idx")) w_width = trim(rs("w_width")) w_height = trim(rs("w_height")) w_top = trim(rs("w_top")) w_left = trim(rs("w_left")) ck_chk = trim(rs("ck_chk")) ck_val = trim(rs("ck_val")) scrollbars = trim(rs("scrollbars")) toolbar = trim(rs("toolbar")) menubar = trim(rs("menubar")) locations = trim(rs("locations")) if ck_val = "" then ck_val = "1" %> <% rs.movenext loop end function '************** Information **************************************** ' Program Title : ÁÁÀº½Ã º¸±â goodsi_view() ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2006-01-27 '********************************************************************* function goodsi_view() getdate_str = replace(left(now(),10),"-","") sql = " select * from goodsi " sql = sql&" where status = 'Y' and " 'sql = sql&" left(edate,10) >= left(getdate(),10) and left(sdate,10) <= left(getdate(),10)" sql = sql&" convert(int,convert(varchar(20),edate,112)) >= CONVERT(int,'"&getdate_str&"') and " sql = sql&" convert(int,convert(varchar(20),sdate,112)) <= CONVERT(int,'"&getdate_str&"')" set rs = Dbcon.Execute(sql) %> <% do while not rs.eof idx = trim(rs("idx")) w_width = trim(rs("w_width")) w_height = trim(rs("w_height")) w_top = trim(rs("w_top")) w_left = trim(rs("w_left")) ck_chk = trim(rs("ck_chk")) ck_val = trim(rs("ck_val")) scrollbars = trim(rs("scrollbars")) toolbar = trim(rs("toolbar")) menubar = trim(rs("menubar")) locations = trim(rs("locations")) subject = trim(rs("subject")) content = trim(rs("content")) %> <%=content%>

<% rs.movenext loop %>
<% end function '--------------------------------------------------------------' ' ű׻èÁ¦ remove_tags( str ) '--------------------------------------------------------------' function remove_tags( str ) dim temp, dest, length, i, ch, tag tag = false dest = "" temp = str length = len(temp) for i=1 to length ch = mid( temp, i, 1 ) if ( ch="<" ) then tag = true if ( ch=">" ) then tag = false ch="" end if if not tag and ch<>chr(13) and ch<>chr(10) and ch<>chr(9) then dest = dest+ch next dest = replace( dest, " ", "" ) remove_tags = dest end function 'À̹ÌÁö »çÀÌÁî °¡Á®¿À±â Function GetImageSize(Virtual_Image_Path) Image_Path = Server.MapPath("/")&Virtual_Image_Path Set objPic = LoadPicture(Image_Path) imgWidth = CLng(CDbl(objPic.Width) * 24 / 635) imgHeight = CLng(CDbl(objPic.Height) * 24 / 635) Set objPic = Nothing GetImageSize =imgWidth&","&imgHeight End Function Function GetImageSize_w(Virtual_Image_Path) Image_Path = Server.MapPath("/")&Virtual_Image_Path Set objPic = LoadPicture(Image_Path) imgWidth = CLng(CDbl(objPic.Width) * 24 / 635) imgHeight = CLng(CDbl(objPic.Height) * 24 / 635) Set objPic = Nothing GetImageSize_w =imgWidth End Function Function GetImageSize_h(Virtual_Image_Path) Image_Path = Server.MapPath("/")&Virtual_Image_Path Set objPic = LoadPicture(Image_Path) imgWidth = CLng(CDbl(objPic.Width) * 24 / 635) imgHeight = CLng(CDbl(objPic.Height) * 24 / 635) Set objPic = Nothing GetImageSize_h =imgHeight End Function '--------------------------------------------------------------' ' ÁöÁ¤ÇÑ Æø(max)¸¸Å­ ¹®ÀÚ¿­ Á¶Àý (ÇѱÛÀ» 2¹ÙÀÌÆ®·Î ÀνÄ) '--------------------------------------------------------------' ' ' str : Àß¶ó³¾ ¹®ÀÚ¿­ º¯¼ö ' max : Àß¶ó³¾ ±æÀÌ ' br : max´ÜÀ§·Î
ű׸¦ ºÙ¿©ÁØ´Ù. ' ' ¹®ÀÚ¿­À» ÇÑÁÙ¿¡ 80ÀÚ¾¿ ¸¸µé °æ¿ì ' : StringToHTML( str, 80, true ) ' ' 80ÀÚ ±îÁö¸¸ Ãâ·ÂÇÏ°í ´õ ±æ¸é "..."À» ºÙ¿©ÁÖ·Á¸é ' : StringToHTML( str, 80, false ) ' '--------------------------------------------------------------' function StringToHTML( str, max, br ) Dim i, length, buf, tmp, count, count2, ch, first first = false if ( isnull(str) ) then StringToHTML = "¤»¤»¤»" Exit Function end if if max>0 then buf = Trim( str ) 'buf = Replace( buf, CHR(9), " " ) 'buf = Replace( buf, CHR(13), "" ) length = len( buf ) count = 1 count2 = 0 tmp = "" for i=1 to length if count>max then if br=false then tmp = tmp & "..." exit for end if if i" count = 1 first = true end if ch = mid( buf, i, 1 ) if ch=CHR(10) then if br=false then exit for end if tmp = tmp & "
" count = 1 first = true elseif count>1 AND ch=CHR(32) then if not first then tmp = tmp & " " end if elseif count = 1 and ch = CHR(32) then tmp = tmp else tmp = tmp & ch first = false end if if asc(ch)<0 then 'ÇѱÛÀ̸é count = count+2 else '¿µ¹®À̸é count = count+1 end if next else tmp = str tmp = Trim( tmp ) tmp = Replace( tmp, "&", "&" ) tmp = Replace( tmp, "<", "<" ) tmp = Replace( tmp, ">", ">" ) 'tmp = Replace( tmp, CHR(10), "
" ) 'tmp = Replace( tmp, CHR(32), " " ) end if StringToHTML = tmp end function '---------------------sms ¿ë ¼öÁ¤ ÃÖ°æ¼ö--------------- function StringToHTML2( str, max, br ) Dim i, length, buf, tmp, count, count2, ch, first first = false if ( isnull(str) ) then StringToHTML = "¤»¤»¤»" Exit Function end if if max>0 then buf = Trim( str ) 'buf = Replace( buf, CHR(9), " " ) 'buf = Replace( buf, CHR(13), "" ) length = len( buf ) count = 1 count2 = 0 tmp = "" for i=1 to length if count>max then if br=false then tmp = tmp & "..." exit for end if if i" count = 1 first = true end if ch = mid( buf, i, 1 ) 'if ch=CHR(10) then 'if br=false then ' exit for 'end if 'tmp = tmp & "
" 'count = 1 'first = true 'Else if count>1 AND ch=CHR(32) then if not first then tmp = tmp & " " end if elseif count = 1 and ch = CHR(32) then tmp = tmp else tmp = tmp & ch first = false end if if asc(ch)<0 then 'ÇѱÛÀ̸é count = count+2 else '¿µ¹®À̸é count = count+1 end if next else tmp = str tmp = Trim( tmp ) tmp = Replace( tmp, "&", "&" ) tmp = Replace( tmp, "<", "<" ) tmp = Replace( tmp, ">", ">" ) 'tmp = Replace( tmp, CHR(10), "
" ) 'tmp = Replace( tmp, CHR(32), " " ) end if StringToHTML2 = tmp end function sub loding(st,strlink) %>
 
<% end sub '************** Information **************************************** ' Program Title : Æú´õÀ¯¹«È®ÀÎ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-10-19 '********************************************************************* function isdir(strDirectory) Set FSO = Server.CreateObject("Scripting.FileSystemObject") If FSO.FolderExists(strDirectory) = False Then 'Æú´õ°¡ ¾øÀ¸¸é »õ·Î »ý¼ºÇÑ´Ù.. FSO.CreateFolder(strDirectory) End if Set FSO = Nothing end function '************** Information **************************************** ' Program Title : ¾÷·ÎµåÆÄÀÏÀúÀåÇϱâ(dext¹öÁ¯) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05 '********************************************************************* function wfile(filedname, maxMbyte, strDirectory) Set FSO = Server.CreateObject("Scripting.FileSystemObject") if Len(UploadForm(filedname)) > 0 then 'strDirectory = server.MapPath("./")&"\data\"&a_tablename&"\" If FSO.FolderExists(strDirectory) = False Then 'Æú´õ°¡ ¾øÀ¸¸é »õ·Î »ý¼ºÇÑ´Ù.. FSO.CreateFolder(strDirectory) End if '--ÆÄÀÏ Á¤º¸ÃßÃâ fileName = UploadForm(filedname).FileName 'ÆÄÀÏÀ̸§.. filePath = UploadForm(filedname).FilePath 'Àý´ë°æ·Î.. fileSize = UploadForm(filedname).FileLen 'ÆÄÀÏ»çÀÌÁî.. saveFileName = strDirectory & fileName '½ÇÁ¦ ÀúÀåµÇ °æ·Î¿¡ ÆÄÀÏ... '--È®ÀåÀå¿Í ÆÄÀÏ À̸§ ºÐ¸® strfile = split(fileName,".") strName = strfile(0) 'ÆÄÀϸí strExt = strfile(1) 'È®ÀåÀÚ '-- ÆÄÀÏÅ©±â°¡ °Ë»ç '1MByte = 1048576Byte if Round(fileSize) > Round(1048576 * maxMbyte) then response.write "" & VbCrLf Set UploadForm = nothing Set FSO = nothing response.end end if '°°Àº ÆÄÀÏ ÀÌ Á¸ÀçÇÒ°æ¿ì --> _1,_2 ÀÌ·±½ÄÀ¸·Î ÆÄÀÏ¸í º¯°æ..¤Ñ¤Ñv bExist = True count= 0 Do While bExist If (FSO.FileExists(saveFileName)) Then count = count + 1 FileName = strName & "_" & count & "." & strExt saveFileName = strDirectory & FileName Else Exit Do '¾øÀ¸¸ç ºüÁ®³ª°£´ç.. End If Loop 'ÆÄÀÏ ÀúÀå UploadForm(filedname).SaveAs saveFileName end if 'Set UploadForm = nothing Set FSO = nothing wfile = FileName end Function '************** Information **************************************** ' Program Title : ¾÷·ÎµåÆÄÀÏÀúÀåÇϱâ(dext¹öÁ¯) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2007-04-17 '********************************************************************* function wfile_mail(filedname, maxMbyte, strDirectory) Set FSO = Server.CreateObject("Scripting.FileSystemObject") if Len(UploadForm(filedname)) > 0 then 'strDirectory = server.MapPath("./")&"\data\"&a_tablename&"\" If FSO.FolderExists(strDirectory) = False Then 'Æú´õ°¡ ¾øÀ¸¸é »õ·Î »ý¼ºÇÑ´Ù.. FSO.CreateFolder(strDirectory) End if '--ÆÄÀÏ Á¤º¸ÃßÃâ fileName = UploadForm(filedname).FileName 'ÆÄÀÏÀ̸§.. filePath = UploadForm(filedname).FilePath 'Àý´ë°æ·Î.. fileSize = UploadForm(filedname).FileLen 'ÆÄÀÏ»çÀÌÁî.. saveFileName = strDirectory & fileName '½ÇÁ¦ ÀúÀåµÇ °æ·Î¿¡ ÆÄÀÏ... '--È®ÀåÀå¿Í ÆÄÀÏ À̸§ ºÐ¸® strfile = split(fileName,".") strName = strfile(0) 'ÆÄÀϸí strExt = strfile(1) 'È®ÀåÀÚ a_nofile = "asp,php,jsp,exe,aspx,dll,com,js" a_nofile = split(a_nofile,",") 'Á¦ÇÑÆÄÀÏ.. a_nofile_len = UBound(a_nofile) '¹è¿­°¹¼ö for z=0 to a_nofile_len if Lcase(strExt) = a_nofile(z) then response.write "" & VbCrLf set dbcon = nothing Set UploadForm = nothing Set FSO = nothing response.end end if Next '-- ÆÄÀÏÅ©±â°¡ °Ë»ç '1MByte = 1048576Byte if Round(fileSize) > Round(1048576 * maxMbyte) then response.write "" & VbCrLf Set UploadForm = nothing Set FSO = nothing response.end end if '°°Àº ÆÄÀÏ ÀÌ Á¸ÀçÇÒ°æ¿ì --> _1,_2 ÀÌ·±½ÄÀ¸·Î ÆÄÀÏ¸í º¯°æ..¤Ñ¤Ñv bExist = True count= 0 Do While bExist If (FSO.FileExists(saveFileName)) Then count = count + 1 FileName = strName & "_" & count & "." & strExt saveFileName = strDirectory & FileName Else Exit Do '¾øÀ¸¸ç ºüÁ®³ª°£´ç.. End If Loop 'ÆÄÀÏ ÀúÀå UploadForm(filedname).SaveAs saveFileName end if 'Set UploadForm = nothing Set FSO = nothing wfile_mail = FileName end function '************** Information **************************************** ' Program Title : ' Company : ' Creator : '********************************************************************* function cfile(filedname,strDirectory1,strDirectory) Set FSO = Server.CreateObject("Scripting.FileSystemObject") If FSO.FolderExists(strDirectory) = False Then 'Æú´õ°¡ ¾øÀ¸¸é »õ·Î »ý¼ºÇÑ´Ù.. FSO.CreateFolder(strDirectory) End if '--È®ÀåÀå¿Í ÆÄÀÏ À̸§ ºÐ¸® strfile = split(filedname,".") strName = strfile(0) 'ÆÄÀϸí strExt = strfile(1) 'È®ÀåÀÚ '°°Àº ÆÄÀÏ ÀÌ Á¸ÀçÇÒ°æ¿ì --> _1,_2 ÀÌ·±½ÄÀ¸·Î ÆÄÀÏ¸í º¯°æ..¤Ñ¤Ñv bExist = True count= 0 org_file = strDirectory1&filedname fwsaveFileName = strDirectory&filedname FileName = filedname Do While bExist If (FSO.FileExists(fwsaveFileName)) Then count = count + 1 FileName = strName & "_" & count & "." & strExt fwsaveFileName = strDirectory & FileName Else Exit Do '¾øÀ¸¸ç ºüÁ®³ª°£´ç.. End If Loop 'ÆÄÀÏ ÀúÀå FSO.CopyFile org_file,fwsaveFileName Set FSO = nothing cfile = FileName end function '************** Information **************************************** ' Program Title : file»èÁ¦ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05. '********************************************************************* function dfile(strpath) Set FSO = Server.CreateObject("Scripting.FileSystemObject") If FSO.fileExists(strpath) = true Then 'ÆÄÀÏÀÌ ÀÖÀ¸¸é Áö¿î´Ù. FSO.DeleteFile(strpath) End if Set FSO = nothing end function '************** Information **************************************** ' Program Title : µî±Þº° ¿ë·® °¡Áö°í ¿À±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05 '********************************************************************* function get_hdsize(loging_level) if loging_level = "-1" then get_hdsize = Application("ad_cms_hdsize") else SQL = "Select g_hdsize from member_group where g_num=" & loging_level Set rs = DbCon.Execute(SQL) if not rs.eof then get_hdsize = Rs(0) else get_hdsize = 0 end if Set rs = nothing end if end function '************** Information **************************************** ' Program Title : °øÀ¯Æú´õ ¿ë·® °¡Áö°í ¿À±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05 '********************************************************************* function get_public() sql = "Select wc_public from webhd_config" Set rs = DbCon.Execute(SQL) if not rs.eof then get_public = Rs(0) else get_public = 0 end if Set rs = nothing end function '************** Information **************************************** ' Program Title : ¾÷·ÎµåÁ¦Çѿ뷮 °¡Áö°í ¿À±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05 '********************************************************************* function get_upload() sql = "Select wc_upload from webhd_config" Set rs = DbCon.Execute(SQL) if not rs.eof then get_upload = Rs(0) else get_upload = 0 end if Set rs = nothing end function '************** Information **************************************** ' Program Title : '¸¶Áö¸·Á¢¼Ó½Ã°£Á¤º¸±¸Çϱâ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05 '********************************************************************* function get_lastdate(m_id) sql = "select m_lastdate from member where m_id = '"&m_id&"'" set rs_view = DbCon.Execute(sql) get_lastdate = rs_view("m_lastdate") Set rs_view = nothing end function '************** Information **************************************** ' Program Title : ' ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 05 '********************************************************************* function get_FileName1(filename) If Trim(filename) = "" Then FileName1 = "default.gif" Else FileName = Split(filename,".",-1,1) FileEnd = Lcase(Trim(FileName(1))) Select Case FileEnd Case "" FileName1 = "default.gif" Case "asf" FileName1 = "asf.gif" Case "asx" FileName1 = "asf.gif" Case "doc" FileName1 = "doc.gif" Case "mpg" FileName1 = "mpg.gif" Case "mpeg" FileName1 = "mpg.gif" Case "bat" FileName1 = "bat.gif" Case "bmp" FileName1 = "bmp.gif" Case "com" FileName1 = "com.gif" Case "sys" FileName1 = "device.gif" Case "dll" FileName1 = "device.gif" Case "exe" FileName1 = "exe.gif" Case "gif" FileName1 = "gif.gif" Case "htm" FileName1 = "html.gif" Case "html" FileName1 = "html.gif" Case "hwp" FileName1 = "hwp.gif" Case "xls" FileName1 = "excel.gif" Case "jpg" FileName1 = "jpg.gif" Case "mp3" FileName1 = "mp3.gif" Case "pcx" FileName1 = "pcx.gif" Case "png" FileName1 = "png.gif" Case "ppt" FileName1 = "ppt.gif" Case "ra" FileName1 = "ra.gif" Case "txt" FileName1 = "text.gif" Case "url" FileName1 = "url.gif" Case "wav" FileName1 = "wav.gif" Case "zip" FileName1 = "zip.gif" Case else FileName1 = "unknown.gif" End Select End If get_FileName1 = FileName1 end function '************** Information **************************************** ' Program Title : 'ȸ¿øÀ̸§Ã£±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-24 '********************************************************************* function get_name(m_id) if m_id <> "" then m_id = replace(m_id,",","") sql = "select m_name from member where m_id = '"&m_id&"'" set rs_view = DbCon.Execute(sql) if rs_view.eof then get_name = m_id else get_name = rs_view(0) end if Set rs_view = nothing end if end function '************** Information **************************************** ' Program Title : 'ȸ»çÀ̸§' ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-24 '********************************************************************* function get_company_name() sql = "select subject from default_config where idx=1" set rs_view = DbCon.Execute(sql) if rs_view.eof then get_company_name = "" else get_company_name = rs_view(0) end if set rs_view = nothing end function '************** Information **************************************** ' Program Title : ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-27 '********************************************************************* function get_rdate(do_key,do_formid) sql = "select dov_rdate from document_view where do_key="&do_key&" and do_id='"&do_formid&"'" set rs_view = DbCon.Execute(sql) if isnull(trim(rs_view(0))) or trim(rs_view(0)) = "" then get_rdate = "ÀÐÁö¾ÊÀ½" else get_rdate = left(rs_view(0),10)&" "&mid(rs_view(0),12,10) end if set rs_view = nothing end function '************** Information **************************************** ' Program Title : ip üũ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-10-12 '********************************************************************* function security_ip() user_ip = trim(request.ServerVariables("REMOTE_ADDR")) sql = "select count(se_idx) from security where se_ip='"&user_ip&"' and se_chk='Y'" set rs = dbcon.execute(sql) rs_str = rs(0) set rs = nothing if rs_str = 0 then response.write "" & VbCrLf response.end end if end function '************** Information **************************************** ' Program Title : 'input°ü¸® ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-10-28 '********************************************************************* sub input_type(iptype,ip_name,ip_value,size,maxlength,ip_aciton) if maxlength <> "0" then maxlength_str = "maxlength='"&maxlength&"'" end if if iptype = "text" then %> <%=ip_aciton%>> <%elseif iptype = "password" then%> <%=ip_aciton%>> <%elseif iptype = "ipdate" then%> <%=ip_aciton%>> [³¯Â¥¼±ÅÃ] <%elseif iptype = "textarea" then%> <%elseif iptype = "file" then%> <%=ip_aciton%>> <%end if end sub '************** Information **************************************** ' Program Title : 'ÄÚµå°ü¸® ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-10-28 '********************************************************************* sub code_view(code_idx,opt_name,code_name) SQL = "SELECT * FROM C_CODE_S WHERE CateL_idx="&code_idx&" ORDER BY CateS_code" Set rs = DbCon.Execute(SQL) if not rs.eof then %> <%else%> <%end if rs.close set rs = nothing end sub '************** Information **************************************** ' Program Title : 'new ¾ÆÀÌÄÜ Ãâ·Â.(get_newimg) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-27 '********************************************************************* function get_newimg(getdate) if not(isnull(getdate)) and getdate <> "" then aa_regdate = trim(getdate) aa_regdate = trim(left(aa_regdate,10)) 'response.write aa_regdate aa_regdate = cdate(aa_regdate) new_day = cint("-" & 1) date1 = dateadd("d",new_day,date()) '-- new_dayÀÏÀüÀÇ ³¯Â¥¸¦ °è»ê If aa_regdate >= date1 Then response.write "" end if end if end function '************** Information **************************************** ' Program Title : 'Àμâ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-11-03 '********************************************************************* sub page_print() %> <% end sub '************** Information **************************************** ' Program Title : °Ô½ÃÆÇ Å×À̺í¸í¾Ë¾Æ³»±â bbs_tablename_str(a_num) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2004. 03. 05 '********************************************************************* function bbs_tablename_str(a_num) if a_num <> "" then sql = "select a_tablename from bbs_ad_cms where a_num="&a_num set rs = dbcon.execute(sql) bbs_tablename_str = trim(rs(0)) 'set rs = nothing end if end function '************** Information **************************************** ' Program Title : °Ô½ÃÆÇ ¸í¾Ë¾Æ³»±â bbs_bbsname_str(a_num) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2006-02-03 '********************************************************************* function bbs_bbsname_str(a_num) if a_num <> "" then sql = "select a_bbsname from bbs_ad_cms where a_num="&a_num set rs = dbcon.execute(sql) bbs_bbsname_str = trim(rs(0)) set rs = nothing end if end function '************** Information **************************************** ' Program Title : 'ȸ¿øºÎ¼­ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-24 '********************************************************************* function get_buseo(bdm_idx) If IsNull(bdm_idx) Or Trim(bdm_idx) = "" Then bdm_idx = 0 if CLng(bdm_idx) > 0 then SQL = "Select bdm_menuname from bd_menu_page where bdm_idx = "&bdm_idx 'response.write sql set rs_buseo = DbCon.Execute(sql) if rs_buseo.eof then get_buseo = "ºÎ¼­¾øÀ½" else get_buseo = rs_buseo(0) end if Set rs_buseo = nothing else get_buseo = "ºÎ¼­¾øÀ½" end if end Function '************** Information **************************************** ' Program Title : 'ȸ¿ø ÃÖ»óÀ§ºÎ¼­ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-24 '********************************************************************* function get_bdm_idx2(bdm_idx) if bdm_idx <> 0 then SQL = "Select bdm_ref from bd_menu_page where bdm_idx = "&bdm_idx 'response.write sql set rs_buseo = DbCon.Execute(sql) if rs_buseo.eof then get_bdm_idx2 = 0 else get_bdm_idx2 = rs_buseo(0) end if Set rs_buseo = nothing else get_bdm_idx2 = 0 end if end Function '************************************************************************************************************** '³ªÀÇ ÀÏÁ¤ °ü¸® ÇÔ¼ö ¸ðÀ½ '************************************************************************************************************** ' ÇØ´ç¿ùÀÇ ¸¶Áö¸· ³¯ÀÚ¸¦ ±¸ÇÑ´Ù.(28ÀÏ ºÎÅÍ 31ÀÏ Áß¿¡ ÇϳªÀε¥ ½Ã½ºÅÛ¿¡¼­ Á¦°øÇÏ´Â ³¯Â¥ÇÔ¼ö¸¦ »ç¿ëÇÏ¿© ±¸ÇÑ´Ù) function LastDay(stryear, strmonth) intLastDay = 28 For d = 29 To 31 step 1 'up to the 31st ÇϷ羿 Áõ°¡ ½ÃŰ¸ç ³¯Â¥ Æ÷¸ËÀ» ¸¸µé¾î °°Àº´ÞÀΰ¡ °Ë»çÇÑ´Ù. calMonth = Month(DateSerial(stryear, strmonth, d)) If cint(calMonth) = cint(strmonth) Then ' °°Àº ´ÞÀΰæ¿ì ¸¶Áö¸· ³¯Â¥ ¼³Á¤ÇÏ°í ·çÇÁ °è¼Ó intLastDay = d else exit for '°°Àº´ÞÀÌ ¾Æ´Ï¸é for¹®À» ³¡³½´Ù. End If Next LastDay = intLastDay end function '****************************************************************************************************************** '************************************************************************************************************** '°¡°èºÎ '************************************************************************************************************** '°¡°èºÎ Ç׸ñ function account_type(gubun, no) '¼öÀÍ if gubun = "0" then select case no case 0 : temp = "±Þ¿©" case 1 : temp = "¿ëµ·" case 2 : temp = "¾Æ¸£¹ÙÀÌÆ®" case 3 : temp = "ÀÌÀÚ" case 4 : temp = "º¸Çè±Ý" case 5 : temp = "¹è´ç±Ý" case 6 : temp = "ÀúÃàÀÎÃâ" case 7 : temp = "Â÷ÀÔ±Ý" case 8 : temp = "±âŸ" end select 'ÁöÃâ elseif gubun = "1" then select case no case 0 : temp = "½Äºñ" case 1 : temp = "Áְźñ" case 2 : temp = "ÇǺ¹ºñ" case 3 : temp = "±³À°ºñ" case 4 : temp = "±¸ÀÔºñ" case 5 : temp = "º¸°ÇÀ§»ýºñ" case 6 : temp = "¹®È­»ýȰºñ" case 7 : temp = "°æÁ¶ºñ" case 8 : temp = "±³Á¦ºñ" case 9 : temp = "±³Åëºñ" case 10 : temp = "Åë½Åºñ" case 11 : temp = "¼¼±Ý°ø°ú±Ý" case 12 : temp = "Ưº°ºñ" case 13 : temp = "ÀúÃà" case 14 : temp = "º¸Çè±Ý" case 15 : temp = "±âŸ" end select end if account_type = temp end function 'Â÷°èºÎ Ç׸ñ function car_type(no) select case no case 1 : temp = "À¯·ùºñ" case 2 : temp = "ÁÖÂ÷ºñ" case 3 : temp = "ÅëÇà·á" case 4 : temp = "¼¼Â÷ºñ" case 5 : temp = "Â÷·®À¯Áöºñ" case 6 : temp = "ÀÚµ¿Â÷ÇҺαÝ" case 7 : temp = "ÀÚµ¿Â÷¼¼±Ý" case 8 : temp = "ÀÚµ¿Â÷º¸Çè·á" case 9 : temp = "ÀÚµ¿Â÷°Ë»çºñ" case 10 : temp = "ÀÚµ¿Â÷¹üÄ¢±Ý" case 11 : temp = "ÀÚµ¿Â÷¼ö¸®ºñ" case 12 : temp = "ÀÚµ¿Â÷¼Ò¸ðǰ" case 13 : temp = "ÀÚµ¿Â÷Àå½Äǰ" end select car_type = temp end function '°¡°èºÎ Ç׸ñ ¼ö iaccount = 8 '¼öÀÔ eaccount = 15 'ÁöÃâ '****************************************************************************************************************** %> <% '************** Information **************************************** ' Program Title : °Ô½ÃÆÇ ½ºÅ² °æ·Î Á¤ÀÇ ' Creator : Heo jaehoon '********************************************************************* board_skin1_url = site_root_dir_url&"/Program/bbs/skin/1/Imgs" '½ºÅ²1 À̹ÌÁöµð·ºÅ丮 url board_skin2_url = site_root_dir_url&"/Program/bbs/skin/2/Imgs" '½ºÅ²2 À̹ÌÁöµð·ºÅ丮 url %> <% '--------------------------------------------------------------------------------------------------------------- ' DDDDD EEEEEE SSSSSS IIIIII GGGGG NN NN ' DD D EE SS II GG N N NN ' DD D EEEEEE SSSSS II GG GGG NN N NN ' DD D EE SS II GG GG NN N N ' DDDDD EEEEEE SSSSSS IIIIII GGGGG NN NN '--------------------------------------------------------------------------------------------------------------- '************** Information **************************************** ' Program Title : µð·ºÅ丮/°æ·Î Á¤ÀÇ ' Creator : Heo jaehoon '********************************************************************* site_name="¹®ÀÚÀü¼Û½Ã½ºÅÛ Ver 2.1.1" '»çÀÌÆ®¸í site_root_dir_path = "E:\Web Service2\SMSVER2" 'ÇÁ·Î±×·¥ ½ÃÀÛµð·ºÅ丮 Àý´ë°æ·Î include_dir_path = site_root_dir_path&"\include" 'Includeµð·ºÅ丮 Àý´ë°æ·Î site_root_dir_url = Application("domain1") 'ÇÁ·Î±×·¥ ½ÃÀÛµð·ºÅ丮 url include_dir_url = site_root_dir_url&"/include" 'Includeµð·ºÅ丮 url common_image_url = site_root_dir_url&"/Imgs" '°øÅë À̹ÌÁöµð·ºÅ丮 url skin_normal_img = site_root_dir_url&"/program/ebook/user_view/skin/normal" 'ebook À̹ÌÁöµð·ºÅ丮 url program_image_url = site_root_dir_url&"/image" 'ÇÁ·Î±×·¥¿ë À̹ÌÁö µð·ºÅ丮 url program_dir_url = site_root_dir_url&"/program" 'ÇÁ·Î±×·¥ µð·ºÅ丮 url program_dir_path = site_root_dir_path&"\program" 'ÇÁ·Î±×·¥ µð·ºÅ丮 path save_data_path = site_root_dir_path&"\data" 'ÇÁ·Î±×·¥ µ¥ÀÌÅÍ ÀúÀå µð·ºÅ丮 path save_data_url = site_root_dir_url&"/data" 'ÇÁ·Î±×·¥ µ¥ÀÌÅÍ ÀúÀå µð·ºÅ丮 URL '¸Þ´ºº° ¼­ºê¸ÞÀÎ ÁÖ¼Ò.. 'ÀÛ¼ºÀÚ : À±Á¾¿ì 'ÀÛ¼ºÀÏ : 2005-12-17 home_webhdd_url = site_root_dir_url&"/webhard/intro.asp" home_infopia_url = site_root_dir_url&"/infopia/default.asp" home_eandong_url = site_root_dir_url&"/eandong/default.asp" home_study_url = site_root_dir_url&"/study/default.asp" home_private_url = site_root_dir_url&"/infopia/default.asp" 'ÀÓ½ÃÁÖ¼Ò.(¸¶À̺ñ¼­´Â ·Î±×ÀÎÈÄ »ç¿ëµÇ°Ô²û->·çÆ®¸ÞÀÎÀ¸·Î °¡°Ô...)/program/private home_sms_url = site_root_dir_url&"/infopia/default.asp" 'ÀÓ½ÃÁÖ¼Ò.(¸¶À̺ñ¼­´Â ·Î±×ÀÎÈÄ »ç¿ëµÇ°Ô²û->·çÆ®¸ÞÀÎÀ¸·Î °¡°Ô...)/program/sms club_sms_url = site_root_dir_url&"/club/default.asp" myhome_sms_url = site_root_dir_url&"/myhome/default.asp" sms_image_url = site_root_dir_url&"/program/sms/Imgs" '¹®ÀÚ¼­ºñ½º À̹ÌÁöµð·ºÅ丮 url sms_url = site_root_dir_url&"/program/sms" '¹®ÀÚ¼­ºñ½º µð·ºÅ丮 url '************** Information **************************************** ' Program Title : 'ÁÖ¼ÒÀ̵¿ ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-14 '********************************************************************* Function Back_back(message) Response.Write"" Response.End End Function Function Back_back_cnt(message, cnt) Response.Write"" Response.End End Function Function Back_back2(message, url) Response.Write"" Response.End End Function Function Back_back3(message, url) Response.Write"" Response.End End Function '========================================================= Function Sung_gong(message) Response.Write "" Response.End End Function Function Sung_gong2(message, url) Response.Write "" Response.End End Function Function Sung_gong3(message) Response.Write "" Response.End End Function '************** Information **************************************** ' Program Title : '°ªÃ¼Å©ÈÄ Æû¿¡ Àû¿ë ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-14 '********************************************************************* '¼¿·ºÆ®¹öư Function ChkValSelect(ByVal value1, ByVal value2) If CStr(value1) = CStr(value2) Then response.write "selected" End if End Function 'üũ¹Ú½º Function ChkValChkBox(ByVal value1, ByVal value2) If CStr(value1) = CStr(value2) Then response.write "checked" End if End Function '************** Information **************************************** ' Program Title : SMS Àü¼Û ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-17 '********************************************************************* Function SmsSend_host(tran_phone, tran_callback, Msg, RDate, s_num) 'tran_phone = b_phone1&"-"&b_phone2&"-"&b_phone3 '¹Þ´Â»ç¶÷ 'tran_phone = a_smssend_addr '¹Þ´Â»ç¶÷ 'tran_callback = "053-955-9055" 'º¸³»´Â »ç¶÷ 'a_num = °íÀ¯¹øÈ£ tran_phone = Replace(tran_phone, "-" , "") tran_phone = Replace(tran_phone, " " , "") message_temp = StringToHTML2(Msg, 80, true) messageArr = Split(message_temp, "
") if clng(smsSelect()) > 0 then If UBound(messageArr) > 0 Then For ii = 0 To UBound(messageArr) response.write ii&"=ii
" if clng(smsSelect()) <= 0 Then Exit for else SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values (" SQL = SQL & "'"&Request.Cookies("M_id")&"','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&ii+1&")"&messageArr(ii)&"','', '"&s_num&"','"&request.cookies("bdm_idx")&"', '"&get_bdm_idx2(request.cookies("bdm_idx"))&"')" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql sql = "update member set M_g_sms = M_g_sms - 1 where M_id = '" & Request.Cookies("M_id") & "'" dbcon.execute sql End if next else SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values (" SQL = SQL & "'"&Request.Cookies("M_id")&"','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&Msg&"','', '"&s_num&"', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx2(request.cookies("bdm_idx"))&"')" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql sql = "update member set M_g_sms = M_g_sms - 1 where M_id = '" & Request.Cookies("M_id") & "'" dbcon.execute sql End if '*********************************************************************************************************************************************** v_year = year(now()) v_month = month(now()) v_day = day(now()) v_week = weekday(now()) '-- ¿À´Ã óÀ½ Á¢¼ÓÀÎÁö ¾Æ´ÑÁö üũ sqlc = "select nowcount from bd_counter where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week set rsc = Dbcon.Execute(sqlc) if rsc.eof then '-- ¿À´Ã óÀ½Á¢¼ÓÀ̸é insert sql = "insert into bd_counter (info_url, nowcount, nowyear, nowmonth, nowday, nowweek) values('"&request.cookies("m_id")&"', 1, "& v_year &", "& v_month &", "& v_day &", "& v_week &")" else '-- óÀ½ÀÌ ¾Æ´Ï¸é count 1Áõ°¡ --> update v_count = rsc(0)+1 sql = "update bd_counter set nowcount = "& v_count &" where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week end if set rsc=Nothing Dbcon.Execute sql End if '*********************************************************************************************************************************************** End Function '************** Information **************************************** ' Program Title : SMS Àü¼Û ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-17 '********************************************************************* Function SmsSend(tran_phone, tran_callback, Msg, RDate, s_num) 'tran_phone = b_phone1&"-"&b_phone2&"-"&b_phone3 '¹Þ´Â»ç¶÷ 'tran_phone = a_smssend_addr '¹Þ´Â»ç¶÷ 'tran_callback = "053-955-9055" 'º¸³»´Â »ç¶÷ 'a_num = °íÀ¯¹øÈ£ tran_phone = Replace(tran_phone, "-" , "") tran_phone = Replace(tran_phone, " " , "") message_temp = StringToHTML2(Msg, 80, true) messageArr = Split(message_temp, "
") if clng(smsSelect()) <= 0 then Back_back2 "´ç¿ù ³²Àº °Ç¼ö°¡ ºÎÁ·ÇÕ´Ï´Ù.", request.servervariables("http_referer") If UBound(messageArr) > 0 Then For ii = 0 To UBound(messageArr) response.write ii&"=ii
" if clng(smsSelect()) <= 0 then Back_back2 "´ç¿ù ³²Àº °Ç¼ö°¡ ºÎÁ·ÇÕ´Ï´Ù.", request.servervariables("http_referer") SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values (" SQL = SQL & "'"&Request.Cookies("M_id")&"','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&ii+1&")"&messageArr(ii)&"','', '"&s_num&"','"&request.cookies("bdm_idx")&"', '"&get_bdm_idx2(request.cookies("bdm_idx"))&"')" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql sql = "update member set M_g_sms = M_g_sms - 1 where M_id = '" & Request.Cookies("M_id") & "'" dbcon.execute sql next else SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values (" SQL = SQL & "'"&Request.Cookies("M_id")&"','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&Msg&"','', '"&s_num&"', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx2(request.cookies("bdm_idx"))&"')" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql sql = "update member set M_g_sms = M_g_sms - 1 where M_id = '" & Request.Cookies("M_id") & "'" dbcon.execute sql End if '*********************************************************************************************************************************************** v_year = year(now()) v_month = month(now()) v_day = day(now()) v_week = weekday(now()) '-- ¿À´Ã óÀ½ Á¢¼ÓÀÎÁö ¾Æ´ÑÁö üũ sqlc = "select nowcount from bd_counter where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week set rsc = Dbcon.Execute(sqlc) if rsc.eof then '-- ¿À´Ã óÀ½Á¢¼ÓÀ̸é insert sql = "insert into bd_counter (info_url, nowcount, nowyear, nowmonth, nowday, nowweek) values('"&request.cookies("m_id")&"', 1, "& v_year &", "& v_month &", "& v_day &", "& v_week &")" else '-- óÀ½ÀÌ ¾Æ´Ï¸é count 1Áõ°¡ --> update v_count = rsc(0)+1 sql = "update bd_counter set nowcount = "& v_count &" where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week end if set rsc=Nothing Dbcon.Execute sql '*********************************************************************************************************************************************** End Function '************** Information **************************************** ' Program Title : SMS Àü¼Û ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-17 '********************************************************************* Function SmsSend_s(tran_phone, tran_callback, Msg, RDate, s_num) 'tran_phone = b_phone1&"-"&b_phone2&"-"&b_phone3 '¹Þ´Â»ç¶÷ 'tran_phone = a_smssend_addr '¹Þ´Â»ç¶÷ 'tran_callback = "053-955-9055" 'º¸³»´Â »ç¶÷ 'a_num = °íÀ¯¹øÈ£ tran_phone = Replace(tran_phone, "-" , "") tran_phone = Replace(tran_phone, " " , "") message_temp = StringToHTML2(Msg, 80, true) messageArr = Split(message_temp, "
") If UBound(messageArr) > 0 Then For ii = 0 To UBound(messageArr) 'response.write ii&"=ii
" SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values (" SQL = SQL & "'"&Request.Cookies("M_id")&"','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&ii+1&")"&messageArr(ii)&"','', '"&s_num&"','"&request.cookies("bdm_idx")&"', '"&get_bdm_idx2(request.cookies("bdm_idx"))&"')" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql next else SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) values (" SQL = SQL & "'"&Request.Cookies("M_id")&"','"&tran_phone&"', '"&tran_callback&"', '1', '"&Rdate&"', '"&Msg&"','', '"&s_num&"', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx2(request.cookies("bdm_idx"))&"')" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql End if '*********************************************************************************************************************************************** v_year = year(now()) v_month = month(now()) v_day = day(now()) v_week = weekday(now()) '-- ¿À´Ã óÀ½ Á¢¼ÓÀÎÁö ¾Æ´ÑÁö üũ sqlc = "select nowcount from bd_counter where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week set rsc = Dbcon.Execute(sqlc) if rsc.eof then '-- ¿À´Ã óÀ½Á¢¼ÓÀ̸é insert sql = "insert into bd_counter (info_url, nowcount, nowyear, nowmonth, nowday, nowweek) values('"&request.cookies("m_id")&"', 1, "& v_year &", "& v_month &", "& v_day &", "& v_week &")" else '-- óÀ½ÀÌ ¾Æ´Ï¸é count 1Áõ°¡ --> update v_count = rsc(0)+1 sql = "update bd_counter set nowcount = "& v_count &" where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week end if set rsc=Nothing Dbcon.Execute sql '*********************************************************************************************************************************************** End Function '************** Information **************************************** ' Program Title : SMS Àü¼Û ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-17 '********************************************************************* Function SmsSend_2(tran_phone, tran_callback, Msg, RDate, a_num, qry, rowcnt) 'tran_phone = b_phone1&"-"&b_phone2&"-"&b_phone3 '¹Þ´Â»ç¶÷ 'tran_phone = a_smssend_addr '¹Þ´Â»ç¶÷ 'tran_callback = "053-955-9055" 'º¸³»´Â »ç¶÷ 'a_num = °íÀ¯¹øÈ£ tran_phone = Replace(tran_phone, "-" , "") tran_phone = Replace(tran_phone, " " , "") message_temp = StringToHTML2(Msg, 80, true) messageArr = Split(message_temp, "
") if clng(smsSelect()) <= 0 then Back_back2 "´ç¿ù ³²Àº °Ç¼ö°¡ ºÎÁ·ÇÕ´Ï´Ù.", request.servervariables("http_referer") If UBound(messageArr) > 0 Then For ii = 0 To UBound(messageArr) 'response.write ii&"=ii
" qry_value = Replace(qry, Msg, ii+1&")"&messageArr(ii) ) if clng(smsSelect()) <= 0 then Back_back2 "´ç¿ù ³²Àº °Ç¼ö°¡ ºÎÁ·ÇÕ´Ï´Ù.", request.servervariables("http_referer") sql = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) " & qry_value 'select '"&Request.Cookies("M_id")&"', m_mobile, '"&callback&"', '1', getdate(), '"&message&"', '', '', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx(request.cookies("bdm_idx"))&"' from member" 'SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) " &qry 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql sql = "update member set M_g_sms = M_g_sms - "&rowcnt&" where M_id = '" & Request.Cookies("M_id") & "'" dbcon.execute sql next else SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) " &qry '"select '"&Request.Cookies("M_id")&"', m_mobile, '"&callback&"', '1', getdate(), '"&message&"', '', '', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx(request.cookies("bdm_idx"))&"' from member" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql sql = "update member set M_g_sms = M_g_sms - "&rowcnt&" where M_id = '" & Request.Cookies("M_id") & "'" 'response.write sql dbcon.execute sql End if '*********************************************************************************************************************************************** v_year = year(now()) v_month = month(now()) v_day = day(now()) v_week = weekday(now()) '-- ¿À´Ã óÀ½ Á¢¼ÓÀÎÁö ¾Æ´ÑÁö üũ sqlc = "select nowcount from bd_counter where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week set rsc = Dbcon.Execute(sqlc) if rsc.eof then '-- ¿À´Ã óÀ½Á¢¼ÓÀ̸é insert sql = "insert into bd_counter (info_url, nowcount, nowyear, nowmonth, nowday, nowweek) values('"&request.cookies("m_id")&"', '"&rowcnt&"', "& v_year &", "& v_month &", "& v_day &", "& v_week &")" else '-- óÀ½ÀÌ ¾Æ´Ï¸é count 1Áõ°¡ --> update v_count = rsc(0)+rowcnt sql = "update bd_counter set nowcount = "& v_count &" where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week end if set rsc=Nothing Dbcon.Execute sql '*********************************************************************************************************************************************** End Function '************** Information **************************************** ' Program Title : SMS Àü¼Û ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-17 '********************************************************************* Function SmsSend_s_2(tran_phone, tran_callback, Msg, RDate, a_num, qry, rowcnt) 'tran_phone = b_phone1&"-"&b_phone2&"-"&b_phone3 '¹Þ´Â»ç¶÷ 'tran_phone = a_smssend_addr '¹Þ´Â»ç¶÷ 'tran_callback = "053-955-9055" 'º¸³»´Â »ç¶÷ 'a_num = °íÀ¯¹øÈ£ tran_phone = Replace(tran_phone, "-" , "") tran_phone = Replace(tran_phone, " " , "") message_temp = StringToHTML2(Msg, 80, true) messageArr = Split(message_temp, "
") If UBound(messageArr) > 0 Then For ii = 0 To UBound(messageArr) 'response.write ii&"=ii
" qry_value = Replace(qry, Msg, ii+1&")"&messageArr(ii) ) sql = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) " & qry_value 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql next else SQL = "Insert into em_tran(tran_id, tran_phone, tran_callback, tran_status, tran_date, tran_msg, tran_etc1, tran_etc2, tran_etc3, tran_etc4) " &qry '"select '"&Request.Cookies("M_id")&"', m_mobile, '"&callback&"', '1', getdate(), '"&message&"', '', '', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx(request.cookies("bdm_idx"))&"' from member" 'response.write sql & "
" 'response.write "
sql="&sql 'response.end dbcon.execute sql End if '*********************************************************************************************************************************************** v_year = year(now()) v_month = month(now()) v_day = day(now()) v_week = weekday(now()) '-- ¿À´Ã óÀ½ Á¢¼ÓÀÎÁö ¾Æ´ÑÁö üũ sqlc = "select nowcount from bd_counter where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week set rsc = Dbcon.Execute(sqlc) if rsc.eof then '-- ¿À´Ã óÀ½Á¢¼ÓÀ̸é insert sql = "insert into bd_counter (info_url, nowcount, nowyear, nowmonth, nowday, nowweek) values('"&request.cookies("m_id")&"', '"&rowcnt&"', "& v_year &", "& v_month &", "& v_day &", "& v_week &")" else '-- óÀ½ÀÌ ¾Æ´Ï¸é count 1Áõ°¡ --> update v_count = rsc(0)+rowcnt sql = "update bd_counter set nowcount = "& v_count &" where info_url = '"&request.cookies("m_id")&"' and nowyear = "& v_year &" and nowmonth = "& v_month &" and nowday = "& v_day &" and nowweek = "& v_week end if set rsc=Nothing Dbcon.Execute sql '*********************************************************************************************************************************************** End Function Function SMSdateChk(dateval, hourval, minval) If CDate(dateval) > Date() Then '³¯Â¥°¡ ¿À´Ã³¯Â¥º¸´Ù Å©¸é SMSdateChk = True ElseIf CDate(dateval) = Date() Then '³¯Â¥°¡ °°´Ù¸é If CInt(hourval) > CInt(hour(now)) Then '°°Àº³¯Â¥ ½Ã°£ÀÌ Å©´Ù¸é SMSdateChk = True ElseIf Not(CInt(hourval) < CInt(hour(now))) And CInt(minval) > Minute(now) Then'½Ã°£ÀÌ ÀÛÁö¾Ê°í ºÐÀÌ Å©´Ù¸é SMSdateChk = True Else SMSdateChk = false End If Else SMSdateChk = False End if End function '=======================ȸ¿øº° ³²Àº °Ç¼ö º¸±â========================================================= Function smsSelect() Dim strConnect, Db, sql, rs_sms strConnect="Provider=SQLOLEDB.1;Data Source=(local);Initial catalog="&Application("DB")&";user ID="&Application("DB_id")&";Password="&Application("DB_pwd") Set Db=Server.CreateObject("ADODB.Connection") Db.Open strConnect sql = "select M_g_sms from member where M_id = '" & Request.Cookies("M_id") & "'" Set rs_sms = Db.Execute(sql) If rs_sms.bof Or rs_sms.eof Then smsSelect = 0 Else smsSelect = rs_sms(0) End If Set rs_sms = Nothing Db.close Set Db = nothing End Function Function smsSelect2(m_id) Dim strConnect, Db, sql, rs_sms strConnect="Provider=SQLOLEDB.1;Data Source=(local);Initial catalog="&Application("DB")&";user ID="&Application("DB_id")&";Password="&Application("DB_pwd") Set Db=Server.CreateObject("ADODB.Connection") Db.Open strConnect sql = "select M_g_sms from member where M_id = '" & m_id & "'" Set rs_sms = Db.Execute(sql) If rs_sms.bof Or rs_sms.eof Then smsSelect2 = 0 Else smsSelect2 = rs_sms(0) End If Set rs_sms = Nothing Db.close Set Db = nothing End Function '=======================ȸ¿øº° ³²Àº Åë¼ö º¸±â========================================================= Function smsMail() Dim strConnect, Db, sql, rs_mail strConnect="Provider=SQLOLEDB.1;Data Source=(local);Initial catalog="&Application("DB")&";user ID="&Application("DB_id")&";Password="&Application("DB_pwd") Set Db=Server.CreateObject("ADODB.Connection") Db.Open strConnect sql = "select M_g_mail from member where M_id = '" & Request.Cookies("M_id") & "'" Set rs_mail = Db.Execute(sql) If rs_mail.bof Or rs_mail.eof Then smsMail = 0 Else smsMail = rs_mail(0) End If Set rs_mail = Nothing Db.close Set Db = nothing End Function '===================³» ¼Ò¼Ó ½Ç±¹ ¹øÈ£ ¾Ë¾Æ³»±â========================== Function mysilguk() sql = "select b.bdm_ref from member as a inner join bd_menu_page b on a.bdm_idx = b.bdm_idx where a.M_id = '" & Request.Cookies("m_id") & "'" Set rs = Dbcon.Execute(sql) If rs.bof Or rs.eof Then mysilguk = null Else mysilguk = cint(rs(0)) End If Set rs = nothing End function '======================================================================= '************** Information **************************************** ' Program Title : 'Æ÷Åä°¶·¯¸®À϶§..ù¹øÂ°À̹ÌÁö¸í °¡Áö°í ¿À±â' ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2007-03-29 '********************************************************************* function bbs_getphoto(a_tablename,is_b_num) sql = "select top 1 f_filename from bbs_file where f_b_tablename = '" & a_tablename & "' and f_b_num="&is_b_num&" order by f_sort" set rs_getpt = dbcon.execute(sql) If not rs_getpt.eof then bbs_getphoto = rs_getpt(0) Else bbs_getphoto = "noimage" End if set rs_getpt = nothing end Function '************** Information **************************************** ' Program Title : 'bbs_href_type (Æ÷Åä°¶·¯¸®¶§ »ç¿ë) ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2007-03-29 '********************************************************************* sub bbs_href_type() bbs_href_type_link1 = "" 'bbs_href_type_link2 = "" bbs_href_type_link2 = "" if a_type = "1" or Bl_ad_cms = "Y" then '°ø°³ response.write bbs_href_type_link1 elseif a_type = "2" then'ºñ°ø°³ response.write bbs_href_type_link2 elseif a_type = "3" then'°ø°³/ºñ°ø°³ if b_open = "1" or b_open = "" Then response.write bbs_href_type_link1 elseif b_open = "2" then response.write bbs_href_type_link2 end if end if end Sub '************** Information **************************************** ' Program Title : get_time ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2007-03-30 '********************************************************************* function get_time(time_value) If time_value <> "" Then Select Case time_value Case "¿ÀÀü1" time_value2 = "1" Case "¿ÀÀü2" time_value2 = "2" Case "¿ÀÀü3" time_value2 = "3" Case "¿ÀÀü4" time_value2 = "4" Case "¿ÀÀü5" time_value2 = "5" Case "¿ÀÀü6" time_value2 = "6" Case "¿ÀÀü7" time_value2 = "7" Case "¿ÀÀü8" time_value2 = "8" Case "¿ÀÀü9" time_value2 = "9" Case "¿ÀÀü10" time_value2 = "10" Case "¿ÀÀü11" time_value2 = "11" Case "¿ÀÀü12" time_value2 = "12" Case "¿ÀÈÄ1" time_value2 = "13" Case "¿ÀÈÄ2" time_value2 = "14" Case "¿ÀÈÄ3" time_value2 = "15" Case "¿ÀÈÄ4" time_value2 = "16" Case "¿ÀÈÄ5" time_value2 = "17" Case "¿ÀÈÄ6" time_value2 = "18" Case "¿ÀÈÄ7" time_value2 = "19" Case "¿ÀÈÄ8" time_value2 = "20" Case "¿ÀÈÄ9" time_value2 = "21" Case "¿ÀÈÄ10" time_value2 = "22" Case "¿ÀÈÄ11" time_value2 = "23" Case "¿ÀÈÄ12" time_value2 = "24" End select End If get_time = time_value2 end Function '************** Information **************************************** ' Program Title : 'ÄÚµåÀ̸§' ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-24 '********************************************************************* function Update_bbs_susin_view(a_tablename,b_num,s_do_id) sql="UPDATE bbs_susin SET" sql = sql& " s_view = 'Y'" sql = sql& " WHERE s_tablename = '" & a_tablename & "' and s_b_num="&b_num&" and s_do_id ='"&s_do_id&"'" Dbcon.Execute(SQL) end Function '************** Information **************************************** ' Program Title : ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2007-04-04 '********************************************************************* function SELECT_ARY_RS(SQL) If SQL <> "" Then Dbcon.Execute(SQL) 'SQL = "select a_num, from bbs_ad_cms order by "& sorder SET DBMS_RS = Dbcon.Execute(SQL) If DBMS_RS.bof Or DBMS_RS.eof Then SELECT_ARY_RS = null Else SELECT_ARY_RS = DBMS_RS.getrows End If Set DBMS_RS = Nothing End if end Function '************** Information **************************************** ' Program Title : ºÎ¼­idx °¡Áö°í ¿À±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2007-03-09 '********************************************************************* function get_bdm_idx(m_id) sql = "Select bdm_idx from member where m_id='"&m_id&"'" Set rs = DbCon.Execute(SQL) if not rs.eof then get_bdm_idx = Rs(0) else get_bdm_idx = "" end if Set rs = nothing end function '=======================ÀüÈ­¹øÈ£ ÇÊÅÍ========================== Function phoneValue(value) 'response.write value phone_arr_temp = value '---------------ºÒÇÊ¿äÇÑ ¹®ÀÚ¿­ Á¦°Å------------------ phone_arr_temp = Replace(phone_arr_temp,")","") phone_arr_temp = Replace(phone_arr_temp,"(","") phone_arr_temp = Replace(phone_arr_temp,"-","") phone_arr_temp = Replace(phone_arr_temp," ","") phone_arr_temp = Replace(phone_arr_temp,",","") phone_arr_temp = Replace(phone_arr_temp,"¤Ñ","") phone_arr_temp = Replace(phone_arr_temp,"*","") '---------------ºÒÇÊ¿äÇÑ ¹®ÀÚ¿­ Á¦°Å------------------ 'phone_arr_temp = Split(mem_list(4, i), "-") If Left(phone_arr_temp, 2) = "00" Then 'Áö¿ª¹øÈ£¿¡ 0ÀÌ 2°³ µé¾î°¬À» °æ¿ì phone_arr_temp = Mid(phone_arr_temp, 2) End if 'response.write "["& mem_list(4, i) &"], " '---------------ÀüÈ­¹øÈ£¸¦ Á¤±ÔÈ­------------------ Select Case Len(phone_arr_temp) Case 7 phone_arr = Array("053",Left(phone_arr_temp,3),right(phone_arr_temp,4)) Case 8 phone_arr = Array("053",Left(phone_arr_temp,4),right(phone_arr_temp,4)) Case 10 phone_arr = Array(Left(phone_arr_temp,3),mid(phone_arr_temp,4,3),right(phone_arr_temp,4)) Case 11 phone_arr = Array(Left(phone_arr_temp,3),mid(phone_arr_temp,4,4),right(phone_arr_temp,4)) Case 12 phone_arr = Array(Left(phone_arr_temp,4),mid(phone_arr_temp,5,4),right(phone_arr_temp,4)) Case Else phone_arr = Array("","","") End select '---------------ÀüÈ­¹øÈ£¸¦ Á¤±ÔÈ­³¡------------------ '---------------¸¶Áö¸·ÇÊÅÍ ¼ýÀÚ³Ä--------------- If IsNumeric(phone_arr(0)) And IsNumeric(phone_arr(1)) And IsNumeric(phone_arr(2)) Then M_phone = phone_arr(0) & phone_arr(1) & phone_arr(2) Else M_phone = "--" End If '---------------¸¶Áö¸·ÇÊÅÍ ¼ýÀÚ³Ä--------------- phoneValue = M_phone End Function '=======================ÀüÈ­¹øÈ£ ÇÊÅÍ ³¡========================== '************** Information **************************************** ' Program Title : 'ÄÚµåÀ̸§' ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : À± Á¾ ¿ì 2005-07-24 '********************************************************************* function get_document_cnt(m_id) SQL = "Select count(do_idx) from document where do_id='"&m_id&"' and do_count=0 and do_keep <>'3'" Set rs_view = DbCon.Execute(SQL) get_document_cnt = rs_view(0) set rs_view = nothing end Function '======================================================================================== '==================================À̸ÞÀÏ ¹ß¼Û2(¿ÜºÎsmtpÀÎÁõ±â´É)======================== '======================================================================================== Function sendMail(from_add, to_add, cc, bcc, subject, body) Const cdoSendUsingMethod = "http://schemas.microsoft.com/cdo/configuration/sendusing" Const cdoSendUsingPort = 2 Const cdoSMTPServer = "http://schemas.microsoft.com/cdo/configuration/smtpserver" Const cdoSMTPServerPort = "http://schemas.microsoft.com/cdo/configuration/smtpserverport" Const cdoSMTPConnectionTimeout = "http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout" Const cdoSMTPAccountName = "http://schemas.microsoft.com/cdo/configuration/smtpaccountname" Const cdoSMTPAuthenticate = "http://schemas.microsoft.com/cdo/configuration/smtpauthenticate" Const cdoBasic = 1 Const cdoSendUserName = "http://schemas.microsoft.com/cdo/configuration/sendusername" Const cdoSendPassword = "http://schemas.microsoft.com/cdo/configuration/sendpassword" Dim objConfig ' As CDO.Configuration Dim objMessage ' As CDO.Message Dim Fields ' As ADODB.Fields ' Get a handle on the config object and it's fields Set objConfig = Server.CreateObject("CDO.Configuration") Set Fields = objConfig.Fields ' Set config fields we care about With Fields .Item(cdoSendUsingMethod) = cdoSendUsingPort .Item(cdoSMTPServer) = "mail.hanafos.com" .Item(cdoSMTPServerPort) = 25 .Item(cdoSMTPAuthenticate) = cdoBasic .Item(cdoSendUserName) = "sp1000je@hanafos.com" .Item(cdoSendPassword) = "1472lo" .Update End With Set objMessage = Server.CreateObject("CDO.Message") Set objMessage.Configuration = objConfig With objMessage .To = to_add .From = from_add .cc = cc .bcc = bcc .Subject = subject .HTMLBody = body .Send End With 'Response.Write "Success!!" Set Fields = Nothing Set objMessage = Nothing Set objConfig = Nothing End Function '======================================================================================== '==================================À̸ÞÀÏ ¹ß¼Û2(¿ÜºÎsmtpÀÎÁõ±â´É)======================== '======================================================================================== Function sendMail_tabs(from_add, to_add, cc, bcc, subject, body) '///////////////////////////////////////////////////// '// »ó¼ö Á¤ÀÇ Const TEXT_MSG = 0 Const HTML_MSG = 1 Const ENCODING_BASE64 = 0 Const ENCODING_QP = 1 Const ENCODING_8BIT = 2 Const PRIORITY_HIGH = 0 Const PRIORITY_NORMAL = 1 Const PRIORITY_LOW = 2 Dim Mail, i, j '// ¸ÞÀÏ °´Ã¼ »ý¼º Set Mail = Server.CreateObject("Tabs.Mailer.1") For i = 1 To 5 '// Mail Á¤º¸ ¼³Á¤ Mail.ServerIp = "219.253.180.226" Mail.ServerPort = 6700 '// ¸ÞÀÏ·¯ ¼­¹ö·Î ¸ÞÀÏ Àü¼Û½Ã¿¡ ÀÎÁõÀÌ ÇÊ¿äÇÒ °æ¿ì, ÀÎÁõ Á¤º¸¸¦ ÀÔ·ÂÇØ¾ß ÇÕ´Ï´Ù. '// ÀÎÁõ °èÁ¤¹× ¾ÏÈ£´Â ¸ÞÀÏ·¯ °ü¸®Åø¿¡¼­ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù. Mail.AuthId = "ad_cms" Mail.AuthPwd = "1" Mail.BodyType = HTML_MSG Mail.Encoding = ENCODING_BASE64 Mail.Charset = "Euc-kr" Mail.FromField "from@domain.org", "º¸³»´Â»ç¶÷À̸§" 'º¸³»´Â »ç¶÷º¯¼ö·Î ¹Þ±â Mail.Subject = "ȸ¿ø °øÁö»çÇ×" Mail.AddAttachFile "C:\WINNT\Cursors\size1_i.cur" '// ÆÄÀÏ Ã·ºÎ Mail.AlterMessage = "HTML ¸ÞÀÏ ³»¿ëÀ» º¼¼ö ¾øÀ¸¸é, ÀÌ ¸Þ½ÃÁö°¡ º¸ÀÏ °ÍÀÔ´Ï´Ù." Mail.Message = "ȸ¿ø ¿©·¯ºÐ²², °øÁö»çÇ×" '// ½ºÄÉÁÙ ±â´É »ç¿ë 'Mail.ScheduleTime = "2003/01/01/01/01" '// ³â/¿ù/ÀÏ/½Ã/ºÐ For j = 1 To 1 '// ÇÑ ¸Þ½ÃÁö¿¡ ¿©·¯¸íÀÇ ¹Þ´Â »ç¶÷ ÁöÁ¤ Mail.AddToAddr "to" &j &"@domain.com", "¹Þ´Â»ç¶÷À̸§" &j Next '// ¸ÞÀÏ »ý¼ºÈÄ ½ÇÁ¦ ¹ß¼Û If Mail.Send() Then '// Send1() ¸Þ¼­µåµµ »ç¿ë °¡´É Response.Write "¹ß¼Û ¼º°ø" Else Response.Write "¹ß¼Û ½ÇÆÐ, ¿¡·¯ÄÚµå: " &Mail.LastError &", ¿¡·¯³»¿ë: " &Mail.GetLastErrorDesc End If '// ¸ÞÀÏ »ý¼ºÈÄ ·ÎÄà ÀúÀå 'If Mail.SendEx("c:\temp\mail") Then ' Response.Write "»ý¼º ¼º°ø" 'Else ' Response.Write "»ý¼º ½ÇÆÐ, ¿¡·¯ÄÚµå: " &Mail.LastError &", ¿¡·¯³»¿ë: " &Mail.GetLastErrorDesc 'End If '// ÀÌÀü Á¤º¸µéÀ» ÃʱâÈ­ Mail.Reset Next '// ¸ÞÀÏ °´Ã¼ ÇØÁ¦ Set Mail = Nothing End function '************** Information **************************************** ' Program Title : '¸ÞÀθ®½ºÆ® ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2006-03-14 '********************************************************************* Function list(table, a_num) 'table = "bbs_6" Select Case table Case "bbs_3" chk_on = "1" url = "/sub04/04_01.asp?chk_on=1" Case "bbs_4" chk_on = "2" url = "/sub04/04_02.asp?chk_on=2" Case "bbs_13" chk_on = "8" End Select Dim b_num, b_subject, b_regdate, b_content, i sql = "select top 2 b_num, b_subject, b_regdate from " & table & " where b_look = 'Y' and b_noticeChk <> 'Y' order by b_regdate desc" Set rs = Dbcon.Execute( sql ) If rs.bof Or rs.eof Then list_data = null Else list_data = rs.getrows End If Set rs = nothing If IsNull(list_data) Then %>
³»¿ëÀÌ ¾ø½À´Ï´Ù.
<% else %> <% For i = 0 To UBound(list_data, 2) b_num = "" b_regdate = "" b_subject = "" If UBound(list_data, 2) >= i Then b_num = list_data(0,i) b_regdate = Replace(Left(list_data(2, i), 10), "-", ".") b_subject = StringToHTML( list_data(1, i), 30, false ) End If %> <% next %>
<%=b_subject%>
<% End if End Function '************** Information **************************************** ' Program Title : select Äõ¸®¹® »ý¼º±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2007-03-08 '********************************************************************* 'Çʵ尡 ¸¹Áö ¾ÊÀ»¶§´Â °¡±ÞÀû »ç¿ë ÀÚÁ¦ 'ÇÑ·¹Äڵ常 ºÒ·¯¿Ã¶§ ¾´´Ù 'ex) SelectQuery("filed1, filed2", "table", "where idx = 1") Function SelectQuery(R_Fields, table, where) Dim loop_i, R_Fields_arr, rs R_Fields = Replace(R_Fields, " ", "") R_Fields_arr = Split(R_Fields, ",") where = " " & where execute("sql = ""select """) For loop_i = 0 To UBound(R_Fields_arr) execute("sql = sql & """&R_Fields_arr(loop_i)&"""") If loop_i < UBound(R_Fields_arr) Then sql = sql & "," next execute("sql = sql & "" from " &table& " " & where&"""") 'response.write sql execute("set rs = Dbcon.Execute( sql )") For loop_i = 0 To UBound(R_Fields_arr) execute(R_Fields_arr(loop_i)&" = trim(rs("""&R_Fields_arr(loop_i)&"""))") ' execute("response.write rs("""&filed_arr(i)&""") & ""
""") Next End Function Function InsertQuery(R_Fields, table) Dim i, R_Fields_arr R_Fields = Replace(R_Fields, " ", "") R_Fields_arr = Split(R_Fields, ",") execute("sql = ""insert into "&table&"("&R_Fields&") values(""") For i = 0 To UBound(R_Fields_arr) execute("sql = sql & ""'""&"&R_Fields_arr(i)&"&""'""") If i < UBound(R_Fields_arr) Then sql = sql & "," next execute("sql = sql & "")""") 'response.write sql Dbcon.Execute sql End Function '************** Information **************************************** ' Program Title : update Äõ¸®¹® »ý¼º±â ' Company : (ÁÖ)³ª¿ì¾ÆÀÌÅØ (053)955-9055 ' Creator : ÃÖ °æ ¼ö 2007-03-08 '********************************************************************* 'Çʵ尡 ¸¹Áö ¾ÊÀ»¶§´Â °¡±ÞÀû »ç¿ë ÀÚÁ¦ 'ex) UpdateQuery("filed1, filed2", "table", "where idx = 1") Function UpdateQuery(R_Fields, table, where) Dim i, R_Fields_arr R_Fields = Replace(R_Fields, " ", "") R_Fields_arr = Split(R_Fields, ",") execute("sql = ""update "&table&" set """) For i = 0 To UBound(R_Fields_arr) execute("sql = sql & """&R_Fields_arr(i)&" = '""&"&R_Fields_arr(i)&"&""'""") If i < UBound(R_Fields_arr) Then sql = sql & "," next execute("sql = sql & where") 'response.write sql Dbcon.Execute sql End Function %> <% '--------------------------------------------------------------------------------------------------------------- ' DDDDD EEEEEE SSSSSS IIIIII GGGGG NN NN ' DD D EE SS II GG N N NN ' DD D EEEEEE SSSSS II GG GGG NN N NN ' DD D EE SS II GG GG NN N N ' DDDDD EEEEEE SSSSSS IIIIII GGGGG NN NN '--------------------------------------------------------------------------------------------------------------- '************** Information **************************************** ' Program Title : µð·ºÅ丮/°æ·Î Á¤ÀÇ ' Creator : Heo jaehoon '********************************************************************* site_name="SMS, Mail È£½ºÆÃ!! È¿À²ÀûÀÎ ¾÷¹«°ü¸®¸¦ À§ÇÑ ¼ø¼ö À¥±â¹Ý ¸Þ½Ã¡½Ã½ºÅÛ" '»çÀÌÆ®¸í webhard_image_url = site_root_dir_url&"/Program/webhdd/imgs" 'ÇÁ·Î±×·¥ µ¥ÀÌÅÍ ÀúÀå µð·ºÅ丮 URL '¸Þ´ºº° ¼­ºê¸ÞÀÎ ÁÖ¼Ò.. 'ÀÛ¼ºÀÚ : À±Á¾¿ì 'ÀÛ¼ºÀÏ : 2005-12-17 home_webhdd_url = site_root_dir_url&"/program/member/login.asp" home_search_url = site_root_dir_url&"/search/default.asp" main_url = site_root_dir_url&"/default.asp" %>