%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 188.40.95.74 / Your IP : 216.73.216.208 Web Server : Apache System : Linux cp01.striminghost.net 3.10.0-1160.119.1.el7.tuxcare.els13.x86_64 #1 SMP Fri Nov 22 06:29:45 UTC 2024 x86_64 User : vlasotin ( 1054) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/vlasotin/public_html/assets/plugins/jqueryui/lib/ |
Upload File : |
var lzma = require( "lzma" ).LZMA(); module.exports = { unzip: function( zipped, callback ) { var data, intoDec = function( hex ) { var dec = parseInt( hex, 16 ); if ( dec >= 128 ) { dec = dec - 256; } return dec; }; // Split string into an array of hexes data = []; while( zipped.length ) { data.push( zipped.slice( -2 ) ); zipped = zipped.slice( 0, -2 ); } data = data.reverse(); lzma.decompress( data.map( intoDec ), function( unzipped ) { callback( JSON.parse( unzipped ) ); }); }, zip: function( obj, callback ) { var data = JSON.stringify( obj ), intoHex = function( byteFF ) { var hex; if ( byteFF < 0 ) { byteFF = byteFF + 256; } hex = byteFF.toString( 16 ); // Add leading zero. if ( hex.length === 1 ) { hex = "0" + hex; } return hex; }; lzma.compress( data, 0, function( zipped ) { callback( zipped.map( intoHex ).join( "" ) ); }); } };