% num = request("num") strPathInfo = request("name") img_fileinfo = right(strPathInfo,12) img_fileinfo = Left(img_fileinfo,8) strPathInfo = replace(strPathInfo, ";", "") strPathInfo = replace(strPathInfo, "&", "") 'response.write strPathInfo k = Right(Trim(strPathInfo),5) If (k = "1.htm" OR k = "2.htm" OR k = "3.htm" OR k = "4.htm" OR k = "5.htm" OR k = "6.htm" OR k = "7.htm" OR k = "8.htm" OR k = "9.htm" OR k = "0.htm") Then a = Right(strPathInfo, 12) b = Mid(a, 1, 8) strPhysicalPath = Server.MapPath(strPathInfo) set objFSO = Server.CreateObject("Scripting.FileSystemObject") set objFile = objFSO.GetFile(strPhysicalPath) set objFileTextStream = objFile.OpenAsTextStream(1, -2) strFileLine = objFileTextStream.ReadLine p = Mid(Trim(strPathInfo), 14, 6) sub_title = Mid(strFileLine,13,2) If sub_title = "Ã౸" Then strPhysicalPath2 = Server.MapPath("/news/template/article_soccer.htm") p = Mid(Trim(strPathInfo), 14, 6) catid = "sports" types = "sports" floating = "soccer" ElseIf sub_title = "¾ß±¸" Then If Mid(strFileLine,14,2) = "±¸/" Then strPhysicalPath2 = Server.MapPath("/news/template/article_baseball.htm") catid = "sports" types = "sports" floating = "baseball" sub_title = "MLB/NPB" Else strPhysicalPath2 = Server.MapPath("/news/template/article_baseball.htm") catid = "sports" types = "sports" floating = "baseball" floating2 = "b" End If p = Mid(Trim(strPathInfo), 14, 6) ElseIf sub_title = "½ºÆ÷" Then strPhysicalPath2 = Server.MapPath("/news/template/article_others.htm") p = Mid(Trim(strPathInfo), 14, 6) catid = "sports" types = "sports" floating = "sports" ElseIf sub_title = "Á¾ÇÕ" Then strPhysicalPath2 = Server.MapPath("/news/template/article_others.htm") p = Mid(Trim(strPathInfo), 14, 6) catid = "sports" types = "sports" floating = "sports" sub_title = "Á¾ÇÕ" ElseIf sub_title = "³ó±¸" Then strPhysicalPath2 = Server.MapPath("/news/template/article_others.htm") p = Mid(Trim(strPathInfo), 14, 6) catid = "sports" types = "sports" floating = "sports" ElseIf sub_title = "°ñÇÁ" Then strPhysicalPath2 = Server.MapPath("/news/template/article_others.htm") p = Mid(Trim(strPathInfo), 14, 6) catid = "sports" types = "sports" floating = "sports" ElseIf sub_title = "£Ô£Ö" Then strPhysicalPath2 = Server.MapPath("/news/template/article_tv.htm") p = Mid(Trim(strPathInfo), 21, 6) catid = "entertainment" types = "entertainment" floating = "enter" ElseIf sub_title = "TV" Then strPhysicalPath2 = Server.MapPath("/news/template/article_tv.htm") p = Mid(Trim(strPathInfo), 21, 6) catid = "entertainment" types = "entertainment" floating = "enter" ElseIf sub_title = "À½¾Ç" Then strPhysicalPath2 = Server.MapPath("/news/template/article_music.htm") p = Mid(Trim(strPathInfo), 21, 6) catid = "entertainment" types = "entertainment" floating = "enter" ElseIf sub_title = "¿µÈ" Then strPhysicalPath2 = Server.MapPath("/news/template/article_movie.htm") p = Mid(Trim(strPathInfo), 21, 6) catid = "entertainment" types = "entertainment" floating = "enter" ElseIf sub_title = "¹®È" Then strPhysicalPath2 = Server.MapPath("/news/template/article_culture.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "»ýÈ°" Then strPhysicalPath2 = Server.MapPath("/news/template/article_living.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "game" floating = "life" ElseIf sub_title = "°ÔÀÓ" Then strPhysicalPath2 = Server.MapPath("/news/template/article_game.htm") p = Mid(Trim(strPathInfo), 21, 6) catid = "it" types = "game" floating = "game" ElseIf sub_title = "´º½º" Then strPhysicalPath2 = Server.MapPath("/news/template/article_topic.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "¼¼°è" Then strPhysicalPath2 = Server.MapPath("/news/template/article_world.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "°æÁ¦" Then strPhysicalPath2 = Server.MapPath("/news/template/article_economic.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "Á¤Ä¡" Then strPhysicalPath2 = Server.MapPath("/news/template/article_politic.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "½ºÆä" Then strPhysicalPath2 = Server.MapPath("/news/template/article_special.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "·¹Àú" Then strPhysicalPath2 = Server.MapPath("/news/template/article_travel.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "°æ¸¶" Then strPhysicalPath2 = Server.MapPath("/news/template/article_race.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "Á¤º¸" Then strPhysicalPath2 = Server.MapPath("/news/template/article_it.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" ElseIf sub_title = "£É£Ô" Then strPhysicalPath2 = Server.MapPath("/news/template/article_it.htm") p = Mid(Trim(strPathInfo), 12, 6) catid = "life" types = "life" floating = "life" End If set objFSO2 = Server.CreateObject("Scripting.FileSystemObject") set objFile2 = objFSO2.GetFile(strPhysicalPath2) set objFileTextStream2 = objFile2.OpenAsTextStream(1, -2) if request("ut") = "" Then k=0 Do while k < 18 strFileLine = objFileTextStream2.ReadLine strLine = Server.HTMLEncode(strFileLine) strLine = replace(strLine,"&", "&") strLine = replace(strLine,"<", "<") strLine = replace(strLine,">", ">") strLine = replace(strLine, """, "'") response.Write strLine k = k + 1 loop Do while k < 30 strFileLine = objFileTextStream2.ReadLine strLine = Server.HTMLEncode(strFileLine) strLine = replace(strLine,"&", "&") strLine = replace(strLine,"<", "<") strLine = replace(strLine,">", ">") strLine = replace(strLine, """, "'") response.Write strLine k = k + 1 loop %> <% Do while k < 49 strFileLine = objFileTextStream2.ReadLine strLine = Server.HTMLEncode(strFileLine) strLine = replace(strLine,"&", "&") strLine = replace(strLine,"<", "<") strLine = replace(strLine,">", ">") strLine = replace(strLine, """, "'") response.Write strLine k = k + 1 loop %>