Commit 120551c1 authored by deuce's avatar deuce
Browse files

Show system info file and logon message.

NOTE: No way to expand @-codes in JS?
NOTE: File.read() seems to strip \r and possibly \n even when opened "rb"
parent bc65d515
load("html_inc/template.ssjs");
template.title="System Information";
template.sysinfo="";
f=new File(system.text_dir+"system.msg");
if(f.open("rb",true)) {
template.sysinfo=f.readAll().join('\r\n');
template.sysinfo=html_encode(template.sysinfo,true,true,true,true);
}
template.logon="";
f=new File(system.text_dir+"menu/logon.ans");
if(f.open("r",true))
template.logon=f.readAll().join('\r\n');
else {
f=new File(system.text_dir+"menu/logon.asc");
if(f.open("r",true))
template.logon=f.readAll().join('\r\n');
}
template.logon=html_encode(template.logon,true,false,true,true);
write_template("header.inc");
write_template("sysinfo.inc");
write_template("footer.inc");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment