|
<%
'Получаем и выводим тело страницы
filespec = server.mapPath(fileName)
set fs = server.createobject("scripting.fileSystemObject")
if fs.FileExists (filespec) then
'Определяем тип файла
'if right (fileName, 3) <> "asp" then
'set f = fs.openTextFile(filespec)
'curentBody = f.readall
'set f=nothing
'startInd=inStr(1, LCase(curentBody), "") + 1
'endInd=inStr(1, LCase(curentBody), "")
'substrLen=endInd - startInd
'curentBody=mid (curentBody, startInd, substrLen)
'response.Write(curentBody)
'else
server.Execute(fileName)
'response.Write(fileName)
'end if
else
curentBody = "Извините! Запрошенная страница находится в стадии разработки...."
response.Write(curentBody)
end if
set fs=nothing
%>
|