Skip to content
Snippets Groups Projects
Commit 31e2cd7e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'mlong/doorscanfix2'

parents 1b08bfa0 efa08505
No related branches found
No related tags found
No related merge requests found
<!-- HIDDEN:Door Statistics -->
<!-- Door Statistics -->
<html>
<head>
<title>Monthly Door Log for <?xjs write(system.name) ?></title>
</head>
<body>
<?xjs
load("/sbbs/xtrn/doorscan/doorscan.js");
load(fullpath(system.ctrl_dir + "../xtrn/doorscan/doorscan.js"));
var lp=new LogParser();
if (typeof settings.xtrn_blacklist === 'string') {
......
......@@ -1090,10 +1090,14 @@ function doScan()
}
}
if(tmp==false) {
/* No ad... just display a message... */
console.attributes=YELLOW;
console.writeln("New external: "+xtrn_area.prog[door].name+" in the "+xtrn_area.sec[xtrn_area.prog[door].sec_code].name+" section.");
console.crlf();
if (typeof console !== "undefined") {
/* No ad... just display a message... */
console.attributes = YELLOW;
console.writeln("New external: " + xtrn_area.prog[door].name + " in the " + xtrn_area.sec[xtrn_area.prog[door].sec_code].name + " section.");
console.crlf();
} else {
writeln("New external: " + xtrn_area.prog[door].name + " in the " + xtrn_area.sec[xtrn_area.prog[door].sec_code].name + " section.");
}
}
if(ucfg.door[door]==undefined && ucfg.global.addNew) {
ucfg=new UserConfig(user.number, true);
......@@ -1204,7 +1208,7 @@ function doScan()
}
for(i in argv) {
if (typeof argv[i] == "String") {
if (typeof argv[i] == "string") {
switch(argv[i].toLowerCase()) {
case 'scan':
doScan();
......
......@@ -7,7 +7,6 @@ Current unfinished status of doorscan:
2. There is no logon/terminal module to display door usage
3. The bulletin functionality was never implemented
4. The user preferences may not be fully implemented
5. It really ought to be converted to use JSONDB
-----
......@@ -65,14 +64,10 @@ You have many options:
For original web (ie runemaster), copy doorscan.xjs to your web root
For webv4, edit webv4/pages/More/003-doorscan.xjs and remove the HIDDEN from
the comment:
For webv4, copy 003-doorscan.xjs to webv4/pages/More/003-doorscan.xjs
<!-- HIDDEN:Door Statistics -->
so it becomes
<!-- Door Statistics -->
For either web page, you may need to edit the load() line in the web page to
point to your doorscan.js file's location.
Adding a Door Scan Configuration Item
=====================================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment