?‘λPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ‘ΐ?¨Ήa pHYs ? ??o‘§d GIDATx^¨ͺ¨ΉL‘±‘Βe‘ΒY?a?("Bh?_¨°???‘ι‘μ?q5k?*:t0A-o??£€]VkJ‘ιM??f?‘ΐ8\k2¨ͺll‘κ1]q?¨΄???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
home/user1137782/www/user1137782.atservers.net/cms/xjs/t_connector.js 0000666 00000037675 15047261454 0020707 0 ustar 00 /*
* @author Mozg
* @copyright 2011
* @company reactive.by
* @require jquery
*/
var hex_chr = "0123456789abcdef";
function rhex(num){str="";for(j = 0; j <= 3; j++) str += hex_chr.charAt((num >> (j * 8 + 4)) & 0x0F) + hex_chr.charAt((num >> (j * 8)) & 0x0F); return str;}
function str2blks_MD5(str){nblk = ((str.length + 8) >> 6) + 1;blks = new Array(nblk * 16);for(i = 0; i < nblk * 16; i++) blks[i] = 0;for(i = 0; i < str.length; i++) blks[i >> 2] |= str.charCodeAt(i) << ((i % 4) * 8); blks[i >> 2] |= 0x80 << ((i % 4) * 8); blks[nblk * 16 - 2] = str.length * 8; return blks;}
function add(x, y){ var lsw = (x & 0xFFFF) + (y & 0xFFFF); var msw = (x >> 16) + (y >> 16) + (lsw >> 16); return (msw << 16) | (lsw & 0xFFFF);}
function rol(num, cnt) {return (num << cnt) | (num >>> (32 - cnt));}
function cmn(q, a, b, x, s, t){return add(rol(add(add(a, q), add(x, t)), s), b);}
function ff(a, b, c, d, x, s, t){return cmn((b & c) | ((~b) & d), a, b, x, s, t);}
function gg(a, b, c, d, x, s, t){return cmn((b & d) | (c & (~d)), a, b, x, s, t);}
function hh(a, b, c, d, x, s, t){return cmn(b ^ c ^ d, a, b, x, s, t);}
function ii(a, b, c, d, x, s, t){return cmn(c ^ (b | (~d)), a, b, x, s, t);}
function MD5(str){x = str2blks_MD5(str);a=1732584193;b=-271733879;c=-1732584194;d=271733878; for(i = 0; i < x.length; i += 16){olda=a;oldb=b;oldc=c;oldd=d;a=ff(a, b, c, d, x[i+ 0], 7 , -680876936);d = ff(d, a, b, c, x[i+ 1], 12, -389564586);c = ff(c, d, a, b, x[i+ 2], 17, 606105819);b = ff(b, c, d, a, x[i+ 3], 22, -1044525330);a = ff(a, b, c, d, x[i+ 4], 7 , -176418897);d = ff(d, a, b, c, x[i+ 5], 12, 1200080426);c = ff(c, d, a, b, x[i+ 6], 17, -1473231341);b = ff(b, c, d, a, x[i+ 7], 22, -45705983); a = ff(a, b, c, d, x[i+ 8], 7 , 1770035416);d = ff(d, a, b, c, x[i+ 9], 12, -1958414417);c = ff(c, d, a, b, x[i+10], 17, -42063);b = ff(b, c, d, a, x[i+11], 22, -1990404162); a = ff(a, b, c, d, x[i+12], 7 , 1804603682);d=ff(d,a,b,c,x[i+13],12,-40341101);c=ff(c,d,a,b,x[i+14],17,-1502002290);b=ff(b,c,d,a,x[i+15],22,1236535329);a=gg(a,b,c,d,x[i+ 1],5 ,-165796510);d=gg(d,a,b,c,x[i+ 6],9 ,-1069501632);c=gg(c,d,a,b,x[i+11],14,643717713);b=gg(b,c,d,a,x[i+ 0],20,-373897302);a=gg(a,b,c,d,x[i+ 5],5 ,-701558691);d=gg(d,a,b,c,x[i+10],9 ,38016083);c=gg(c,d,a,b,x[i+15],14,-660478335);b=gg(b,c,d,a,x[i+ 4],20,-405537848);a=gg(a,b,c,d,x[i+ 9],5 ,568446438);d=gg(d,a,b,c,x[i+14],9 ,-1019803690);c=gg(c,d,a,b,x[i+ 3],14,-187363961);b=gg(b,c,d,a,x[i+ 8],20,1163531501);a=gg(a,b,c,d,x[i+13],5 ,-1444681467);d=gg(d,a,b,c,x[i+ 2],9 ,-51403784);c=gg(c,d,a,b,x[i+ 7],14,1735328473);b=gg(b,c,d,a,x[i+12],20,-1926607734);a=hh(a,b,c,d,x[i+ 5],4 ,-378558);d=hh(d,a,b,c,x[i+ 8],11,-2022574463);c=hh(c,d,a,b,x[i+11],16,1839030562);b=hh(b,c,d,a,x[i+14],23,-35309556);a=hh(a,b,c,d,x[i+ 1],4 ,-1530992060);d=hh(d,a,b,c,x[i+ 4],11,1272893353);c=hh(c,d,a,b,x[i+ 7],16,-155497632);b=hh(b,c,d,a,x[i+10],23,-1094730640);a=hh(a,b,c,d,x[i+13],4 ,681279174);d=hh(d,a,b,c,x[i+ 0],11,-358537222);c=hh(c,d,a,b,x[i+ 3],16,-722521979);b=hh(b,c,d,a,x[i+ 6],23,76029189);a=hh(a,b,c,d,x[i+ 9],4 ,-640364487);d=hh(d,a,b,c,x[i+12],11,-421815835);c=hh(c,d,a,b,x[i+15],16,530742520);b=hh(b,c,d,a,x[i+ 2],23,-995338651);a=ii(a,b,c,d,x[i+ 0],6 ,-198630844);d=ii(d,a,b,c,x[i+ 7],10,1126891415);c=ii(c,d,a,b,x[i+14],15,-1416354905);b=ii(b,c,d,a,x[i+ 5],21,-57434055);a=ii(a,b,c,d,x[i+12],6 ,1700485571);d=ii(d,a,b,c,x[i+ 3],10,-1894986606);c=ii(c,d,a,b,x[i+10],15,-1051523);b=ii(b,c,d,a,x[i+ 1],21,-2054922799);a=ii(a,b,c,d,x[i+ 8],6 ,1873313359);d=ii(d,a,b,c,x[i+15],10,-30611744);c=ii(c,d,a,b,x[i+ 6],15,-1560198380);b=ii(b,c,d,a,x[i+13],21,1309151649);a=ii(a,b,c,d,x[i+ 4],6 ,-145523070);d=ii(d,a,b,c,x[i+11],10,-1120210379);c=ii(c,d,a,b,x[i+ 2],15,718787259);b=ii(b,c,d,a,x[i+ 9],21,-343485551);a = add(a, olda);b = add(b, oldb);c = add(c, oldc);d = add(d, oldd);}return rhex(a) + rhex(b) + rhex(c) + rhex(d);}
var JSON;
if (!JSON) { JSON = {};}
(function () {
"use strict";
function f(n) { return n < 10 ? '0' + n : n; }
if (typeof Date.prototype.toJSON !== 'function') { Date.prototype.toJSON = function (key) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + '-' + f(this.getUTCMonth() + 1) + '-' + f(this.getUTCDate()) + 'T' + f(this.getUTCHours()) + ':' + f(this.getUTCMinutes()) + ':' + f(this.getUTCSeconds()) + 'Z' : null; }; String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (key) { return this.valueOf(); }; }
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '"' : '\\"', '\\': '\\\\' }, rep;
function quote(string) { escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function (a) { var c = meta[a]; return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + string + '"'; }
function str(key, holder) { var i,k,v,length,mind = gap,partial,value = holder[key]; if (value && typeof value === 'object' && typeof value.toJSON === 'function') { value = value.toJSON(key);} if (typeof rep === 'function') { value = rep.call(holder, key, value); }
switch (typeof value) {
case 'string': return quote(value);
case 'number': return isFinite(value) ? String(value) : 'null';
case 'boolean': case 'null': return String(value);
case 'object': if (!value) { return 'null';} gap += indent; partial = []; if (Object.prototype.toString.apply(value) === '[object Array]') {length = value.length; for (i = 0; i < length; i += 1) { partial[i] = str(i, value) || 'null'; } v = partial.length === 0 ? '[]' : gap ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : '[' + partial.join(',') + ']'; gap = mind; return v; } if (rep && typeof rep === 'object') { length = rep.length; for (i = 0; i < length; i += 1) { if (typeof rep[i] === 'string') { k = rep[i]; v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ': ' : ':') + v); }}} } else { for (k in value) {if (Object.prototype.hasOwnProperty.call(value, k)) { v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ': ' : ':') + v); }}} } v = partial.length === 0 ? '{}' : gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}'; gap = mind; return v; }
}
if (typeof JSON.stringify !== 'function') { JSON.stringify = function (value, replacer, space) { var i; gap = ''; indent = ''; if (typeof space === 'number') {for (i = 0; i < space; i += 1) { indent += ' '; } } else if (typeof space === 'string') { indent = space; } rep = replacer; if (replacer && typeof replacer !== 'function' && (typeof replacer !== 'object' || typeof replacer.length !== 'number')) { throw new Error('JSON.stringify'); } return str('', {'': value}); }; }
if (typeof JSON.parse !== 'function') { JSON.parse = function (text, reviver) { var j; function walk(holder, key) {var k, v, value = holder[key]; if (value && typeof value === 'object') {for (k in value) { if (Object.prototype.hasOwnProperty.call(value, k)) { v = walk(value, k); if (v !== undefined) { value[k] = v; } else { delete value[k]; }}}}return reviver.call(holder, key, value); }text = String(text);cx.lastIndex = 0; if (cx.test(text)) { text = text.replace(cx, function (a) { return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); }); } if (/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@').replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']').replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { j = eval('(' + text + ')'); return typeof reviver === 'function' ? walk({'': j}, '') : j; } throw new SyntaxError('JSON.parse'); }; }
}());
function export_form(id,remove_prefix){
if(typeof remove_prefix == 'undefined' ) {remove_prefix='';}
if(typeof id=='object'){ var form = id; } else{ var form = document.getElementById(id); }
if (form == null) { return null; }
if (typeof(form.elements) == 'undefined') { return null; }
var formData = {};
for (var iterator = 0; iterator < form.elements.length; iterator ++) {
var element = form.elements[iterator];
if (element.disabled) { continue; }
var elementType = element.tagName.toLowerCase();
var elementName = null;
var elementValue = null;
if ( (typeof(element.name) != 'undefined') && (element.name.length > 0)) {elementName = element.name;
} else if ( (typeof(element.id) != 'undefined') &&(element.id.length > 0)) { elementName = element.id; }
if (elementName != null) {
if (elementType == 'input') {
if ( (element.type == 'text') || (element.type == 'password') || (element.type == 'button') || (element.type == 'submit') || (element.type == 'hidden')) { elementValue = element.value; }
else if (element.type == 'checkbox') {
elementValue = element.checked;
}
else if (element.type == 'radio') {
if (element.checked) { elementValue = element.value; } else {
try {
var type = eval('typeof(formData.' + elementName + ')');
if (type != 'undefined') { continue; }
} catch (e) { continue; }
}
}
else if (element.type == 'file') {
elementValue = element.value;
}
} else if (elementType == 'select') {
if (element.options.length > 0) {
if (element.multiple) {
elementName = elementName.replace(/\[\]$/ig, '');
elementValue = [];
for (var optionsIterator = 0; optionsIterator < element.options.length; optionsIterator ++) {
if(element.getAttribute('fullselect')) {
elementValue[element.options[optionsIterator].value]=element.options[optionsIterator].text;
}
else{
if (element.options[optionsIterator].selected) { elementValue.push(element.options[optionsIterator].value); }
}
}
} else {
if (element.selectedIndex >= 0) {
elementValue = element.options[element.selectedIndex].value;
}
}
}
} else if (elementType == 'textarea') {
elementValue = element.value;
}
try {
if (remove_prefix){
var len = remove_prefix.length;
if (elementName.slice(0,len) == remove_prefix) { elementName =elementName.slice(len); }
}
if (/^(\w+)\[(\w+)\]$/.test(element.name)){
var match = element.name.match(/^(\w+)\[(\w+)\]$/);
if (typeof formData[match[1]] == 'undefined') {
formData[match[1]]={};
}
eval('formData.' + match[1] + '.' + match[2] + ' = elementValue;');
} else {
eval('formData.' + elementName + ' = elementValue;');
}
} catch (e) {}
}
}
return formData;
};
function cms_connector(module) {
this.async = true;
this.callback = null;
this.result = [];
this.raw=false;
this.module = '_common';
this.cache = {};
if (typeof module == 'string') {
this.module = module;
} else {
this.module = false;
}
this.cache_key = false;
this.callback_cache = {};
this.execute = function(request,callback,raw) {
if (typeof request == 'undefined') return false;
if (typeof raw == 'undefined') { this.raw=false;} else { this.raw=true; }
if (typeof callback == 'function') {
this.async=true;
this.callback=callback;
} else {
this.async=false;
this.callback=null;
}
this.result=[];
var serialized_request = JSON.stringify(request);
serialized_request.toString();
serialized_request = serialized_request.split('&').join('%%xamp;%%');
var modulestr = (typeof this.module == 'string' && this.module && this.module != '_common') ? 'module='+this.module+'$' : '';
var params = {
'dataType' : 'json',
'url' : document.location.protocol + '//' + document.location.host + '/cms/modules/connector/index.php',
'type' : 'POST',
'data' : 'request=' + modulestr+serialized_request,
'async' : this.async,
'processData' : true,
'complete' : $.proxy(function(answer){
if (this.raw) {
this.result=answer.responseText;
} else {
var response = false;
if (this.module == false) {this.module = '_common';}
if (this.cache_key) { this.cache[this.module][this.cache_key]=false; }
if (answer.responseText != ""){ response = eval( "(" + answer.responseText + ")" ); }
this.result = response;
if (typeof response['_context'] != 'undefined'){ this.cache_key = response['_context']; }
if (this.cache_key) {
var cache_key=this.cache_key;
this.cache[this.module][this.cache_key]=response;
if (typeof this.callback_cache[module][this.cache_key] == 'function') {
this.last_callback=this.callback_cache[module][cache_key];
this.last_callback();
}
this.cache_key=false;
}
}
if (this.async) { this.callback(); }
},this)
};
$.ajax(params);
};
this.executex = function(request,callback,raw){
if ( typeof raw != 'undefined') { this.execute(request); }
var module = this.module;
if (module == "" || !module) { module="_common";}
var cache_key = MD5(JSON.stringify(request));
if (typeof this.cache[module] == 'undefined') { this.cache[module]={}}
if (typeof this.cache[module][cache_key] != 'undefined') {
this.result = this.cache[module][cache_key];
if (typeof this.callback_cache[module][cache_key] == 'function') {
this.last_callback = this.callback_cache[module][cache_key];
this.last_callback();
}
return true;
}
if (callback){
if (typeof this.callback_cache[module] == 'undefined') { this.callback_cache[module]={}}
if (typeof this.callback_cache[module][cache_key] == 'undefined') {
this.callback_cache[module][cache_key]=callback;
}
}
request['_context']=this.cache_key=cache_key;
this.execute(request);
}
this.clear_cache = function(){ this.cache={}; }
};
var connector = new cms_connector();
var EMr = 'ΠΠ·Π²ΠΈΠ½ΠΈΡΠ΅, ΠΏΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ° c ΠΎΡΠΏΡΠ°Π²ΠΊΠΎΠΉ Π·Π°ΠΏΡΠΎΡΠ°!';
var EMn = 'ΠΠ·Π²ΠΈΠ½ΠΈΡΠ΅, ΠΏΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ°. (ΠΠΎΠ΄ ΠΎΡΠΈΠ±ΠΊΠΈ : ';
var EM = 'ΠΠ·Π²ΠΈΠ½ΠΈΡΠ΅, ΠΏΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ°.';
function stdcheck(cconnector){
if (!cconnector.result){ alert(EMr); return false; }
if (!cconnector.result.passed){ if (cconnector.result.error){ alert(EMn+cconnector.result.error+')'); } else {alert(EM);} return false; }
return cconnector.result;
}