Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
31e2cd7e
Commit
31e2cd7e
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Plain Diff
Merge branch 'mlong/doorscanfix2'
parents
1b08bfa0
efa08505
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
xtrn/doorscan/003-doorscan.xjs
+2
-2
2 additions, 2 deletions
xtrn/doorscan/003-doorscan.xjs
xtrn/doorscan/doorscan.js
+9
-5
9 additions, 5 deletions
xtrn/doorscan/doorscan.js
xtrn/doorscan/doorscan.txt
+3
-8
3 additions, 8 deletions
xtrn/doorscan/doorscan.txt
with
14 additions
and
15 deletions
webv4/pages/More
/003-doorscan.xjs
→
xtrn/doorscan
/003-doorscan.xjs
+
2
−
2
View file @
31e2cd7e
<!--
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') {
...
...
This diff is collapsed.
Click to expand it.
xtrn/doorscan/doorscan.js
+
9
−
5
View file @
31e2cd7e
...
...
@@ -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
]
==
"
S
tring
"
)
{
if
(
typeof
argv
[
i
]
==
"
s
tring
"
)
{
switch
(
argv
[
i
].
toLowerCase
())
{
case
'
scan
'
:
doScan
();
...
...
This diff is collapsed.
Click to expand it.
xtrn/doorscan/doorscan.txt
+
3
−
8
View file @
31e2cd7e
...
...
@@ -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
=====================================
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment