diff --git a/src/mibew/README b/src/mibew/README index e8beea2f..2a373116 100644 --- a/src/mibew/README +++ b/src/mibew/README @@ -1,5 +1,5 @@ Mibew Messenger -Copyright 2005-2013 the original author or authors. +Copyright 2005-2014 the original author or authors. REQUIREMENTS diff --git a/src/mibew/b.php b/src/mibew/b.php index f364917a..9c3e903c 100644 --- a/src/mibew/b.php +++ b/src/mibew/b.php @@ -1,6 +1,6 @@ a?"0"+a:a)+":"+(10>b?"0"+b:b)+":"+(10>c?"0"+c:c)});b.registerHelper("urlReplace",function(a){return new b.SafeString(a.replace(/((?:https?|ftp):\/\/\S*)/g,'$1'))});b.registerHelper("nl2br",function(a){return new b.SafeString(a.replace(/\n/g,"
"))});b.registerHelper("l10n",function(a){return e.Localization.get(a)|| ""})})(Mibew,Handlebars); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(b,d){b.Localization={};var c={};b.Localization.get=function(a){return!c.hasOwnProperty(a)?!1:c[a]};b.Localization.set=function(a){d.extend(c,a)}})(Mibew,_); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -36,7 +36,7 @@ b)for(var d in a.functions)a.functions.hasOwnProperty(d)&&(this.processFunction( else try{this.sendRequests(this.buffer),this.buffer=[]}catch(c){this.options.onUpdateError(c)}};b.Server.prototype.receiveResponse=function(a){""==a&&this.updateAfter(this.options.requestsFrequency);try{var c=this.mibewAPI.decodePackage(a),b;for(b in c.requests)this.processRequest(c.requests[b])}catch(d){this.options.onResponseError(d)}finally{this.updateAfter(this.options.requestsFrequency)}};b.Server.prototype.registerFunction=function(a,b){this.functionsLastId++;a in this.functions||(this.functions[a]= {});this.functions[a][this.functionsLastId]=b;return this.functionsLastId};b.Server.prototype.unregisterFunction=function(a){for(var b in this.functions)this.functions.hasOwnProperty(b)&&(a in this.functions[b]&&delete this.functions[b][a],e.isEmpty(this.functions[b])&&delete this.functions[b])};b.Server.prototype.onError=function(a,b){if("abort"!=b)if(this.restartUpdater(),"timeout"==b)this.options.onTimeout();else if("error"==b)this.options.onTransportError()}})(Mibew,MibewAPI,$,_); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -44,56 +44,56 @@ else try{this.sendRequests(this.buffer),this.buffer=[]}catch(c){this.options.onU (function(b,c){b.Utils={};b.Utils.toUpperCaseFirst=function(a){return"string"!=typeof a?!1:""===a?a:a.substring(0,1).toUpperCase()+a.substring(1)};b.Utils.toDashFormat=function(a){if("string"!=typeof a)return!1;a=a.match(/((?:[A-Z]?[a-z]+)|(?:[A-Z][a-z]*))/g);for(var b=0;b()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)}; b.Utils.playSound=function(a){c("body").append('')}})(Mibew,$); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a,b){a.Models.Base=b.Model.extend({getModelType:function(){return""}})})(Mibew,Backbone); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a){a.Models.Control=a.Models.Base.extend({defaults:{title:"",weight:0}})})(Mibew); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a){a.Models.Message=a.Models.Base.extend({defaults:{kind:null,created:0,name:"",message:"",plugin:"",data:{}},KIND_USER:1,KIND_AGENT:2,KIND_FOR_AGENT:3,KIND_INFO:4,KIND_CONN:5,KIND_EVENTS:6,KIND_PLUGIN:7})})(Mibew); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a,b){a.Models.Page=b.Model.extend()})(Mibew,Backbone); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a){a.Models.Thread=a.Models.Base.extend({defaults:{id:0,token:0,lastId:0,state:null},STATE_QUEUE:0,STATE_WAITING:1,STATE_CHATTING:2,STATE_CLOSED:3,STATE_LOADING:4,STATE_LEFT:5,STATE_INVITED:6})})(Mibew); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a){a.Models.User=a.Models.Base.extend({defaults:{isAgent:!1,name:""}})})(Mibew); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 */ (function(a,b){a.Collections.Controls=b.Collection.extend({comparator:function(a){return a.get("weight")}})})(Mibew,Backbone); /* - Copyright 2005-2013 the original author or authors. + Copyright 2005-2014 the original author or authors. Licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 @@ -101,7 +101,7 @@ b.Utils.playSound=function(a){c("body").append('