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
3e853733
Commit
3e853733
authored
14 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
Flash Policy Server by Shawn Rapp
parent
1075b728
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ctrl/flashpolicy.xml
+5
-0
5 additions, 0 deletions
ctrl/flashpolicy.xml
exec/flashpolicyserver.js
+85
-0
85 additions, 0 deletions
exec/flashpolicyserver.js
with
90 additions
and
0 deletions
ctrl/flashpolicy.xml
0 → 100644
+
5
−
0
View file @
3e853733
<?xml version="1.0" encoding="UTF-8" ?>
<cross-domain-policy
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd"
>
<site-control
permitted-cross-domain-policies=
"master-only"
/>
<allow-access-from
domain=
"*"
to-ports=
"23"
secure=
"false"
/>
</cross-domain-policy>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
exec/flashpolicyserver.js
0 → 100644
+
85
−
0
View file @
3e853733
// $Id$
/***
Flash Policy Server
by Shawn Rapp
This is a service javascript addon that adds a Flash Policy Server to Synchronet BBS version 3 and later.
This script was designed to support FlashTerm hosted on a Synchronet Website.
Copy the file flashpolicyserver.js to your Synchronet's exec directory (example C:\sbbs\exec)
Put the flashpolicy.xml to the ctrl directory (example C:\sbbs\ctrl)
Now edit ctrl\services.ini
Goto Services->Configure and than click the button "Edit Services Configuration File"
Than add the bellow
===================
[FlashPolicy]
Port=843
MaxClients=10
Options=0
Command=flashpolicyserver.js
===================
Restart Synchronet's Services server.
Download http://www.flashterm.com/files/flashterm_full.zip
Extract the files in a new directory web\html\flashterm (example C:\sbbs\web\html\flashterm)
Edit settings.xml to your settings.
Now open a browser to your Synchronet's website and goto the \flashterm directory.
Example http://thedhbbs.com/flashterm/
***/
// Write a string to the client socket
function
write
(
str
)
{
client
.
socket
.
send
(
str
);
}
function
read_policy
()
{
f
=
new
File
(
"
../ctrl/flashpolicy.xml
"
);
if
(
!
f
.
open
(
"
r
"
))
return
;
var
txt
=
f
.
readAll
().
toString
();
txt
=
txt
.
replace
(
/
(\r
|
\n
|
\t
|,
)
/g
,
''
);
f
.
close
();
return
(
txt
);
}
terminator
=
false
;
request
=
""
;
//<policy-file-request/>
while
(
client
.
socket
.
is_connected
&&
!
terminator
)
{
inByte
=
client
.
socket
.
recvBin
(
1
);
inChar
=
String
.
fromCharCode
(
inByte
);
if
((
inByte
==
0
)
||
(
inChar
==
"
"
))
{
terminator
=
true
;
}
else
{
request
=
request
+
inChar
;
}
}
if
(
client
.
socket
.
is_connected
==
false
)
{
exit
();
}
//request = client.socket.recv(22);
request
=
truncsp
(
request
);
log
(
LOG_DEBUG
,
"
client request:
"
+
request
);
if
(
request
==
"
<policy-file-request/>
"
)
{
policy
=
read_policy
();
write
(
policy
);
exit
();
}
\ No newline at end of file
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