# signature { license=0, seed=277031123, key="a8e4fb2d729bcecc4efc712471f26782" }
cgi.print([[]],cgi.head,[[
<title>InLMS ]],i18n("Log File"),[[</title>
]]);
local log =''
local function readlog( name)
	local logfile = io.open( name )
	if logfile then
		log = log..logfile:read( '*a' )
		logfile:close()
	end
end
readlog( 'logfile.old' )
readlog( 'logfile.txt' )
 cgi.print([[
</head>
<body>
]],cgi.h1,[[
<div class="body">
	<h2>
		]],cgi.button{ title=i18n("return to main page"), href='lms.cgi?cmd=cfghome', img='home.png', i18n("Back") } ,[[
		]],i18n("Application Log") ,[[
	</h2>
	<br style="clear:both;" />
	<pre>]],log,[[</pre>
</div>
</body>
</html>

]])
