<% '------------- 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_admin() '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 'ÅØ½ºÆ®¿¡¸®¾î¿¡¼­ ºÒ·¯Áú °æ¿ì 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 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_admin() If Request.Cookies("security_admin") <> "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_admin 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 '--------------------------------------------------------------' ' ÁöÁ¤ÇÑ Æø(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 : ' 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("admin_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,8) 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_admin 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_admin 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 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_idx(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_idx = 0 else get_bdm_idx = rs_buseo(0) end if Set rs_buseo = nothing else get_bdm_idx = 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="°æºÏÁö¹æ °æÂûû ¹®ÀÚÀü¼Û½Ã½ºÅÛ" '»çÀÌÆ®¸í site_root_dir_path = "E:\Web Service2\´ë±¸½ÃûSMS_SEC" 'ÇÁ·Î±×·¥ ½ÃÀÛµð·ºÅ丮 Àý´ë°æ·Î 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_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(tran_phone, tran_callback, Msg, RDate, a_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)&"','"&a_num&"', '"&Rdate&"','"&request.cookies("bdm_idx")&"', '"&get_bdm_idx(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&"','"&a_num&"', '"&Rdate&"', '"&request.cookies("bdm_idx")&"','"&get_bdm_idx(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 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() strConnect="Provider=SQLOLEDB.1;Data Source=(local);Initial catalog="&Application("DB")&";user ID="&Application("DB_id")&";Password="&Application("DB_pwd") 'StrCon = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=nambu;Initial Catalog=nambu;Data Source=NAMBU-WEB" 'strConnect="Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog="&Application("DB")&";User ID="&Application("DB_id")&";Data Source=(local)" '°æ·Î ÁöÁ¤ 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 IsNull(rs_sms(0)) Or rs_sms(0) = "" Then smsSelect = 0 Else smsSelect = rs_sms(0) End If Set rs_sms = 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 '======================================================================= %>