PK
eb(3 chrome/PK
eb(3 chrome/memotoothunderbird.jarPK
!^(3 content/PK
`(3
u` ` content/addressBook.jsvar AddressBookCommandMemotoo =
{
ImportAddress: function (aFile)
{
alert("import");
},
}PK
`!32( ( content/bmsyncNetworkService.js// this code was written by Torisugari
var gBookmarksSynchronizerUploadService=
{
_channel:null,
_callback:null,
_data:"",
_scheme:"",
_errorData:"",
start:function(aStr,aURI,aType,aCallback)
{
if( !aStr || !aURI)
return false;
this._callback=aCallback;
this._scheme=aURI.scheme;
const ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
const stringStream=Components.classes["@mozilla.org/io/string-input-stream;1"]
.createInstance(Components.interfaces.nsIStringInputStream);
this._channel = ioService.newChannelFromURI( aURI )
.QueryInterface(Components.interfaces.nsIUploadChannel);
try{
stringStream.setData(aStr, -1);
this._channel.setUploadStream(stringStream,aType,-1);
this._channel.asyncOpen(this, null);
this._callback("send",status);
this._data=aStr;
return true;
}catch(e){window.alert("__netwerk__\n\n"+"e");}
return false;
},
cancel:function()
{
if(this._channel)
this._channel.cancel(0x804b0002);
},
onDataAvailable: function (channel, ctxt, input, sourceOffset, count){
const sis = Components.classes["@mozilla.org/scriptableinputstream;1"]
.createInstance(Components.interfaces.nsIScriptableInputStream);
sis.init(input);
this._errorData +=sis.read(count);
},
onStartRequest: function (channel, ctxt){},
onStopRequest: function (channel, ctxt, status)
{
if(this._scheme != "ftp")
{
var res=0;
try{
res = channel.QueryInterface(Components.interfaces.nsIHttpChannel)
.responseStatus;
}catch(e){}
if(res==200||res==201 || res==204)
status=0;
/*
200:OK
201:Created
204:No Content
This is an uploading channel, no need to "GET" the file contents.
*/
if(this._errorData || res==401)
status=res;
if(this._errorData && res==200)
alert(this._errorData);
}
if(this._callback)
this._callback("done",status);
}
};
var gBookmarksSynchronizerDownloadService=
{
_channel:null,
_scheme:"",
_callback:null,
_startTime:0,
_endTime:0,
streamLoader:null,
data:null,
length:null,
start:function(aURI,aCallback)
{
if( !aURI )
return false;
this._callback=aCallback;
this._scheme=aURI.scheme;
try{
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
this.streamLoader=Components.classes["@mozilla.org/network/stream-loader;1"]
.createInstance(Components.interfaces.nsIStreamLoader);
this._channel = ioService.newChannelFromURI( aURI );
if(aURI.scheme=="http" || aURI.scheme=="https")
this._channel.loadFlags |= Components.interfaces.nsIRequest.LOAD_BYPASS_CACHE;
this.streamLoader.init(this._channel, this , null);
this._startTime=(new Date()).getTime();
}catch(e){ alert(e); return false;}
return true;
},
cancel:function()
{
if(this._channel)
this._channel.cancel(0x804b0002);
},
onStreamComplete :function ( loader , ctxt , status , resultLength , result )
{
this.data="";
this._endTime=(new Date()).getTime();
if(status==0)
{
this.length=resultLength;
if(typeof(result)=="string")
this.data=result;
else
{
while(result.length > (256*192) )
{
this.data += String.fromCharCode.apply(this,result.splice(0,256*192));
}
this.data += String.fromCharCode.apply(this,result);
}
}
if(this._scheme != "ftp")
{
var res=0;
try{
res = this._channel.QueryInterface(Components.interfaces.nsIHttpChannel)
.responseStatus;
}catch(e){}
if(res==401)
status=res;
}
if(this._callback)
this._callback("done",status);
},
get time(){
return this._endTime-this._startTime;
}
};
PK
AQ(3cg content/contents.rdf
chrome://memotoothunderbird/content/memotoothunderbirdOverlay.xul
PK
[(3I䢪 content/download.xul
PK
k3xu" " content/functions.js/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
* Digest Algorithm, as defined in RFC 1321.
* Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
* Distributed under the BSD License
* See http://pajhome.org.uk/crypt/md5 for more info.
*/
/*
* Configurable variables. You may need to tweak these to be compatible with
* the server-side, but the defaults work in most cases.
*/
var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
/*
* These are the functions you'll usually want to call
* They take string arguments and return either hex or base-64 encoded strings
*/
function hex_md5(s){ if (s.length=="32" || s.length=="0") return s; else return binl2hex(core_md5(str2binl(s), s.length * chrsz));}
/*
* Calculate the MD5 of an array of little-endian words, and a bit length
*/
function core_md5(x, len)
{
/* append padding */
x[len >> 5] |= 0x80 << ((len) % 32);
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var b = -271733879;
var c = -1732584194;
var d = 271733878;
for(var i = 0; i < x.length; i += 16)
{
var olda = a;
var oldb = b;
var oldc = c;
var oldd = d;
a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
a = safe_add(a, olda);
b = safe_add(b, oldb);
c = safe_add(c, oldc);
d = safe_add(d, oldd);
}
return Array(a, b, c, d);
}
/*
* These functions implement the four basic operations the algorithm uses.
*/
function md5_cmn(q, a, b, x, s, t)
{
return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
}
function md5_ff(a, b, c, d, x, s, t)
{
return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
}
function md5_gg(a, b, c, d, x, s, t)
{
return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
}
function md5_hh(a, b, c, d, x, s, t)
{
return md5_cmn(b ^ c ^ d, a, b, x, s, t);
}
function md5_ii(a, b, c, d, x, s, t)
{
return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
}
/*
* Calculate the HMAC-MD5, of a key and some data
*/
function core_hmac_md5(key, data)
{
var bkey = str2binl(key);
if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz);
var ipad = Array(16), opad = Array(16);
for(var i = 0; i < 16; i++)
{
ipad[i] = bkey[i] ^ 0x36363636;
opad[i] = bkey[i] ^ 0x5C5C5C5C;
}
var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz);
return core_md5(opad.concat(hash), 512 + 128);
}
/*
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
* to work around bugs in some JS interpreters.
*/
function safe_add(x, y)
{
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
return (msw << 16) | (lsw & 0xFFFF);
}
/*
* Bitwise rotate a 32-bit number to the left.
*/
function bit_rol(num, cnt)
{
return (num << cnt) | (num >>> (32 - cnt));
}
/*
* Convert a string to an array of little-endian words
* If chrsz is ASCII, characters >255 have their hi-byte silently ignored.
*/
function str2binl(str)
{
var bin = Array();
var mask = (1 << chrsz) - 1;
for(var i = 0; i < str.length * chrsz; i += chrsz)
bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
return bin;
}
/*
* Convert an array of little-endian words to a hex string.
*/
function binl2hex(binarray)
{
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
var str = "";
for(var i = 0; i < binarray.length * 4; i++)
{
str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
}
return str;
}
function winopen(page,largeur,hauteur,chrome)
{
var top = (screen.height-hauteur)/2;
var left = (screen.width-largeur)/2;
if (top>40)
{
top = top-40;
}
if (chrome==1)
window.open(""+page,"_blank","chrome,resizable,modal,width="+largeur+",height="+hauteur+",top="+top+",left="+left);
else
window.open(""+page,"_blank","width="+largeur+",height="+hauteur+",top="+top+",left="+left);
}
function URLEncode(plaintext)
{
// The Javascript escape and unescape functions do not correspond
// with what browsers actually do...
var SAFECHARS = "0123456789" + // Numeric
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" + // Alphabetic
"abcdefghijklmnopqrstuvwxyz" +
"-_.!~*'()"; // RFC2396 Mark characters
var HEX = "0123456789ABCDEF";
var encoded = "";
for (var i = 0; i < plaintext.length; i++ ) {
var ch = plaintext.charAt(i);
if (ch == " ") {
encoded += "+"; // x-www-urlencoded, rather than %20
} else if (SAFECHARS.indexOf(ch) != -1) {
encoded += ch;
} else {
var charCode = ch.charCodeAt(0);
if (charCode > 255) {
alert( "Unicode Character '"
+ ch
+ "' cannot be encoded using standard URL encoding.\n" +
"(URL encoding only supports 8-bit characters.)\n" +
"A space (+) will be substituted." );
encoded += "+";
} else {
encoded += "%";
encoded += HEX.charAt((charCode >> 4) & 0xF);
encoded += HEX.charAt(charCode & 0xF);
}
}
} // for
return encoded;
}PK
]b(3RI content/MemotooThunderbird.jsfunction MemotooThunderbird() { this._init(); }
MemotooThunderbird.prototype =
{
settings:null,
addressBook:null,
stringbundle:null,
_console:null,
_ioService:null,
_init:function()
{
var sbSvc = Components.classes["@mozilla.org/intl/stringbundle;1"]
.getService(Components.interfaces.nsIStringBundleService);
this.stringbundle = sbSvc.createBundle("chrome://memotoothunderbird/locale/memotoothunderbird.properties");
this._console = Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService);
this._ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
this.settings = new MemotooThunderbirdSettings(this);
},
get addressBookLDIF()
{
this.addressBook = new MemotooThunderbirdAddressBook(this);
var source = "";
source += "";
return source;
},
uploadAddressBookLDIF:function()
//get uploadAddressBookLDIF()
{
var addressBookLDIFtmp = this.addressBookLDIF;
//alert(addressBookLDIFtmp);
/*
if (this.addressBook.addressBook.length>0)
{
if (this.settings.prefLogin=="" || this.settings.prefPassword=="")
{
alert(this.stringbundle.GetStringFromName("loginpasswordempty"));
return false;
}
var urlTmp = this.settings.prefUrl+"?l="+this.settings.prefLogin+"&p="+this.settings.prefPassword;
*/
/*
if (this.settings.prefIsDownloader)
urlTmp = urlTmp+"&isdownloader=1";
else
urlTmp = urlTmp+"&isdownloader=0";
*/
//alert(urlTmp);
/*
window.setCursor("wait");
//gBookmarksSynchronizerUploadService.start(addressBookLDIFtmp, this._ioService.newURI(urlTmp, null, null), "text/html", uploadCallback);
*/
alert("export");
/*
}
else
{
alert(this.stringbundle.GetStringFromName("upload0contact"));
gMemotooThunderbird.settings.prefIsUploader = true;
}
*/
return true;
},
downloadAddressBookLDIF:function()
//get downloadAddressBookLDIF()
{
if (this.settings.prefLogin=="" || this.settings.prefPassword=="")
{
alert(this.stringbundle.GetStringFromName("loginpasswordempty"));
return false;
}
var urlTmp = this.settings.prefUrl+"?l="+this.settings.prefLogin+"&p="+this.settings.prefPassword;
/*
if (this.settings.prefIsUploader)
urlTmp = urlTmp+"&isuploader=1";
else
urlTmp = urlTmp+"&isuploader=0";
*/
//alert(urlTmp);
window.setCursor("wait");
gBookmarksSynchronizerDownloadService.start(this._ioService.newURI(urlTmp, null, null), downloadCallback);
return true;
},
};
function uploadCallback(stat, err)
{
if (stat=="done")
{
window.setCursor("auto");
if (err==0)
{
var rien = confirm(gMemotooThunderbird.stringbundle.GetStringFromName("uploadok"));
gMemotooThunderbird.settings.prefIsUploader = true;
}
}
switch (err)
{
case -2:
break;
case 0:
break;
case -3:
break;
case 401:
alert(gMemotooThunderbird.stringbundle.GetStringFromName("loginpassworderror"));
break;
default:
break;
}
//setTimeout(close, 10000);
}
function downloadCallback(stat, err)
{
if (stat=="done")
{
window.setCursor("auto");
if (err==0)
{
// Copier les donnes dans un fichier en local
var addressBookLDIFtmp = gBookmarksSynchronizerDownloadService.data;
//alert(addressBookLDIFtmp);
var fichierTmp = Components.classes["@mozilla.org/file/directory_service;1"]
.getService(Components.interfaces.nsIProperties)
.get("TmpD", Components.interfaces.nsIFile);
fichierTmp.append("addressBook-memotoo.ldif");
//alert("->"+fichierTmp.path);
if (! fichierTmp.exists())
{
fichierTmp.create(0, 0644);
}
// set up the output stream to the file
var outputStream = Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream);
outputStream.init(fichierTmp, 0x20 | 0x02, 00004, null);
// write the HTML source to the file
var result = outputStream.write(addressBookLDIFtmp, addressBookLDIFtmp.length);
outputStream.flush();
outputStream.close();
// Importation des favoris
AddressBookCommandMemotoo.ImportAddress(fichierTmp.path);
var rien = confirm(gMemotooThunderbird.stringbundle.GetStringFromName("downloadok"));
gMemotooThunderbird.settings.prefIsDownloader = true;
}
}
switch (err)
{
case -2:
break;
case 0:
break;
case -3:
break;
case 401:
alert(gMemotooThunderbird.stringbundle.GetStringFromName("loginpassworderror"));
break;
default:
break;
}
//setTimeout(close, 10000);
}PK
|`(3uA A ( content/MemotooThunderbirdAddressBook.jsfunction MemotooThunderbirdAddressBook(MemotooThunderbird) { this._init(MemotooThunderbird); }
MemotooThunderbirdAddressBook.prototype =
{
_MemotooThunderbird:null,
_init:function(MemotooThunderbird)
{
this._MemotooThunderbird = MemotooThunderbird;
},
get addressBook()
{
return null;
},
};
PK
7S(3GQ Q $ content/memotoothunderbirdOverlay.jsvar memotoothunderbirdService =
{
_MemotooThunderbird:null,
onload:function()
{
_MemotooThunderbird = new MemotooThunderbird();
/*
// Ajout dans le menu "Marque-Pages" un raccourci vers les options
try {
var menu = document.getElementById("bookmarks-menu");
var popup = menu.firstChild;
var sep = popup.getElementsByTagName("menuseparator")[0];
var label = _MemotooThunderbird.stringbundle.GetStringFromName("options1");
var accesskey = "o";
} catch(e) {alert(e); return;}
var element = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "menuitem");
element.setAttribute("id", "bookmarks-memotoothunderbird-options");
element.setAttribute("label", label);
element.setAttribute("accesskey", accesskey);
element.setAttribute("oncommand", "memotoothunderbirdService.settings();");
popup.insertBefore(element,sep);
*/
/*
_MemotooThunderbird.settings.prefIsDownloader = false;
_MemotooThunderbird.settings.prefIsUploader = false;
// Mise jour des contacts de Thunderbird par rapport Memotoo
if (_MemotooThunderbird.settings.prefSyncOnLoad)
{
//_MemotooThunderbird.downloadAddressBookLDIF();
}
*/
},
onunload:function()
{
/*
// Mise jour des contacts de Memotoo par rapport Thunderbird
if (_MemotooThunderbird.settings.prefSyncOnExit)
{
//_MemotooThunderbird.uploadAddressBookLDIF();
}
*/
},
}
// Event Listeners
window.addEventListener("load", memotoothunderbirdService.onload, false);
window.addEventListener("unload", memotoothunderbirdService.onunload, false);PK
Q(3(XO % content/memotoothunderbirdOverlay.xul
PK
S(3r<0Ϯ
% content/MemotooThunderbirdSettings.jsfunction MemotooThunderbirdSettings(memotoothunderbird) { this._init(memotoothunderbird); }
MemotooThunderbirdSettings.prototype = {
_memotoothunderbird:null,
_init:function(memotoothunderbird) { this._memotoothunderbird = memotoothunderbird; },
get _prefroot() { return "extensions.memotoothunderbird"; },
//set prefUrl(str) { this._setPref("", "url", str); },
set prefUrl(str) { },
get prefUrl() { return this._getPref("", "url", "http://www.memotoo.com/contactsLDIF.php"); },
set prefLogin(str) { this._setPref("", "login", str); },
get prefLogin() { return this._getPref("", "login", ""); },
set prefPassword(str) { this._setPref("", "password", str); },
get prefPassword() { return this._getPref("", "password", ""); },
set prefIsUploader(b) { this._setBool("", "isuploader", b); },
get prefIsUploader() { return this._getBool("", "isuploader", false); },
set prefIsDownloader(b) { this._setBool("", "isdownloader", b); },
get prefIsDownloader() { return this._getBool("", "isdownloader", false); },
set prefSyncOnLoad(b) { this._setBool("", "autodownload", b); },
get prefSyncOnLoad() { return this._getBool("", "autodownload", false); },
set prefSyncOnExit(b) { this._setBool("", "autoupload", b); },
get prefSyncOnExit() { return this._getBool("", "autoupload", false); },
_setOpts:function(mod, str) { nsPreferences.setUnicharPref(this._prefroot + mod, str); },
_getOpts:function(mod) { return nsPreferences.copyUnicharPref(this._prefroot + mod, ""); },
_setInt:function(mod, name, value) { this._setPref(mod, name, value); },
_getInt:function(mod, name, dfault) { return parseInt(this._getPref(mod, name, dfault)); },
_setBool:function(mod, name, value) { this._setInt(mod, name, (value) ? 1 : 0); },
_getBool:function(mod, name, dfault) { return (this._getInt(mod, name, dfault) == 1) ? true : false; },
_setPref:function(mod, name, value) {
var newopts = "";
// remove the name from the current options, if it exists
var pairs = this._getOpts(mod).split("&");
for (var idx = 0; idx < pairs.length; idx++) {
var pair = pairs[idx].split("=");
if ((pair[0] != name) && (pairs[idx] != "")) {
newopts += pairs[idx] + "&";
}
}
// add the new string to the options & save the options
newopts += name + "=" + escape(value);
this._setOpts(mod, newopts);
},
_getPref:function(mod, name, dfault) {
// scan for the name
var pairs = this._getOpts(mod).split("&");
for (var idx = 0; idx < pairs.length; idx++) {
var pair = pairs[idx].split("=");
if (pair[0] == name) {
return unescape(pair[1]);
}
}
// still here? not found...
return dfault;
},
};PK
S(3) content/options.jsvar gMemotooThunderbird = null;
var gDossierId = "";
function loadSettings()
{
document.getElementById("login").value = gMemotooThunderbird.settings.prefLogin;
document.getElementById("password").value = gMemotooThunderbird.settings.prefPassword;
//document.getElementById("autodownload").checked = gMemotooThunderbird.settings.prefSyncOnLoad;
//document.getElementById("autoupload").checked = gMemotooThunderbird.settings.prefSyncOnExit;
}
function saveSettings()
{
gMemotooThunderbird.settings.prefLogin = document.getElementById("login").value;
gMemotooThunderbird.settings.prefPassword = hex_md5(document.getElementById("password").value);
//gMemotooThunderbird.settings.prefSyncOnLoad = document.getElementById("autodownload").checked;
//gMemotooThunderbird.settings.prefSyncOnExit = document.getElementById("autoupload").checked;
}
function onLoad()
{
gMemotooThunderbird = new MemotooThunderbird();
loadSettings();
}
function onSave()
{
saveSettings();
}
function download()
{
saveSettings();
var result = gMemotooThunderbird.downloadAddressBookLDIF();
}
function upload()
{
saveSettings();
var result = gMemotooThunderbird.uploadAddressBookLDIF();
}PK
](3e@Y Y content/options.xul
PK
[(3 _ content/upload.xul
PK
!^(3 locale/PK
2^(3
locale/en-US/PK
P(3p p locale/en-US/contents.rdf
PK
R(3e9 # locale/en-US/memotoothunderbird.dtd
PK
S(3@hV V * locale/en-US/memotoothunderbird.propertiesloginpasswordempty=Error: Login and password couldn't be empty
loginpassworderror=Error: Impossible to connect to Memotoo.com with this login and this password
uploadok=Update Address book Memotoo.com -> OK
downloadok=Update Address book Thunderbird -> OK
upload0contact=Update Memotoo.com impossible -> there is 0 contact in this folderPK
2^(3
locale/fr-FR/PK
P(3~p p locale/fr-FR/contents.rdf
PK
R(3Jʙ # locale/fr-FR/memotoothunderbird.dtd
PK
S(3&jc * locale/fr-FR/memotoothunderbird.propertiesloginpasswordempty=Erreur: le login et le mot de passe ne peuvent pas etre vide
loginpassworderror=Erreur: Impossible de se connecter a Memotoo.com avec ce login et ce mot de passe
uploadok=Mise a jour du carnet d'adresses Memotoo.com -> OK
downloadok=Mise a jour du carnet d'adresses Thunderbird -> OK
upload0contact=Mise a jour Memotoo.com impossible -> Il n'y a 0 contact dans ce dossierPK
!^(3 skin/PK
P(3MZ skin/contents.rdf
PK
u3O?B skin/default.csstextbox.noframe, textbox.noframe > .textbox-internal-box, textbox.noframe > .textarea-internal-box {
background: transparent !important;
border: none;
padding: 0px;
-moz-appearance: none;
}PK
M3k
l{ { skin/memotoo.pngPNG
IHDR D sBITO kPLTE̴ּܸߙֵ֫ڒ裷ݝѤ֊煸랰ȡӶԓ̙{r͇siląvd[TݽwySPIAI<ڭk>;تeb2(~/|ԭU$z'wvtHeIplmУAjcd f` \̙3 Y"P$ SMH Kŕ"BM.<8)184+ E ytRNS kf pHYs
B4 tEXtCreation Time 08/24/05 !tEXtSoftware Macromedia Fireworks 4.0&'u IDATxO@*/nu(sRcbWh(lf]i\ޕ@$71s/= 'Xv1cYVFM4e[Fb
|}'3p@9!wrK1.EhG!ʛ5Qpn3 Om\O@>;{${u`QHM:Ok2PȮ5@7FLAQvQ9ڑ#]q
h8' DuPQJQ ˪ҊJSVꊴ4J4.?>}9|9|rCwiF9xr3o+ !,Љčx)wb-s"/>9o6Vl?+a[4?%Vsc[à1R
{, do:oH IENDB`PK
!^(3 content/PK
`(3
u` ` &