rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var grid = document.getElementById (ctx);
var grid = document.getElementById (ctx + "_div");
function DetailsView_ClientRender (data, ctx){ var gridData = eval (ctx + "_data"); var grid = document.getElementById (ctx); var i = data.indexOf ("|"); gridData.pageIndex = parseInt (data.substring (0, i)); grid.innerHTML = data.substr (i+1); var page = document.getElementById(ctx + "_Page"); page.value = gridData.pageIndex;}
throw _break;
throw $break;
detect: function (iterator) { var result; this.each(function(value, index) { if (iterator(value, index)) { result = value; throw _break; } }); return result; },
if (steppingOver || steppingOut) steppingStack++;
function didEnterCallFrame(sourceId, line){ willExecuteStatement(sourceId, line);}
if (lastStatement) frameLineNumberStack.unshift(lastStatement);
function didEnterCallFrame(sourceId, line){ if (steppingOver || steppingOut) steppingStack++; willExecuteStatement(sourceId, line);}
sourceObj.source = source;
function didParseScript(source, fileSource, url, sourceId, baseLineNumber){ var fileIndex = filesLookup[url]; var file = files[fileIndex]; var firstLoad = false; if (!fileIndex || !file) { fileIndex = files.length + 1; if (url.length) filesLookup[url] = fileIndex; file = new Object(); file.scripts = new Array(); file.breakpoints = new Array(); file.source = (fileSource.length ? fileSource : source); file.url = (url.length ? url : null); file.loaded = false; files[fileIndex] = file; var filesSelect = document.getElementById("files"); var option = document.createElement("option"); files[fileIndex].menuOption = option; option.value = fileIndex; option.text = (file.url ? file.url : "(unknown script)"); filesSelect.appendChild(option); firstLoad = true; } var sourceObj = new Object(); sourceObj.source = source; sourceObj.file = fileIndex; sourceObj.baseLineNumber = baseLineNumber; file.scripts.push(sourceId); scripts[sourceId] = sourceObj; if (!firstLoad) updateFileSource((fileSource.length ? fileSource : source), url, false); if (currentFile == -1) loadFile(fileIndex, true);}
file.breakpointEditorWindows = new Array();
file.breakpointEditors = new Array();
function didParseScript(source, fileSource, url, sourceId, baseLineNumber){ var fileIndex = filesLookup[url]; var file = files[fileIndex]; var firstLoad = false; if (!fileIndex || !file) { fileIndex = files.length + 1; if (url.length) filesLookup[url] = fileIndex; file = new Object(); file.scripts = new Array(); file.breakpoints = new Array(); file.disabledBreakpoints = new Array(); file.breakpointEditorWindows = new Array(); file.source = (fileSource.length ? fileSource : source); file.url = (url.length ? url : null); file.loaded = false; files[fileIndex] = file; var filesSelect = document.getElementById("files"); var option = document.createElement("option"); files[fileIndex].menuOption = option; option.value = fileIndex; option.text = (file.url ? file.url : "(unknown script)"); filesSelect.appendChild(option); var siteBrowser = new SiteBrowser(); siteBrowser.addURL(file.url, fileIndex); siteBrowser.selectInitialFile(); firstLoad = true; } var sourceObj = new Object(); sourceObj.file = fileIndex; sourceObj.baseLineNumber = baseLineNumber; file.scripts.push(sourceId); scripts[sourceId] = sourceObj; if (!firstLoad) updateFileSource((fileSource.length ? fileSource : source), url, false); if (currentFile == -1) loadFile(fileIndex, false);}
file.functionNames = new Array();
function didParseScript(source, fileSource, url, sourceId, baseLineNumber){ var fileIndex = filesLookup[url]; var file = files[fileIndex]; var firstLoad = false; if (!fileIndex || !file) { fileIndex = files.length + 1; if (url.length) filesLookup[url] = fileIndex; file = new Object(); file.scripts = new Array(); file.breakpoints = new Array(); file.source = (fileSource.length ? fileSource : source); file.url = (url.length ? url : null); file.loaded = false; files[fileIndex] = file; var filesSelect = document.getElementById("files"); var option = document.createElement("option"); files[fileIndex].menuOption = option; option.value = fileIndex; option.text = (file.url ? file.url : "(unknown script)"); filesSelect.appendChild(option); var siteBrowser = new SiteBrowser(); siteBrowser.addURL(file.url, fileIndex); siteBrowser.selectInitialFile(); firstLoad = true; } var sourceObj = new Object(); sourceObj.file = fileIndex; sourceObj.baseLineNumber = baseLineNumber; file.scripts.push(sourceId); scripts[sourceId] = sourceObj; if (!firstLoad) updateFileSource((fileSource.length ? fileSource : source), url, false); if (currentFile == -1) loadFile(fileIndex, false);}
loadFile(fileIndex, true);
loadFile(fileIndex, false);
function didParseScript(source, fileSource, url, sourceId, baseLineNumber){ var fileIndex = filesLookup[url]; var file = files[fileIndex]; var firstLoad = false; if (!fileIndex || !file) { fileIndex = files.length + 1; if (url.length) filesLookup[url] = fileIndex; file = new Object(); file.scripts = new Array(); file.breakpoints = new Array(); file.disabledBreakpoints = new Array(); file.breakpointEditorWindows = new Array(); file.source = (fileSource.length ? fileSource : source); file.url = (url.length ? url : null); file.loaded = false; files[fileIndex] = file; var filesSelect = document.getElementById("files"); var option = document.createElement("option"); files[fileIndex].menuOption = option; option.value = fileIndex; option.text = (file.url ? file.url : "(unknown script)"); filesSelect.appendChild(option); firstLoad = true; } var sourceObj = new Object(); sourceObj.file = fileIndex; sourceObj.baseLineNumber = baseLineNumber; file.scripts.push(sourceId); scripts[sourceId] = sourceObj; if (!firstLoad) updateFileSource((fileSource.length ? fileSource : source), url, false); if (currentFile == -1) loadFile(fileIndex, true);}
file.disabledBreakpoints = new Array(); file.breakpointEditorWindows = new Array();
function didParseScript(source, fileSource, url, sourceId, baseLineNumber){ var fileIndex = filesLookup[url]; var file = files[fileIndex]; var firstLoad = false; if (!fileIndex || !file) { fileIndex = files.length + 1; if (url.length) filesLookup[url] = fileIndex; file = new Object(); file.scripts = new Array(); file.breakpoints = new Array(); file.source = (fileSource.length ? fileSource : source); file.url = (url.length ? url : null); file.loaded = false; files[fileIndex] = file; var filesSelect = document.getElementById("files"); var option = document.createElement("option"); files[fileIndex].menuOption = option; option.value = fileIndex; option.text = (file.url ? file.url : "(unknown script)"); filesSelect.appendChild(option); firstLoad = true; } var sourceObj = new Object(); sourceObj.file = fileIndex; sourceObj.baseLineNumber = baseLineNumber; file.scripts.push(sourceId); scripts[sourceId] = sourceObj; if (!firstLoad) updateFileSource((fileSource.length ? fileSource : source), url, false); if (currentFile == -1) loadFile(fileIndex, true);}
file.disabledBreakpoints = new Array(); file.breakpointEditors = new Array();
function didParseScript(source, fileSource, url, sourceId, baseLineNumber){ var fileIndex = filesLookup[url]; var file = files[fileIndex]; var firstLoad = false; if (!fileIndex || !file) { fileIndex = files.length + 1; if (url.length) filesLookup[url] = fileIndex; file = new Object(); file.scripts = new Array(); file.breakpoints = new Array(); file.disabledBreakpoints = new Array(); file.breakpointEditors = new Array(); file.source = (fileSource.length ? fileSource : source); file.url = (url.length ? url : null); file.loaded = false; files[fileIndex] = file; var filesSelect = document.getElementById("files"); var option = document.createElement("option"); files[fileIndex].menuOption = option; option.value = fileIndex; option.text = (file.url ? file.url : "(unknown script)"); filesSelect.appendChild(option); var siteBrowser = new SiteBrowser(); siteBrowser.addURL(file.url, fileIndex); siteBrowser.selectInitialFile(); firstLoad = true; } var sourceObj = new Object(); sourceObj.file = fileIndex; sourceObj.baseLineNumber = baseLineNumber; file.scripts.push(sourceId); scripts[sourceId] = sourceObj; if (!firstLoad) updateFileSource((fileSource.length ? fileSource : source), url, false); if (currentFile == -1) loadFile(fileIndex, false);}
element.disable = 'true';
element.disabled = 'true';
disable: function(form) { var elements = Form.getElements(form); for (var i = 0; i < elements.length; i++) { var element = elements[i]; element.blur(); element.disable = 'true'; } },
element.disabled = '';
element.disabled = true;
disable: function(element) { element = $(element); element.disabled = ''; return element; },
debug("disableButtons: " + flag);
debug.print("disableButtons: " + flag);
function disableButtons(flag) { // disable the form buttons debug("disableButtons: " + flag); var inputs = document.getElementsByTagName('INPUT'); for (var i=0; i < inputs.length; i++) { if (inputs[i].type == "button") { debug("disableButtons: " + i + ": " + inputs[i].type); inputs[i].disabled = flag; } }}
debug("disableButtons: " + i + ": " + inputs[i].type);
debug.print("disableButtons: " + i + ": " + inputs[i].type);
function disableButtons(flag) { // disable the form buttons debug("disableButtons: " + flag); var inputs = document.getElementsByTagName('INPUT'); for (var i=0; i < inputs.length; i++) { if (inputs[i].type == "button") { debug("disableButtons: " + i + ": " + inputs[i].type); inputs[i].disabled = flag; } }}
if (document.popupNode.tagName == "IMG") {
if (document.popupNode.tagName.toLowerCase() == "img") {
function disableContextMenu(e) { if (document.popupNode.tagName == "IMG") { linuxImage = document.popupNode; izContext = e.originalTarget; e.preventDefault(); contextDisabled = true; } removeEventListener("popupshowing", disableContextMenu, true)}
var name = win.name.replace(/___/g, '.')
var name = win.name.replace(/___/g, '.');
function dismissAddAnotherPopup(win, newId, newRepr) { var name = win.name.replace(/___/g, '.') var elem = document.getElementById(name); if (elem) { if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } } else { var toId = name + "_to"; elem = document.getElementById(toId); var o = new Option(newRepr, newId); SelectBox.add_to_cache(toId, o); SelectBox.redisplay(toId); } win.close();}
elem.options[elem.options.length] = o
elem.options[elem.options.length] = o;
function dismissAddAnotherPopup(win, newId, newRepr) { var name = win.name.replace(/___/g, '.') var elem = document.getElementById(name); if (elem) { if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } } else { var toId = name + "_to"; elem = document.getElementById(toId); var o = new Option(newRepr, newId); SelectBox.add_to_cache(toId, o); SelectBox.redisplay(toId); } win.close();}
if (elem.nodeName == 'SELECT') {
if (elem) { if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } } else { var toId = name + "_to"; elem = document.getElementById(toId);
function dismissAddAnotherPopup(win, newId, newRepr) { var name = win.name.replace(/___/g, '.') var elem = document.getElementById(name); if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } win.close();}
elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId;
SelectBox.add_to_cache(toId, o); SelectBox.redisplay(toId);
function dismissAddAnotherPopup(win, newId, newRepr) { var name = win.name.replace(/___/g, '.') var elem = document.getElementById(name); if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.options[elem.options.length] = o elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } win.close();}
var elem = document.getElementById(win.name);
var name = win.name.replace(/___/g, '.') var elem = document.getElementById(name);
function dismissAddAnotherPopup(win, newId, newRepr) { var elem = document.getElementById(win.name); if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.appendChild(o); elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } win.close();}
elem.appendChild(o);
elem.options[elem.options.length] = o
function dismissAddAnotherPopup(win, newId, newRepr) { var elem = document.getElementById(win.name); if (elem.nodeName == 'SELECT') { var o = new Option(newRepr, newId); elem.appendChild(o); elem.selectedIndex = elem.length - 1; } else if (elem.nodeName == 'INPUT') { elem.value = newId; } win.close();}
window.onclick = null;
dismissCalendar: function(num) { document.getElementById(DateTimeShortcuts.calendarDivName1+num).style.display = 'none'; window.onclick = null; },
document.getElementById(win.name).value = chosenId;
var elem = document.getElementById(win.name); if (elem.className.indexOf('vCommaSeparatedIntegerField') != -1 && elem.value) { elem.value += ',' + chosenId; } else { document.getElementById(win.name).value = chosenId; }
function dismissRelatedLookupPopup(win, chosenId) { document.getElementById(win.name).value = chosenId; win.close();}
var elem = document.getElementById(win.name);
var name = win.name.replace(/___/g, '.'); var elem = document.getElementById(name);
function dismissRelatedLookupPopup(win, chosenId) { var elem = document.getElementById(win.name); if (elem.className.indexOf('vRawIdAdminField') != -1 && elem.value) { elem.value += ',' + chosenId; } else { document.getElementById(win.name).value = chosenId; } win.close();}
document.getElementById(win.name).value = chosenId;
document.getElementById(name).value = chosenId;
function dismissRelatedLookupPopup(win, chosenId) { var elem = document.getElementById(win.name); if (elem.className.indexOf('vRawIdAdminField') != -1 && elem.value) { elem.value += ',' + chosenId; } else { document.getElementById(win.name).value = chosenId; } win.close();}
if (elem.className.indexOf('vCommaSeparatedIntegerField') != -1 && elem.value) {
if (elem.className.indexOf('vRawIdAdminField') != -1 && elem.value) {
function dismissRelatedLookupPopup(win, chosenId) { var elem = document.getElementById(win.name); if (elem.className.indexOf('vCommaSeparatedIntegerField') != -1 && elem.value) { elem.value += ',' + chosenId; } else { document.getElementById(win.name).value = chosenId; } win.close();}
doc.addEventListener("foo",monitor,false);
doc.addEventListener("foo", monitor.handleEvent, false);
function dispatchEvent08() { var success; if(checkInitialization(builder, "dispatchEvent08") != null) return; var doc; var target; var evt; var preventDefault; monitor = new EventMonitor(); var atEvents = new Array(); var bubbledEvents = new Array(); var capturedEvents = new Array(); var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); doc.addEventListener("foo",monitor,false); evt = doc.createEvent("Events"); evt.initEvent("foo",true,false); preventDefault = doc.dispatchEvent(evt); atEvents = monitor.atEvents;assertSize("atCount",1,atEvents);bubbledEvents = monitor.bubbledEvents;assertSize("bubbleCount",0,bubbledEvents);capturedEvents = monitor.capturedEvents;assertSize("captureCount",0,capturedEvents);}
doc.addEventListener("foo",monitor,true);
doc.addEventListener("foo", monitor.handleEvent, true);
function dispatchEvent09() { var success; if(checkInitialization(builder, "dispatchEvent09") != null) return; var doc; var target; var evt; var preventDefault; monitor = new EventMonitor(); var atEvents = new Array(); var bubbledEvents = new Array(); var capturedEvents = new Array(); var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); doc.addEventListener("foo",monitor,true); evt = doc.createEvent("Events"); evt.initEvent("foo",true,false); preventDefault = doc.dispatchEvent(evt); atEvents = monitor.atEvents;assertSize("atCount",0,atEvents);bubbledEvents = monitor.bubbledEvents;assertSize("bubbleCount",0,bubbledEvents);capturedEvents = monitor.capturedEvents;assertSize("captureCount",0,capturedEvents);}
doc.addEventListener("foo",monitor,false); doc.addEventListener("foo",monitor,false);
doc.addEventListener("foo", monitor.handleEvent, false); doc.addEventListener("foo", monitor.handleEvent, false);
function dispatchEvent10() { var success; if(checkInitialization(builder, "dispatchEvent10") != null) return; var doc; var target; var evt; var preventDefault; monitor = new EventMonitor(); var atEvents = new Array(); var bubbledEvents = new Array(); var capturedEvents = new Array(); var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); doc.addEventListener("foo",monitor,false); doc.addEventListener("foo",monitor,false); evt = doc.createEvent("Events"); evt.initEvent("foo",true,false); preventDefault = doc.dispatchEvent(evt); atEvents = monitor.atEvents;assertSize("atCount",1,atEvents);bubbledEvents = monitor.bubbledEvents;assertSize("bubbleCount",0,bubbledEvents);capturedEvents = monitor.capturedEvents;assertSize("captureCount",0,capturedEvents);}
doc.addEventListener("foo",monitor,false); doc.addEventListener("foo",monitor,false);
doc.addEventListener("foo", monitor.handleEvent, false); doc.addEventListener("foo", monitor.handleEvent, false);
function dispatchEvent11() { var success; if(checkInitialization(builder, "dispatchEvent11") != null) return; var doc; var target; var evt; var preventDefault; monitor = new EventMonitor(); var events = new Array(); var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); doc.addEventListener("foo",monitor,false); doc.addEventListener("foo",monitor,false); doc.removeEventListener("foo", monitor.handleEvent, false); evt = doc.createEvent("Events"); evt.initEvent("foo",true,false); preventDefault = doc.dispatchEvent(evt); events = monitor.allEvents;assertSize("eventCount",0,events);}
doc.addEventListener("foo",monitor,false);
doc.addEventListener("foo", monitor.handleEvent, false);
function dispatchEvent12() { var success; if(checkInitialization(builder, "dispatchEvent12") != null) return; var doc; var target; var evt; var preventDefault; monitor = new EventMonitor(); other = new EventMonitor(); var events = new Array(); var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); doc.addEventListener("foo",monitor,false); doc.removeEventListener("foo", monitor.handleEvent, true); doc.removeEventListener("food", monitor.handleEvent, false); doc.removeEventListener("foo", other.handleEvent, false); evt = doc.createEvent("Events"); evt.initEvent("foo",true,false); preventDefault = doc.dispatchEvent(evt); events = monitor.allEvents;assertSize("eventCount",1,events);}
doc.addEventListener("foo",listener1,false); doc.addEventListener("foo",listener2,false);
doc.addEventListener("foo", listener1.handleEvent, false); doc.addEventListener("foo", listener2.handleEvent, false);
function dispatchEvent13() { var success; if(checkInitialization(builder, "dispatchEvent13") != null) return; var doc; var target; var evt; var preventDefault; var listeners = new Array(); var events = new Array(); listener1 = new EventListenerN1003B(events, listeners); listener2 = new EventListenerN10074(events, listeners); var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "hc_staff"); listeners[listeners.length] = listener1;listeners[listeners.length] = listener2;doc.addEventListener("foo",listener1,false); doc.addEventListener("foo",listener2,false); evt = doc.createEvent("Events"); evt.initEvent("foo",true,false); preventDefault = doc.dispatchEvent(evt); assertSize("eventCount",1,events);}
for (var i = 0; i < elements.length; i++) { var element = $(elements[i]);
for (var i = 0; i < arguments.length; i++) { var element = $(arguments[i]);
display: function() { for (var i = 0; i < elements.length; i++) { var element = $(elements[i]); element.style.display = (element.style.display == 'none' ? '' : 'none'); } }
elements = $.apply(this, arguments);
display: function() { elements = $.apply(this, arguments); for (var i = 0; i < elements.length; i++) { element = elements[i]; element.style.display = (element.style.display == 'none' ? '' : 'none'); } }
element = elements[i];
var element = $(elements[i]);
display: function() { elements = $.apply(this, arguments); for (var i = 0; i < elements.length; i++) { element = elements[i]; element.style.display = (element.style.display == 'none' ? '' : 'none'); } }
printf("\n");
printf("\r\n");
function display_node(node_num){ var n=node_num-1; printf("Node %2d: ",node_num); var node = system.node_list[node_num-1]; if(node.status==NODE_QUIET || node.status==NODE_INUSE) { write(system.username(node.useron) + " " + format(NodeAction[node.action],system.node_list[n].aux)); } else printf(NodeStatus[node.status],node.aux); if(node.misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(node.misc&NODE_AOFF) write('A'); if(node.misc&NODE_LOCK) write('L'); if(node.misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(node.misc&NODE_POFF) write('P'); write(')'); } if(((node.misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || node.status==NODE_QUIET)) { write(" ["); if(node.misc&NODE_ANON) write('A'); if(node.misc&NODE_INTR) write('I'); if(node.misc&NODE_RRUN) write('R'); if(node.misc&NODE_UDAT) write('U'); if(node.status==NODE_QUIET) write('Q'); if(node.misc&NODE_EVENT) write('E'); if(node.misc&NODE_DOWN) write('D'); if(node.misc&NODE_LCHAT) write('C'); write(']'); } if(node.errors) printf(" %d error%s",node.errors, node.errors>1 ? 's' : '' ); printf("\n");}
function display_node(node)
function display_node(node_num)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
var hour; var mer;
var n=node_num-1;
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) {
printf("Node %2d: ",node_num); var node = system.node_list[node_num-1]; if(node.status==NODE_QUIET || node.status==NODE_INUSE) { write(system.username(node.useron) + " " + format(NodeAction[node.action],system.node_list[n].aux)); } else printf(NodeStatus[node.status],node.aux); if(node.misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) {
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_AOFF)
if(node.misc&NODE_AOFF)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_LOCK)
if(node.misc&NODE_LOCK)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG))
if(node.misc&(NODE_MSGW|NODE_NMSG))
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_POFF)
if(node.misc&NODE_POFF)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(((system.node_list[node-1].misc
if(((node.misc
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
|| system.node_list[node-1].status==NODE_QUIET)) {
|| node.status==NODE_QUIET)) {
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_ANON)
if(node.misc&NODE_ANON)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_INTR)
if(node.misc&NODE_INTR)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_RRUN)
if(node.misc&NODE_RRUN)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_UDAT)
if(node.misc&NODE_UDAT)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].status==NODE_QUIET)
if(node.status==NODE_QUIET)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_EVENT)
if(node.misc&NODE_EVENT)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_DOWN)
if(node.misc&NODE_DOWN)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].misc&NODE_LCHAT)
if(node.misc&NODE_LCHAT)
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' );
if(node.errors) printf(" %d error%s",node.errors, node.errors>1 ? 's' : '' );
function display_node(node){ var hour; var mer; printf("Node %2d: ",node); switch(system.node_list[node-1].status) { case NODE_WFC: write("Waiting for call"); break; case NODE_OFFLINE: write("Offline"); break; case NODE_NETTING: write("Networking"); break; case NODE_LOGON: write("At logon prompt"); break; case NODE_EVENT_WAITING: write("Waiting for all nodes to become inactive"); break; case NODE_EVENT_LIMBO: write("Waiting for node %d to finish external event",system.node_list[node-1].aux); break; case NODE_EVENT_RUNNING: write("Running external event"); break; case NODE_NEWUSER: write("New user"); write(" applying for access "); if(!system.node_list[node-1].connection) write("locally"); else if(system.node_list[node-1].connection==0xffff) write("via telnet"); else printf("at %ubps",system.node_list[node-1].connection); break; case NODE_QUIET: case NODE_INUSE: printf("User #%d",system.node_list[node-1].useron); write(" "); switch(system.node_list[node-1].action) { case NODE_MAIN: write("at main menu"); break; case NODE_RMSG: write("reading messages"); break; case NODE_RMAL: write("reading mail"); break; case NODE_RSML: write("reading sent mail"); break; case NODE_RTXT: write("reading text files"); break; case NODE_PMSG: write("posting message"); break; case NODE_SMAL: write("sending mail"); break; case NODE_AMSG: write("posting auto-message"); break; case NODE_XTRN: if(!system.node_list[node-1].aux) write("at external program menu"); else write("running external program #%d",system.node_list[node-1].aux); break; case NODE_DFLT: write("changing defaults"); break; case NODE_XFER: write("at transfer menu"); break; case NODE_RFSD: printf("retrieving from device #%d",system.node_list[node-1].aux); break; case NODE_DLNG: write("downloading"); break; case NODE_ULNG: write("uploading"); break; case NODE_BXFR: write("transferring bidirectional"); break; case NODE_LFIL: write("listing files"); break; case NODE_LOGN: write("logging on"); break; case NODE_LCHT: write("in local chat with sysop"); break; case NODE_MCHT: if(system.node_list[node-1].aux) { printf("in multinode chat channel %d",system.node_list[node-1].aux&0xff); if(system.node_list[node-1].aux&0x1f00) { /* password */ write('*'); printf(" %s",unpackchatpass(node)); } } else write("in multinode global chat channel"); break; case NODE_PAGE: printf("paging node %u for private chat",system.node_list[node-1].aux); break; case NODE_PCHT: printf("in private chat with node %u",system.node_list[node-1].aux); break; case NODE_GCHT: write("chatting with The Guru"); break; case NODE_CHAT: write("in chat section"); break; case NODE_TQWK: write("transferring QWK packet"); break; case NODE_SYSP: write("performing sysop activities"); break; default: write(system.node_list[node-1].action); break; } if(!system.node_list[node-1].connection) write(" locally"); else if(system.node_list[node-1].connection==0xffff) write(" via telnet"); else printf(" at %ubps",system.node_list[node-1].connection); if(system.node_list[node-1].action==NODE_DLNG) { if((system.node_list[node-1].aux/60)>=12) { if(system.node_list[node-1].aux/60==12) hour=12; else hour=(system.node_list[node-1].aux/60)-12; mer="pm"; } else { if((system.node_list[node-1].aux/60)==0) /* 12 midnite */ hour=12; else hour=system.node_list[node-1].aux/60; mer="am"; } printf(" ETA %02d:%02d %s" ,hour,system.node_list[node-1].aux-((system.node_list[node-1].aux/60)*60),mer); } break; } if(system.node_list[node-1].misc&(NODE_LOCK|NODE_POFF|NODE_AOFF|NODE_MSGW|NODE_NMSG)) { write(" ("); if(system.node_list[node-1].misc&NODE_AOFF) write('A'); if(system.node_list[node-1].misc&NODE_LOCK) write('L'); if(system.node_list[node-1].misc&(NODE_MSGW|NODE_NMSG)) write('M'); if(system.node_list[node-1].misc&NODE_POFF) write('P'); write(')'); } if(((system.node_list[node-1].misc &(NODE_ANON|NODE_UDAT|NODE_INTR|NODE_RRUN|NODE_EVENT|NODE_DOWN)) || system.node_list[node-1].status==NODE_QUIET)) { write(" ["); if(system.node_list[node-1].misc&NODE_ANON) write('A'); if(system.node_list[node-1].misc&NODE_INTR) write('I'); if(system.node_list[node-1].misc&NODE_RRUN) write('R'); if(system.node_list[node-1].misc&NODE_UDAT) write('U'); if(system.node_list[node-1].status==NODE_QUIET) write('Q'); if(system.node_list[node-1].misc&NODE_EVENT) write('E'); if(system.node_list[node-1].misc&NODE_DOWN) write('D'); if(system.node_list[node-1].misc&NODE_LCHAT) write('C'); write(']'); } if(system.node_list[node-1].errors) printf(" %d error%s",system.node_list[node-1].errors, system.node_list[node-1].errors>1 ? 's' : '' ); printf("\n");}
var str = "<html><head><title>DOM Viewerr</title><script type='text/javascript' src='domviewer.js'><!-- comments --> </script><link href='dom-styles/default.css' rel='stylesheet' type='text/css' /></head><body>";
var str = "";
function displayDOM(root){ var str = "<html><head><title>DOM Viewerr</title><script type='text/javascript' src='domviewer.js'><!-- comments --> </script><link href='dom-styles/default.css' rel='stylesheet' type='text/css' /></head><body>"; str+="<table>"; str += treeTraversal(root,0); // to make table columns work well. str += "<tr>"; for (var i=0; i < maxColumns; i++) { str+= "<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>"; } str += "</tr>"; str += "</table></body></html>"; return str;}
str += "</table></body></html>";
str += "</table>";
function displayDOM(root){ var str = "<html><head><title>DOM Viewerr</title><script type='text/javascript' src='domviewer.js'><!-- comments --> </script><link href='dom-styles/default.css' rel='stylesheet' type='text/css' /></head><body>"; str+="<table>"; str += treeTraversal(root,0); // to make table columns work well. str += "<tr>"; for (var i=0; i < maxColumns; i++) { str+= "<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>"; } str += "</tr>"; str += "</table></body></html>"; return str;}
str+='<a onclick="hide(this);" href="javascript:void(this);">';
str+='<a onclick="hide(this);return false;" href="javascript:void();">';
function displayNode(element, level, isLink){ nodeContent = getNodeContent(element); columns = Math.round((nodeContent.length / 12) + 0.5); if (columns + level > maxColumns) { maxColumns = columns + level; } var str ="<tr class='"+LEVEL+level+"'>"; for (var i=0; i < level; i++) str+= "<td> </td>"; str+="<td colspan='"+ columns +"' class='box"+" boxlevel"+level+"' >"; if(isLink){ str+='<a onclick="hide(this);" href="javascript:void(this);">'; str+='<img src="'+MIN_SRC+'" />'; } str += nodeContent; if(isLink) str+="</a></td></tr>"; return str;}
if (minutes < 50) return (minutes + ' minutes');
if (minutes < 50) return (minutes + ' minute' + (minutes == 1 ? '' : 's'));
function distance_of_time_in_words(minutes) { if (minutes.isNaN) return ""; minutes = Math.abs(minutes); if (minutes < 1) return ('less than a minute'); if (minutes < 50) return (minutes + ' minutes'); if (minutes < 90) return ('about one hour'); if (minutes < 1080) return (Math.round(minutes / 60) + ' hours'); if (minutes < 1440) return ('one day'); if (minutes < 2880) return ('about one day'); else return (Math.round(minutes / 1440) + ' days')}
var top = parseInt(this.slider.top);
var top = Position.page(evt.object)[1];
divClick: function (evt) { var y = evt.xy.y; var top = parseInt(this.slider.top); var levels = Math.floor((y - top)/this.zoomStopHeight); this.map.zoomTo(this.map.getZoomLevels() - levels); Event.stop(evt); },
if (!Event.isLeftClick(evt)) return;
divClick: function (evt) { var y = evt.xy.y; var top = Position.page(evt.object)[1]; var levels = Math.floor((y - top)/this.zoomStopHeight); this.map.zoomTo(this.map.getZoomLevels() - levels); Event.stop(evt); },
element.dragLastY = y;
function dividerDrag(event) { var element = document.getElementById("divider"); if (document.getElementById("divider").dragging == true) { var main = document.getElementById("main"); var top = document.getElementById("info"); var bottom = document.getElementById("body"); var y = event.clientY + window.scrollY; var delta = element.dragLastY - y; var newHeight = constrainedHeightFromElement(top.clientHeight - delta, main); top.style.height = newHeight + "px"; bottom.style.top = newHeight + "px"; element.dragLastY = y; event.preventDefault(); }}
document.body.style.cursor = null;
document.body.style.removeProperty("cursor");
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) { element.dragging = false; document.removeEventListener("mousemove", dividerDrag, true); document.removeEventListener("mouseup", dividerDragEnd, true); document.body.style.cursor = null;}
document.body.style.cursor = null;
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) { element.dragging = false; document.removeEventListener("mousemove", dividerDrag, true); document.removeEventListener("mouseup", dividerDragEnd, true);}
element.dragLastY = event.clientY + window.scrollY;
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) { element.dragging = true; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); event.preventDefault();}
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) {
function dividerDragStart(element, dividerDrag, dividerDragEnd, event, cursor) {
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) { element.dragging = true; element.dragLastY = event.clientY + window.scrollY; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); event.preventDefault();}
document.body.style.cursor = cursor;
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) { element.dragging = true; element.dragLastY = event.clientY + window.scrollY; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); event.preventDefault();}
if(obj[prop].length != undefined) document_object(prop_name ,obj[prop][0], "array"); else
if(obj[prop].length!=undefined) { if(typeof(obj[prop][0])=="object") { document_object(prop_name ,obj[prop][0], "array"); continue; } } else {
function document_properties(name, obj){ var prop_name; var count=0; var prop_num; prop_hdr=false; p=0; for(prop in obj) { prop_num=count++; if(min_ver && (!obj._property_ver_list || !obj._property_ver_list[prop_num])) { p++; continue; } if(obj._property_ver_list && (obj._property_ver_list[prop_num] < min_ver || obj._property_ver_list[prop_num] > max_ver)) { p++; continue; } prop_name=name + "." + prop; if(typeof(obj[prop])=="object" && prop!="socket") { if(obj[prop].length != undefined) // array ? document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); else document_object(prop_name,obj[prop]); continue; } if(!prop_hdr) { properties_header(name, obj); prop_hdr=true; } write("<tr valign=top>"); writeln("<td>" + prop.bold() + "<td>" + typeof(obj[prop]) ); if(!min_ver && obj._property_ver_list) writeln("<td>" + (obj._property_ver_list[p] ? verstr(obj._property_ver_list[p]) : "N/A")); if(obj._property_desc_list!=undefined) writeln("<td>" + obj._property_desc_list[p]); p++; total_properties++; }}
continue;
continue; }
function document_properties(name, obj){ var prop_name; var count=0; var prop_num; prop_hdr=false; p=0; for(prop in obj) { prop_num=count++; if(min_ver && (!obj._property_ver_list || !obj._property_ver_list[prop_num])) { p++; continue; } if(obj._property_ver_list && (obj._property_ver_list[prop_num] < min_ver || obj._property_ver_list[prop_num] > max_ver)) { p++; continue; } prop_name=name + "." + prop; if(typeof(obj[prop])=="object" && prop!="socket") { if(obj[prop].length != undefined) // array ? document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); else document_object(prop_name,obj[prop]); continue; } if(!prop_hdr) { properties_header(name, obj); prop_hdr=true; } write("<tr valign=top>"); writeln("<td>" + prop.bold() + "<td>" + typeof(obj[prop]) ); if(!min_ver && obj._property_ver_list) writeln("<td>" + (obj._property_ver_list[p] ? verstr(obj._property_ver_list[p]) : "N/A")); if(obj._property_desc_list!=undefined) writeln("<td>" + obj._property_desc_list[p]); p++; total_properties++; }}
if( (e instanceof String) || (typeof e == "string") ) {
if( (e instanceof String) || (typeof e == "string") || (typeof e == "number") ) {
function dom_add_child( node, e ) { if( hop_is_html_element( e ) ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
dom_add_child( node, e.car );
function dom_add_child( node, e ) { if( hop_is_html_element( e ) ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
if( (e instanceof HTMLElement) || (e instanceof Object && e.propertyIsEnumerable( "innerHTML" )) ) {
if( hop_isHTMLElement( e ) ) {
function dom_add_child( node, e ) { if( (e instanceof HTMLElement) || (e instanceof Object && e.propertyIsEnumerable( "innerHTML" )) ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
if( e instanceof HTMLElement ) {
if( (e instanceof HTMLElement) || (e instanceof Object && e.propertyIsEnumerable( "innerHTML" )) ) {
function dom_add_child( node, e ) { if( e instanceof HTMLElement ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
var i = args.length - 1;
var l = args.length; var i = 0;
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
while( i > 0 ) { var k = args[ i - 1 ];
while( i < l ) { var k = args[ i ];
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
el.setAttribute( k.toJSString(), args[ i ] ); i -= 2;
if( i < (l - 1) ) { var at = args[ i + 1 ]; if( (at instanceof String) || (typeof at == "string") ) { if( sc_isSymbol_immutable( at ) ) { el.setAttribute( k.toJSString(), sc_symbol2string_immutable( at ) ); } else { el.setAttribute( k.toJSString(), at ); } } else { el.setAttribute( k.toJSString(), at + "" ); } i += 2; }
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
i--;
i++;
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
if( i == 0 ) dom_add_child( el, args[ i ] );
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
if( all[ i ].className == name ) {
if( re.exec( all[ i ].className ) ) {
function dom_get_elements_by_class( document, name ) { var all = document.getElementsByTagName( "*" ); var res = new Array(); var n = 0; for( var i = 0; i < all.length; i++ ) { if( all[ i ].className == name ) { res[ n++ ] = all[ i ]; } } return sci_vector2list( res );}
var baseURL = testRunnerConfig.baseURL;
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
if (baseURL && newLocation) {
if (this.baseURL && newLocation) {
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1);
if (this.baseURL[this.baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = this.baseURL + newLocation.substr(1);
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
newLocation = baseURL + newLocation;
newLocation = this.baseURL + newLocation;
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
htmlTestRunner.currentTest.pauseInterval = waitTime;
currentTest.pauseInterval = waitTime;
Selenium.prototype.doPause = function(waitTime) { /** Wait for the specified amount of time (in milliseconds) * @param waitTime the amount of time to sleep (in milliseconds) */ // todo: should not refer to currentTest directly htmlTestRunner.currentTest.pauseInterval = waitTime;};
Selenium.prototype.doStoreValue = function(target) { value = this.page().bodyText(); storedVars[target] = value;
Selenium.prototype.doStoreValue = function(target, varName) { if (!varName) { value = this.page().bodyText(); storedVars[target] = value; return; } var element = this.page().findElement(target); storedVars[varName] = getInputValue(element);
Selenium.prototype.doStoreValue = function(target) { value = this.page().bodyText(); storedVars[target] = value;}
currentChannel = selChannel;
function downloadMovie(){ if (window.screen.width >= 800) { var selChannel = document.channelselector.channel.selectedIndex; if (selChannel >= 0) { var channel = document.channelselector.channel.options[selChannel].value; var pos = channel.indexOf("%2f"); if (pos >= 0) { var fileName = channel.substr(pos + 3, channel.length - pos - 3); fileName = unescape(fileName); document.location = "/rootX/" + fileName; } else alert("Sorry, no valid filename"); } else alert("Please select a movie first!"); } else alert("Movie download is not supported on this device.");}
alert("downloading:"+fileName);
fileName = unescape(fileName);
function downloadMovie(){ if (window.screen.width >= 800) { var selChannel = document.channelselector.channel.selectedIndex; if (selChannel >= 0) { var channel = document.channelselector.channel.options[selChannel].value; var pos = channel.indexOf("%2f"); if (pos >= 0) { var fileName = channel.substr(pos + 3, channel.length - pos - 3); alert("downloading:"+fileName); document.location = "/rootX/" + fileName; } else alert("Sorry, no valid filename"); } else alert("Please select a movie first!"); } else alert("Movie download is not supported on this device.");}
var a = this.val; for (var i = 0; i < a.length; i++) { sc_doWriteCircle(p, a[i], symb);
for (var i = 0; i < this.length; i++) { sc_doWriteCircle(p, this[i], symb);
sc_Vector.prototype.doWriteCircle = function(p, symb) { if (this[symb + "use"]) { // use-flag is set. Just use it. var nb = this[symb + "nb"]; if (this[symb]-- === 0) { // if we are the last use. remove all fields. delete this[symb]; delete this[symb + "nb"]; delete this[symb + "use"]; } p.appendJSString('#' + nb + '#'); return; } if (this[symb]-- === 0) { // if we are the last use. remove all fields. delete this[symb]; delete this[symb + "nb"]; delete this[symb + "use"]; } if (this[symb] !== undefined) { // implies > 0 this[symb + "use"] = true; p.appendJSString('#' + this[symb + "nb"] + '='); } p.appendJSString("#("); var a = this.val; for (var i = 0; i < a.length; i++) { sc_doWriteCircle(p, a[i], symb); p.appendJSString(" "); } p.appendJSString(")");}
lineid.style.color = '999999';
if (lineid) { lineid.style.color = '999999' };
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
chkbx.style.visibility = 'hidden'; chkbx.checked = false;
if ( chkbx ) { chkbx.style.visibility = 'hidden'; chkbx.checked = false; }
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
lineid.style.backgroundColor = '';
if (lineid) { lineid.style.backgroundColor = '' };
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){
if ($chk(this.limit[z][1]) && (this.value.now[z] > this.limit[z][1])){
drag: function(event){ this.out = false; this.mouse.now = event.page; for (var z in this.options.modifiers){ this.value.now[z] = event.page[z] - this.mouse.pos[z]; if (this.limit[z]){ if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){ this.value.now[z] = this.limit[z][1]; this.out = true; } else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){ this.value.now[z] = this.limit[z][0]; this.out = true; } } this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); } this.fireEvent('onDrag', this.element); event.stop(); },
} else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){
} else if ($chk(this.limit[z][0]) && (this.value.now[z] < this.limit[z][0])){
drag: function(event){ this.out = false; this.mouse.now = event.page; for (var z in this.options.modifiers){ this.value.now[z] = event.page[z] - this.mouse.pos[z]; if (this.limit[z]){ if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){ this.value.now[z] = this.limit[z][1]; this.out = true; } else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){ this.value.now[z] = this.limit[z][0]; this.out = true; } } this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); } this.fireEvent('onDrag', this.element); event.stop(); },
this.map.events.register( "click", this, this.defaultClick );
draw: function() { this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); },
this.map.events.register( "mouseout", this, this.defaultMouseOut );
draw: function() { this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); //this.map.events.register( "mouseout", this, this.defaultMouseUp ); },
OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this));
draw: function() { this.map.events.register( "click", this, this.defaultClick ); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); },
p = this.options.snap(p[0],p[1]);
p = this.options.snap(p[0],p[1],this);
draw: function(point) { var pos = Position.cumulativeOffset(this.element); var d = this.currentDelta(); pos[0] -= d[0]; pos[1] -= d[1]; if(this.options.scroll && (this.options.scroll != window)) { pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop; } var p = [0,1].map(function(i){ return (point[i]-pos[i]-this.offset[i]) }.bind(this)); if(this.options.snap) { if(typeof this.options.snap == 'function') { p = this.options.snap(p[0],p[1]); } else { if(this.options.snap instanceof Array) { p = p.map( function(v, i) { return Math.round(v/this.options.snap[i])*this.options.snap[i] }.bind(this)) } else { p = p.map( function(v) { return Math.round(v/this.options.snap)*this.options.snap }.bind(this)) } }} var style = this.element.style; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style.left = p[0] + "px"; if((!this.options.constraint) || (this.options.constraint=='vertical')) style.top = p[1] + "px"; if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering },
this.img = OpenLayers.Util.createImage(null, this.position, this.size, this.url, "absolute"); this.layer.div.appendChild(this.img);
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, this.position, this.size, this.url, "absolute"); this.layer.div.appendChild(this.imgDiv);
draw:function() { this.img = OpenLayers.Util.createImage(null, this.position, this.size, this.url, "absolute"); this.layer.div.appendChild(this.img); },
OpenLayers.Control.prototype.draw.apply(this, arguments);
draw: function() { OpenLayers.Control.MouseDefaults.prototype.draw.apply(this, arguments); this.buttons = new Object(); var sz = new OpenLayers.Size(28,28); var centered = this.position; this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz, "Shift->Drag to zoom to area"); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", centered, sz, "Drag the map to pan."); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this.switchModeTo("pan"); return this.div; },
OpenLayers.Tile.prototype.draw.apply(this, arguments);
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } if (!OpenLayers.Tile.prototype.draw.apply(this, arguments)) { return false; }
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position);
this.url = this.layer.getURL(this.bounds); if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },