You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(116) |
Sep
|
Oct
(21) |
Nov
|
Dec
|
---|
From: <mik...@us...> - 2002-10-08 04:07:47
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom In directory usw-pr-cvs1:/tmp/cvs-serv17733/fcf/src/server/flashcom Modified Files: main.asc Log Message: rewrote loging and user initialization code. it is much cleaner now, but still needs some work. -users cannot login with names less that 1 char, and greater than 12. -they can login if they do not pass a username to the server. they will be assigned a lurker role. -usernames cannot begin or end with @. -usernames cannot consist of just whitespace. -whitespace will be trimmed from the begining and end of usernames before they are validated. Index: main.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/main.asc,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** main.asc 8 Oct 2002 03:09:18 -0000 1.4 --- main.asc 8 Oct 2002 04:07:42 -0000 1.5 *************** *** 39,71 **** { trace("application.onConnection : user connected username: " + username); - - var fClient = new FCFClientWrapper(client); - - fClient = application.FCF.checkLogin(fClient, username, password); ! if(fClient == undefined) { ! return; } } ! application.FCF.checkLogin = function(fClient, username, password) { ! fClient = application.FCF.validateConnection(fClient, username, password); ! ! if(fClient == null) { ! return null; } ! fClient = application.FCF.checkAccess(fClient, username, password); ! ! if(fClient == null) { ! return null; } - - fClient.fcfId = application.FCF.idCount++; - fClient.loginTime = (new Date).getTime(); application.acceptConnection(fClient.getClient()); --- 39,89 ---- { trace("application.onConnection : user connected username: " + username); ! var fClient = new FCFClientWrapper(client); ! try { ! application.FCF.addUser(fClient, username.trim(), password); ! } ! catch(errObj) ! { ! //this is for debug ! application.traceObject(errObj); ! ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! ! application.rejectConnection(client, errObj); } + } ! application.FCF.addUser = function(fClient, username, password) { ! if(!application.FCF.isValidName(username)) { ! var errObj = application.getErrorObject("", ! "Error", ! "FCF.Connect.Rejected", ! "Invalid Username. The Username cannot consist of just whitespace, and " + ! "cannot begin or end with @, and must be 12 charachters or less."); ! ! throw errObj; } ! try { ! fClient = application.FCF.initClient(fClient, username, password); ! } ! catch(e) ! { ! throw e; } application.acceptConnection(fClient.getClient()); *************** *** 79,122 **** application.FCF.delegator.registerEvent( FCFEvent.CONNECT_ACCEPTED, ! p); ! ! return fClient; } ! application.FCF.validateConnection = function(fClient, username, password) { if(username == undefined) { ! fClient.role = FCFClientWrapper.LURKER; } ! else { ! username = username.trim(); ! ! if(username.length < 1) ! { ! var errObj = application.getErrorObject("", ! "Error", ! "FCF.Connect.Rejected", ! "The username cannot consist only of whitespace"); ! ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! ! application.rejectConnection(client, errObj); ! return null; ! } ! fClient.role = FCFClientWrapper.USER; ! fClient.username = username; } if(application.FCF.userHash[username] != undefined) { --- 97,134 ---- application.FCF.delegator.registerEvent( FCFEvent.CONNECT_ACCEPTED, ! p); } ! //if this threw an exception, we could have more detailed error ! //messages. ! application.FCF.isValidName = function(username) { + //undefined username is valid, and is assigned a lurker + //role if(username == undefined) { ! return true; ! } ! ! if(username.length < 1) ! { ! return false; } ! ! if(username.length > 11) { ! return false; ! } ! ! if(username.beginsWith("@") || username.endsWith("@")) ! { ! return false; } + return true; + } + + application.FCF.initClient = function(fClient, username, password) + { if(application.FCF.userHash[username] != undefined) { *************** *** 126,143 **** "The user name you supplied is already in use.") ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! ! application.rejectConnection(fClient.client, errObj) ! return null; } --- 138,151 ---- "The user name you supplied is already in use.") ! throw errObj; ! } + try + { + fClient = application.FCF.setUserProperties(fClient, username, password); + } + catch(e) + { + throw e; } *************** *** 146,150 **** ! application.FCF.checkAccess = function(fClient, username, password) { var valid = true; --- 154,158 ---- ! application.FCF.setUserProperties = function(fClient, username, password) { var valid = true; *************** *** 154,158 **** switch(username) { ! case "mesh": { if(password == "pass") --- 162,166 ---- switch(username) { ! case ("mesh"): { if(password == "pass") *************** *** 166,170 **** break; } ! case "gburch": { if(password == "pass") --- 174,178 ---- break; } ! case ("gburch"): { if(password == "pass") *************** *** 178,181 **** --- 186,199 ---- break; } + case (undefined): + { + fClient.role = FCFClientWrapper.LURKER; + break; + } + default: + { + fClient.role = FCFClientWrapper.USER; + break; + } } *************** *** 187,206 **** "Incorrect Password."); ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! ! application.rejectConnection(fClient.getClient(), errObj); ! ! return undefined; } - return fClient; --- 205,220 ---- "Incorrect Password."); ! throw errObj; ! } ! else ! { ! //is this property used anywhere? ! fClient.fcfId = application.FCF.idCount++; ! ! //we should be able to get this from the Admin server ! //although we might not want to. ! fClient.loginTime = (new Date).getTime(); ! fClient.username = username; } return fClient; *************** *** 215,218 **** --- 229,233 ---- application.onDisconnect = function(client) { + //do we need to loop here? for(var x in this.FCF.userHash) { |
From: <mik...@us...> - 2002-10-08 03:09:24
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom In directory usw-pr-cvs1:/tmp/cvs-serv23914/fcf/src/server/flashcom Modified Files: main.asc Log Message: removed a loop that wasnt doing anything in: application.FCF.validateConnection basically, whenever a user logged in, it would loop through all of the users for no reason. this was legacy code from when the users were stored in an Array. Index: main.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/main.asc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** main.asc 4 Oct 2002 17:07:12 -0000 1.3 --- main.asc 8 Oct 2002 03:09:18 -0000 1.4 *************** *** 36,45 **** } - application.onAppStop = function() - { - } - - - application.onConnect = function(client, username, password) { --- 36,39 ---- *************** *** 125,154 **** } ! for(var x in application.FCF.userHash) { ! if(application.FCF.userHash[username] != undefined) ! { ! var errObj = application.getErrorObject("", ! "Error", ! "NetConnection.Connect.UserNameInUse", ! "The user name you supplied is already in use.") ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! application.rejectConnection(fClient.client, errObj) ! return null; - } } ! return fClient; } --- 119,145 ---- } ! if(application.FCF.userHash[username] != undefined) { ! var errObj = application.getErrorObject("", ! "Error", ! "NetConnection.Connect.UserNameInUse", ! "The user name you supplied is already in use.") ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! application.rejectConnection(fClient.client, errObj) ! return null; } ! return fClient; } |
From: <gb...@us...> - 2002-10-08 03:05:53
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/ui In directory usw-pr-cvs1:/tmp/cvs-serv22633/fcf/src/client/flash/FCF/classes/ui Modified Files: FCFUserList.as Log Message: Updated sorting on userlist and remove emoticon stubs. Index: FCFUserList.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/ui/FCFUserList.as,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FCFUserList.as 8 Oct 2002 02:52:39 -0000 1.2 --- FCFUserList.as 8 Oct 2002 03:05:51 -0000 1.3 *************** *** 25,28 **** --- 25,30 ---- else this.addItem(user.uname, user); + + this.sortItemsBy("label"); } |
From: <gb...@us...> - 2002-10-08 03:05:53
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/plugins In directory usw-pr-cvs1:/tmp/cvs-serv22633/fcf/src/client/flash/FCF/classes/plugins Modified Files: FCFChatEmoticons.as Log Message: Updated sorting on userlist and remove emoticon stubs. Index: FCFChatEmoticons.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/plugins/FCFChatEmoticons.as,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFChatEmoticons.as 28 Aug 2002 18:46:36 -0000 1.1.1.1 --- FCFChatEmoticons.as 8 Oct 2002 03:05:50 -0000 1.2 *************** *** 38,48 **** _global.FCF.classes.plugins.FCFChatEmoticonsClass.prototype.emoticize = function(match,msg){ ! var pos = msg.indexOf(match,0); matchLen = match.length; while(pos != -1){ var tmppos = pos; pos = msg.indexOf(match,pos+matchLen); ! msg = msg.substring(0,tmppos) + "WORKS:)WORKS" + msg.substring(tmppos+matchLen,msg.length); } return msg; } --- 38,49 ---- _global.FCF.classes.plugins.FCFChatEmoticonsClass.prototype.emoticize = function(match,msg){ ! /* var pos = msg.indexOf(match,0); matchLen = match.length; while(pos != -1){ var tmppos = pos; pos = msg.indexOf(match,pos+matchLen); ! msg = msg.substring(0,tmppos) + ":)" + msg.substring(tmppos+matchLen,msg.length); } + */ return msg; } |
From: <gb...@us...> - 2002-10-08 03:05:53
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv22633/fcf/src/client/flash Modified Files: FCFComponents.swf Log Message: Updated sorting on userlist and remove emoticon stubs. Index: FCFComponents.swf =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCFComponents.swf,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsfj87nb and /tmp/cvsQWxarc differ |
From: <gb...@us...> - 2002-10-08 02:52:43
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network In directory usw-pr-cvs1:/tmp/cvs-serv18320/fcf/src/client/flash/FCF/classes/network Modified Files: FCFNetworkUserList.as Log Message: Updated User list to support admins. Admin support is implemented in the user list component not the network one. This may change in future versions. Index: FCFNetworkUserList.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network/FCFNetworkUserList.as,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFNetworkUserList.as 28 Aug 2002 18:46:35 -0000 1.1.1.1 --- FCFNetworkUserList.as 8 Oct 2002 02:52:39 -0000 1.2 *************** *** 49,53 **** _global.FCF.classes.network.FCFNetworkUserListClass.prototype.onUserLeave=function(update){ ! this.removeUser(update.data.uname); } --- 49,53 ---- _global.FCF.classes.network.FCFNetworkUserListClass.prototype.onUserLeave=function(update){ ! this.removeUser(update.data); } |
From: <gb...@us...> - 2002-10-08 02:52:43
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv18320/fcf/src/client/flash Modified Files: FCFComponents.swf Log Message: Updated User list to support admins. Admin support is implemented in the user list component not the network one. This may change in future versions. Index: FCFComponents.swf =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCFComponents.swf,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsHl0SQd and /tmp/cvscIUEHj differ |
From: <gb...@us...> - 2002-10-08 02:52:42
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/ui In directory usw-pr-cvs1:/tmp/cvs-serv18320/fcf/src/client/flash/FCF/classes/ui Modified Files: FCFUserList.as Log Message: Updated User list to support admins. Admin support is implemented in the user list component not the network one. This may change in future versions. Index: FCFUserList.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/ui/FCFUserList.as,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFUserList.as 28 Aug 2002 18:46:38 -0000 1.1.1.1 --- FCFUserList.as 8 Oct 2002 02:52:39 -0000 1.2 *************** *** 21,25 **** _global.FCF.classes.ui.FCFUserListClass.prototype.addUser = function(user){ ! this.addItem(user.uname, user); } --- 21,28 ---- _global.FCF.classes.ui.FCFUserListClass.prototype.addUser = function(user){ ! if(user.role == 0) ! this.addItem("@"+user.uname,user); ! else ! this.addItem(user.uname, user); } *************** *** 59,63 **** for(var i = 0; i<len; i++){ ! if(user==this.getItemAt(i).data.uname){ this.removeItemAt(i); --- 62,66 ---- for(var i = 0; i<len; i++){ ! if(user.uname==this.getItemAt(i).data.uname){ this.removeItemAt(i); |
From: <mik...@us...> - 2002-10-04 17:07:16
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom In directory usw-pr-cvs1:/tmp/cvs-serv4026/fcf/src/server/flashcom Modified Files: main.asc Log Message: removed commented code from onAppStart that unregistered FCFPacket Class Index: main.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/main.asc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** main.asc 4 Oct 2002 16:31:19 -0000 1.2 --- main.asc 4 Oct 2002 17:07:12 -0000 1.3 *************** *** 38,43 **** application.onAppStop = function() { - //this might be causing the problem. - //application.registerClass("FCFPacket", null); } --- 38,41 ---- |
From: <mik...@us...> - 2002-10-04 16:31:55
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt In directory usw-pr-cvs1:/tmp/cvs-serv21642/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt Modified Files: away.asc brb.asc ip.asc me.asc motd.asc msg.asc ping.asc quit.asc stream.asc timeOnline.asc todo.asc topic.asc whereis.asc whois.asc Log Message: made some pretty significant organizational changes. removed plugin architeture (it was crappy) moved code from applicaiton.asc to main.asc fixed bug where FCFPacker was getting unregistered when application was garbage collected. Index: away.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/away.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** away.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- away.asc 4 Oct 2002 16:30:26 -0000 1.2 *************** *** 57,64 **** outPacket.setData({msg:awayMessage, status:from.getStatus()}); ! application.FCFChat.chatCollection.sendFilteredPacket(outPacket, from); } ! application.FCFChat.commandCollection.addCommand("away", new CommandAway()); trace("Command Loaded : away"); --- 57,64 ---- outPacket.setData({msg:awayMessage, status:from.getStatus()}); ! application.FCF.chatCollection.sendFilteredPacket(outPacket, from); } ! application.FCF.commandCollection.addCommand("away", new CommandAway()); trace("Command Loaded : away"); Index: brb.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/brb.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** brb.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- brb.asc 4 Oct 2002 16:30:30 -0000 1.2 *************** *** 14,21 **** outPacket.setAction("brb"); ! application.FCFChat.chatCollection.sendRoomPacket(room, outPacket); } ! application.FCFChat.commandCollection.addCommand("brb", new CommandBrb()); trace("Command Loaded : brb"); --- 14,21 ---- outPacket.setAction("brb"); ! application.FCF.chatCollection.sendRoomPacket(room, outPacket); } ! application.FCF.commandCollection.addCommand("brb", new CommandBrb()); trace("Command Loaded : brb"); Index: ip.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/ip.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ip.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- ip.asc 4 Oct 2002 16:30:40 -0000 1.2 *************** *** 13,17 **** { uName = args.getItemAt(0); ! c = application.FCFChat.userHash[uName]; if(c != undefined) --- 13,17 ---- { uName = args.getItemAt(0); ! c = application.FCF.userHash[uName]; if(c != undefined) *************** *** 49,53 **** } ! application.FCFChat.commandCollection.addCommand("ip", new CommandIp()); trace("Command Loaded : ip"); --- 49,53 ---- } ! application.FCF.commandCollection.addCommand("ip", new CommandIp()); trace("Command Loaded : ip"); Index: me.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/me.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** me.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- me.asc 4 Oct 2002 16:30:45 -0000 1.2 *************** *** 17,21 **** outPacket.setAction("me"); ! application.FCFChat.chatCollection.sendRoomPacket(room, outPacket); } --- 17,21 ---- outPacket.setAction("me"); ! application.FCF.chatCollection.sendRoomPacket(room, outPacket); } *************** *** 24,28 **** } ! application.FCFChat.commandCollection.addCommand("me", new CommandMe()); trace("Command Loaded : me"); --- 24,28 ---- } ! application.FCF.commandCollection.addCommand("me", new CommandMe()); trace("Command Loaded : me"); Index: motd.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/motd.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** motd.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- motd.asc 4 Oct 2002 16:30:47 -0000 1.2 *************** *** 22,30 **** } ! application.FCFChat.motd = args.toString(); } var outPacket = new FCFPacket(); ! outPacket.setData(application.FCFChat.motd); outPacket.setType(FCFPacket.COMMAND); outPacket.setScope(FCFPacket.PRIVATE); --- 22,30 ---- } ! application.FCF.motd = args.toString(); } var outPacket = new FCFPacket(); ! outPacket.setData(application.FCF.motd); outPacket.setType(FCFPacket.COMMAND); outPacket.setScope(FCFPacket.PRIVATE); *************** *** 35,39 **** } ! application.FCFChat.commandCollection.addCommand("motd", new CommandMotd()); trace("Command Loaded : motd"); --- 35,39 ---- } ! application.FCF.commandCollection.addCommand("motd", new CommandMotd()); trace("Command Loaded : motd"); Index: msg.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/msg.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** msg.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- msg.asc 4 Oct 2002 16:30:49 -0000 1.2 *************** *** 14,18 **** var message = (args.toString(1)); ! var to = application.FCFChat.userHash[userName]; if(to == undefined) --- 14,18 ---- var message = (args.toString(1)); ! var to = application.FCF.userHash[userName]; if(to == undefined) *************** *** 43,47 **** } ! application.FCFChat.commandCollection.addCommand("msg", new CommandMsg()); trace("Command Loaded : msg"); --- 43,47 ---- } ! application.FCF.commandCollection.addCommand("msg", new CommandMsg()); trace("Command Loaded : msg"); Index: ping.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/ping.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ping.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- ping.asc 4 Oct 2002 16:30:56 -0000 1.2 *************** *** 19,23 **** } ! application.FCFChat.commandCollection.addCommand("ping", new CommandPing()); trace("Command Loaded : ping"); --- 19,23 ---- } ! application.FCF.commandCollection.addCommand("ping", new CommandPing()); trace("Command Loaded : ping"); Index: quit.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/quit.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** quit.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- quit.asc 4 Oct 2002 16:31:00 -0000 1.2 *************** *** 24,32 **** outPacket.setData({msg:args.toString()}); ! application.FCFChat.chatCollection.sendFilteredPacket(outPacket, from); application.disconnect(from.client); } ! application.FCFChat.commandCollection.addCommand("quit", new CommandQuit()); trace("Command Loaded : quit"); --- 24,32 ---- outPacket.setData({msg:args.toString()}); ! application.FCF.chatCollection.sendFilteredPacket(outPacket, from); application.disconnect(from.client); } ! application.FCF.commandCollection.addCommand("quit", new CommandQuit()); trace("Command Loaded : quit"); Index: stream.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/stream.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** stream.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- stream.asc 4 Oct 2002 16:31:00 -0000 1.2 *************** *** 105,109 **** } ! application.FCFChat.commandCollection.addCommand("stream", new CommandStream()); trace("Command Loaded : stream"); --- 105,109 ---- } ! application.FCF.commandCollection.addCommand("stream", new CommandStream()); trace("Command Loaded : stream"); Index: timeOnline.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/timeOnline.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** timeOnline.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- timeOnline.asc 4 Oct 2002 16:31:06 -0000 1.2 *************** *** 12,16 **** if(args.getLength() > 0) { ! c = application.FCFChat.userHash[args[0]]; if(c != undefined) --- 12,16 ---- if(args.getLength() > 0) { ! c = application.FCF.userHash[args[0]]; if(c != undefined) *************** *** 42,46 **** } ! application.FCFChat.commandCollection.addCommand("timeOnline", new CommandTimeOnline()); trace("Command Loaded : timeOnline"); --- 42,46 ---- } ! application.FCF.commandCollection.addCommand("timeOnline", new CommandTimeOnline()); trace("Command Loaded : timeOnline"); Index: todo.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/todo.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** todo.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- todo.asc 4 Oct 2002 16:31:11 -0000 1.2 *************** *** 27,31 **** todoList.setProperty("items",items); todoList.flush(); ! application.FCFChat.chatCollection.sendRoomPacket(room, outPacket); }else if(args.getItemAt(0)=="remove"){ var itmNum = args.getItemAt(1); --- 27,31 ---- todoList.setProperty("items",items); todoList.flush(); ! application.FCF.chatCollection.sendRoomPacket(room, outPacket); }else if(args.getItemAt(0)=="remove"){ var itmNum = args.getItemAt(1); *************** *** 38,42 **** todoList.setProperty("items",items); todoList.flush(); ! application.FCFChat.chatCollection.sendRoomPacket(room, outPacket); }else{ var from = packet.getFrom(); --- 38,42 ---- todoList.setProperty("items",items); todoList.flush(); ! application.FCF.chatCollection.sendRoomPacket(room, outPacket); }else{ var from = packet.getFrom(); *************** *** 45,49 **** outPacket.setData(items); outPacket.setTo(from); ! application.FCFChat.userHash[from.username].onReceivePacket(outPacket); } --- 45,49 ---- outPacket.setData(items); outPacket.setTo(from); ! application.FCF.userHash[from.username].onReceivePacket(outPacket); } *************** *** 51,55 **** } ! application.FCFChat.commandCollection.addCommand("todo", new CommandTodo()); trace("Command Loaded : todo"); --- 51,55 ---- } ! application.FCF.commandCollection.addCommand("todo", new CommandTodo()); trace("Command Loaded : todo"); Index: topic.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/topic.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** topic.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- topic.asc 4 Oct 2002 16:31:11 -0000 1.2 *************** *** 38,42 **** } ! var chat = application.FCFChat.chatCollection.getChat(room); if(chat == undefined) --- 38,42 ---- } ! var chat = application.FCF.chatCollection.getChat(room); if(chat == undefined) *************** *** 67,71 **** } ! application.FCFChat.commandCollection.addCommand("topic", new CommandTopic()); trace("Command Loaded : topic"); --- 67,71 ---- } ! application.FCF.commandCollection.addCommand("topic", new CommandTopic()); trace("Command Loaded : topic"); Index: whereis.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/whereis.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** whereis.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- whereis.asc 4 Oct 2002 16:31:11 -0000 1.2 *************** *** 15,19 **** ! roomArray = application.FCFChat.chatCollection.findUser(userName); if(roomArray.length < 1) --- 15,19 ---- ! roomArray = application.FCF.chatCollection.findUser(userName); if(roomArray.length < 1) *************** *** 42,46 **** } ! application.FCFChat.commandCollection.addCommand("whereis", new CommandWhereIs()); trace("Command Loaded : whereis"); --- 42,46 ---- } ! application.FCF.commandCollection.addCommand("whereis", new CommandWhereIs()); trace("Command Loaded : whereis"); Index: whois.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/opt/whois.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** whois.asc 28 Aug 2002 18:46:40 -0000 1.1.1.1 --- whois.asc 4 Oct 2002 16:31:11 -0000 1.2 *************** *** 13,17 **** { userName = args.getItemAt(0); ! c = application.FCFChat.userHash[userName]; if(c != undefined) --- 13,17 ---- { userName = args.getItemAt(0); ! c = application.FCF.userHash[userName]; if(c != undefined) *************** *** 44,48 **** } ! application.FCFChat.commandCollection.addCommand("whois", new CommandWhoIs()); trace("Command Loaded : whois"); --- 44,48 ---- } ! application.FCF.commandCollection.addCommand("whois", new CommandWhoIs()); trace("Command Loaded : whois"); |
From: <mik...@us...> - 2002-10-04 16:31:53
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/chat In directory usw-pr-cvs1:/tmp/cvs-serv21642/fcf/src/server/flashcom/FCF/classes/chat Modified Files: FCFChatRoom.asc FCFChatRoomCollection.asc Log Message: made some pretty significant organizational changes. removed plugin architeture (it was crappy) moved code from applicaiton.asc to main.asc fixed bug where FCFPacker was getting unregistered when application was garbage collected. Index: FCFChatRoom.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/chat/FCFChatRoom.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFChatRoom.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- FCFChatRoom.asc 4 Oct 2002 16:30:14 -0000 1.2 *************** *** 19,32 **** this.access = this.PUBLIC; ! application.FCFChat.chatCollection.addListener( FCFEvent.JOIN_ROOM, this, "onEvent", this.chatName); ! application.FCFChat.chatCollection.addListener( FCFEvent.LEAVE_ROOM, this, "onEvent", this.chatName); ! application.FCFChat.chatCollection.addListener( FCFEvent.CLIENT_DISCONNECT, this, "onEvent"); ! application.FCFChat.chatCollection.addListener( FCFEvent.PUBLIC_MESSAGE, this, "onEvent", this.chatName); --- 19,32 ---- this.access = this.PUBLIC; ! application.FCF.chatCollection.addListener( FCFEvent.JOIN_ROOM, this, "onEvent", this.chatName); ! application.FCF.chatCollection.addListener( FCFEvent.LEAVE_ROOM, this, "onEvent", this.chatName); ! application.FCF.chatCollection.addListener( FCFEvent.CLIENT_DISCONNECT, this, "onEvent"); ! application.FCF.chatCollection.addListener( FCFEvent.PUBLIC_MESSAGE, this, "onEvent", this.chatName); *************** *** 37,41 **** p.setRoom(this.chatName); ! application.FCFChat.delegator.registerEvent( FCFEvent.ROOM_CREATED, p); --- 37,41 ---- p.setRoom(this.chatName); ! application.FCF.delegator.registerEvent( FCFEvent.ROOM_CREATED, p); *************** *** 103,107 **** FCFChatRoom.prototype.addUser = function(aClient) { ! if(aClient == undefined) { --- 103,107 ---- FCFChatRoom.prototype.addUser = function(aClient) { ! trace("FCFChatRoom.addUser : user added : roomname --> " + this.chatName); if(aClient == undefined) { *************** *** 141,145 **** this.restrictBroadcastPacket(p2, aClient); ! application.FCFChat.delegator.registerEvent( FCFEvent.ROOM_UPDATE_ADD, p2); --- 141,145 ---- this.restrictBroadcastPacket(p2, aClient); ! application.FCF.delegator.registerEvent( FCFEvent.ROOM_UPDATE_ADD, p2); *************** *** 214,218 **** this.broadcastPacket(p); ! application.FCFChat.delegator.registerEvent( FCFEvent.ROOM_UPDATE_REMOVE, p); --- 214,218 ---- this.broadcastPacket(p); ! application.FCF.delegator.registerEvent( FCFEvent.ROOM_UPDATE_REMOVE, p); Index: FCFChatRoomCollection.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/chat/FCFChatRoomCollection.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFChatRoomCollection.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- FCFChatRoomCollection.asc 4 Oct 2002 16:30:19 -0000 1.2 *************** *** 4,12 **** this.eventHash = new Object(); this.chatHash = new Object(); ! application.FCFChat.delegator.addListener( FCFEvent.CONNECT_ACCEPTED, this, "onAcceptUser"); ! application.FCFChat.delegator.addListener( FCFEvent.CREATE_ROOM, this, "onCreateRoom"); ! application.FCFChat.delegator.addListener( FCFEvent.REMOVE_ROOM, this, "onRemoveRoom"); } --- 4,12 ---- this.eventHash = new Object(); this.chatHash = new Object(); ! application.FCF.delegator.addListener( FCFEvent.CONNECT_ACCEPTED, this, "onAcceptUser"); ! application.FCF.delegator.addListener( FCFEvent.CREATE_ROOM, this, "onCreateRoom"); ! application.FCF.delegator.addListener( FCFEvent.REMOVE_ROOM, this, "onRemoveRoom"); } *************** *** 174,177 **** --- 174,179 ---- FCFChatRoomCollection.prototype.onAcceptUser = function(packet) { + trace("FCFChatRoomCollection.onAcceptUser : connection Accepted"); + if(packet == undefined) { *************** *** 181,185 **** //when a new user connects, they are added to the default room. ! this.chatHash[application.FCFChat.DEFAULTROOM].addUser(packet.getFrom()); } --- 183,187 ---- //when a new user connects, they are added to the default room. ! this.chatHash[application.FCF.DEFAULTROOM].addUser(packet.getFrom()); } *************** *** 262,266 **** { this.eventHash[event] = new Array(); ! application.FCFChat.delegator.addListener(event, this, "onEvent"); } --- 264,268 ---- { this.eventHash[event] = new Array(); ! application.FCF.delegator.addListener(event, this, "onEvent"); } |
From: <mik...@us...> - 2002-10-04 16:31:53
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/init In directory usw-pr-cvs1:/tmp/cvs-serv21642/fcf/src/server/flashcom/FCF/init Modified Files: fcf.asc Log Message: made some pretty significant organizational changes. removed plugin architeture (it was crappy) moved code from applicaiton.asc to main.asc fixed bug where FCFPacker was getting unregistered when application was garbage collected. Index: fcf.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/init/fcf.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** fcf.asc 28 Aug 2002 18:46:41 -0000 1.1.1.1 --- fcf.asc 4 Oct 2002 16:31:13 -0000 1.2 *************** *** 1,4 **** load("FCF/classes/utils/stringUtils.as"); - load("FCF/classes/application/application.asc"); load("FCF/classes/network/FCFEvent.asc"); load("FCF/classes/utils/FCFArguments.asc"); --- 1,3 ---- *************** *** 8,12 **** load("FCF/classes/extensions/commands/FCFCommandCollection.asc"); load("FCF/classes/extensions/commands/FCFCommandDelegator.asc"); - load("FCF/classes/extensions/plugins/FCFPluginCollection.asc"); load("FCF/init/fcfchat.asc"); --- 7,10 ---- |
From: <mik...@us...> - 2002-10-04 16:31:30
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands In directory usw-pr-cvs1:/tmp/cvs-serv21642/fcf/src/server/flashcom/FCF/classes/extensions/commands Modified Files: FCFCommandCollection.asc FCFCommandDelegator.asc Log Message: made some pretty significant organizational changes. removed plugin architeture (it was crappy) moved code from applicaiton.asc to main.asc fixed bug where FCFPacker was getting unregistered when application was garbage collected. Index: FCFCommandCollection.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/FCFCommandCollection.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFCommandCollection.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- FCFCommandCollection.asc 4 Oct 2002 16:30:22 -0000 1.2 *************** *** 3,7 **** this.commandHash = new Object(); ! application.FCFChat.commandDelegator.addListener( FCFEvent.COMMAND, this, "onCommand"); --- 3,7 ---- this.commandHash = new Object(); ! application.FCF.commandDelegator.addListener( FCFEvent.COMMAND, this, "onCommand"); Index: FCFCommandDelegator.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/commands/FCFCommandDelegator.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFCommandDelegator.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- FCFCommandDelegator.asc 4 Oct 2002 16:30:26 -0000 1.2 *************** *** 3,7 **** this.commands = new Object(); this.eventHash = new Object(); ! application.FCFChat.delegator.addListener( FCFEvent.COMMAND, this, "onCommand"); } --- 3,7 ---- this.commands = new Object(); this.eventHash = new Object(); ! application.FCF.delegator.addListener( FCFEvent.COMMAND, this, "onCommand"); } |
From: <mik...@us...> - 2002-10-04 16:31:27
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom In directory usw-pr-cvs1:/tmp/cvs-serv21642/fcf/src/server/flashcom Modified Files: main.asc Log Message: made some pretty significant organizational changes. removed plugin architeture (it was crappy) moved code from applicaiton.asc to main.asc fixed bug where FCFPacker was getting unregistered when application was garbage collected. Index: main.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/main.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** main.asc 28 Aug 2002 18:46:38 -0000 1.1.1.1 --- main.asc 4 Oct 2002 16:31:19 -0000 1.2 *************** *** 1,12 **** load("FCF/init/fcf.asc"); application.onAppStart = function() { ! application.onFCFChatAppStart(); } application.onAppStop = function() { ! application.registerClass("FCFPacket", null); } --- 1,43 ---- load("FCF/init/fcf.asc"); + application.FCF = new Object(); + application.onAppStart = function() { ! ! /************ Application Configuration ****************/ ! ! application.FCF.ALLOWUSERCREATEROOM = true; ! application.FCF.REMOVEEMPTYROOMS = true; ! application.FCF.SERVERNAME = "FCF server"; ! ! application.FCF.motd = "How Now Brown Cow"; ! ! //test this with client when the default name changes. ! application.FCF.DEFAULTROOM = "default"; ! ! ! /************ End Application Configuration ****************/ ! ! application.FCF.delegator = new Delegator(); ! application.FCF.commandDelegator = new FCFCommandDelegator(); ! application.FCF.commandCollection = new FCFCommandCollection(); ! ! application.FCF.userHash = new Object(); ! ! application.FCF.chatCollection = new FCFChatRoomCollection(); ! application.FCF.chatCollection.createChat(application.FCF.DEFAULTROOM, true); ! ! application.FCF.idCount = 0; ! ! application.registerClass("FCFPacket", FCFPacket); ! ! load("FCF/classes/extensions/commands/commands.asc"); } application.onAppStop = function() { ! //this might be causing the problem. ! //application.registerClass("FCFPacket", null); } *************** *** 15,21 **** application.onConnect = function(client, username, password) { ! application.onFCFChatConnect(client, username, password); } application.getClient = function(username) { --- 46,222 ---- application.onConnect = function(client, username, password) { ! trace("application.onConnection : user connected username: " + username); ! ! var fClient = new FCFClientWrapper(client); ! ! fClient = application.FCF.checkLogin(fClient, username, password); ! ! if(fClient == undefined) ! { ! return; ! } ! } ! ! application.FCF.checkLogin = function(fClient, username, password) ! { ! fClient = application.FCF.validateConnection(fClient, username, password); ! ! if(fClient == null) ! { ! return null; ! } ! ! fClient = application.FCF.checkAccess(fClient, username, password); ! ! if(fClient == null) ! { ! return null; ! } ! ! fClient.fcfId = application.FCF.idCount++; ! fClient.loginTime = (new Date).getTime(); ! ! application.acceptConnection(fClient.getClient()); ! ! application.FCF.userHash[fClient.username] = fClient; ! ! var p = new FCFPacket(); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_ACCEPTED); ! p.setFrom(fClient); ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_ACCEPTED, ! p); ! ! return fClient; ! } ! ! application.FCF.validateConnection = function(fClient, username, password) ! { ! if(username == undefined) ! { ! fClient.role = FCFClientWrapper.LURKER; ! } ! else ! { ! username = username.trim(); ! ! if(username.length < 1) ! { ! var errObj = application.getErrorObject("", ! "Error", ! "FCF.Connect.Rejected", ! "The username cannot consist only of whitespace"); ! ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! ! application.rejectConnection(client, errObj); ! return null; ! } ! fClient.role = FCFClientWrapper.USER; ! fClient.username = username; ! } ! ! for(var x in application.FCF.userHash) ! { ! if(application.FCF.userHash[username] != undefined) ! { ! var errObj = application.getErrorObject("", ! "Error", ! "NetConnection.Connect.UserNameInUse", ! "The user name you supplied is already in use.") ! ! //THROW REJECTED EVENT ! var p = new FCFPacket(); ! p.setFrom(fClient); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CONNECT_REJECTED); ! p.setData(errObj); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CONNECT_REJECTED, ! p); ! ! application.rejectConnection(fClient.client, errObj) ! return null; ! ! } ! } ! ! return fClient; } + + application.FCF.checkAccess = function(fClient, username, password) + { + var valid = true; + + //right now this is hardcoded. Eventually, this data will be pulled + //from a database and validated. + switch(username) + { + case "mesh": + { + if(password == "pass") + { + fClient.role = FCFClientWrapper.ADMIN; + } + else + { + valid = false; + } + break; + } + case "gburch": + { + if(password == "pass") + { + fClient.role = FCFClientWrapper.ADMIN; + } + else + { + valid = false; + } + break; + } + } + + if(!valid) + { + var errObj = application.getErrorObject("", + "Error", + "FCF.Connect.Rejected", + "Incorrect Password."); + + //THROW REJECTED EVENT + var p = new FCFPacket(); + p.setFrom(fClient); + p.setType(FCFPacket.EVENT); + p.setAction(FCFEvent.CONNECT_REJECTED); + p.setData(errObj); + + application.FCF.delegator.registerEvent( + FCFEvent.CONNECT_REJECTED, + p); + + application.rejectConnection(fClient.getClient(), errObj); + + return undefined; + } + + + return fClient; + } + + application.getClient = function(username) { *************** *** 25,31 **** application.onDisconnect = function(client) { ! application.onFCFChatDisconnect(client); } trace("Main application Loaded"); --- 226,277 ---- application.onDisconnect = function(client) { ! for(var x in this.FCF.userHash) ! { ! if(application.FCF.userHash[x].equals(client)) ! { ! var username = application.FCF.userHash[x].username; ! trace("User Disconnected : " + username); ! ! var p = new FCFPacket(); ! p.setType(FCFPacket.EVENT); ! p.setAction(FCFEvent.CLIENT_DISCONNECT); ! p.setData(application.FCF.userHash[x]); ! ! application.FCF.delegator.registerEvent( ! FCFEvent.CLIENT_DISCONNECT, ! p); ! delete application.FCF.userHash[x]; ! ! return; ! } ! } ! } ! ! application.getErrorObject = function(status, level, code, description) ! { ! return({status:status, code:code, level:level, description:description}); } + application.traceObject = function(obj) + { + trace("------------"); + + for(var x in obj) + { + trace(x + " : " + obj[x]); + } + + trace("------------"); + } + + application.onStatus = function(info) + { + trace("---------------application.onStatus called-----------------------"); + for(var x in info) + { + trace(x + " : " + info[x]); + } + trace("--------------- end-----------------------"); + } trace("Main application Loaded"); |
From: <mik...@us...> - 2002-10-04 16:31:25
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/client In directory usw-pr-cvs1:/tmp/cvs-serv21642/fcf/src/server/flashcom/FCF/classes/client Modified Files: FCFClientWrapper.asc Log Message: made some pretty significant organizational changes. removed plugin architeture (it was crappy) moved code from applicaiton.asc to main.asc fixed bug where FCFPacker was getting unregistered when application was garbage collected. Index: FCFClientWrapper.asc =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/client/FCFClientWrapper.asc,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFClientWrapper.asc 28 Aug 2002 18:46:39 -0000 1.1.1.1 --- FCFClientWrapper.asc 4 Oct 2002 16:30:20 -0000 1.2 *************** *** 159,162 **** --- 159,163 ---- var event; + trace("FCFClientWrapper.sendPacket : isPacket " + (packet instanceof FCFPacket)); packet.setFrom(this); *************** *** 211,215 **** trace("FCFClientWrapper.sendPacket----> event is undefined [Packet.type not regognized]"); ! var errObj = application.FCFChat.getErrorObject("", "Warning", "FCFClientWrapper.sendPacket.UnrecognzedEvent", --- 212,216 ---- trace("FCFClientWrapper.sendPacket----> event is undefined [Packet.type not regognized]"); ! var errObj = application.FCF.getErrorObject("", "Warning", "FCFClientWrapper.sendPacket.UnrecognzedEvent", *************** *** 220,224 **** } ! application.FCFChat.delegator.registerEvent(event, packet); this.client.call("onReceivePacket", null, {data:this.username}); --- 221,225 ---- } ! application.FCF.delegator.registerEvent(event, packet); this.client.call("onReceivePacket", null, {data:this.username}); |
From: <mik...@us...> - 2002-10-04 16:28:27
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/application In directory usw-pr-cvs1:/tmp/cvs-serv21246/fcf/src/server/flashcom/FCF/classes/application Removed Files: application.asc Log Message: code from application.asc was moved to main.asc to make it easier to read. --- application.asc DELETED --- |
From: <mik...@us...> - 2002-10-04 16:27:37
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/plugins In directory usw-pr-cvs1:/tmp/cvs-serv20939/fcf/src/server/flashcom/FCF/classes/extensions/plugins Removed Files: FCFPluginCollection.asc plugins.asc Log Message: removing pluging files which are no longer used --- FCFPluginCollection.asc DELETED --- --- plugins.asc DELETED --- |
From: <mik...@us...> - 2002-10-04 16:26:37
|
Update of /cvsroot/fcf/fcf/fcf/src/server/flashcom/FCF/classes/extensions/plugins/opt In directory usw-pr-cvs1:/tmp/cvs-serv20135/fcf/src/server/flashcom/FCF/classes/extensions/plugins/opt Removed Files: checkLogin.asc defaultConnection.asc Log Message: removing plugin files since they are no longer used. --- checkLogin.asc DELETED --- --- defaultConnection.asc DELETED --- |
From: <gb...@us...> - 2002-10-03 22:40:28
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv21705/fcf/src/client/flash Added Files: FCFComponents.swf Log Message: Updated to fix < infinite loop bug. --- NEW FILE: FCFComponents.swf --- (This appears to be a binary file; contents omitted.) |
From: <gb...@us...> - 2002-10-03 22:40:28
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network In directory usw-pr-cvs1:/tmp/cvs-serv21705/fcf/src/client/flash/FCF/classes/network Modified Files: FCFNetworkChatWindow.as Log Message: Updated to fix < infinite loop bug. Index: FCFNetworkChatWindow.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network/FCFNetworkChatWindow.as,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFNetworkChatWindow.as 28 Aug 2002 18:46:35 -0000 1.1.1.1 --- FCFNetworkChatWindow.as 3 Oct 2002 22:40:25 -0000 1.2 *************** *** 80,98 **** _global.FCF.classes.network.FCFNetworkChatWindowClass.prototype.escapeHTML = function(msg){ - var escaped = ""; - var ltPos = msg.indexOf("<"); - while (ltPos != -1) { - escaped = msg.substring(0, ltPos) + "<" + msg.substring(ltPos+1,msg.length); - msg = escaped; - ltPos = msg.indexOf("<"); - } ! var escaped = ""; ! var ltPos = msg.indexOf(">"); ! while (ltPos != -1) { ! escaped = msg.substring(0, ltPos) + ">" + msg.substring(ltPos+1,msg.length); ! msg = escaped; ! ltPos = msg.indexOf(">"); ! } var url_begin = msg.indexOf("http:"); --- 80,88 ---- _global.FCF.classes.network.FCFNetworkChatWindowClass.prototype.escapeHTML = function(msg){ ! var encoded = msg.split("<"); ! msg = encoded.join("<"); ! encoded = msg.split(">"); ! msg = encoded.join(">"); var url_begin = msg.indexOf("http:"); |
From: <gb...@us...> - 2002-10-01 16:34:15
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv26403/fcf/src/client/flash Modified Files: FCFComponents.fla Log Message: Index: FCFComponents.fla =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCFComponents.fla,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 Binary files /tmp/cvs6w6VGe and /tmp/cvs0UTivj differ |
From: <gb...@us...> - 2002-08-28 22:38:29
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network/connectors In directory usw-pr-cvs1:/tmp/cvs-serv1675/fcf/src/client/flash/FCF/classes/network/connectors Modified Files: FCFFactory.as NCFactory.as Log Message: Updated paths to include fcf Index: FCFFactory.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network/connectors/FCFFactory.as,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FCFFactory.as 28 Aug 2002 18:46:35 -0000 1.1.1.1 --- FCFFactory.as 28 Aug 2002 22:38:25 -0000 1.2 *************** *** 3,11 **** ! #include "classes/network/FCFEvent.as" ! #include "classes/network/FCFPacket.as" ! #include "classes/network/connectors/FCFDispatcher.as" --- 3,11 ---- ! #include "fcf/classes/network/FCFEvent.as" ! #include "fcf/classes/network/FCFPacket.as" ! #include "fcf/classes/network/connectors/FCFDispatcher.as" Index: NCFactory.as =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCF/classes/network/connectors/NCFactory.as,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** NCFactory.as 28 Aug 2002 18:46:36 -0000 1.1.1.1 --- NCFactory.as 28 Aug 2002 22:38:25 -0000 1.2 *************** *** 3,9 **** ! #include "classes/network/connectors/NCDispatcher.as" ! #include "classes/network/connectors/NCDelegator.as" --- 3,9 ---- ! #include "fcf/classes/network/connectors/NCDispatcher.as" ! #include "fcf/classes/network/connectors/NCDelegator.as" |
From: <gb...@us...> - 2002-08-28 22:38:29
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv1675/fcf/src/client/flash Modified Files: FCFComponents.fla Log Message: Updated paths to include fcf Index: FCFComponents.fla =================================================================== RCS file: /cvsroot/fcf/fcf/fcf/src/client/flash/FCFComponents.fla,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 Binary files /tmp/cvspX0XdI and /tmp/cvsU2WhOk differ |
From: <mik...@us...> - 2002-08-28 19:01:25
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv6072 Added Files: FCFComponents.fla TP4CLICK.WAV Log Message: re-adding binary files with -kb tag |
From: <mik...@us...> - 2002-08-28 18:59:18
|
Update of /cvsroot/fcf/fcf/fcf/src/client/flash In directory usw-pr-cvs1:/tmp/cvs-serv4962 Removed Files: FCFComponents.fla TP4CLICK.WAV Log Message: removing binary files to recheck them is using -kb tag --- FCFComponents.fla DELETED --- --- TP4CLICK.WAV DELETED --- |