Skip to content
Snippets Groups Projects
Commit aec29cef authored by ree's avatar ree
Browse files

If ftelnethelper.js is missing, tell sysop (and include a link to check it out from cvs)

parent cd2f071f
Branches
Tags
No related merge requests found
/* $Id$ */
load("../web/lib/template.ssjs");
load("ftelnethelper.js");
var ftelnethelperloaded = false;
try {
load("ftelnethelper.js");
ftelnethelperloaded = true;
} catch (e) {
// Ignore, we'll display an error below
}
var sub='';
template.title = system.name + " - fTelnet (Flash Telnet)";
if (!IsFlashSocketPolicyServerEnabled()) {
if (!ftelnethelperloaded) {
templatefile = "ftelnet_disabled.inc";
if (user.security.level >= 90) {
template.SysOpMessage = "Actually, it looks like you're the SysOp, so here's what you can do to enable it:<br /><ul><li>Check out the latest <b><a href='http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/exec/load/ftelnethelper.js'>exec/load/ftelnethelper.js</a></b> file from CVS</li></ul>";
}
} else if (!IsFlashSocketPolicyServerEnabled()) {
templatefile = "ftelnet_disabled.inc";
if (user.security.level >= 90) {
template.SysOpMessage = "Actually, it looks like you're the SysOp, so here's what you can do to enable it:<br /><ul><li>Enable the Flash Socket Policy Service<ul><li>To do this, add this block to your <b>sbbs/ctrl/services.ini file<pre>[FlashPolicy]\r\nPort=843\r\nOptions=NO_HOST_LOOKUP\r\nCommand=flashpolicyserver.js</pre></li></ul>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment