<%@LANGUAGE="Javascript" LCID="1053"%>
<%
function showSource(sFile) {
var oFSO = new ActiveXObject("Scripting.FileSystemObject"),
sReturn = new String("FILE DOESN'T EXIST!");
if(oFSO.fileExists(sFile)) {
oFile = oFSO.OpenTextFile(sFile, 1 /* ->> For reading */);
sReturn = "Source of: " + sFile +
"" + Server.HTMLEncode(oFile.ReadAll()) +";
"
}
oFSO.Close();
return("" + sReturn + "
");
}
var sFile = new String(Request.QueryString("file"));
Response.Write(showSource(sFile));
%>