rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if (!this_nline) { | if (!this_nline || ((this_nline.password == "*") && !this.sentps)) { | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
cmd=cmdline.split(' '); | var cmd=cmdline.split(' '); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.numeric("004", servername + " " + VERSION + " oi biklmnopstv"); | this.numeric("004", servername + " " + VERSION + " oiwbgscrkfydnhF biklmnopstv"); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
server_bcast_to_servers("NICK " + this.nick + " 1 " + this.created + " " + this.get_usermode() + " " + this.uprefix + " " + this.hostname + " " + servername + " 0 " + ip_to_int(this.ip) + " :" + this.realname); | server_bcast_to_servers("NICK " + this.nick + " 1 " + this.created + " " + this.get_usermode(true) + " " + this.uprefix + " " + this.hostname + " " + servername + " 0 " + ip_to_int(this.ip) + " :" + this.realname); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.numeric461(command); | this.numeric(409,":No origin specified."); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.ircclass = this.searchbyiline(); if (!this.ircclass) { | var tmp_iline; tmp_iline = this.searchbyiline(); if (!tmp_iline) { this.numeric(463, ":Your host isn't among the privileged."); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.ircclass = tmp_iline.ircclass; | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... | |
if ((NLines[nl].password == this.password) && (NLines[nl].servername == cmd[1])) { this_nline = NLines[nl]; break; } else if ((NLines[nl].flags&NLINE_CHECK_QWKPASSWD) && match_irc_mask(cmd[1],NLines[nl].servername)) { | if ((NLines[nl].flags&NLINE_CHECK_QWKPASSWD) && match_irc_mask(cmd[1],NLines[nl].servername)) { | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
} else if ((NLines[nl].password == this.password) && (match_irc_mask(cmd[1],NLines[nl].servername)) ) { this_nline = NLines[nl]; break; | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... | |
if ((!this_nline || ((this_nline.password == "*") && !this.sentps)) && !qwk_slave) { | if ( (!this_nline || ( (this_nline.password == "*") && !this.sentps && !(this_nline.flags&NLINE_CHECK_QWKPASSWD) ) ) && !qwk_slave) { | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
var tmp_iline; tmp_iline = this.searchbyiline(); | var tmp_iline = this.searchbyiline(); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.uprefix = "~" + parse_username(cmd[1]); | var unreg_username = parse_username(cmd[1]); this.uprefix = "~" + unreg_username; | function IRCClient_unregistered_commands(command, cmdline) { cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given."); break; } the_nick = ircstring(cmd[1]).slice(0,max_nicklen); if (this.check_nickn... |
} if (this.password && (unreg_username || (this.nick != "*"))) { if (unreg_username) var usernum = system.matchuser(unreg_username); if (!usernum && (this.nick != "*")) var usernum = system.matchuser(this.nick); if (usernum) { bbsuser = new User(usernum); if (this.password.toUpperCase() == bbsuser.security.password) th... | function IRCClient_unregistered_commands(command, cmdline) { cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given."); break; } the_nick = ircstring(cmd[1]).slice(0,max_nicklen); if (this.check_nickn... | |
this.quit("No QWK master available for authorization."); | this.quit("No QWK master available for authorization.",true); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.quit("ERROR: Server not configured."); | this.quit("ERROR: Server not configured.",true); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.quit("ERROR: Server already exists."); | this.quit("ERROR: Server already exists.",true); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.quit("You've been K:Lined from this server."); | this.quit("You've been K:Lined from this server.",true); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.quit("You are not authorized to use this server."); | this.quit("You are not authorized to use this server.",true); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.quit("Denied."); | this.quit("Denied.",true); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
oper_notice("Notice","Client connecting: " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + this.socket.remote_ip_address + "] {1}"); | umode_notice(USERMODE_CLIENT,"Client","Client connecting: " + this.nick + " (" + this.uprefix + "@" + this.hostname + ") [" + this.socket.remote_ip_address + "] {1}"); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
this.sentps = true; | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... | |
this.numeric("002", ":Your host is " + servername + ", running Synchronet IRCD " + VERSION); | this.numeric("002", ":Your host is " + servername + ", running " + VERSION); | function IRCClient_unregistered_commands(command, cmdline) { if (command.match(/^[0-9]+/)) return 0; // we ignore all numerics from unregistered clients. cmd=cmdline.split(' '); switch(command) { case "CAPAB": break; // silently ignore for now. case "NICK": if (!cmd[1]) { this.numeric(431, ":No nickname given... |
server_wallops("!ERROR: Client has bogus conntype!"); | oper_notice("Notice","Client has bogus conntype!"); | function IRCClient_work() { if (!this.socket.is_connected) { this.quit("Connection reset by peer",true); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for clients, however, servers // are all... |
if ( (this.pinged) && ((time() - this.pinged) > pingtimeout_time) ) { this.pinged = false; this.quit("Ping Timeout",true); } else if (!this.pinged && ((time() - this.idletime) > ping_time)) { this.pinged = time(); this.rawout("PING :" + servername); | if (this.nick) { if ( (this.pinged) && ((time() - this.pinged) > YLines[this.ircclass].pingfreq) ) { this.pinged = false; this.quit("Ping Timeout",true); } else if (!this.pinged && ((time() - this.idletime) > YLines[this.ircclass].pingfreq)) { this.pinged = time(); this.rawout("PING :" + servername); } | function IRCClient_work() { if (!this.socket.is_connected) { this.quit("Connection reset by peer",true); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for clients, however, servers // are all... |
log("!ERROR: Client has bogus conntype!"); | function IRCClient_work() { var command; var cmdline; var origin; if (!this.socket.is_connected) { this.quit("Connection reset by peer",true); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for... | |
if (!this.server && (command.match(/^[0-9]+/))) return 0; | function IRCClient_work() { if (!this.socket.is_connected) { this.quit("Connection reset by peer",true); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for clients, however, servers // are all... | |
this.quit("Connection reset by peer",true); | this.quit("Connection reset by peer"); | function IRCClient_work() { var command; var cmdline; var origin; if (!this.socket.is_connected) { this.quit("Connection reset by peer",true); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for... |
this.quit("Ping Timeout",true); | this.quit("Ping Timeout"); | function IRCClient_work() { var command; var cmdline; var origin; if (!this.socket.is_connected) { this.quit("Connection reset by peer",true); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for... |
} else { oper_notice("Notice","Client has bogus conntype!"); | } else { umode_notice(UMODE_OPER,"Notice", "Client has bogus conntype!"); | function IRCClient_work() { var command; var cmdline; var origin; if (!this.socket.is_connected) { this.quit("Connection reset by peer"); return 0; } if (this.socket.data_waiting && (cmdline=this.socket.recvline(4096,0)) ) { if(cmdline==null) return 0; // nothing to do // Allow only 512 bytes per RFC for clie... |
if (!this.sendq.bytes && !sendsock.send(send_data + "\r\n")) | if (this.sendq.bytes || !sendsock.send(send_data + "\r\n")) | function ircout(str) { var send_data; var sendsock; if (debug) log(format("[%s->%s]: %s",servername,this.nick,str)); if(this.local) { sendsock = this.socket; } else if (this.parent) { sendsock = Servers[this.parent.toLowerCase()].socket; } else { log(LOG_ERR,"!ERROR: No socket to send to?"); return 0; } send_data ... |
sendsock = Servers[this.parent].socket; | sendsock = Servers[this.parent.toLowerCase()].socket; | function ircout(str) { var sendsock; if (debug) log(format("[%s->%s]: %s",servername,this.nick,str)); if(this.local) { sendsock = this.socket; } else if (this.parent) { sendsock = Servers[this.parent].socket; } else { log("!ERROR: No socket to send to?"); return 0; } if (!writeout(sendsock,":" + servername + " " +... |
var cindex; | function ircstring(str,startword) { if (startword) { for(sw_counter=0;sw_counter<startword;sw_counter++) { str=str.slice(str.indexOf(" ")+1); } } cindex = str.indexOf(":")+1; if (!cindex) cindex = str.lastIndexOf(" ")+1; if (!cindex) return str; return(str.slice(cindex));} | |
this.x11 = (agt.indexOf("x11") != -1); this.mac = (agt.indexOf("macintosh") != -1); this.win = (agt.indexOf("windows") != -1); | function Is () { // convert all characters to lowercase to simplify testing var agt=navigator.userAgent.toLowerCase(); this.major = parseInt(navigator.appVersion); this.minor = parseFloat(navigator.appVersion); this.nav = ((agt.indexOf('mozilla') != -1) && ((agt.indexOf('spoofer') == -1)... | |
var parentNode = element.parentNode; return drop._containers.detect(function(c) { return parentNode == c }); | var containmentNode; if(drop.tree) { containmentNode = element.treeNode; } else { containmentNode = element.parentNode; } return drop._containers.detect(function(c) { return containmentNode == c }); | isContained: function(element, drop) { var parentNode = element.parentNode; return drop._containers.detect(function(c) { return parentNode == c }); }, |
return this.startContent != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty; | return tinyMCE.trim(this.startContent) != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty; | isDirty : function() { // Is content modified and not in a submit procedure return this.startContent != tinyMCE.trim(this.getBody().innerHTML) && !tinyMCE.isNotDirty; }, |
return targetElement.style.display == "none"; | return targetElement.style.display == "none" || (targetElement.style.display == "" && targetElement.className.indexOf("hidden") >= 0); | function isElementHidden(namespace, elementId) { var targetElement = getNamespacedElement(namespace, elementId); return targetElement.style.display == "none";} |
} | }, | isFinished: function() { return this.current > this.finish; } |
if (tinyMCE.isMSIE) | var s; if (tinyMCE.isIE) | isHidden : function() { if (tinyMCE.isMSIE) return false; var s = this.getSel(); // Weird, wheres that cursor selection? return (!s || !s.rangeCount || s.rangeCount == 0); }, |
var s = this.getSel(); | s = this.getSel(); | isHidden : function() { if (tinyMCE.isMSIE) return false; var s = this.getSel(); // Weird, wheres that cursor selection? return (!s || !s.rangeCount || s.rangeCount == 0); }, |
if (document.jsEnabled == undefined) { | if (typeof document.jsEnabled == 'undefined') { | function isJsEnabled() { if (document.jsEnabled == undefined) { // Note: ! casts to boolean implicitly. document.jsEnabled = !( !document.getElementsByTagName || !document.createElement || !document.createTextNode || !document.getElementById); } return document.jsEnabled;} |
!document.documentElement || | function isJsEnabled() { if (typeof document.jsEnabled == 'undefined') { // Note: ! casts to boolean implicitly. document.jsEnabled = !( !document.getElementsByTagName || !document.createElement || !document.createTextNode || !document.getElementById); } return document.jsEnabled;} | |
return 1; | return KLines[the_kl]; | function isklined(kl_str) { for(the_kl in KLines) { if (KLines[the_kl].hostmask && IRC_match(kl_str,KLines[the_kl].hostmask)) return 1; } return 0;} |
} | }, | isMultiWindowMode:function() { return this._isQueryParameterTrue('multiWindow'); } |
if (this.pageLoadError) throw this.pageLoadError; | this.isNewPageLoaded = function() { return self.newPageLoaded; }; | |
LOG.error("isNewPageLoaded found an old pageLoadError"); | this.isNewPageLoaded = function() { if (this.pageLoadError) { var e = this.pageLoadError; this.pageLoadError = null; throw e; } return self.newPageLoaded; }; | |
return c === " " || c === "\n" || c === "\t"; | return c === " " || c === "\r" || c === "\n" || c === "\t" || c === "\f"; | function isWhitespace(c) { return c === " " || c === "\n" || c === "\t"; }; |
var self = this; return { index: index, toString: function(index) { return self.variableName + "[" + this.index + "]"; } } | return this.variableName + "[" + index + "]"; | EqualsArray.prototype.item = function(index) { var self = this; return { index: index, toString: function(index) { return self.variableName + "[" + this.index + "]"; } }} |
if (e.originalTarget.tagName == "IMG") { | if (targetName == "img") { | function izOnMouseClick(e){ if (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")){ if (haveZoomed){ e.preventDefault(); e.stopPropagation(); } else { // contextmenu on mousedown if (contextDisabled) { document.popupNode = e.originalTarget; izContext.showPopup(izContext.ownerDocument.... |
(mousedown) && | function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault... | |
(e.originalTarget.tagName == "IMG") && | (targetName == "img") && | function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && (mousedown) && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) )... |
if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) | if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll")) && !(targetName == "embed" || targetName == "object")) | function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && (mousedown) && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) )... |
if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) | if ((targetName == "img") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) | function izOnMouseDown(e){ if ( (e.originalTarget.tagName == "IMG") && (mousedown) && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) )... |
if ( (e.originalTarget.tagName == "IMG") && ( (e.which == nsIPrefBranchObj.getIntPref("imageresetbutton")) || (e.which == nsIPrefBranchObj.getIntPref("imagefitbutton")) || (e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) ) ) { e.preventDefault(); e.stopPropagation(); } | function izOnMouseDown(e){ // prepare for the mouse functions on a right click when user option is true if ((e.which == nsIPrefBranchObj.getIntPref("triggerbutton")) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { if ((e.originalTarget.tagName == "IMG") || (nsIPrefBranchObj.getIntPref("scrollZoomMode") != 2)) {... | |
if ((e.originalTarget.tagName.toUpperCase() == "HTML") || (e.originalTarget.tagName == "xul:browser")){ | if ((e.originalTarget.tagName.toLowerCase() == "html") || (e.originalTarget.tagName.toLowerCase() == "xul:browser")){ | function izOnMouseOut(e) { if ((e.originalTarget.tagName.toUpperCase() == "HTML") || (e.originalTarget.tagName == "xul:browser")){ cancelScrollZoom(); }} |
for (var i in obj) { t += document.js_dump(obj[i], name +'.'+i); | var hold = new Array(); for (var i in obj) hold[hold.length] = i; hold = hold.sort(); for (var i = 0; i < hold.length; i++) { var n = hold[i]; t += document.js_dump(obj[n], name +'.'+n); | document.js_dump = function (obj, name) { var t = ''; if (! name) { name = '[obj]'; t = 'Dump:\n' } if (typeof(obj) != 'object') return name+'='+obj+'\n'; for (var i in obj) { t += document.js_dump(obj[i], name +'.'+i); } return t;} |
this.db.owner = this; | function jsAC(input, db) { var ac = this; this.input = input; this.db = db; this.db.owner = this; this.input.onkeydown = function (event) { return ac.onkeydown(this, event); }; this.input.onkeyup = function (event) { ac.onkeyup(this, event) }; this.input.onblur = function () { ac.hidePopup() }; this.popup = doc... | |
removeStyleClass(currentRow, "current"); | currentRow.removeStyleClass("current"); | function jumpToLine(sourceId, line){ var script = scripts[sourceId]; if (line <= 0 || !script) return; var file = files[script.file]; if (!file) return; if (currentFile != script.file) loadFile(script.file, true); if (currentRow) removeStyleClass(currentRow, "current"); ... |
addStyleClass(currentRow, "current"); | currentRow.addStyleClass("current"); | function jumpToLine(sourceId, line){ var script = scripts[sourceId]; if (line <= 0 || !script) return; var file = files[script.file]; if (!file) return; if (currentFile != script.file) loadFile(script.file, true); if (currentRow) removeStyleClass(currentRow, "current"); ... |
if(!event.keyCode==Event.KEY_ESC) return; | if(event.keyCode!=Event.KEY_ESC) return; | keyPress: function(event) { if(!event.keyCode==Event.KEY_ESC) return; this.finishDrag(event, false); Event.stop(event); }, |
LOG.error(e); if (e instanceof TypeError) { throw e; } this.commandError(e.message); | this.handleCommandError(e); | this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row ... |
LOG.error(e); | this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row ... | |
throw new Error("Unknown command"); | throw new Error("Unknown command: '" + command.command + "'"); | this.kickoffNextCommandExecution = function() { var command; if (starting_up == true) { command = this.firstCommand(); starting_up = false; } else { command = this.nextCommand(); } if (!command) return TEST_FINISHED; // Make the current row ... |
return document.frames['myiframe']; | return frames['myiframe']; | function KonquerorIFrameExecutionContext() { this.loadFrame = function() { return document.getElementById('myiframe'); }; this.open = function(target,frame) { frame.src = target; }; this.getContentWindow = function(frame) { return document.frames['myiframe']; }; this.waitForPag... |
KonquerorPageBot = function(pageWindow) { | var KonquerorPageBot = function(pageWindow) { | KonquerorPageBot = function(pageWindow) { PageBot.call(this, pageWindow);}; |
} | }, | last: function() { return this[this.length - 1]; } |
if(!isNav4) getObject(layer).innerHTML = file_loader.document.body.innerHTML; | if(!isNav4) { var o = getObject(layer); o.innerHTML = ""; o.innerHTML = file_loader.document.body.innerHTML; } | function layerLoadHandler(file_loader){ var layer = (isNav4? this.name: file_loader.layer_name); var properties = (isNav4? this.properties: file_loader.properties); if(!isNav4) getObject(layer).innerHTML = file_loader.document.body.innerHTML; boundPopup(layer); addPopup(layer, properties); captureMouseEvent(... |
var layer = (isNav4? this: file_loader.layer_name); | var layer = (isNav4? this.name: file_loader.layer_name); | function layerLoadHandler(file_loader){ var layer = (isNav4? this: file_loader.layer_name); var properties = (isNav4? this.properties: file_loader.properties); if(!isNav4) getObject(layer).innerHTML = file_loader.document.body.innerHTML; boundPopup(layer); addPopup(layer, "none", properties); captureMouseEve... |
addPopup(layer, "none", properties); | addPopup(layer, properties); | function layerLoadHandler(file_loader){ var layer = (isNav4? this.name: file_loader.layer_name); var properties = (isNav4? this.properties: file_loader.properties); if(!isNav4) getObject(layer).innerHTML = file_loader.document.body.innerHTML; boundPopup(layer); addPopup(layer, "none", properties); captureMou... |
var self = this; return { toString: function(index) { return self.variableName + ".length"; } } | return this.variableName + ".length"; | EqualsArray.prototype.length = function() { var self = this; return { toString: function(index) { return self.variableName + ".length"; } }} |
this.hfg=8; this.hbg=1; | this.dfg=8; this.dbg=1; | function Lightbar(items){ this.fg=7; this.bg=1; this.xpos=1; this.ypos=1; this.direction=0; this.hfg=1; this.hbg=7; this.hfg=8; this.hbg=1; this.kfg=15; this.khfg=15; this.current=0; this.align=0; this.force_width=-1; this.getval=Lightbar_getval; this.draw=Lightbar_draw; this.clear=Lightbar_clearitems; this.add=Lightba... |
this.draw=Lightbar_draw; | function Lightbar(items){ this.fg=7; this.bg=1; this.xpos=1; this.ypos=1; this.direction=0; this.hfg=1; this.hbg=7; this.kfg=15; this.khfg=15; this.current=0; this.align=0; this.force_width=-1; this.getval=Lightbar_getval; this.clear=Lightbar_clearitems; this.add=Lightbar_additem; this.failsafe_getval=Lightbar_failsafe... | |
if(!this.items[i].disabled) { | if(this.items[i].disabled) console.attributes=dattr; else { | function Lightbar_draw(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var dattr=this.dbg<<4|this.dfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return; } if(!(user.settings... |
if(!this.items[i].disabled) { | if(this.items[i].disabled) console.attributes=dattr; else { | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var dattr=this.dbg<<4|this.dfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; var last_cur; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.... |
} while(this.items[this.current]!=disabled || this.items[this.current].retval==undefined); | } while(this.items[this.current].disabled || this.items[this.current].retval==undefined); | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var dattr=this.dbg<<4|this.dfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; var last_cur; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.... |
while(this.items[this.current]!=disabled || this.items[this.current].retval==undefined) { | while(this.items[this.current].disabled || this.items[this.current].retval==undefined) { | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var dattr=this.dbg<<4|this.dfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; var last_cur; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.... |
if(this.items[i]==undefined) { alert("Sparse items array!"); return(this.failsafe_getval()); } if(this.items[i].text==undefined) { alert("No text for item "+i+"!"); return(this.failsafe_getval()); } | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.failsafe_getval()); } if(!(user.settings & USE... | |
console.gotoxy(curx, cury); if(i==this.current) { cursx=curx; cursy=cury; } j=0; if(cleaned.length < width) { if(this.align==1) { if(this.current==i) console.attributes=cattr; else console.attributes=attr; for(;j<width-cleaned.length;j++) console.write(' '); } if(this.align==2) { if(this.current==i) console.attributes=... | if(i==this.current || i==last_cur) { console.gotoxy(curx, cury); if(i==this.current) { cursx=curx; cursy=cury; } k=0; if(cleaned.length < width) { if(this.align==1) { if(this.current==i) console.attributes=cattr; else console.attributes=attr; for(;k<width-cleaned.length;k++) console.write(' '); } if(this.align==2) { if... | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.failsafe_getval()); } if(!(user.settings & USE... |
else { console.attributes=attr; console.write(" "); | else | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.failsafe_getval()); } if(!(user.settings & USE... |
} | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.failsafe_getval()); } if(!(user.settings & USE... | |
last_cur=this.current; | function Lightbar_getval(current){ var attr=this.bg<<4|this.fg; var cattr=this.hbg<<4|this.hfg; var kattr=this.bg<<4|this.kfg; var kcattr=this.hbg<<4|this.khfg; var ret=undefined; if(current!=undefined) this.current=current; if(!(user.settings & USER_ANSI)) { return(this.failsafe_getval()); } if(!(user.settings & USE... | |
function Line(attr) | function Line() | function Line(attr){ var i; if(attr==undefined) attr=7; /* The actual text of this line */ this.text=''; /* The attributes of this line */ this.attr=new Array(); for(i=0; i<80; i++) this.attr[i]=attr; this.hardcr=false; this.draw=Line_draw;} |
if(attr==undefined) attr=7; | function Line(attr){ var i; if(attr==undefined) attr=7; /* The actual text of this line */ this.text=''; /* The attributes of this line */ this.attr=new Array(); for(i=0; i<80; i++) this.attr[i]=attr; this.hardcr=false; this.draw=Line_draw;} | |
this.attr=new Array(); for(i=0; i<80; i++) this.attr[i]=attr; | this.attr=''; | function Line(attr){ var i; if(attr==undefined) attr=7; /* The actual text of this line */ this.text=''; /* The attributes of this line */ this.attr=new Array(); for(i=0; i<80; i++) this.attr[i]=attr; this.hardcr=false; this.draw=Line_draw;} |
this.draw=Line_draw; | this.kludged=false; this.firstchar=0; | function Line(attr){ var i; if(attr==undefined) attr=7; /* The actual text of this line */ this.text=''; /* The attributes of this line */ this.attr=new Array(); for(i=0; i<80; i++) this.attr[i]=attr; this.hardcr=false; this.draw=Line_draw;} |
docW = docW + "<a href='" + this.hreference + "' TARGET=_top " | docW = docW + "<a href='" + this.hreference + "' TARGET=_self " | function linkFolderHTML(isTextLink) { var docW = ""; if (this.hreference) { if (USEFRAMES) docW = docW + "<a href='" + this.hreference + "' TARGET=\"basefrm\" " else docW = docW + "<a href='" + this.hreference + "' TARGET=_top " if (isTextLink) { docW += "id=\"itemTextLink"+this.id+"\" "; ... |
var systems=0; | var udp_req=0; | function list_users(show){ imsg_user = new Array(); var systems=0; var replies=0; users = 0; start = new Date(); print("\1m\1hListing Systems and Users (Ctrl-C to Abort)..."); /* UDP systems */ sock = new Socket(SOCK_DGRAM); //sock.debug=true; sock.bind(); for(i=0;sys[i]!=undefined && !(bbs.sys_status&SS_ABORT);i++) { ... |
systems++; | udp_req++; | function list_users(show){ imsg_user = new Array(); var systems=0; var replies=0; users = 0; start = new Date(); print("\1m\1hListing Systems and Users (Ctrl-C to Abort)..."); /* UDP systems */ sock = new Socket(SOCK_DGRAM); //sock.debug=true; sock.bind(); for(i=0;sys[i]!=undefined && !(bbs.sys_status&SS_ABORT);i++) { ... |
while(replies<systems && new Date().valueOf()-begin.valueOf() < UDP_RESPONSE_TIMEOUT) | while(replies<udp_req && new Date().valueOf()-begin.valueOf() < UDP_RESPONSE_TIMEOUT) | function list_users(show){ imsg_user = new Array(); var systems=0; var replies=0; users = 0; start = new Date(); print("\1m\1hListing Systems and Users (Ctrl-C to Abort)..."); /* UDP systems */ sock = new Socket(SOCK_DGRAM); //sock.debug=true; sock.bind(); for(i=0;sys[i]!=undefined && !(bbs.sys_status&SS_ABORT);i++) { ... |
sock.debug=true; | function list_users(show){ imsg_user = new Array(); var systems=0; var replies=0; users = 0; start = new Date(); print("\1m\1hListing Systems and Users (Ctrl-C to Abort)..."); /* UDP systems */ sock = new Socket(SOCK_DGRAM); sock.debug=true; sock.bind(); for(i=0;sys[i]!=undefined && !(bbs.sys_status&SS_ABORT);i++) { i... | |
live_kill_streams(); | function live_switchto(_mode){ live_kill_streams(); var _actual_spts = dbox_spts_status(); if(_mode == "tv" && !_actual_spts) dbox_spts_set(true); else if(_mode == "radio" && _actual_spts) dbox_spts_set(false); //var _actual_mode = dbox_getmode(); //if(_actual_mode != _mode) dbox_setmode(_mode);} | |
var _actual_mode = dbox_getmode(); if(_actual_mode != _mode) | function live_switchto(_mode){ live_kill_streams(); var _actual_spts = dbox_spts_status(); if(_mode == "tv" && !_actual_spts) dbox_spts_set(true); else if(_mode == "radio" && _actual_spts) dbox_spts_set(false); //var _actual_mode = dbox_getmode(); //if(_actual_mode != _mode) dbox_setmode(_mode);} | |
if(typeof Prototype=='undefined') | if((typeof Prototype=='undefined') || parseFloat(Prototype.Version.split(".")[0] + "." + Prototype.Version.split(".")[1]) < 1.4) | load: function() { // fixme: check for prototype version number if(typeof Prototype=='undefined') throw("script.aculo.us requires the Prototype JavaScript framework >= 1.4.0"); var scriptTags = document.getElementsByTagName("script"); for(var i=0;i<scriptTags.length;i++) { if(scriptTags[i].src ... |
doc.load(getScriptChrome("config.xml")); | try { doc.load(getScriptChrome("config.xml")); } catch (exc) { doc.load(getScriptChrome("default-config.xml")); } | this.load = function() { var doc = document.implementation.createDocument("", "", null); doc.async = false; doc.load(getScriptChrome("config.xml")); var nodes = document.evaluate("/UserScriptConfig/Script", doc, null, 0, null); this.scripts = []; for (var node = null; (node = nodes.iterateNext()); ) { var scri... |
load:function(callback) { | function load(callback) { | load:function(callback) { this.doc = BXE_loader.load(this.filename,this.method,callback) }, |
}, | } | load:function(callback) { this.doc = BXE_loader.load(this.filename,this.method,callback) }, |
try { doc.load(getScriptChrome("config.xml")); } catch (exc) { doc.load(getScriptChrome("default-config.xml")); } | doc.load(configURI.spec); | this.load = function() { var doc = document.implementation.createDocument("", "", null); doc.async = false; try { doc.load(getScriptChrome("config.xml")); } catch (exc) { doc.load(getScriptChrome("default-config.xml")); } var nodes = document.evaluate("/UserScriptConfig/Script", doc, n... |
var re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&.*?<\/object>)/; | var re = /(?:videoUrl(?:\\u003d|=))(.*?)\&/; | function load_google_video(cached, vs) { if (!cached.uri.match(/^http:\/\/video.google.com\/videoplay/)) return true; var re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&.*?<\/object>)/; var match = cached.content.match(re); var url = unescape(match[2]); var meta = '<meta http-equiv="refresh" content="1; ur... |
var url = unescape(match[2]); | var url = unescape(match[1]); | function load_google_video(cached, vs) { if (!cached.uri.match(/^http:\/\/video.google.com\/videoplay/)) return true; var re = /(<object data="\/googleplayer.swf\?videoUrl=)(.*?)(\&.*?<\/object>)/; var match = cached.content.match(re); var url = unescape(match[2]); var meta = '<meta http-equiv="refresh" content="1; ur... |
yaml = yaml.replace(new RegExp('^','mg'),' '); | yaml = yaml.replace(new RegExp('^(.)','mg'),' $1'); | document.load_val_hash = function (form, val_hash) { // check the form we are using if (! form) return alert('Missing form or form name'); if (typeof(form) == 'string') { if (! document[form]) return alert('No form by name '+form); form = document[form]; } // if we already have validation - use it if (form.... |
document.hide_yaml_errors = (! document.show_yaml_errors); if (location.search && location.search.indexOf('show_yaml_errors') != -1) document.hide_yaml_errors = 0; | document.load_val_hash = function (form, val_hash) { // check the form we are using if (! form) return alert('Missing form or form name'); if (typeof(form) == 'string') { if (! document[form]) return alert('No form by name '+form); form = document[form]; } // if we already have validation - use it if (form.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.