Skip to content

anonymous /chat.js secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Some really bad code I wrote in 8th grade.
// Official ELC Code File
plugin("clrvars1.elc");
oldtrap="";
chan="";
newbuff="";
chid="";
chht=32;
cccc=0;
trap=".";
doirs=0;
username="";
buffer="";
scrollAll=0;
doRe=0;
channelMSG=new Array();
friendlyNames=new Array();
rounder=0;
users=new Array();
logtrack="";
errtimes=0;
stillRefresh=1;
sectyping=0; // typing timer
istyping=0; // 0 is no, 1 is yes, 2 is text entered
oldtyping=0; // do not change!
emotesstat=1; // 0 is off, 1 is on
lastuserslist="";
lint="$#!@}{";
sww=320;
swh=230; // smile window width and height
smilemarg = "5px"; // smile chooser icon margin
smilecols = 9;
smiledir="./Libraries/Stixe/";
function emoteStat(liant)
{
emotesstat = (emotesstat == 0) ? 1 : 0;
liant.src=emostatsrc[emotesstat];
document.getElementById("mainTx").value=document.getElementById("mainTx").value.replace(/\<noemotes\>/g, "");
if(emotesstat == 0)
{
document.getElementById("mainTx").value="<noemotes>"+document.getElementById("mainTx").value;
}
}
function timeformat(a, b, c)
{
return a+b+c;
}
linlin="";
function orchestrate(dle)
{
if(dle.value != linlin)
{
sectyping=3000;
linlin=dle.value;
}
}
function checkAgainst()
{
if(event)
{
if(event.srcElement)
{
if(!event.srcElement.parentNode)
{
loser=new Object();
loser.id="";
}
else
{
loser=event.srcElement.parentNode;
}
}
else
{
loser=new Object();
loser.id="";
}
if(event.srcElement)
{
if(event.srcElement.id != "emotes" && event.srcElement.id != "selectorWin" && loser.id != "selectorWin")
{
if(top.document.getElementById("selectorWin"))
{
wino=top.document.getElementById("selectorWin");
wino.style.visibility="hidden";
}
}
}
}
else
{
if(top.document.getElementById("selectorWin"))
{
wino=top.document.getElementById("selectorWin");
wino.style.visibility="hidden";
}
}
return true;
}
function showSmiles()
{
document.onmousedown=checkAgainst;
window.frames[0].document.onmousedown=top.checkAgainst;
winx=event.srcElement.offsetLeft;
winy=event.clientY-swh;
wino=document.getElementById("selectorWin");
wino.style.visibility="visible";
wino.style.left=winx+"px";
wino.style.top=winy+"px";
wino.style.position="absolute";
wino.style.width=sww+"px";
wino.style.height=swh+"px";
wino.style.textAlign="center";
wino.style.padding="3px";
wino.style.overflowY="auto";
/*
if(!document.getElementById("selectorIfrm"))
{
wino.innerHTML="<iframe border=0 frameborder=0 style=\"padding:0px;margin:0px;width:"+sww+"px;height:"+swh+"px\" application=\"yes\" src=\"about:blank\" id=\"selectorIfrm\"></iframe>";
}
winb=document.getElementById("selectorIfrm");
*/
dunce="";
dire=0;
for(var g=0;g<emotes.length;g++)
{
if(emotes[g][0].indexOf("~~") != -1)
{
windar=emotes[g][0].split("~~")[0];
}
else
{
windar=emotes[g][0];
}
if(emotesdisp[g] == "n")
{
dunce=dunce+"<img onClick=\"addText(document.getElementById('mainTx'), unescape('"+escape(windar)+"'), 1);\" src=\""+smiledir+emotes[g][1]+"\" alt=\"\" style=\"border:1px solid transparent;margin:"+smilemarg+"\" onMouseover=\"this.style.border=\'1px solid black\'\" onMouseout=\"this.style.border=\'1px solid transparent\'\">";
dire++;
}
if(dire == smilecols)
{
dire=0;
dunce=dunce+"<br>\n";
}
}
wino.innerHTML=dunce;
}
function doLog()
{
gener="./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt";
if(fso.FileExists(gener))
{
runApp(gener);
}
else
{
alert(language["nolog___"]);
}
}
function timer()
{
if(document.getElementById("mainTx"))
{
if(sectyping > 0 && document.getElementById("mainTx").value != "")
{
istyping=1;
}
else if(sectyping <= 0 && document.getElementById("mainTx").value != "")
{
istyping=2;
}
else
{
istyping=0;
}
}
sectyping = sectyping - 200;
tmout=window.setTimeout("timer()", 200);
}
function initiateChat(ds, sd)
{
manageListofPlugs();
refreshChannel=1;
chan=unescape(ds.replace(/\+/g, " "));
chid=sd;
querymod="?qmode=queryNorm";
languag_=langu;
changing="n";
speaking="n";
password=pasWd;
username=useNm.toLowerCase();
channel_=chid;
text____="";
errtimes=0;
stillRefresh=1;
sectyping=0;
istyping=0;
oldtyping=0; // do not change!
window.onresize=nrszEvnt;
document.body.className="chatbody";
stuff=language["youarein"];
stuff=stuff.replace(/\{\}\{\}/g, "<span id=\"chidd\">"+unescape(ds.replace(/\+/g, " "))+"</span>");
if(emotes[":)"])
{
smIco=smiledir+emotes[0][0];
}
else
{
smIco="./Images/smile.gif";
}
// alternatively, smIco may be used as the source image for the emotes button. It all depends on how you want your ELC to work :)
emostatsrc=new Array("./Images/emotesoff.gif", "./Images/emoteson.gif");
if(emotesstat == 0)
{
emotetext="<noemotes>";
}
else
{
emotetext="";
}
if(emotesstat != 0 && emotesstat != 1)
{
emotesstat=0;
}
document.getElementById("bodyWrapper").innerHTML="<table class=mnTbl cellpadding=0 cellspacing=0 width=\"100%\" height=\"100%\">\
<tr><td colspan=2 height=20 bgcolor=white class=chnId style=\"color:black;padding:2px;border-bottom:1px solid black\"><img src=\"./Images/back.png\" style=\" behavior: url(./Libraries/Shell/pngbehavior.htc); cursor : pointer; cursor:hand\" width=16 width=16 valign=middle onclick=\"returnToChannelC()\" alt=\""+language["backtoCC"]+"\"> "+stuff+"</td></tr>\
<tr><td bgcolor=white valign=top id=\"chttxt\" class=\"chattext\" style=\"padding:0px\"><iframe name=\"mainfrm\" id=\"mainfrm\" src=\"about:blank\" style=\"width:100%;height:100%;margin:0px;border:0px\" class=mnifrm frameborder=0 border=0 application=yes></iframe></td><td width=\"30%\" valign=top id=\"usersinripple\" class=\"usersinripple\" style=\"border-left:1px solid black;padding:0px\"><iframe application=yes name=\"righfrm\" class=righfrm id=\"righfrm\" src=\"about:blank\" style=\"width:100%;height:100%;margin:0px;border:0px\" frameborder=0 border=0></iframe></td></tr>\
<tr><td bgcolor=white colspan=2 valign=middle style=\"border-top:1px solid black\" height=\""+chht+"\" class=\"Condimentbar\"> <img onClick=\"emoteStat(this)\" src=\""+emostatsrc[emotesstat]+"\" alt=\"Toggle Emoticons\" id=\"emostat\" class=\"sep_Condiment\"> <img src=\"./Images/bold.gif\" class=\"sep_Condiment\" width=23 height=22 onclick=\"inserttext(document.getElementById(\'mainTx\'), \'\', \'[b]\', \'[/b]\')\" alt=\""+language["bold____"]+"\"> <img src=\"./Images/italic.gif\" class=\"sep_Condiment\" width=23 height=22 onclick=\"inserttext(document.getElementById(\'mainTx\'), \'\', \'[i]\', \'[/i]\')\" alt=\""+language["italiciz"]+"\"> <img src=\"./Images/underline.gif\" class=\"sep_Condiment\" width=23 height=22 onclick=\"inserttext(document.getElementById(\'mainTx\'), \'\', \'[u]\', \'[/u]\')\" alt=\""+language["underlin"]+"\"> <img src=\"./Images/MenuBar.png\" class=\"sep_Condiment\" width=10 height=22> <img src=\"./Images/log.gif\" onClick=\"doLog()\" class=\"sep_Condiment\"> <img onClick=\"showSmiles()\" src=\"./Images/emotes.gif\" alt=\""+language["emoticon"]+"\" id=\"emotes\" class=\"sep_Condiment\"></td></tr>\
<tr><td valign=top colspan=2 height=80 style=\"padding-top:3px;background-color:white;color:black;font-size:10pt;border-top:1px solid black\"><textarea class=trap name=\"mainTx\" id=\"mainTx\" onKeyDown=\"orchestrate(this);return key(event)\" style=\"font-family:arial;font-size:7pt;width:80%;height:60px;margin-top:1px\">"+emotetext+"</textarea><input type=submit onClick=\"sendTxt()\" value=\""+language["btSend__"]+"\" id=sendBtn class=sendBtn style=\"margin-top:1px;width:18%;margin-left:1.5%;height:60px;background-color:#F0F0F0;color:black;border:1px solid black;font-family:arial;font-size:10pt\" onMouseout=\"this.style.backgroundColor=\'#F0F0F0\'\" onMouseover=\"this.style.backgroundColor=\'#ECECEC\'\"><input type=text style=\"position:absolute;left:-500px;top:-500px\" id=\"ivnTx\"></td></tr>\
</table><div style=\"background-color:white;border:1px solid black;width:300px;height:230px;position:absolute;visibility:hidden;left:-500px;top:-500px\" id=\"selectorWin\"></div><iframe style=\"position:absolute;top:-500px;left:-500px;width:1px;height:1px\" onLoad=\"doRetrieve()\" application=yes src=\"about:blank\" name=\"chatMit\" id=\"chatMit\"></iframe>";
if(document.getElementById("mainTx").disabled == 0)
{
document.getElementById("mainTx").focus();
}
whsout="./Images/washout.png"; // this may be customizable in the future. Note that it may be overridden by plugins. If you don't want it to be, just comment out the plugin line a few lines down.
window.frames[1].document.write("<body></body>");
window.frames[0].document.write("<body onkeydown=\"return false;\" style=\"font-size:7pt;font-family:arial;cursor:default;background-repeat:no-repeat;background-image:url("+whsout+");word-wrap:break-word;background-position:center center;background-attachment:fixed;\"></body>");
window.frames[0].document.body.hideFocus="true";
plugin("modfrm1.elc");
tmout=window.setTimeout('if(document.getElementById("mainTx").disabled == 0){document.getElementById("mainTx").focus()}', 1);
nrszEvnt();
timer();
}
function sendTxt()
{
if(document.getElementById("mainTx").value != "")
{
if(escape(document.getElementById("mainTx").value.replace("\+", "%2B")).length <= 901)
{
text____=escape(document.getElementById("mainTx").value.replace("\+", "%2B"));
speaking="y";
document.getElementById("mainTx").value=language["sndmsg__"];
document.getElementById("mainTx").disabled=1;
document.getElementById("sendBtn").disabled=1;
}
else
{
alert(language["badlengt"].replace(/\{\}\{\}/g, escape(document.getElementById("mainTx").value.replace("\+", "%2B")).length));
}
}
}
function isScrolledDown()
{
if(window.frames[0].document.body.scrollTop+window.frames[0].document.body.clientHeight == window.frames[0].document.body.scrollHeight || scrollAll == 1)
{
return true;
scrollAll=0;
}
else
{
return false;
}
}
function scrollAllTheWay()
{
if(window.frames[0])
{
window.frames[0].scrollTo(0, window.frames[0].document.body.clientHeight+window.frames[0].document.body.scrollHeight);
}
}
function inserttext(input, insTexte, startTag, endTag)
{
if (input.createTextRange)
{
var text;
input.focus(input.caretPos);
input.caretPos = document.selection.createRange().duplicate();
if(input.caretPos.text.length>0)
{
input.caretPos.text = startTag + input.caretPos.text + endTag;
}
else
{
input.caretPos.text = startTag + insTexte + endTag;
}
}
else input.value += startTag + insTexte + endTag;
input.focus(input.caretPos+startTag.length);
}
function addText( input, insText, mode ) {
if(mode == 1)
{
if(top.document.getElementById("selectorWin"))
{
wino=top.document.getElementById("selectorWin");
wino.style.visibility="hidden";
}
}
input.focus();
if( input.setSelectionRange ) {
var len = input.selectionEnd;
input.value = input.value.substr( 0, len )
+ insText + input.value.substr( len );
input.setSelectionRange(len+insText.length,len+insText.length);
}
else if( input.createTextRange ) {
document.selection.createRange().text += insText;
}
else { input.value += insText; }
}
function key(e)
{
if(e.keyCode == 13)
{
if(e.shiftKey != 1)
{
document.getElementById("sendBtn").click();
return false;
}
else
{
return true;
}
}
}
function buildURL()
{
qStr="http://"+currUrl+"/elcroot/ELC_main-branch.php"+querymod+"&qlang="+languag_+"&";
if(istyping != oldtyping)
{
changing="y";
oldtyping=istyping;
}
if(changing == "y")
{
qStr=qStr+"change=y&";
qStr=qStr+"tp="+istyping+"&";
}
else
{
qStr=qStr+"change=n&"
}
if(speaking == "y")
{
qStr=qStr+"speak=y&text="+text____+"&";
}
else
{
qStr=qStr+"speak=n&";
}
qStr=qStr+"userd="+username+"&passd="+password+"&chann="+channel_+"&trap="+trap;
if(speaking == "y")
{
document.getElementById("mainTx").value="";
document.getElementById("mainTx").disabled=0;
if(emotesstat == 0)
{
document.getElementById("mainTx").value="<noemotes>"+document.getElementById("mainTx").value;
}
document.getElementById("sendBtn").disabled=0;
scrollAll=1;
if(document.getElementById("mainTx").disabled == 0)
{
document.getElementById("mainTx").focus();
}
}
querymod="?qmode=queryNorm";
languag_=langu;
changing="n";
speaking="n";
password=pasWd;
username=useNm.toLowerCase();
channel_=chid;
text____="";
return qStr;
}
function doRetrieve()
{
rounder=0;
doirs++;
if(doirs == 2)
{
logtrack="Session Start ("+userD+" on \'"+chan+"\' ["+chid+"]): "+new Date();
if(!fso.FolderExists("./Profiles/"+useNm.toLowerCase()+"/Logs"))
{
fso.CreateFolder("./Profiles/"+useNm.toLowerCase()+"/Logs");
}
if(!fso.FileExists("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt"))
{
fso.CreateTextFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt");
}
if(fso.GetFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt").Size > 0)
{
la=fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt", 1);
ar=la.ReadAll();
la.Close();
}
else
{
ar="";
}
ar=ar+"\r\n"+washSlashes(logtrack);
if(logtrack != "")
{
la=fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt", 2);
la.Write(ar);
la.Close();
}
logtrack="";
}
if(refreshChannel==1)
{
if(escape(trap) == "%00%00%00")
{
trap=oldtrap;
}
document.getElementById("chatMit").onload=doRetrieve;
if(window.frames["chatMit"].document.body)
{
forens=window.frames["chatMit"].document.body.innerHTML.split("!l!");
if(forens.length > 1)
{
if(unescape(forens[3].replace(/\+/g, " ")) != chid && unescape(forens[3].replace(/\+/g, " ")).substring(0, 13) == "//##FORCE##//")
{
nownow=unescape(forens[3].replace(/\+/g, " ")).substring(13, unescape(forens[3].replace(/\+/g, " ")).length);
if(nownow == "//##channelcentral##//")
{
alert(language["kickchan"]);
stillRefresh=0;
tmout=window.setTimeout("returnToChannelC()", 1000);
}
else if(nownow == "//##forcequit##//")
{
alert(language["forcequi"]);
window.close();
}
else
{
alert(language["movechan"]);
tmout=window.setTimeout('oldtrap=".";trap=".";channelMSG=new Array();initiateChat(language["brackloa"], nownow)', 1000);
}
}
well1=decode64(forens[0]);
if(forens.length >= 3)
{
timetrack=forens[2];
}
if(forens.length >= 4)
{
jars=unescape(forens[4].replace(/\+/g, " "));
document.getElementById("chidd").innerHTML=unescape(jars.replace(/\+/g, " "));
chan=unescape(jars.replace(/\+/g, " "));
}
read="";
if(well1.indexOf("}") != -1)
{
real=well1.split("}");
for(var i=0;i<real.length;i++)
{
if(real[i].indexOf("{") != -1)
{
vision=real[i].split("{");
lint=unescape(vision[0].replace(/\+/g, " "));
wartt=unescape(vision[1].replace(/\+/g, " "));
varsity=unescape(vision[1].replace(/\+/g, " "));
varsity=varsity.substring(0, varsity.length-1);
typeico=new Array("./Images/still.gif", "./Images/typing.gif", "./Images/entered.gif");
wartt=wartt.substring(wartt.length-1, wartt.length);
if(lint)
{
if(friendlyNamesReal[lint] != "true")
{
if(!friendlyNames[lint] || friendlyNames[lint] == undefined || friendlyNames[lint] == "")
{
friendlyNames[lint]=varsity;
}
if(!friendlyNames[lint] || friendlyNames[lint] == undefined || friendlyNames[lint] == "")
{
friendlyNames[lint]=lint;
}
}
if(wartt != 0 && wartt != 1)
{
wartt=0;
}
read=read+"<img src=\""+typeico[wartt]+"\" alt=\""+language["typestat"]+"\" style=\"vertical-align:middle\"> "+friendlyNames[lint]+"<br>";
}
}
}
read=read.substring(0, read.length-4);
}
if(lastuserslist != read)
{
window.frames[1].document.body.innerHTML=read;
lastuserslist = read;
}
sick1=decode64(forens[1]).split("[");
sick2=sick1[sick1.length-1].split(",")[0];
if(trap == ".")
{
rounder=1;
}
trap=sick2;
retain=decode64(forens[1]);
disintegrate=retain.split("\n");
retain="";
if(disintegrate.length > 0 && disintegrate != "\n")
{ // cool begin
nummsgs=0;
firstnum=Infinity;
for(var xx = 0; xx < disintegrate.length; xx ++)
{
if(disintegrate[xx].indexOf("[")!=-1 )
{
part1=disintegrate[xx].split("[")[1];
part2=part1.split("]")[0];
part3=part1.split("]")[1];
part4=part2.split(",");
if(part4.length > 0 && xx != 0)
{
if(parseInt(part4[0].toString())-0 < firstnum)
{
firstnum=parseInt(part4[0].toString())-0;
}
if(part3 != "" && rounder == 0)
{
channelMSG[parseInt(part4[0].toString())-0]=new Array(part4[1],part4[2],part4[3],part3);
}
}
}
}
} // cool end
for(var yy = firstnum; yy < channelMSG.length; yy ++)
{
marc="<br>";
plugin("channelbreaker.elc");
if(channelMSG[yy][0])
{
if(channelMSG[yy][0] == username.toLowerCase())
{
color="red";
plugin("redtext.elc");
}
else
{
color="blue";
plugin("bluetext.elc");
}
if(channelMSG[yy][3] != "\n")
{
if(channelMSG[yy][1] == "n")
{
if(lint)
{
if(friendlyNamesReal[lint] != "true")
{
if(friendlyNames[channelMSG[yy][0]] == undefined || !friendlyNames[channelMSG[yy][0]] || friendlyNames[channelMSG[yy][0]] == "")
{
friendlyNames[channelMSG[yy][0]]=channelMSG[yy][0];
}
}
}
channelMSG[yy][3]=unescape(channelMSG[yy][3].replace(/\+/g, " "));
logtrack=timeformat(language["bfrbrack"], channelMSG[yy][2], language["aftbrack"]+" ")+friendlyNames[channelMSG[yy][0]]+language["colon___"]+channelMSG[yy][3];
}
else if(channelMSG[yy][1] == "m")
{
if(lint)
{
if(friendlyNamesReal[lint] != "true")
{
if(friendlyNames[channelMSG[yy][0]] == undefined || !friendlyNames[channelMSG[yy][0]] || friendlyNames[channelMSG[yy][0]] == "")
{
friendlyNames[channelMSG[yy][0]]=channelMSG[yy][0];
}
}
}
channelMSG[yy][3]=unescape(channelMSG[yy][3].replace(/\+/g, " "));
channelMSG[yy][3]=channelMSG[yy][3].replace("/me", "");
logtrack=timeformat(language["bfrbrack"], channelMSG[yy][2], language["aftbrack"]+" ")+language["asterisk"]+friendlyNames[channelMSG[yy][0]]+channelMSG[yy][3];
}
}
dry1=channelMSG[yy][3];
plugin("preptext.elc");
// Filtering and URL Regex. Thanks go to http://foad.org/~abigail/Perl/url3.regex
dry1=unescape(dry1.replace(/\+/g, " ")).replace(/\\\'/g, "\'").replace(/\\\"/g, "\"").replace(/((?:http:\/\/(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+)){3}))(?::(?:\d+))?)(?:\/(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[;:@&=])*)(?:\/(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[;:@&=])*))*)(?:\?(?:(?:(?:[a-zA-Z\d$\-_.+!*'(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@\/])+))?(?:(?:;[Uu][Ii][Dd][Vv][Aa][Ll][Ii][Dd][Ii][Tt][Yy]=(?:[1-9]\d*)))?)|(?:(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[&=~:@\/])+)(?:(?:;[Uu][Ii][Dd][Vv][Aa][Ll][Ii][Dd][Ii][Tt][Yy]=(?:[1-9]\d*)))?(?:\/;[Uu][Ii][Dd]=(?:[1-9]\d*))(?:(?:\/;[Ss][Ee][Cc][Tt][Ii][Oo][Nn]=(?:(?:(?:[a-zA-Z\d$\-_.+!*'(),]|(?:%[a-fA-F\d]{2}))|[&=~:@\/])+)))?)))?)|(?:nfs:(?:(?:\/\/(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?:\.(?:\d+)){3}))(?::(?:\d+))?)(?:(?:\/(?:(?:(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:\/(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?)))?)|(?:\/(?:(?:(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:\/(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?))|(?:(?:(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*)(?:\/(?:(?:(?:[a-zA-Z\d\$\-_.!~*'(),])|(?:%[a-fA-F\d]{2})|[:@&=+])*))*)?))))\]/g, "<a href=\"javascript:void(0)\" onMouseout=\"document.body.style.cursor=\'default\'\" onmousedown=\"return false;\" onMouseover=\"document.body.style.cursor=\'hand\'\" style=\" color:red; cursor: pointer; cursor:hand\" onClick=\"top.runApp('$1')\">$1<\/a>");
dry1=dry1.replace(/\\\$badaccess/g, language["fcdBadAc"]);
// Plugin end
if(dry1.indexOf("&lt;noemotes&gt;") == -1)
{
for(var c=0;c < emotes.length; c++)
{
char=emotes[c][0].split("~~");
for(var i=0;i<char.length;i++)
{
if(dry1.indexOf(char[i]) != -1)
{
setter="";
prea=dry1.split(char[i]);
for(var y=0;y<prea.length;y++)
{
if(y!=prea.length-1)
{
setter=setter+prea[y]+"[smile="+emotes[c][1]+"]";
}
else
{
setter=setter+prea[y];
}
dry1=setter;
}
}
}
}
dry1=dry1.replace(/\[smile=(.*?)]/g, "<img src=\""+smiledir+"$1\" style=\"vertical-align: middle\">");
}
dry1=dry1.replace(/\&lt\;noemotes\&gt\;/g, "");
dry1=dry1.replace(/\[img=(.*?)]/g, "<img src=\"$1\">");
dry1=dry1.replace(/\[b\](.*?)\[\/b\]/g, "<b>$1</b>");
dry1=dry1.replace(/\[s\](.*?)\[\/s\]/g, "<s>$1</s>");
dry1=dry1.replace(/\[i\](.*?)\[\/i\]/g, "<i>$1</i>");
dry1=dry1.replace(/\[u\](.*?)\[\/u\]/g, "<u>$1</u>");
dry1=dry1.replace(/\[sp\](.*?)\[\/sp\]/g, "<sup>$1</sup>");
dry1=dry1.replace(/\[sb\](.*?)\[\/sb\]/g, "<sub>$1</sub>");
dry1=dry1.replace(/\[c=(.*?)\](.*?)\[\/c\]/g, "<font color=\"$1\">$2</font>");
dry1=dry1.replace(/\[points=(.*?)\](.*?)\[\/points\]/g, "<font style=\"font-size:$1pt\">$2</font>");
dry1=dry1.replace(/\[size=(.*?)\](.*?)\[\/size\]/g, "<font size=\"$1\">$2</font>");
dry1=dry1.replace(/\[face=(.*?)\](.*?)\[\/face\]/g, "<font style=\"font-family:$1\">$2</font>");
plugin("taf.elc");
if(channelMSG[yy][1] == "m")
{
if(lint)
{
if(friendlyNamesReal[lint] != "true")
{
if(friendlyNames[channelMSG[yy][0]] == undefined || !friendlyNames[channelMSG[yy][0]] || friendlyNames[channelMSG[yy][0]] == "")
{
friendlyNames[channelMSG[yy][0]]=channelMSG[yy][0];
plugin("frnm.elc");
}
}
}
plugin("tbmr.elc");
dry1=dry1.replace("/me", "");
ER=marc+"<font color=\""+color+"\">"+language["bfrbrack"]+channelMSG[yy][2]+language["aftbrack"]+" "+friendlyNames[channelMSG[yy][0]]+dry1+"</font>";
plugin("ermod.elc");
}
else if(channelMSG[yy][1] == "n")
{
if(lint)
{
if(friendlyNamesReal[lint] != "true")
{
if(friendlyNames[channelMSG[yy][0]] == undefined || !friendlyNames[channelMSG[yy][0]] || friendlyNames[channelMSG[yy][0]] == "")
{
friendlyNames[channelMSG[yy][0]]=channelMSG[yy][0];
}
}
}
ER=marc+"<font color=\""+color+"\">"+language["bfrbrack"]+channelMSG[yy][2]+language["aftbrack"]+" "+friendlyNames[channelMSG[yy][0]]+language["colon___"]+"</font> "+dry1;
}
else
{
plugin("invmsg.elc");
alert(language["invalidf"].replace(/\{\}\{\}/, channelMSG[yy][1]));
}
doRe++;
if(doRe==1)
{
ER=ER.substring(4, (ER.length));
}
retain=retain+ER;
}
}
if(newbuff != buffer+retain)
{
if(isScrolledDown())
{
tmout=window.setTimeout("scrollAllTheWay()", 50);
plugin("scrllwy.elc");
}
plugin("bfappend.elc");
rarnin=window.frames[0].document.createElement("span");
rarnin.innerHTML=retain;
window.frames[0].document.body.appendChild(rarnin);
plugin("afappend.elc");
if(useroptsarray[6].replace(/\r/g, "") == "1")
{
plugin("fcus.elc");
tmout=window.setTimeout("window.focus()", 1);
tmout=window.setTimeout('if(document.getElementById("mainTx").disabled == 0){document.getElementById("mainTx").focus()}', 2);
plugin("acus.elc");
}
buffer=buffer+retain;
newbuff=buffer+retain;
if(!fso.FolderExists("./Profiles/"+useNm.toLowerCase()+"/Logs"))
{
fso.CreateFolder("./Profiles/"+useNm.toLowerCase()+"/Logs");
}
if(!fso.FileExists("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt"))
{
fso.CreateTextFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt");
}
if(fso.GetFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt").Size > 0)
{
la=fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt", 1);
ar=la.ReadAll();
la.Close();
}
else
{
ar="";
}
plugin("lgtrck.elc");
ar=ar+"\r\n"+washSlashes(logtrack);
if(logtrack != "")
{
la=fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/Logs/"+chid+".txt", 2);
la.Write(ar);
la.Close();
}
logtrack="";
}
}
else
{
if(doirs != 1)
{
if(errtimes >= 3)
{
plugin("errsrv.elc");
if(confirm(language["chnlerro"]))
{
plugin("errsrv1.elc");
window.close()
plugin("errsrv2.elc");
}
}
plugin("errsrv3.elc");
tmout=window.setTimeout("errtimes=0", 6000);
errtimes++;
}
}
}
if(escape(trap) != "%00%00%00")
{
oldtrap=trap;
}
ifrmdest=buildURL();
plugin("ifmdst.elc");
if(stillRefresh == 1)
{
window.frames["chatMit"].location=ifrmdest;
plugin("strsh.elc");
}
}
}
function returnToChannelC()
{
plugin("clrvars2.elc");
users=new Array();
currTransp=0;
oldtrap="";
lint="$#!@}{";
chan="";
newbuff="";
chid="";
chht=32;
cccc=0;
trap=".";
doirs=0;
doRe=0;
username="";
buffer="";
scrollAll=0;
channelMSG=new Array();
rounder=0;
refreshChannel=0;
timesRunthru = 0;
areweLoadedYet = 0;
judas = "~;l";
newold = "";
document.getElementById("bodyWrapper").innerHTML="<div style=\"z-index:400;background-color:#BBBFCE;width:100%;height:100%\" id=\"snap\"></div>"+unloader;
proceedToChannelC();
window.onresize=rszEvnt;
runn=1;
dowX=350;
dowY=500;
window.resizeTo(dowX,dowY);
runn=0;
}
function nrszEvnt()
{
if(document.body.clientHeight-100-chht > 0)
{
document.getElementById("mainfrm").style.height=document.body.clientHeight-100-chht+"px";
document.getElementById("righfrm").style.height=document.body.clientHeight-100-chht+"px";
}
else
{
document.getElementById("mainfrm").style.height="0px";
}
}
function washSlashes(into)
{
return into.replace(/\\\'/g, "\'").replace(/\\\"/g, "\"").replace(/\\\\/g, "\\");
}
// Official ELC Code File
/*
ELC Client Code
Build 1337
*/
debugcount=0;
wW = 500;
// Window Width
wH = 500;
// Window Height
// Client code - do not change
runn=0;
timeCHk = false;
dowX=0;
dowY=0;
dpne=0;
builderPlugs="";
continuewithreloads=1;
unloader="<table id=\"mme\" style=\"z-index:500;visibility:hidden;cursor:wait;width:100%;height:100%;position:absolute;left:0px;top:0px\"><tr><td align=center><img src=\"./Images/unloading.png\" width=216 height=50 alt=\"\" style=\"behavior:url(Libraries/Shell/pngbehavior.htc)\"></td></tr></table><img id=\"wwe\" src=\"./Images/black.gif\" width=100 height=100 alt=\"\" style=\"cursor:wait;visibility:hidden;filter:alpha(opacity=0);width:100%;height:100%;position:absolute;left:0px;top:0px\">";
plugin("unlod.elc");
loadingisover=0;
runtemp1="";
runtemp2="";
timetrack=0;
function openErrorWin(msa, msb, msc) {
if(runn == 1)
{
window.setTimeout("runn=1;window.resizeTo("+dowX+", "+dowY+");runn=0", 50);
}
else if(msa == "Access denied.\n")
{
alert("An error has occured. We know about this error. Please do not report it. Sorry for the inconvenience.");
}
else
{
plugin("err.elc");
alert("ELC has suffered an error!\n\nError: "+msa+"\nFile: "+msb+"\nLine Number: "+msc);
plugin("err2.elc");
}
return true;
}
function setOptionLine(d, line) {
if(!fso.FileExists("./Profiles/"+useNm.toLowerCase()+"/options.txt"))
{
fso.CreateFile("./Profiles/"+useNm.toLowerCase()+"/options.txt");
}
if (fso.GetFile("./Profiles/"+useNm.toLowerCase()+"/options.txt").Size != 0) {
da = fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/options.txt", 1);
rend = da.ReadAll();
da.Close();
} else {
rend = "";
}
trend = rend.split("\r\n");
trend[line] = d;
neeWOudl = "";
for (var sad = 0; sad<trend.length; sad++) {
neeWOudl = neeWOudl+trend[sad]+"\r\n";
}
neeWOudl = neeWOudl.substring(0, (neeWOudl.length-2));
plugin("setopt.elc");
da = fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/options.txt", 2);
da.Write(neeWOudl);
da.Close();
}
function readOptionLine(line) {
if(!fso.FileExists("Profiles/"+useNm.toLowerCase()+"/options.txt"))
{
fso.CreateTextFile("Profiles/"+useNm.toLowerCase()+"/options.txt");
}
if (fso.GetFile("./Profiles/"+useNm.toLowerCase()+"/options.txt").Size != 0) {
da = fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/options.txt", 1);
rend = da.ReadAll();
da.Close();
} else {
rend = "";
}
trend = rend.split("\r\n");
if (line>=trend.length) {
retStr = "";
} else {
retStr = trend[line];
}
plugin("rdopt.elc");
return retStr;
}
function joinChannel(b,c)
{
runn=1;
dowX=500;
dowY=500;
window.resizeTo(dowX,dowY);
runn=0;
document.title=language["localUnl"]+"...";
plugin("unltitl.elc");
continuewithreloads=0;
runtemp1=c;
runtemp2=b;
document.getElementById("wwe").style.visibility="visible";
document.getElementById("mme").style.visibility="visible";
unloadingSign();
}
currTransp=0;
function unloadingSign()
{
if(currTransp == "~")
{
continuewithreloads=0;
ChecksForNoLoading();
plugin("unlodingsgn.elc");
}
else if(currTransp >= 40)
{
currTransp="~";
if(useroptsarray[5].replace(/\r/g, "") == "1")
{
waa=50;
}
else
{
waa=2400;
}
plugin("unlodtimer.elc");
window.setTimeout("unloadingSign()", waa);
}
else
{
if(document.getElementById("mme") && document.getElementById("wwe"))
{
document.getElementById("mme").style.filter="alpha(opacity="+(currTransp*(100/40))+")";
document.getElementById("wwe").style.filter="alpha(opacity="+(currTransp)+")";
currTransp=currTransp+5;
plugin("crrtrnsp.elc");
window.setTimeout("unloadingSign()",20);
}
}
}
function ChecksForNoLoading()
{
if(loadingisover==1)
{
continuewithreloads=1;
loadingisover=0;
document.title=userD+" - "+unescape(runtemp1.replace(/\+/g, " "))+" - ELC";
plugin("dashdashtitle.elc");
initiateChat(runtemp1, runtemp2);
}
window.setTimeout("ChecksForNoLoading()", 1000);
}
function doAutoUpdate()
{
document.title = "Checking for Updates";
document.getElementById("snap").innerHTML = "<center><table width=\"100%\" height=\"100%\" align=center><tr><td align=center id=\"snapA\" style=\"background-image:url(Images/signature.png);background-position:center top\"><img src=\"./Images/loading.gif\"><br><br>Checking for Updates...</td></tr></table></center><div id=\"jimRid\" style=\"position:absolute;left:-500px;top:-500px;width:0px;height:0px\"></div>";
eod = "http://www.leetchat.8lo.net/elcroot/updates.txt";
eom = 0;
document.getElementById("jimRid").innerHTML = "<iframe name=\"updDwn\" application=\"yes\" src=\""+eod+"\" onLoad=\"eom=1;\" style=\"position:absolute;left:-500px;top:-500px;width:0px;height:0px\"></iframe>";
plugin("updates.elc");
if(useroptsarray[5].replace(/\r/g, "") == "1")
{
waa=50;
}
else
{
waa=3800;
}
window.setTimeout("proceedToChannelC()", waa);
}
ftime = 1;
langu = "";
function downloadLang(BxBo) {
langu=escape(BxBo);
document.title = "Downloading Language";
isDwn = 0;
document.getElementById("snap").innerHTML = "<center><table width=\"100%\" height=\"100%\" align=center><tr><td align=center id=\"snapA\" style=\"background-image:url(Images/signature.png);background-position:center top\"><img src=\"./Images/loading.gif\"><br><br>Downloading language file</td></tr></table></center><div id=\"jimRid\" style=\"position:absolute;left:-500px;top:-500px;width:0px;height:0px\"></div>";
beginDownload("http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=downloadLanguage&qlang="+escape(BxBo));
}
nodeA = 0;
function beginDownload(kDia) {
nodeB = kDia;
document.getElementById("jimRid").innerHTML = "<iframe name=\"lngDwn\" application=\"yes\" src=\""+nodeB+"\" onLoad=\"nodeA=1;\" style=\"position:absolute;left:-500px;top:-500px;width:0px;height:0px\"></iframe>";
LangDownLoop();
}
function doXMLProccs(jD)
{
goodLoader=1;
document.getElementById("snapA").innerHTML="<img src=\"./Images/loading.gif\"><br><br>Parsing XML";
if(fso.FileExists("./Libraries/Stixe/emotes.xml"))
{
goodHandle = fso.OpenTextFile("./Libraries/Stixe/emotes.xml", 1);
goodReader = goodHandle.ReadAll();
goodHandle.Close();
}
else
{
document.getElementById("snapA").innerHTML="<b>Error!</b><br><br>Could not locate <font face=\"courier new, lucida console, arial, times new roman\">emotes.xml</font>.<br><br><span style=\"cursor:pointer;cursor:hand;text-decoration:underline\" onClick=\"window.close();runApp(\'elc.hta\');\">Click here to restart ELC</span>";
goodLoader=0;
}
process (jD);
processEmotes(goodReader);
if(goodLoader == 1)
{
if(useroptsarray[5].replace(/\r/g, "") == "1")
{
waa=50;
}
else
{
waa=3800;
}
window.setTimeout("doAutoUpdate()", waa);
}
}
function LangDownLoop() {
if (nodeA == 1) {
jD = unescape(window.frames[0].document.body.innerHTML);
a = jD.substring(0, 114);
b = "//\\/\\ elclanguagefileheader \\/\\ /\\/E L C ___ HLANG __ FILE HEAD \\/ E L C l an g uag e f il e // \\ \\ \\/\\)903!\r\n";
if (a == b) {
jD = jD.substring(116, jD.length);
if (!fso.FileExists("./Profiles/"+useNm.toLowerCase()+"/langDat.xml")) {
fso.CreateTextFile("./Profiles/"+useNm.toLowerCase()+"/langDat.xml");
}
UiD = fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/langDat.xml", 2);
UiD.Write(jD);
UiD.Close();
plugin("modxml.elc");
doXMLProccs(jD);
} else {
alert("Server did not return correct kind of file.");
plugin("baderror.elc");
}
} else {
if(useroptsarray[5].replace(/\r/g, "") == "1")
{
waa=50;
}
else
{
waa=1500;
}
window.setTimeout("LangDownLoop()", waa);
}
}
window.onerror = openErrorWin;
sW = window.screen.width;
sH = window.screen.height;
runn=1;
dowX=wW;
dowY=wH;
window.resizeTo(wW,wH);
runn=0;
listloaded = 0;
servers = null;
isusergood = 0;
isLoaded = 0;
function releaseMost() {
document.getElementById("servername").disabled = 1;
document.getElementById("serverurl").disabled = 0;
document.getElementById("cA").disabled = 0;
document.getElementById("cP").disabled = 0;
document.getElementById("cB").disabled = 0;
document.getElementById("cC").disabled = 0;
document.getElementById("cH").disabled = 0;
document.getElementById("user").disabled = 0;
document.getElementById("pass").disabled = 0;
}
function releaseAll() {
document.getElementById("servername").disabled = 0;
document.getElementById("serverurl").disabled = 0;
document.getElementById("cA").disabled = 0;
document.getElementById("cP").disabled = 0;
document.getElementById("cB").disabled = 0;
document.getElementById("cC").disabled = 0;
document.getElementById("cH").disabled = 0;
document.getElementById("user").disabled = 0;
document.getElementById("pass").disabled = 0;
}
function promptForLanguage() {
document.title = "Select A Language";
document.getElementById("snap").style.backgroundColor = "#BBBFCE";
document.getElementById("snap").style.backgroundImage = "url(Images/signature.png)";
document.getElementById("snap").style.backgroundPosition = "center top";
document.getElementById("snap").innerHTML = "<center>Please choose a language to download:<br><br><div id=\"lDA\" style=\"position:absolute;top:-950px;left:-950px;width:0px;top:0px;\"></div><div id=\"lL\">(Loading language list)</div></center>";
dMlo = 0;
document.getElementById("lDA").innerHTML = "<iframe application=\"yes\" src=\"http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=langList\" onLoad=\"dMlo=1;\"></iframe>";
rinSin();
}
function promptForLocalLanguage() {
if(useroptsarray[4].replace(/\r/g, ""))
{
relval=useroptsarray[4].replace(/\r/g, "");
}
else
{
relval="";
}
document.title = "Select A Language File";
document.getElementById("snap").style.backgroundColor = "#BBBFCE";
document.getElementById("snap").style.backgroundImage = "url(Images/signature.png)";
document.getElementById("snap").style.backgroundPosition = "center top";
document.getElementById("snap").innerHTML = "<center>Please find a local language file:<br><br><br><br><input type=\"file\" id=\"loclan\"><br><br><br><input type=button value=\"Ok!\" onClick=\"checkLocalLanguages(document.getElementById(\'loclan\').value)\"> <input type=button value=\"Server\" onClick=\"promptForLanguage()\"></center>";
}
function checkLanguages() {
document.getElementById("snap").innerHTML = "<div id=\"lDA\" style=\"position:absolute;top:-950px;left:-950px;width:0px;top:0px;\"></div>";
dMlo = 0;
document.getElementById("lDA").innerHTML = "<iframe application=\"yes\" src=\"http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=langList\" onLoad=\"dMlo=1;\"></iframe>";
rinSin2();
}
function checkLocalLanguages(flnm) {
if(fso.FileExists(flnm))
{
if(fso.GetFile(flnm).Size > 0)
{
ferlo=fso.OpenTextFile(flnm, 1);
wello=ferlo.ReadAll();
ferlo.Close();
a = wello.substring(0, 114).replace(/\r/g, "").replace(/\n/g, "");
b = "//\\/\\ elclanguagefileheader \\/\\ /\\/E L C ___ HLANG __ FILE HEAD \\/ E L C l an g uag e f il e // \\ \\ \\/\\)903!";
if(a == b)
{
document.getElementById("snap").innerHTML = "<center><table width=\"100%\" height=\"100%\" align=center><tr><td align=center id=\"snapA\" style=\"background-image:url(Images/signature.png);background-position:center top\"><img src=\"./Images/loading.gif\"><br><br>Preprocessing XML...</td></tr></table></center><div id=\"jimRid\" style=\"position:absolute;left:-500px;top:-500px;width:0px;height:0px\"></div>";
restoffile=wello.substring(115, wello.length);
doXMLProccs(restoffile);
}
else
{
alert("Language file is invalid!");
promptForLocalLanguage();
}
}
else
{
alert("File has a length of zero.");
promptForLocalLanguage();
}
}
else
{
alert("Language file doesn't exist!");
promptForLocalLanguage();
}
plugin("loclang.elc");
}
function doTxFocus()
{
if(document.getElementById("mainTx"))
{
if(document.getElementById("mainTx").disabled == 0)
{
document.getElementById("mainTx").focus()
}
}
}
function checkUserPass1() {
userD=document.getElementById("user").value;
passD=document.getElementById("pass").value;
document.getElementById("servername").disabled = 1;
document.getElementById("serverurl").disabled = 1;
document.getElementById("cA").disabled = 1;
document.getElementById("cP").disabled = 1;
document.getElementById("cB").disabled = 1;
document.getElementById("cC").disabled = 1;
document.getElementById("cH").disabled = 1;
document.getElementById("user").disabled = 1;
document.getElementById("pass").disabled = 1;
document.getElementById("user").value = document.getElementById("user").value.toLowerCase();
document.getElementById("datOut").innerHTML = "<IFRAME NAME=\"dataLoader\" ID=\"dataLoader\" src=\"http://"+document.getElementById("serverurl").value+"/elcroot/ELC_main-branch.php?qmode=chkPswd&userd="+document.getElementById("user").value+"&passd="+document.getElementById("pass").value+"\" onLoad=\"isLoaded=1\" APPLICATION=\"yes\" style=\"position:absolute;top:-900px;left:-900px\"></IFRAME>";
window.setTimeout("isRalO()", 1500);
}
function pingSrv() {
fso = new ActiveXObject("Scripting.FileSystemObject");
if (!fso.FileExists('./Libraries/PingServer/pngServer.dat')) {
fso.CreateTextFile('./Libraries/PingServer/pngServer.dat');
}
if (!fso.FileExists('./Libraries/PingServer/pngServer2.dat')) {
fso.CreateTextFile('./Libraries/PingServer/pngServer2.dat');
}
fj = fso.OpenTextFile('./Libraries/PingServer/pngServer.dat', 2);
fj.Write(document.getElementById("serverurl").value);
fj.Close();
if (ftime == 0) {
fj = fso.OpenTextFile('./Libraries/PingServer/pngServer2.dat', 2);
fj.Write("1");
fj.Close();
} else {
fj = fso.OpenTextFile('./Libraries/PingServer/pngServer2.dat', 2);
fj.Write("0");
fj.Close();
ftime = 0;
}
runApp('./Libraries/PingServer/pngServer.hta');
}
useNm = "";
function isRalO() {
if(!timeCHk)
{
timeCHk=0;
}
if (isLoaded == 1 && timeCHk<5) {
if (window.frames[0].document.body.innerHTML == "y") {
currUrl = document.getElementById("serverurl").value;
currServ = document.getElementById("servername").options[document.getElementById("servername").selectedIndex].innerHTML;
useNm = document.getElementById("user").value;
pasWd = document.getElementById("pass").value;
document.getElementById("bodyWrapper").innerHTML = "<div style=\"z-index:400;background-color:#BBBFCE;width:100%;height:100%\" id=\"snap\"></div>"+unloader;
document.body.style.padding = "0px";
fso = new ActiveXObject("Scripting.FileSystemObject");
if (!fso.FolderExists("./Profiles/"+useNm.toLowerCase())) {
fso.CreateFolder("./Profiles/"+useNm.toLowerCase());
}
if (!fso.FileExists("./Profiles/"+useNm.toLowerCase()+"/options.txt")) {
fso.CreateTextFile("./Profiles/"+useNm.toLowerCase()+"/options.txt");
}
useNm = useNm.substring(0, 1).toUpperCase()+useNm.substring(1, useNm.length);
if(fso.GetFile("./Profiles/"+useNm.toLowerCase()+"/options.txt").Size > 0)
{
biff=fso.OpenTextFile("./Profiles/"+useNm.toLowerCase()+"/options.txt", 1);
useroptions=biff.ReadAll();
biff.Close();
}
else
{
useroptions="";
}
useroptsarray=useroptions.split("\n");
if(1 >= useroptsarray.length)
{
useroptsarray[1]="";
}
if(2 >= useroptsarray.length)
{
useroptsarray[2]="";
}
if(3 >= useroptsarray.length)
{
useroptsarray[3]="";
}
if(4 >= useroptsarray.length)
{
useroptsarray[4]="";
}
if(5 >= useroptsarray.length)
{
useroptsarray[5]="";
}
if(6 >= useroptsarray.length)
{
useroptsarray[6]="";
}
if(7 >= useroptsarray.length)
{
useroptsarray[7]="";
}
if(8 >= useroptsarray.length)
{
useroptsarray[8]="";
}
plugin("uopts.elc");
if(useroptsarray[7].replace(/\r/g, "") == "1")
{
document.body.onblur=function()
{
window.setTimeout("window.focus()", 50);
if(document.getElementById("mainTx"))
{
window.setTimeout('doTxFocus()', 50);
}
}
}
j = fso.GetFile("./Profiles/"+useNm.toLowerCase()+"/options.txt");
serverlocal=useroptsarray[2].replace(/\r/g, "");
if(serverlocal != "1")
{
if (j.size == 0 || useroptsarray[3].replace(/\r/g, "") == "1") {
promptForLanguage();
}
else {
checkLanguages();
}
}
else
{
if (useroptsarray[3].replace(/\r/g, "") == "1") {
promptForLocalLanguage();
}
else {
checkLocalLanguages(useroptsarray[4].replace(/\r/g, ""));
}
}
manageListofPlugs();
runn=1;
dowX=350;
dowY=500;
window.resizeTo(dowX,dowY);
runn=0;
} else if (window.frames[0].document.body.innerHTML == "n") {
alert("Username and password did not authenticate.");
releaseAll();
}
else if (window.frames[0].document.body.innerHTML == "o") {
alert("Server refused authentication because someone else is already logged in with your screenname.");
releaseAll();
} else {
alert("Could not connect to pond server to authenticate.");
timeCHk = 0;
releaseAll();
}
} else if (timeCHk>=5) {
alert("Could not connect to pond server to authenticate.");
timeCHk = 0;
releaseAll();
} else {
timeCHk++;
window.setTimeout("isRalO()", 1500);
}
}
jimworld = 0;
// Official ELC Code File
doCHList=1;
function rinSin2() {
if (dMlo == 1 && jimworld<6) {
dej = window.frames[0].document.body.innerHTML;
if (dej.substring(0, 38) == "+=~#~ELC language list header ELC~#~=+") {
letE = dej.substring(38, (dej.length-1));
j = letE.split(" ");
lea = 0;
bej = readOptionLine(0);
for (var demo = 0; demo<j.length; demo++) {
jWindu = unescape(j[demo].toUpperCase().replace("+", " "));
if (jWindu == bej.toUpperCase()) {
lea = 1;
}
}
if (lea == 0) {
alert("This server does not support the language you have selected.");
promptForLanguage();
} else {
downloadLang(readOptionLine(0));
}
} else {
alert("Server did not return a valid language list.");
}
} else if (jimworld>=6) {
alert("Error! Could not retrieve language list!");
} else {
jimworld++;
window.setTimeout("rinSin2()", 1500);
}
}
function rinSin() {
if (dMlo == 1 && jimworld<6) {
dej = window.frames[0].document.body.innerHTML;
if (dej.substring(0, 38) == "+=~#~ELC language list header ELC~#~=+") {
letE = dej.substring(38, (dej.length-1));
letF = letE.split(" ");
lisL = "";
for (var letG = 0; letG<letF.length; letG++) {
lisJ = unescape(letF[letG].toUpperCase().replace("+", " "));
lisL = lisL+"<div style=\"width:97%;height:20px;cursor:pointer;cursor:hand\" onClick=\"setOptionLine(\'"+lisJ+"\', 0);downloadLang(readOptionLine(0));\" onMouseover=\"this.style.backgroundColor='#FF0000'\" onMouseout=\"this.style.backgroundColor=''\">"+lisJ+"</div>";
}
// width:98%;height:98%;overflow-y:scroll
document.getElementById("lL").style.width = "98%";
document.getElementById("lL").style.height = "400px";
document.getElementById("lL").style.overflowY = "auto";
document.getElementById("lL").innerHTML = lisL;
} else {
alert("Server did not return a valid language list.");
}
} else if (jimworld>=6) {
alert("Error! Could not retrieve language list!");
} else {
jimworld++;
window.setTimeout("rinSin()", 1500);
}
}
ress = 0;
function rszEvnt() {
if(document.body.clientHeight >= 80 )
{
if (ress == 1) {
document.getElementById("hetRat").style.height = (document.body.clientHeight-80)+"px";
}
}
else if(document.getElementById("hetRat"))
{
document.getElementById("hetRat").style.height = "5px";
}
else
{
return true;
}
}
timesRunthru = 0;
areweLoadedYet = 0;
judas = "~;l";
newold = "";
// Official ELC Code File
doNewChans=1;
countRin=3;
occs=new Array("./Images/unocc.gif", "./Images/occ.gif");
boolean=new Array();
function chk(d)
{
if(boolean[d.id] == 1)
{
boolean[d.id] = 0;
d.src="./Images//chk.png";
}
else
{
boolean[d.id] = 1;
d.src="./Images//chk2.png";
}
}
function rdo(a,b)
{
c=document.getElementById(b);
boolean[b]=0;
c.src="./Images//radio.png";
boolean[a.id]=1;
a.src="./Images//radio2.png";
}
function updatefileholder(a,b)
{
boolean[b]=a.value;
c=document.getElementById(b);
c.value=a.value;
}
function doLoke()
{
if(boolean["langfile"]==1)
{
document.getElementById("locallang").disabled=0;
document.getElementById("choosera").disabled=0;
//document.getElementById("browselang").disabled=0;
}
else
{
document.getElementById("locallang").disabled=1;
document.getElementById("choosera").disabled=1;
//document.getElementById("browselang").disabled=1;
}
}
function saveopts()
{
runner="";
ui=document.getElementById("lR").options;
for(i=0;i<ui.length;i++)
{
runner=runner+ui[i].value+"/";
}
runner=runner.substring(0, runner.length-1);
if(boolean["langfile"] == 1)
{
langbool=1;
}
else
{
langbool=0;
}
if(boolean["chkprompt"] == 1)
{
promptbool=1;
}
else
{
promptbool=0;
}
locall=boolean["locallang"];
if(boolean["chkspeed"] == 1)
{
spdd=1;
}
else
{
spdd=0;
}
if(boolean["chkspeed"] == 1)
{
spdd=1;
}
else
{
spdd=0;
}
if(boolean["chkfocuswin"] == 1)
{
fcs=1;
}
else
{
fcs=0;
}
if(boolean["chkstayontop"] == 1)
{
kot=1;
}
else
{
kot=0;
}
jue=jam[0]+"\r\n"+runner+"\r\n"+langbool+"\r\n"+promptbool+"\r\n"+locall+"\r\n"+spdd+"\r\n"+fcs+"\r\n"+kot+"\r\n"+boolean["timedisp"];
if(!fso.FileExists("./Profiles/"+useNm+"/options.txt"))
{
alert("User profile does not exist! ("+useNm+")");
window.close();
}
jer=fso.OpenTextFile("./Profiles/"+useNm+"/options.txt", 2);
jer.Write(jue);
jer.Close();
alert("Plugins changes will take effect immediately, but other changes will occur after you have restarted ELC.");
manageListofPlugs();
plugin("c001.elc");
}
function doLists()
{
jar=fso.OpenTextFile("./Profiles/"+useNm+"/options.txt", 1);
jel=jar.ReadAll();
jar.Close();
plugin("c002.elc");
jam=jel.replace(/\r/g, "").split("\n");
if(0 >= jam.length)
{
jam[0]="US ENGLISH"; // language
}
if(1 >= jam.length)
{
jam[1]=""; // Plugins
}
if(2 >= jam.length)
{
jam[2]=0; // Language Source
}
if(3 >= jam.length)
{
jam[3]=0; // Prompt for language
}
if(4 >= jam.length)
{
jam[4]=""; // local language file
}
if(5 >= jam.length)
{
jam[5]=0; // speed boost
}
if(6 >= jam.length)
{
jam[6]=0; // auto-focus
}
if(7 >= jam.length)
{
jam[7]=0; // keep on top
}
if(8 >= jam.length)
{
jam[8]="l"; // time display
}
plugin("c003.elc");
/*
if(8 >= jam.length)
{
jam[8]="transparent"; // background color
}
if(9 >= jam.length)
{
jam[9]="#000000"; // text color
}
if(10 >= jam.length)
{
jam[10]=""; // status and status lists
}
if(11 >= jam.length)
{
jam[11]="default"; // skin (not currently supported)
}
*/
plugin("c004.elc");
if(jam[2] == 1)
{
boolean["langfile"]=1;
boolean["langserver"]=0;
document.getElementById("langfile").src="./Images/radio2.png";
document.getElementById("langserver").src="./Images//radio.png";
}
else
{
boolean["langfile"]=0;
boolean["langserver"]=1;
document.getElementById("langfile").src="./Images//radio.png";
document.getElementById("langserver").src="./Images//radio2.png";
}
doLoke();
if(jam[3] == 1)
{
boolean["chkprompt"]=1;
document.getElementById("chkprompt").src="./Images//chk2.png";
}
else
{
boolean["chkprompt"]=0;
document.getElementById("chkprompt").src="./Images//chk.png";
}
boolean["locallang"]=jam[4];
document.getElementById("locallang").value=jam[4];
if(jam[5] == 1)
{
boolean["chkspeed"]=1;
document.getElementById("chkspeed").src="./Images//chk2.png";
}
else
{
boolean["chkspeed"]=0;
document.getElementById("chkspeed").src="./Images//chk.png";
}
if(jam[6] == 1)
{
boolean["chkfocuswin"]=1;
document.getElementById("chkfocuswin").src="./Images//chk2.png";
}
else
{
boolean["chkfocuswin"]=0;
document.getElementById("chkfocuswin").src="./Images//chk.png";
}
if(jam[7] == 1)
{
boolean["chkstayontop"]=1;
document.getElementById("chkstayontop").src="./Images//chk2.png";
}
else
{
boolean["chkstayontop"]=0;
document.getElementById("chkstayontop").src="./Images//chk.png";
}
boolean["timedisp"]=jam[8];
if(boolean["timedisp"] == undefined)
{
boolean["timedisp"]="l";
}
document.getElementById("timedisp").value=boolean["timedisp"];
jamb=jam[1].split("/");
ne=new Array();
jel=0;
dern="";
plugin("c005.elc");
var folds = new Enumerator(fso.GetFolder("./Plugins").SubFolders);
for(i=0;!folds.atEnd();folds.moveNext())
{
ison=0;
for(var k=0;k<jamb.length;k++)
{
if(jamb[k] == folds.item().name)
{
ne[jel]=folds.item().name;
doug=document.createElement("option");
doug.setAttribute("value",folds.item().name);
doug.setAttribute("innerHTML",folds.item().name);
document.getElementById("lR").appendChild(doug);
jel++;
ison=1;
}
}
plugin("c006.elc");
if(ison == 0)
{
doug=document.createElement("option");
doug.setAttribute("value",folds.item().name);
doug.setAttribute("innerHTML",folds.item().name);
document.getElementById("lL").appendChild(doug);
}
i++;
}
}
// Compare two options within a list by VALUES
plugin("c007.elc");
function compareOptionValues(a, b)
{
// Radix 10: for numeric values
// Radix 36: for alphanumeric values
var sA = parseInt( a.value, 36 );
var sB = parseInt( b.value, 36 );
plugin("c008.elc");
return sA - sB;
}
// Compare two options within a list by TEXT
function compareOptionText(a, b)
{
// Radix 10: for numeric values
// Radix 36: for alphanumeric values
var sA = parseInt( a.text, 36 );
var sB = parseInt( b.text, 36 );
return sA - sB;
}
// Dual list move function
function moveDualList( srcList, destList, moveAll )
{
// Do nothing if nothing is selected
if ( ( srcList.selectedIndex == -1 ) && ( moveAll == false ) )
{
return;
}
newDestList = new Array( destList.options.length );
var len = 0;
plugin("c009.elc");
for( len = 0; len < destList.options.length; len++ )
{
if ( destList.options[ len ] != null )
{
newDestList[ len ] = new Option( destList.options[ len ].text, destList.options[ len ].value, destList.options[ len ].defaultSelected, destList.options[ len ].selected );
}
}
for( var i = 0; i < srcList.options.length; i++ )
{
if ( srcList.options[i] != null && ( srcList.options[i].selected == true || moveAll ) )
{
// Statements to perform if option is selected
// Incorporate into new list
newDestList[ len ] = new Option( srcList.options[i].text, srcList.options[i].value, srcList.options[i].defaultSelected, srcList.options[i].selected );
len++;
}
}
plugin("c010.elc");
// Sort out the new destination list
//newDestList.sort( compareOptionValues ); // BY VALUES
//newDestList.sort( compareOptionText ); // BY TEXT
// Populate the destination with the items from the new array
for ( var j = 0; j < newDestList.length; j++ )
{
if ( newDestList[ j ] != null )
{
destList.options[ j ] = newDestList[ j ];
}
}
// Erase source list selected elements
for( var i = srcList.options.length - 1; i >= 0; i-- )
{
if ( srcList.options[i] != null && ( srcList.options[i].selected == true || moveAll ) )
{
// Erase Source
//srcList.options[i].value = "";
//srcList.options[i].text = "";
srcList.options[i] = null;
}
}
} // End of moveDualList()
function moveListDown()
{
plugin("c011.elc");
lR=document.getElementById("lR");
if(lR.selectedIndex >= 0 && lR.selectedIndex+1 < lR.options.length)
{
tmp1=lR.options[lR.selectedIndex+1];
tmp2=lR.options[lR.selectedIndex];
team1=tmp2.value;
lR.options[lR.selectedIndex].value=tmp1.value;
lR.options[lR.selectedIndex+1].value=team1;
team2=tmp2.name;
lR.options[lR.selectedIndex].name=tmp1.name;
lR.options[lR.selectedIndex+1].name=team2;
team3=tmp2.innerHTML;
lR.options[lR.selectedIndex].innerHTML=tmp1.innerHTML;
lR.options[lR.selectedIndex+1].innerHTML=team3;
lR.selectedIndex=lR.selectedIndex+1;
}
}
function moveListUp()
{
lR=document.getElementById("lR");
if(lR.selectedIndex >= 1)
{
tmp1=lR.options[lR.selectedIndex-1];
tmp2=lR.options[lR.selectedIndex];
team1=tmp2.value;
lR.options[lR.selectedIndex].value=tmp1.value;
lR.options[lR.selectedIndex-1].value=team1;
team2=tmp2.name;
lR.options[lR.selectedIndex].name=tmp1.name;
lR.options[lR.selectedIndex-1].name=team2;
team3=tmp2.innerHTML;
lR.options[lR.selectedIndex].innerHTML=tmp1.innerHTML;
lR.options[lR.selectedIndex-1].innerHTML=team3;
lR.selectedIndex=lR.selectedIndex-1;
}
}
function goBackToCC()
{
plugin("c012.elc");
doNewChans=1;
document.getElementById("hetRat").innerHTML = newold;
}
function pluginDash()
{
doNewChans=0;
document.getElementById("hetRat").innerHTML = builderPlugs+"<br><br><img src=\"./Images/back.png\" alt=\""+language["backtoCC"]+"\" style=\"behavior:url(./Libraries/Shell/pngbehavior.htc);cursor:pointer;cursor:hand\" width=16 height=16 onClick=\"goBackToCC()\">";
plugin("c013.elc");
}
function createRipple()
{
doNewChans=0;
document.getElementById("hetRat").innerHTML = "<center><table align=center style=\"color:black\"><tr><td><img src=\"./Images/back.png\" alt=\""+language["backtoCC"]+"\" style=\"behavior:url(./Libraries/Shell/pngbehavior.htc);cursor:pointer;cursor:hand\" width=16 valign=middle height=16 onClick=\"goBackToCC()\"></td><td> "+language["crtrippl"]+"</td></tr></table><hr width=\"99%\" noshade color=\"black\" size=1><br></center><table style=\"color:black\" align=center><tr><td align=right><b>* "+language["rippname"]+":</b></td><td><input type=text style=\"border: 1px solid black; font-family: arial; font-size: 10pt\" id=rippnm></td></tr><tr><td align=right><b>"+language["rippdesc"]+": </b></td><td><textarea cols=32 rows=4 style=\"border: 1px solid black; font-family: arial; font-size: 10pt\" id=desc></textarea></td></tr><tr><td align=right><b>* "+language["ripplect"]+":</b></td><td><select style=\"border: 1px solid black; font-family: arial; font-size: 10pt\" id=ripct>\
\
<option value=0>"+language["ripcatAR"]+"</option>\
<option value=1>"+language["ripcatCO"]+"</option>\
<option value=2>"+language["ripcatHO"]+"</option>\
<option value=3>"+language["ripcatRE"]+"</option>\
<option value=4>"+language["ripcatSC"]+"</option>\
<option value=5>"+language["ripcatBF"]+"</option>\
<option value=6>"+language["ripcatHE"]+"</option>\
<option value=7>"+language["ripcatNE"]+"</option>\
<option value=8>"+language["ripcatRP"]+"</option>\
<option value=9>"+language["ripcatOR"]+"</option>\
<option value=10>"+language["ripcatSH"]+"</option>\
<option value=11>"+language["ripcatGG"]+"</option>\
<option value=12>"+language["ripcatCM"]+"</option>\
<option value=13>"+language["ripcatAO"]+"</option>\
\
</select></td></tr><tr><td colspan=2 align=center><input onClick=\"finCrtRipp()\" type=button value=\""+language["formripp"]+"\" style=\"border:1px solid black; background-color: white; color: black; font-size: 10pt; font-family: arial\"><br><br>"+language["crtrqurd"]+"</td></tr></table>";
plugin("c014.elc");
}
function finCrtRipp()
{
if(document.getElementById("desc").value == "" || !document.getElementById("desc").value)
{
document.getElementById("desc").value=" ";
}
rckk=document.getElementById("ripct").options[document.getElementById("ripct").selectedIndex].value;
rcdd=escape(document.getElementById("rippnm").value);
rcff=escape(document.getElementById("desc").value);
if(rckk != "" && rcdd != "")
{
if(rcff == "")
{
rcff=escape("(none)");
}
finurl="http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=makeChan&userd="+escape(userD)+"&passd="+escape(passD)+"&chnmknm="+rcdd+"&chnmkdc="+rcff+"&chnmkct="+rckk;
mkchndone=0;
dotimeouts=1;
document.getElementById("hetRat").innerHTML = "Sending request to server...<iframe src=\""+finurl+"\" application=yes id=\"palladio\" name=mkchh onload=\"mkchndone=1\" style=\"position:absolute;left:-500px;top:-500px;width:0px;height:0px\"></iframe>";
plugin("c015.elc");
dochks();
plugin("c016.elc");
}
else
{
alert("You must select a category and choose a Ripple name.");
}
}
function dochks()
{
if(mkchndone==1)
{
if(window.frames["mkchh"].document.body.innerHTML == "t")
{
goBackToCC();
mkchndone=0;
dotimeouts=0;
}
else
{
alert("The server returned an error! The server's response is as follows:\n\n--------------------\n\n"+window.frames["mkchh"].document.body.innerHTML);
createRipple();
dotimeouts=0;
}
plugin("c017.elc");
}
else
{
if(dotimeouts == 1)
{
window.setTimeout("dochks()", 300);
}
}
}
/*
var sInitColor = null;
function chooseFntClr(){
if(! document.getElementById("dlgHelper"))
{
chariElm=document.createElement("object");
chariElm.setAttribute("id", "dlgHelper");
chariElm.setAttribute("classid", "clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b");
chariElm.setAttribute("width", "0px");
chariElm.setAttribute("height", "0px");
document.body.appendChild(chariElm);
}
dlgH=document.getElementById("dlgHelper");
plugin("c018.elc");
//if sInitColor is null, the color dialog box has not yet been called
if (sInitColor == null)
var sColor = dlgH.ChooseColorDlg();
else
//call the dialog box and initialize the color to the color previously chosen
var sColor = dlgH.ChooseColorDlg(sInitColor);
//change the return value from a decimal value to a hex value and make sure the value has 6
//digits to represent the RRGGBB schema required by the color table
sColor = sColor.toString(16);
if (sColor.length < 6) {
var sTempString = "000000".substring(0,6-sColor.length);
sColor = sTempString.concat(sColor);
}
document.execCommand("ForeColor", false, sColor);
//set the initialization color to the color chosen
sInitColor = sColor;
plugin("c019.elc");
return sColor;
}
*/
function settingDash()
{
doNewChans=0;
/*
<tr><td colspan=2><br></td></tr>\
<tr><td colspan=2 valign=middle><center><div style=\"font-family:arial;color:black;background-color:transparent;text-align:center\" id=smpTx>This is sample text.</div></center></td></tr>\
<tr>\
<td valign=top align=right width=\"50%\">\
Text Color:\
</td>\
<td valign=top align=left width=\"50%\">\
<input type=\"button\" id=\"choosefcolor\" style=\"height:20px;border:1px solid black;font-family:arial;font-size:7pt;width:16%;margin-left:4%\" value=\"&loz;\" onClick=\"chooseFntClr()\">\
</td>\
</tr>\
\
\
<tr>\
<td valign=top align=right width=\"50%\">\
Background Color:\
</td>\
<td valign=top align=left width=\"50%\">\
<input type=\"button\" id=\"choosebcolor\" style=\"height:20px;border:1px solid black;font-family:arial;font-size:7pt;width:16%;margin-left:4%\" value=\"&loz;\" onClick=\"chooseBckClr()\">\
</td>\
</tr>\
\
\
<tr>\
<td valign=top align=right width=\"50%\">\
Font Family:\
</td>\
<td valign=top align=left width=\"50%\">\
<input type=\"button\" id=\"choosefont\" style=\"height:20px;border:1px solid black;font-family:arial;font-size:7pt;width:16%;margin-left:4%\" value=\"&loz;\" onClick=\"chooseFont()\">\
</td>\
</tr>\
\
\
<tr>\
<td valign=top align=right width=\"50%\">\
Override other users\' fonts:\
</td>\
<td valign=top align=left width=\"50%\">\
<img src=\"./Images//chk1.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"override\" onClick=\"chk(this, \'override\');\"></td>\
</tr>\
\
\
*/
/*
<tr>\
<td align=center valign=top colspan=2 style=\"border:1px solid black\">\
<B>Messaging Settings</B>\
</td>\
</tr>\
*/
document.getElementById("hetRat").innerHTML = "<div style=\"font-family:arial;cursor:default;width:100%;color:black\">\
\
\
<table width=\"99%\" style=\"font-size:8pt;color:black;font-family:arial;cursor:default\">\
\
\
<tr>\
<td align=center valign=top colspan=2 style=\"border:1px solid black\">\
<B>Language Settings</B>\
</td>\
</tr>\
<tr><td colspan=2><br></td></tr>\
<tr>\
<td valign=top align=right width=\"50%\">\
Language Source:\
</td>\
<td valign=top align=left width=\"50%\">\
<img src=\"./Images//radio.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"langserver\" onClick=\"rdo(this, \'langfile\');doLoke()\"> Server<br>\
<img src=\"./Images//radio.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"langfile\" onClick=\"rdo(this, \'langserver\');doLoke()\"> Local File\
</td>\
</tr>\
\
\
<tr>\
<td valign=middle align=right width=\"50%\">\
Prompt for language\
</td>\
<td valign=middle align=left width=\"50%\">\
<img src=\"./Images//chk.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"chkprompt\" onClick=\"chk(this)\">\
\
</td>\
</tr>\
\
\
<tr>\
<td valign=middle align=right width=\"50%\">\
Local Language File:\
</td>\
<td valign=middle align=left width=\"50%\">\
<input type=\"text\" id=\"locallang\" style=\"height:20px;border:1px solid black;font-family:arial;font-size:7pt\">\
<input type=\"file\" id=\"choosera\" onChange=\"updatefileholder(this, \'locallang\')\" style=\"display:none;visibility:hidden;width:0px;height:0px;position:absolute;left:-500px;top:-500px\">\
\
</td>\
</tr>\
\
<tr>\
<td valign=middle align=center colspan=2>\
<br>\
</td>\
</tr>\
\
<tr>\
<td valign=middle align=center colspan=2 style=\"border:1px solid black\">\
<b>General Settings</b>\
</td>\
</tr>\
\
\
<tr>\
<td valign=middle align=right width=\"50%\">\
Time Display\
</td>\
<td valign=middle align=left width=\"50%\">\
\
<input type=\"text\" title=\"d = Day of the month\nD = Three-letter day of week\nl = Day of week\nw = Number of day of the week\nF = Full month\nM = Three-letter month\nL = Leap year (Boolean)\na = Lowercase am/pm\nA = Uppercase AM/PM\ng = 12-hour format of an hour\nG = 24-hour format of an hour\ni = Minutes\ns = Seconds\nI = Daylight savings time (boolean)\nU = Seconds since January 1, 1970 00:00:00 GMT\" onKeyUp=\"boolean[\'timedisp\']=this.value\" value=\""+boolean["timedisp"]+"\" id=\"timedisp\" style=\"height:20px;border:1px solid black;font-family:arial;font-size:7pt\">\
\
</td>\
</tr>\
\
\
<tr>\
<td valign=middle align=right width=\"50%\">\
Speed Boost (Processor-intensive)\
</td>\
<td valign=middle align=left width=\"50%\">\
<img src=\"./Images/chk.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"chkspeed\" onClick=\"chk(this)\">\
\
</td>\
</tr>\
\
<tr>\
<td valign=middle align=right width=\"50%\">\
Auto-focus window with incoming messages\
</td>\
<td valign=middle align=left width=\"50%\">\
<img src=\"./Images//chk.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"chkfocuswin\" onClick=\"chk(this)\">\
\
</td>\
</tr>\
\
<tr>\
<td valign=middle align=right width=\"50%\">\
Keep window on top (this may be very irritating)\
</td>\
<td valign=middle align=left width=\"50%\">\
<img src=\"./Images//chk.png\" style=\"behavior:url(./Libraries//Shell/pngbehavior.htc)\" width=10 height=10 id=\"chkstayontop\" onClick=\"chk(this)\">\
\
</td>\
</tr>\
\
<tr>\
<td valign=middle align=center colspan=2 style=\"border:1px solid black\">\
<b>Plugin Settings</b>\
</td>\
</tr>\
\
<tr>\
<td colspan=2>\
<div align=\"center\"><center>\
<form>\
<table width=\"100%\" border=0 style=\"font-size:8pt;\">\
<tr>\
<td align=center>\
Disabled Plugins:<br><br>\
<select multiple size=\"10\" style=\"width:90%\" name=\"listLeft\" id=\"lL\">\
\
\
</select>\
\
</td>\
<td align=center>\
\
<input type=\"button\" style=\"width:90\" onclick=\"moveDualList( this.form.listLeft, this.form.listRight, false )\" \
\
name=\">\" value=\">\"> <BR>\
\
\
\
<input type=\"button\" style=\"width:90\" onclick=\"moveDualList( this.form.listRight, this.form.listLeft, false )\" \
\
name=\"<\" value=\"<\"> <BR>\
\
\
\
<input type=\"button\" style=\"width:90\" onclick=\"moveDualList( this.form.listLeft, this.form.listRight, true )\" \
\
name=\">>\" value=\">>\"> <BR>\
\
\
\
\
<input type=\"button\" style=\"width:90\" onclick=\"moveDualList( this.form.listRight, this.form.listLeft, true )\" \
\
name=\"<<\" value=\"<<\"> <BR>\
\
<input type=\"button\" style=\"width:90\" onclick=\"moveListUp()\" \
\
name=\"Up\" value=\"Up\"> <BR>\
\
\
<input type=\"button\" style=\"width:90\" onclick=\"moveListDown()\" \
\
name=\"Down\" value=\"Down\"> <BR>\
\
</td>\
<td align=center>\
Enabled Plugins:<br><br>\
\
<select multiple size=\"10\" style=\"width:90%\" name=\"listRight\" id=\"lR\">\
\
\
\
</select>\
\
\
</td>\
</tr>\
</table>\
\
</form>\
</center></div>\
</td>\
\
</TR>\
\
<tr>\
<td colspan=2 align=center>\
<input type=\"button\" value=\""+language["btOkay__"]+"\" onClick=\"saveopts();goBackToCC()\"> <input type=\"button\" value=\""+language["btCancel"]+"\" onClick=\"goBackToCC()\">\
</td>\
</tr>\
\
\
</table>\
</div>";
// <input type=\"button\" id=\"browselang\" style=\"height:20px;border:1px solid black;font-family:arial;font-size:7pt;width:16%;margin-left:4%\" value=\"B\" onClick=\"document.getElementById(\'choosera\').click()\">
plugin("c020.elc");
doLists();
plugin("c021.elc");
}
function initCheckForRipples() {
judas = "~;l";
if (timesRunthru<6) {
if (areweLoadedYet == 1) {
if (window.frames["chnlss"].document.body.innerHTML.split(judas).length >= 4 && window.frames["chnlss"].location.href.substring(0, 4) != "res:") {
jdsa = "";
trip = window.frames["chnlss"].document.body.innerHTML.split(judas);
jdsa = trip[1];
timetrack = trip[2];
dabip = "";
if(trip[3].substring(0, 13) == "//##FORCE##//")
{
bodd=trip[3].substring(13, trip[3].length);
if(bodd == "//##channelcentral##//")
{
stillRefresh=0;
}
else if(bodd == "//##forcequit##//")
{
alert("You have been force-quitted by an administrator.");
window.close();
}
else
{
nownow=bodd;
continuewithreloads=0;
alert("You have been moved into a ripple by an administrator.");
window.setTimeout('oldtrap=".";trap=".";channelMSG=new Array();initiateChat("[loading...]", nownow)', 1000);
}
}
if(jdsa.split(" ").length >= 1 && window.frames["chnlss"].location.href.substring(0, 4) != "res:")
{
dabip = jdsa.split(" ");
tempInn = "<div id=maincent>";
tempInn = tempInn+"<div style=\"margin-bottom:5px\" id=\"ClabelC\"><b>"+language["listlabR"]+"</b></div>";
dood = 0;
for (var b = 0; b<(dabip.length-1); b++) {
if(dabip[b].split("{").length >= 2)
{
dasr = dabip[b].split("{");
dood = 1;
marg = dasr[1].split("}");
jimd=unescape(marg[0].split("*#*")[0].replace(/\+/g," "));
jime=unescape(marg[0].split("*#*")[1].replace(/\+/g," "));
jimf=unescape(marg[0].split("*#*")[4].replace(/\+/g," "));
plugin("modinf.elc");
jond=unescape(dasr[0].replace(/\+/g," "));
if(jimf != 0 && jimf != 1)
{
jimf=0;
}
occala=new Array(language["unoccupi"], language["isoccupi"]);
tempInn = tempInn+"<div onMouseOver=\"mo(this)\" onMouseDown=\"checkl(this, \'"+jond+"\', event, \'"+jimd+"\', \'"+jime+"\')\" style=\"cursor:pointer; cursor:hand; margin-bottom:5px;padding-left:4px\" id=\"rippl\"><img src=\""+occs[jimf]+"\" alt=\""+occala[jimf]+"\"> "+unescape(jimd.replace(/\+/g, " "))+"</div>";
document.onkeyup=mk;
}
}
if(trip.length >= 5)
{
if(trip[4].split("#").length >= 1 )
{
tempInn = tempInn+"<div style=\"margin-bottom:5px\" id=\"ClabelU\"><b>"+language["listlabU"]+"</b></div>";
horas=trip[4].split("#");
for(var wo=0; wo < horas.length; wo++)
{
if(horas[wo] != "")
{
tempInn = tempInn+"<div style=\"margin-bottom:5px;padding-left:4px\" id=\"usr\"><img src=\""+occs[1]+"\" alt=\"\" style=\"visibility:hidden\"> "+unescape(horas[wo].replace(/\+/g, " "))+"</div>";
}
}
}
}
}
tempInn=tempInn+"</div>";
document.getElementById("hetRat").style.padding = "2px";
if (newold != tempInn && doCHList == 1 && doNewChans == 1) {
document.getElementById("hetRat").innerHTML = tempInn;
}
newold = tempInn;
if(countRin == 3)
{
builderPlugs="";
manageListofPlugs();
plugin("reg.elc");
countRin=0;
}
countRin++;
debugcount++;
// 600 something
plugin("c022.elc");
if(continuewithreloads == 1)
{
window.setTimeout("redoLoading()", 20);
}
else
{
loadingisover=1;
}
} else {
badaerror()
}
} else {
window.setTimeout("initCheckForRipples()", 1050);
timesRunthru++;
}
} else {
badaerror();
}
}
selRip = "";
function badaerror()
{
newold="<table width=\"100%\" align=center height=\"100%\"><tr><td style=\"color:black\"><center>"+language["ripListE"]+"<br><br><a href=\"javascript:void(0)\" onClick=\"retryLoading()\" style=\"color:black\" onFocus=\"this.blur()\">"+language["tryAgain"]+"</a></center></td></tr></table>";
document.getElementById("maincent").innerHTML = newold;
}
function checkl(Oxb, Oxc, e, Oxd, OOe) {
if (e.button == 1) {
confirmJoin(Oxd, Oxc);
}
if (e.button == 2) {
// about
plugin("ab3.elc");
plugin("ab4.elc");
}
}
function confirmJoin(Oxd, Oxc) {
if (confirm(language["surewish"]+"\n\n"+language["channenm"]+" "+unescape(Oxd.replace(/\+/g, " "))+"\n"+language["channeid"]+" "+Oxc)) {
joinChannel(Oxc, Oxd);
selRip = Oxc;
}
}
elder=-1;
function mo(OxB)
{
j = document.getElementsByTagName("div");
c = 0;
for(var a=0;a<j.length;a++)
{
if(j[a] == OxB)
{
c=a;
elder=c;
}
else if(j[a].id== "rippl")
{
j[a].style.backgroundColor="";
}
}
j[c].style.backgroundColor="#98B5FF";
}
function mk()
{
if(event.keyCode == 38)
{
nightshift=-1;
}
else if(event.keyCode == 40)
{
nightshift=1;
}
else
{
nightshift=0;
}
OxB=elder+nightshift;
j = document.getElementsByTagName("div");
c = 0;
for(var a=0;a<j.length;a++)
{
if(a == OxB)
{
c=a;
elder=c;
}
else if(j[a].id== "rippl")
{
j[a].style.backgroundColor="";
}
}
//alert(c);
if(j[c].id == "rippl")
{
j[c].style.backgroundColor="#98B5FF";
}
else
{
elder=elder-nightshift-nightshift;
}
}
function doAbout()
{
// about 2
plugin("ab1.elc");
doNewChans=0;
document.getElementById("hetRat").innerHTML = "<center><table align=center style=\"color:black\"><tr><td><img src=\"./Images/back.png\" alt=\""+language["backtoCC"]+"\" style=\"behavior:url(./Libraries/Shell/pngbehavior.htc);cursor:pointer;cursor:hand\" width=16 valign=middle height=16 onClick=\"goBackToCC()\"></td><td> About ELC v1.0</td></tr></table><hr width=\"99%\" noshade color=\"black\" size=1><br></center><br><br>Produced by [redacted].<br><br>Client and Server Programming by [redacted]<br><br>Other Programming by [redacted]<br><br>Beta Testers:[redacted]<br><br>Visit <a href=\"javascript:void(0)\" onClick=\"runApp(\'http://[redacted].net\')\" style=\"color:black\">http://[redacted].net</a> for more information.";
plugin("ab2.elc");
}
function redoLoading() {
timesRunthru = 0;
areweLoadedYet = 0;
document.getElementById("lDA").innerHTML = "<iframe name=chnlss application=\"yes\" src=\"http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=chanList&userd="+userD+"&passd="+passD+"\" onLoad=\"areweLoadedYet=1;\"></iframe>";
window.setTimeout("initCheckForRipples()", 50);
// Stupid IE bug.
}
function retryLoading() {
timesRunthru = 0;
areweLoadedYet = 0;
document.getElementById("maincent").innerHTML = "<table width=\"100%\" align=center height=\"100%\"><tr><td style=\"color:black\"><center><img src=\"Images/loading.gif\" alt=\"(Loading)\"><br><br>"+language["loadChan"]+"</center></td></tr></table>";
document.getElementById("lDA").innerHTML="";
document.getElementById("lDA").innerHTML = "<iframe name=chnlss application=\"yes\" src=\"http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=chanList&userd="+userD+"&passd="+passD+"\" onLoad=\"areweLoadedYet=1;\"></iframe>";
window.setTimeout("initCheckForRipples()", 1000);
}
function proceedToChannelC() {
if(!fso.FileExists("./Libraries/Shell/set.dat"))
{
fso.CreateFile("./Libraries/Shell/set.dat");
}
onetwothree=fso.OpenTextFile("./Libraries/Shell/set.dat",2);
onetwothree.Write(useNm);
onetwothree.Close();
if(dpne==0)
{
manageListofPlugs();
plugin("c023.elc");
}
finalee="<div style=\"background-color:#A2B2E7;width:100%;height:15px;color:white\">"+language["welcomEL"]+"</div><br><center><div style=\"background-color:#A2B2E7; width:97%; height:87%; color:black; background-color:white; border:1px solid black; text-align:left; overflow-y: auto \" id=\"hetRat\"><table width=\"100%\" align=center height=\"100%\"><tr><td style=\"color:black\"><center id=\"maincent\"><img src=\"Images/loading.gif\" alt=\"(Loading)\"><br><br>"+language["loadChan"]+"</center></td></tr></table></div><img src=\"Images/about.png\" alt=\""+language["mn_About"]+"\" style=\"cursor:pointer;cursor:hand;margin-top:8px;behavior:url(Libraries/Shell/pngbehavior.htc)\" onMouseover=\"this.src=\'Images/about2.png\'\" onMousemove=\"return false\" width=32 height=32 onMouseout=\"this.src=\'Images/about.png\'\" onClick=\"doAbout()\"> <img src=\"Images/help.png\" alt=\""+language["mnHelpCh"]+"\" style=\"cursor:pointer;cursor:hand;margin-top:8px;behavior:url(Libraries/Shell/pngbehavior.htc)\" onMouseover=\"this.src=\'Images/help2.png\'\" onMousemove=\"return false\" width=32 height=32 onMouseout=\"this.src=\'Images/help.png\'\" onClick=\"helpOpen()\"> <img src=\"Images/add.png\" alt=\""+language["crtrippl"]+"\" style=\"cursor:pointer;cursor:hand;margin-top:8px;behavior:url(Libraries/Shell/pngbehavior.htc)\" onMouseover=\"this.src=\'Images/add2.png\'\" onMousemove=\"return false\" width=32 height=32 onMouseout=\"this.src=\'Images/add.png\'\" onClick=\"createRipple()\"> <img src=\"Images/settings.png\" alt=\""+language["mnSettin"]+"\" style=\"cursor:pointer;cursor:hand;margin-top:8px;behavior:url(Libraries/Shell/pngbehavior.htc)\" onMouseover=\"this.src=\'Images/settings2.png\'\" onMousemove=\"return false\" width=32 height=32 onMouseout=\"this.src=\'Images/settings.png\'\" onClick=\"settingDash();\"> <img src=\"Images/plugindsh.png\" alt=\""+language["mnPlugin"]+"\" style=\"cursor:pointer;cursor:hand;margin-top:8px;behavior:url(Libraries/Shell/pngbehavior.htc)\" onMouseover=\"this.src=\'Images/plugindsh2.png\'\" onMousemove=\"return false\" width=32 height=32 onMouseout=\"this.src=\'Images/plugindsh.png\'\" onClick=\"pluginDash()\"> <img src=\"Images/restart.png\" alt=\""+language["restartB"]+"\" style=\"cursor:pointer;cursor:hand;margin-top:8px;behavior:url(Libraries/Shell/pngbehavior.htc)\" onMouseover=\"this.src=\'Images/restart2.png\'\" width=32 height=32 onMouseout=\"this.src=\'Images/restart.png\'\" onClick=\"runApp('elc.hta');window.close();\" onMousemove=\"return false\"></center><div id=\"lDA\" style=\"position:absolute;top:-950px;left:-950px;width:0px;top:0px;\"></div>";
refreshChannel=0;
document.getElementById("snap").style.backgroundImage = "";
document.getElementById("snap").style.backgroundPosition = "";
document.getElementById("snap").innerHTML = "";
document.getElementById("snap").style.padding = "0px";
document.getElementById("snap").style.height = "100%";
document.getElementById("snap").innerHTML = finalee;
// document.body.onclick = hidemenuie5;
document.getElementById("lDA").innerHTML = "<iframe name=chnlss application=\"yes\" src=\"http://"+currUrl+"/elcroot/ELC_main-branch.php?qmode=chanList\" onLoad=\"areweLoadedYet=1;\"></iframe>";
initCheckForRipples();
ress = 1;
rszEvnt();
if (currServ != "* Manually Entered *") {
document.title = language["ripples_"].replace("{}{}", currServ);
} else {
document.title = language["ripples2"];
}
}
// Official ELC Code File
function reallyLoadList() {
loadedFr = window.frames[0].document.body.innerHTML;
if (loadedFr.substring(0, 20) == "servers = new Array(") {
eval(loadedFr);
listloaded = 1;
selectedServ = 0;
} else {
dieStuff("Unable to retrieve server list.");
releaseMost();
}
}
function tryLoadLists() {
window.frames[0].location = "http://elc.[redacted].com/elcroot/ELC_server-list.cgi";
document.getElementById("dataLoader").onload = new Function("reallyLoadList()");
}
function checkWithList() {
if (selectedServ != servers.length) {
if (document.getElementById("serverurl").value != servers[selectedServ][1]) {
document.getElementById("manualent").selected = 1;
}
loadWelcomePage(document.getElementById("serverurl").value, 1);
}
}
timesChecked = 0;
tara="~";
function loadWelcomePage(ard, far)
{
if(far == 1)
{
if(tara != "~")