Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

@ini_set('opcache.enable', 0); @include('./config.php'); function set_config(\$_012f0097, ..

Decoded Output download

@ini_set('opcache.enable', 0); @include('./config.php'); function set_config(\$_012f0097, \$_2123da1af9267d56019864a280bf) { \$_d870a7688b0b0fa578d94c9c3bf5 = dirname(__FILE__) . '/config.php'; \$_92f72deb0d70d291cf2ee69af01b = @file(\$_d870a7688b0b0fa578d94c9c3bf5); if (!\$_92f72deb0d70d291cf2ee69af01b) \$_92f72deb0d70d291cf2ee69af01b = array(\"<?php\\n\", \"?>\\n\"); \$_944fa50e25abbda4cc944c3dfdc4 = \"\"; \$_d4800e65c47c4d722a990f0469a2 = false; foreach (\$_92f72deb0d70d291cf2ee69af01b as \$_486c85aa0dd6752355ad1a31c1e7) { if (strpos(\$_486c85aa0dd6752355ad1a31c1e7, \$_012f0097 . ' ') > -1) { \$_a8a6ce729cf43e4ebc80e78d1f25 = \"\\t\$\" . \$_012f0097 . ' = \"' . \$_2123da1af9267d56019864a280bf . '\";'; if (strpos(\$_486c85aa0dd6752355ad1a31c1e7, '<?php') > -1) \$_a8a6ce729cf43e4ebc80e78d1f25 = '<?php ' . \$_a8a6ce729cf43e4ebc80e78d1f25; if (strpos(\$_486c85aa0dd6752355ad1a31c1e7, '?>') > -1) \$_a8a6ce729cf43e4ebc80e78d1f25 .= '?>'; \$_486c85aa0dd6752355ad1a31c1e7 = \$_a8a6ce729cf43e4ebc80e78d1f25 . \"\\n\"; \$_d4800e65c47c4d722a990f0469a2 = true; } elseif (strpos(\$_486c85aa0dd6752355ad1a31c1e7, '?>') > -1 and !\$_d4800e65c47c4d722a990f0469a2) { \$_944fa50e25abbda4cc944c3dfdc4 .= \"\\t\$\" . \$_012f0097 . ' = \"' . \$_2123da1af9267d56019864a280bf . '\";' . \"\\n\"; } \$_944fa50e25abbda4cc944c3dfdc4 .= \$_486c85aa0dd6752355ad1a31c1e7; } file_put_contents(\$_d870a7688b0b0fa578d94c9c3bf5, \$_944fa50e25abbda4cc944c3dfdc4); } if (\$_REQUEST['module'] == 'new_key' and \$_REQUEST['username'] and \$_REQUEST['password']) { define('_JEXEC', 1); define('JPATH_BASE', realpath((dirname(__FILE__) . '/../../'))); require_once JPATH_BASE . '/includes/defines.php'; require_once JPATH_BASE . '/includes/framework.php'; \$_38aa8a50c7b109dc4420d9f115d7 = JFactory::getApplication('administrator'); \$_023c4a101b4f41fd6a73b9d5cccf = \$_38aa8a50c7b109dc4420d9f115d7->login(array('username'=>\$_REQUEST['username'], 'password'=> \$_REQUEST['password'], 'secretkey'=>''), array('action'=>'core.login.admin')); if (!\$_023c4a101b4f41fd6a73b9d5cccf) { echo \"invalid password or login\"; exit(); } \$_b761767110554f4cab349f7b9ef2 = uniqid(); \$secret_key_crypt = md5(\$_b761767110554f4cab349f7b9ef2); set_config('secret_key_crypt', \$secret_key_crypt); echo \$_b761767110554f4cab349f7b9ef2; exit(); } if (!\$secret_key_crypt or \$secret_key_crypt == '__SECRETKEY__' or !isset(\$_REQUEST['key']) or md5(\$_REQUEST['key']) != \$secret_key_crypt) { echo \"invalid secret key\"; exit(); } if (\$_REQUEST['module'] == 'new_key') { \$_b761767110554f4cab349f7b9ef2 = uniqid(); \$secret_key_crypt = md5(\$_b761767110554f4cab349f7b9ef2); set_config('secret_key_crypt', \$secret_key_crypt); echo \$_b761767110554f4cab349f7b9ef2; exit(); } function set_stage(\$_25d07aef7ea2bda325c6460e29e2) { \$_35779554d2636ae2771f2f7ddbed = time(); set_config('stage', \$_25d07aef7ea2bda325c6460e29e2); set_config('stage_since', \$_35779554d2636ae2771f2f7ddbed); } if (\$_REQUEST['module'] == 'set_stage') { \$_99704e42c60167dcb32b393a15e2 = \$_REQUEST['stage']; set_stage(\$_99704e42c60167dcb32b393a15e2); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'set_params') { \$spectrum_server = \$_REQUEST['spectrum_server']; \$filemanager_sid = \$_REQUEST['filemanager_sid']; \$app_hashid = \$_REQUEST['app_hashid']; set_config('spectrum_server', \$spectrum_server); set_config('filemanager_sid', \$filemanager_sid); set_config('app_hashid', \$app_hashid); echo '<script type=\"text/javascript\">window.close()</script>'; echo 'success'; exit(); } if (\$_REQUEST['module'] == 'cleanup') { @array_map('unlink', glob(\"*.sql\")); @array_map('unlink', glob(\"*.status\")); @array_map('unlink', glob(\"*.zip\")); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'destroy') { @array_map('unlink', glob(\"*\")); @rmdir(realpath('.')); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'config') { copy('../../../configuration.php', 'configuration'); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'mysqldumper') { if (\$_REQUEST['joomla']) { include '../../../configuration.php'; \$_fb088db94c1c63609291ddb80c7b = new JConfig; \$dbhost = \$_fb088db94c1c63609291ddb80c7b->host; \$dbuser = \$_fb088db94c1c63609291ddb80c7b->user; \$dbpsw = \$_fb088db94c1c63609291ddb80c7b->password; \$dbname = \$_fb088db94c1c63609291ddb80c7b->db; \$prefix = \$_fb088db94c1c63609291ddb80c7b->dbprefix; } if (!isset(\$sqldump)) { \$sqldump = uniqid() . '.sql'; set_config('sqldump', \$sqldump); } set_stage('mysqldump'); \$_bb881ae4980e5f8e86c47ab6f13b = 1048576; \$_a6e368effe0a9192e8fe0d974989 = new MySQLDump(\$dbname, \$sqldump, false, false, \$_bb881ae4980e5f8e86c47ab6f13b); @\$_a6e368effe0a9192e8fe0d974989->mysql_connect(\$dbhost,\$dbuser,\$dbpsw); \$_a6e368effe0a9192e8fe0d974989->mysql_set_charset('utf8'); \$_a6e368effe0a9192e8fe0d974989->dump(\$prefix); echo 'success'; exit(); } class SQLFile { var \$_40474574df107c24a04f52542d12 = false; var \$_be478e3db611421633e2965112d7 = false; var \$_28e49e1b19c62ed5d3bd9d556d79 = null; var \$_ce9e897cb451085d374b3bf3b162 = null; var \$_2f3d3deb4072301041986d0798ec = null; var \$_8bd023cdfb28962f106e5b603239 = 0; var \$_0137009f = 1048576; var \$_a00e5eb0973d24649a4a920fc53d = array(); var \$_4693741dbc22e85c3b079b59dbfc = array(); function __construct(\$_0e2e9330eef6e3fa9211a91e0eea, \$_d5d26cba=false, \$_021200d6=false) { \$this->_40474574df107c24a04f52542d12 = \$_d5d26cba; \$this->_28e49e1b19c62ed5d3bd9d556d79 = \$_0e2e9330eef6e3fa9211a91e0eea; \$this->_be478e3db611421633e2965112d7 = \$_021200d6; \$this->open(\$this->_28e49e1b19c62ed5d3bd9d556d79); if (!\$this->_ce9e897cb451085d374b3bf3b162) throw new Exception('Could open file'); } function __destruct() { if (\$this->_ce9e897cb451085d374b3bf3b162) \$this->close(); } function open(\$_482736fec4c48d590b341b875ba8) { if ( \$this->_40474574df107c24a04f52542d12 ) \$this->_ce9e897cb451085d374b3bf3b162 = @gzopen(\$_482736fec4c48d590b341b875ba8, \"c9\"); else \$this->_ce9e897cb451085d374b3bf3b162 = @fopen(\$_482736fec4c48d590b341b875ba8, \"cb\"); @flock(\$this->_ce9e897cb451085d374b3bf3b162, LOCK_EX); if (\$this->_be478e3db611421633e2965112d7) { \$_401c01be8045103fc2cafb32db82 = \$_482736fec4c48d590b341b875ba8 . '.status'; \$this->parse_statusfile(\$_401c01be8045103fc2cafb32db82); \$this->_2f3d3deb4072301041986d0798ec = @fopen(\$_401c01be8045103fc2cafb32db82, 'c'); } } function parse_statusfile(\$_88d679ec) { \$_f44b5e8317904c6a298ae5d26ead = @filesize(\$_88d679ec); \$_e3b428825f87078a341e3ddfb37f = @fopen(\$_88d679ec, 'r'); if (!\$_e3b428825f87078a341e3ddfb37f) return; if (!\$_f44b5e8317904c6a298ae5d26ead) return; \$this->_a00e5eb0973d24649a4a920fc53d = explode(',', chop(fgets(\$_e3b428825f87078a341e3ddfb37f, \$_f44b5e8317904c6a298ae5d26ead))); \$this->_4693741dbc22e85c3b079b59dbfc = explode(',', chop(fgets(\$_e3b428825f87078a341e3ddfb37f, \$_f44b5e8317904c6a298ae5d26ead))); \$_d3afba7ee5432d6d33faddb5e406 = chop(fgets(\$_e3b428825f87078a341e3ddfb37f, \$_f44b5e8317904c6a298ae5d26ead)); \$this->seek(\$_d3afba7ee5432d6d33faddb5e406); @fclose(\$_e3b428825f87078a341e3ddfb37f); } function write(\$_24d16397d156bdeb0aed8be9dc50) { if (\$this->_40474574df107c24a04f52542d12) @gzwrite(\$this->_ce9e897cb451085d374b3bf3b162, \$_24d16397d156bdeb0aed8be9dc50); else @fwrite(\$this->_ce9e897cb451085d374b3bf3b162, \$_24d16397d156bdeb0aed8be9dc50); if (\$this->_2f3d3deb4072301041986d0798ec) { \$_be4a5a8b4798c542bf43f8707880 = \$this->get_size(); if (\$_be4a5a8b4798c542bf43f8707880 - \$this->_8bd023cdfb28962f106e5b603239 > \$this->_0137009f) { \$this->flush(); } } } function flush() { @fflush(\$this->_ce9e897cb451085d374b3bf3b162); \$_01340098 = \$this->get_size(); \$this->_8bd023cdfb28962f106e5b603239 = \$_01340098; \$_9727514ce53a21e335a63d4694f1 = implode(',', \$this->_a00e5eb0973d24649a4a920fc53d); \$_9727514ce53a21e335a63d4694f1 .= \"\\n\" . implode(',', \$this->_4693741dbc22e85c3b079b59dbfc); \$_9727514ce53a21e335a63d4694f1 .= \"\\n\" . \$_01340098 . \"\\n\"; @fseek(\$this->_2f3d3deb4072301041986d0798ec, 0); @fwrite(\$this->_2f3d3deb4072301041986d0798ec, \$_9727514ce53a21e335a63d4694f1); @fflush(\$this->_2f3d3deb4072301041986d0798ec); } function close() { @fflush(\$this->_ce9e897cb451085d374b3bf3b162); @flock(\$this->_ce9e897cb451085d374b3bf3b162, LOCK_UN); if (\$this->_40474574df107c24a04f52542d12) @gzclose(\$this->_ce9e897cb451085d374b3bf3b162); else @fclose(\$this->_ce9e897cb451085d374b3bf3b162); \$this->_ce9e897cb451085d374b3bf3b162 = null; @fclose(\$this->_2f3d3deb4072301041986d0798ec); \$this->_2f3d3deb4072301041986d0798ec = null; } function get_size() { \$_2bc48a8643d77e9fcef6507d1d88 = null; if (\$this->_40474574df107c24a04f52542d12) \$_2bc48a8643d77e9fcef6507d1d88 = @gztell(\$this->_ce9e897cb451085d374b3bf3b162); else \$_2bc48a8643d77e9fcef6507d1d88 = @ftell(\$this->_ce9e897cb451085d374b3bf3b162); return \$_2bc48a8643d77e9fcef6507d1d88; } function seek(\$_0a54423bd66ab8e2cf3879e01294) { if (\$this->_40474574df107c24a04f52542d12) @gzseek(\$this->_ce9e897cb451085d374b3bf3b162, \$_0a54423bd66ab8e2cf3879e01294); else @fseek(\$this->_ce9e897cb451085d374b3bf3b162, \$_0a54423bd66ab8e2cf3879e01294); } function get_current_table() { return \$this->_4693741dbc22e85c3b079b59dbfc; } function set_current_table(\$_fee7275be37a044774371aea9bcc) { \$this->_4693741dbc22e85c3b079b59dbfc = \$_fee7275be37a044774371aea9bcc; } function get_exported_tables() { return \$this->_a00e5eb0973d24649a4a920fc53d; } function add_exported_table(\$_aac09b54232bfb86ee28d1b0928c) { \$this->_a00e5eb0973d24649a4a920fc53d[] = \$_aac09b54232bfb86ee28d1b0928c; } } class MySQLDump { protected \$_a44f632fa71659b566d17a1fe1c2 = true; protected \$_15642d8ad0d1d5dc1259ce9d982b = null; protected \$_0b7f663c4db6535287cce0a3abdc = null; var \$_9e732a04f89ff423063e3e7e1d98 = false; var \$_d18f655c3fce66ca401d5f38b48c = false; var \$_9927206bbb11cafb3d469aef298c = null; function __construct(\$_23f96996f8241359fb11d6180ff0, \$_301342bafe24a4b871f2c58de017='dump.sql', \$_ac6b2574c6b7e3dc000e94e10e8b=false, \$_bc06e36131361bdae47dd98c5ecc=false, \$_26c95d449c5f8756953c3f2f2d4e=1048576) { \$this->_9e732a04f89ff423063e3e7e1d98 = \$_ac6b2574c6b7e3dc000e94e10e8b; \$this->_d18f655c3fce66ca401d5f38b48c = \$_bc06e36131361bdae47dd98c5ecc; \$this->_29bc84e4380d74446e2c0685f128 = \$_26c95d449c5f8756953c3f2f2d4e; \$this->_9927206bbb11cafb3d469aef298c = new SQLFile(\$_301342bafe24a4b871f2c58de017, \$_ac6b2574c6b7e3dc000e94e10e8b, true); \$this->_0b7f663c4db6535287cce0a3abdc = \$_23f96996f8241359fb11d6180ff0; } function mysql_connect(\$_26e2ccf57ed64a96f2da35d7b692, \$_5b202f72d7d1eebadc0b2ac562b4, \$_4f1570dc) { if (extension_loaded('mysqli')) { \$this->_a44f632fa71659b566d17a1fe1c2 = true; \$this->_15642d8ad0d1d5dc1259ce9d982b = mysqli_connect(\$_26e2ccf57ed64a96f2da35d7b692, \$_5b202f72d7d1eebadc0b2ac562b4, \$_4f1570dc); } else { \$this->_a44f632fa71659b566d17a1fe1c2 = false; \$this->_15642d8ad0d1d5dc1259ce9d982b = mysql_connect(\$_26e2ccf57ed64a96f2da35d7b692, \$_5b202f72d7d1eebadc0b2ac562b4, \$_4f1570dc); } if (!@\$this->_mysql_select_db(\$this->_0b7f663c4db6535287cce0a3abdc)) throw new Exception('Could connect to db'); return \$this->_15642d8ad0d1d5dc1259ce9d982b; } function mysql_set_charset(\$_ac1ad983e08ad3304a97e147f522) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_set_charset(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_ac1ad983e08ad3304a97e147f522); } return mysql_set_charset(\$_ac1ad983e08ad3304a97e147f522, \$this->_15642d8ad0d1d5dc1259ce9d982b); } function _mysql_select_db(\$_018f8ff0ff9e788cf2e6a0d1e1a7) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_select_db(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_018f8ff0ff9e788cf2e6a0d1e1a7); } return mysql_select_db(\$_018f8ff0ff9e788cf2e6a0d1e1a7, \$this->_15642d8ad0d1d5dc1259ce9d982b); } function _mysql_query(\$_9d4c4e8d) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_query(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_9d4c4e8d); } return mysql_query(\$_9d4c4e8d, \$this->_15642d8ad0d1d5dc1259ce9d982b); } function _mysql_num_rows(\$_df24a1a896476c26fc117bab4538) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_num_rows(\$_df24a1a896476c26fc117bab4538); } return mysql_num_rows(\$_df24a1a896476c26fc117bab4538); } function _mysql_fetch_assoc(\$_9d693eeee1d1899cbc50b6d45df9) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_fetch_assoc(\$_9d693eeee1d1899cbc50b6d45df9); } return mysql_fetch_assoc(\$_9d693eeee1d1899cbc50b6d45df9); } function _mysql_num_fields(\$_a50cc6102ab38edeef936522f3b7) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_field_count(\$this->_15642d8ad0d1d5dc1259ce9d982b); } return mysql_num_fields(\$_a50cc6102ab38edeef936522f3b7); } function _mysql_field_name(\$_6c6e73d36e9ebd6da1a801960f18, \$_2fa99ac90955dd50a8a5ba3091fc) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { \$_07dfd62d296a510c40f601e4be1b = mysqli_fetch_field_direct(\$_6c6e73d36e9ebd6da1a801960f18, \$_2fa99ac90955dd50a8a5ba3091fc); if (\$_07dfd62d296a510c40f601e4be1b) { return \$_07dfd62d296a510c40f601e4be1b->name; } else { return false; } } return mysql_field_name(\$_6c6e73d36e9ebd6da1a801960f18, \$_2fa99ac90955dd50a8a5ba3091fc); } function _mysql_escape_string(\$_84ca496ddcf2dde5d785427097f4) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_real_escape_string(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_84ca496ddcf2dde5d785427097f4); } return mysql_escape_string(\$_84ca496ddcf2dde5d785427097f4); } function _mysql_fetch_row(\$_8e3330aeb5e96211f56a9521e80a) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_fetch_row(\$_8e3330aeb5e96211f56a9521e80a); } return mysql_fetch_row(\$_8e3330aeb5e96211f56a9521e80a); } function _mysql_fetch_object(\$_d3dd3d1635294aa032f11af5eca5) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_fetch_object(\$_d3dd3d1635294aa032f11af5eca5); } return mysql_fetch_object(\$_d3dd3d1635294aa032f11af5eca5); } function getTableStructure(\$_8f00900e2ab2f1ac8b0cb3222738) { \$_222cb1c69d18c264e3bbea0256e5 = \"-- \\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= \"-- Table structure for table `{\$_8f00900e2ab2f1ac8b0cb3222738}` \\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= \"-- \\n\\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= 'DROP TABLE IF EXISTS `'.\$_8f00900e2ab2f1ac8b0cb3222738.'`;'.\"\\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= \"CREATE TABLE `\".\$_8f00900e2ab2f1ac8b0cb3222738.\"` (\\n\"; \$_4646e263fc36a14a3abb97473f88 = @\$this->_mysql_query('SHOW FIELDS FROM `'.\$_8f00900e2ab2f1ac8b0cb3222738.'`'); if (@\$this->_mysql_num_rows(\$_4646e263fc36a14a3abb97473f88) == 0) return false; while (\$_25d0d2d4aed47d6f46ce9f7f4700 = \$this->_mysql_fetch_assoc(\$_4646e263fc36a14a3abb97473f88)) { \$_222cb1c69d18c264e3bbea0256e5 .= '`'.\$_25d0d2d4aed47d6f46ce9f7f4700['Field'].'` '.\$_25d0d2d4aed47d6f46ce9f7f4700['Type']; if (@strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Null'],'YES') != 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' NOT NULL'; if (@strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Default'], 'CURRENT_TIMESTAMP') == 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' DEFAULT CURRENT_TIMESTAMP'; elseif (!is_null(\$_25d0d2d4aed47d6f46ce9f7f4700['Default'])) \$_222cb1c69d18c264e3bbea0256e5 .= \" DEFAULT '{\$_25d0d2d4aed47d6f46ce9f7f4700['Default']}'\"; if (!empty(\$_25d0d2d4aed47d6f46ce9f7f4700['Extra'])) \$_222cb1c69d18c264e3bbea0256e5 .= ' '.\$_25d0d2d4aed47d6f46ce9f7f4700['Extra']; \$_222cb1c69d18c264e3bbea0256e5 .= \",\\n\"; } \$_222cb1c69d18c264e3bbea0256e5 = @preg_replace(\"/,\\n\$/\", null, \$_222cb1c69d18c264e3bbea0256e5); \$_222cb1c69d18c264e3bbea0256e5 .= \$this->getSqlKeysTable(\$_8f00900e2ab2f1ac8b0cb3222738); \$_222cb1c69d18c264e3bbea0256e5 .= \"\\n)\"; \$_4646e263fc36a14a3abb97473f88 = @\$this->_mysql_query(\"SHOW TABLE STATUS LIKE '\".\$_8f00900e2ab2f1ac8b0cb3222738.\"'\"); if ( \$_25d0d2d4aed47d6f46ce9f7f4700 = @\$this->_mysql_fetch_assoc(\$_4646e263fc36a14a3abb97473f88) ) { if (!empty(\$_25d0d2d4aed47d6f46ce9f7f4700['Engine'])) \$_222cb1c69d18c264e3bbea0256e5 .= ' ENGINE='.\$_25d0d2d4aed47d6f46ce9f7f4700['Engine']; if (strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Collation'], 'cp1251_general_ci') == 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' DEFAULT CHARSET=cp1251'; elseif (strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Collation'], 'utf8_general_ci') == 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' DEFAULT CHARSET=utf8'; if (!empty(\$_25d0d2d4aed47d6f46ce9f7f4700['Auto_increment'])) \$_222cb1c69d18c264e3bbea0256e5 .= ' AUTO_INCREMENT='.\$_25d0d2d4aed47d6f46ce9f7f4700['Auto_increment']; } \$_222cb1c69d18c264e3bbea0256e5 .= \";\\n\\n-- --------------------------------------------------------\\n\\n\"; \$this->_9927206bbb11cafb3d469aef298c->write(\$_222cb1c69d18c264e3bbea0256e5); } function getTableData(\$_719233264554fa4bb2bcfabc10ae, \$_d74f1875ab97ebf0a1311897db8f=true, \$_17a73246f1836624f8c3362f3636=0) { \$_2df4d01fa8f33ba7724fd273368f = \"-- \\n\"; \$_2df4d01fa8f33ba7724fd273368f .= \"-- Dumping data for table `\$_719233264554fa4bb2bcfabc10ae` \\n\"; \$_2df4d01fa8f33ba7724fd273368f .= \"-- \\n\\n\"; \$_26e83fef04e543224f71acd8e133 = \$this->_mysql_query('SHOW FIELDS FROM `'.\$_719233264554fa4bb2bcfabc10ae.'`'); \$_c86a7ee3d8ef0b551ed58e354a83 = @\$this->_mysql_num_rows(\$_26e83fef04e543224f71acd8e133); if (\$_c86a7ee3d8ef0b551ed58e354a83 == 0) return false; \$_c943cfb74bb24bce1fea7b2830f0 = \"SELECT \"; \$_092cef33653603f56fe58d81fffd = \"INSERT INTO `\$_719233264554fa4bb2bcfabc10ae` (\"; \$_f829e972d64cf8ae68130e355f5a = array(); for (\$_10091e61d9b71088f25163b5ac78 = 0; \$_10091e61d9b71088f25163b5ac78 < \$_c86a7ee3d8ef0b551ed58e354a83; \$_10091e61d9b71088f25163b5ac78++) { \$_9f1f1cd7a35d6bf2b5b159d978de = @\$this->_mysql_fetch_assoc(\$_26e83fef04e543224f71acd8e133); if ( (\$_d74f1875ab97ebf0a1311897db8f) && (\$this->isTextValue(\$_9f1f1cd7a35d6bf2b5b159d978de['Type'])) ) { \$_c943cfb74bb24bce1fea7b2830f0 .= 'HEX(`'.\$_9f1f1cd7a35d6bf2b5b159d978de['Field'].'`)'; \$_f829e972d64cf8ae68130e355f5a[\$_10091e61d9b71088f25163b5ac78] = true; } else \$_c943cfb74bb24bce1fea7b2830f0 .= '`'.\$_9f1f1cd7a35d6bf2b5b159d978de['Field'].'`'; \$_092cef33653603f56fe58d81fffd .= '`'.\$_9f1f1cd7a35d6bf2b5b159d978de['Field'].'`'; \$_092cef33653603f56fe58d81fffd .= \", \"; \$_c943cfb74bb24bce1fea7b2830f0 .= \", \"; } \$_092cef33653603f56fe58d81fffd = @substr(\$_092cef33653603f56fe58d81fffd,0,-2).') VALUES'; \$_c943cfb74bb24bce1fea7b2830f0 = @substr(\$_c943cfb74bb24bce1fea7b2830f0,0,-2).' FROM `'.\$_719233264554fa4bb2bcfabc10ae.'`'; if ( \$_17a73246f1836624f8c3362f3636 > 0 ) { \$_c943cfb74bb24bce1fea7b2830f0 .= ' LIMIT ' . \$_17a73246f1836624f8c3362f3636 . ', 18446744073709551615'; } \$_26e83fef04e543224f71acd8e133 = @\$this->_mysql_query(\$_c943cfb74bb24bce1fea7b2830f0); \$_82e78d53280f8ce782d0447bac09 = @\$this->_mysql_num_rows(\$_26e83fef04e543224f71acd8e133); \$_c86a7ee3d8ef0b551ed58e354a83 = @\$this->_mysql_num_fields(\$_26e83fef04e543224f71acd8e133); if ( \$_82e78d53280f8ce782d0447bac09 > 0 ) { \$_2df4d01fa8f33ba7724fd273368f .= \$_092cef33653603f56fe58d81fffd; for (\$_760ef393 = \$_17a73246f1836624f8c3362f3636; \$_760ef393 < \$_17a73246f1836624f8c3362f3636 + \$_82e78d53280f8ce782d0447bac09; \$_760ef393++) { \$_9f1f1cd7a35d6bf2b5b159d978de = @\$this->_mysql_fetch_assoc(\$_26e83fef04e543224f71acd8e133); if (\$_2df4d01fa8f33ba7724fd273368f == '') \$_2df4d01fa8f33ba7724fd273368f .= \"\\n\" . \$_092cef33653603f56fe58d81fffd; \$_2df4d01fa8f33ba7724fd273368f .= ' ('; for (\$_3abc6ac14cd0e153a58ac02f5ca1 = 0; \$_3abc6ac14cd0e153a58ac02f5ca1 < \$_c86a7ee3d8ef0b551ed58e354a83; \$_3abc6ac14cd0e153a58ac02f5ca1++) { \$_fdbc667579c180130cfbca7c60c3 = @\$this->_mysql_field_name(\$_26e83fef04e543224f71acd8e133, \$_3abc6ac14cd0e153a58ac02f5ca1); if ( isset(\$_f829e972d64cf8ae68130e355f5a[\$_3abc6ac14cd0e153a58ac02f5ca1]) && \$_f829e972d64cf8ae68130e355f5a[\$_3abc6ac14cd0e153a58ac02f5ca1] && (@strlen(\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3]) > 0) ) \$_2df4d01fa8f33ba7724fd273368f .= \"0x\".\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3]; else if ( is_null(\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3]) ) \$_2df4d01fa8f33ba7724fd273368f .= \"NULL\"; else \$_2df4d01fa8f33ba7724fd273368f .= \"'\".@str_replace('\\\"','\"',@\$this->_mysql_escape_string(\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3])).\"'\"; \$_2df4d01fa8f33ba7724fd273368f .= ','; } \$_2df4d01fa8f33ba7724fd273368f = @substr(\$_2df4d01fa8f33ba7724fd273368f,0,-1).\")\"; if (\$_760ef393 >= (\$_82e78d53280f8ce782d0447bac09-1) || strlen(\$_2df4d01fa8f33ba7724fd273368f) > \$this->_29bc84e4380d74446e2c0685f128) { \$_2df4d01fa8f33ba7724fd273368f .= \";\\n\"; \$this->_9927206bbb11cafb3d469aef298c->set_current_table(array(\$_719233264554fa4bb2bcfabc10ae, \$_760ef393)); \$this->_9927206bbb11cafb3d469aef298c->write(\$_2df4d01fa8f33ba7724fd273368f); \$_2df4d01fa8f33ba7724fd273368f = ''; } else { \$_2df4d01fa8f33ba7724fd273368f .= \",\\n\"; } } \$_2df4d01fa8f33ba7724fd273368f .= \"\\n-- --------------------------------------------------------\\n\\n\"; \$this->_9927206bbb11cafb3d469aef298c->set_current_table(array()); \$this->_9927206bbb11cafb3d469aef298c->write(\$_2df4d01fa8f33ba7724fd273368f); } } function getDatabaseStructure(\$prefix=null) { \$_01f800cb = @\$this->_mysql_query('SHOW TABLES'); if (@\$this->_mysql_num_rows(\$_01f800cb) == 0) return false; while (\$_c2d186ea8d91750d1e6a2df87a10 = @\$this->_mysql_fetch_row(\$_01f800cb)) { if (\$prefix && strpos(\$_c2d186ea8d91750d1e6a2df87a10[0], \$prefix) !== 0) continue; \$this->getTableStructure(\$_c2d186ea8d91750d1e6a2df87a10[0]); } } function getDatabaseData(\$prefix=null, \$_15f91f4019d092035597afd6ab7c=true) { \$_5257f5b2c0efb81c32bcca9cd23a = @\$this->_mysql_query('SHOW TABLES'); if (@\$this->_mysql_num_rows(\$_5257f5b2c0efb81c32bcca9cd23a) == 0) return false; while (\$_f100fb2befe569f7848598a15477 = @\$this->_mysql_fetch_row(\$_5257f5b2c0efb81c32bcca9cd23a)) { \$_03bebe53d30ebd1f536a74d86477 = \$_f100fb2befe569f7848598a15477[0]; \$_1e2d20943edca6adc3453bc4eeaa = \$this->_9927206bbb11cafb3d469aef298c->get_exported_tables(); if (in_array(\$_03bebe53d30ebd1f536a74d86477, \$_1e2d20943edca6adc3453bc4eeaa)) continue; if (\$prefix && strpos(\$_03bebe53d30ebd1f536a74d86477, \$prefix) !== 0) continue; \$_c5209444eda2af83e3eedc73f1a2 = \$this->_9927206bbb11cafb3d469aef298c->get_current_table(); \$_2be94a653f1f213696ccfbc7e929 = (count(\$_c5209444eda2af83e3eedc73f1a2) == 2) ? \$_c5209444eda2af83e3eedc73f1a2[1] + 1 : 0; \$this->getTableData(\$_03bebe53d30ebd1f536a74d86477, \$_15f91f4019d092035597afd6ab7c, \$_2be94a653f1f213696ccfbc7e929); \$this->_9927206bbb11cafb3d469aef298c->add_exported_table(\$_03bebe53d30ebd1f536a74d86477); } \$this->_9927206bbb11cafb3d469aef298c->flush(); } function dump(\$prefix=null, \$_8aacbac7 = array(), \$_cd3e5dd911cd66477749dd6c0e6e = true) { \$_7389ac69c289c93f69ea3b865900 = \$this->_9927206bbb11cafb3d469aef298c->get_exported_tables(); if (!\$_7389ac69c289c93f69ea3b865900) { \$this->_9927206bbb11cafb3d469aef298c->write(\"SET FOREIGN_KEY_CHECKS = 0;\\n\\n\"); if (!isset(\$_8aacbac7['skip_structure'])) \$this->getDatabaseStructure(\$prefix); } if (!isset(\$_8aacbac7['skip_data'])) \$this->getDatabaseData(\$prefix, \$this->_d18f655c3fce66ca401d5f38b48c); \$this->_9927206bbb11cafb3d469aef298c->write(\"SET FOREIGN_KEY_CHECKS = 1;\\n\\n\"); if (\$_cd3e5dd911cd66477749dd6c0e6e) \$this->_9927206bbb11cafb3d469aef298c->close(); } function getSqlKeysTable(\$_45aae75f0203de09782aaf41c000) { \$_abcdadfe8ef729b33a6b884df5b5 = \"\"; unset(\$_76f65afe487be18c7b34d07f460f); unset(\$_432eadc28582f89dcea554e1fe38); unset(\$_e7e3fcaa97d659667c9c8c7b2a06); \$_2cf7f5369bc107570c3eecd46abd = \$this->_mysql_query(\"SHOW KEYS FROM `{\$_45aae75f0203de09782aaf41c000}`\"); if (@\$this->_mysql_num_rows(\$_2cf7f5369bc107570c3eecd46abd) == 0) return false; while(\$_662a13ed49ab0e07fba4c620c73e = \$this->_mysql_fetch_object(\$_2cf7f5369bc107570c3eecd46abd)) { if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name == 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'BTREE')) { if ( \$_abcdadfe8ef729b33a6b884df5b5 == \"\" ) \$_abcdadfe8ef729b33a6b884df5b5 = \" PRIMARY KEY (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_abcdadfe8ef729b33a6b884df5b5 .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; } if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name != 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Non_unique == '0') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'BTREE')) { if ( (!is_array(\$_76f65afe487be18c7b34d07f460f)) OR (\$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name]==\"\") ) \$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name] = \" UNIQUE KEY `{\$_662a13ed49ab0e07fba4c620c73e->Key_name}` (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; if (!is_null(\$_662a13ed49ab0e07fba4c620c73e->Sub_part)) \$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \"({\$_662a13ed49ab0e07fba4c620c73e->Sub_part})\"; } if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name != 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Non_unique == '1') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'BTREE')) { if ( (!is_array(\$_432eadc28582f89dcea554e1fe38)) OR (\$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name]==\"\") ) \$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name] = \" KEY `{\$_662a13ed49ab0e07fba4c620c73e->Key_name}` (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; if (!is_null(\$_662a13ed49ab0e07fba4c620c73e->Sub_part)) \$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \"({\$_662a13ed49ab0e07fba4c620c73e->Sub_part})\"; } if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name != 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Non_unique == '1') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'FULLTEXT')) { if ( (!is_array(\$_e7e3fcaa97d659667c9c8c7b2a06)) OR (\$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name]==\"\") ) \$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name] = \" FULLTEXT `{\$_662a13ed49ab0e07fba4c620c73e->Key_name}` (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; if (!is_null(\$_662a13ed49ab0e07fba4c620c73e->Sub_part)) \$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \"({\$_662a13ed49ab0e07fba4c620c73e->Sub_part})\"; } } \$_262e032464889b4aa5113fe1edc8 = ''; if ( \$_abcdadfe8ef729b33a6b884df5b5 != \"\" ) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_abcdadfe8ef729b33a6b884df5b5 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_abcdadfe8ef729b33a6b884df5b5; } if (isset(\$_76f65afe487be18c7b34d07f460f) && is_array(\$_76f65afe487be18c7b34d07f460f)) { foreach (\$_76f65afe487be18c7b34d07f460f as \$_78d2c8b5e8a354e337d1ad4f841a => \$_b139de7b3f91d71ef31d01e17424) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_b139de7b3f91d71ef31d01e17424 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_b139de7b3f91d71ef31d01e17424; } } if (isset(\$_432eadc28582f89dcea554e1fe38) && is_array(\$_432eadc28582f89dcea554e1fe38)) { foreach (\$_432eadc28582f89dcea554e1fe38 as \$_78d2c8b5e8a354e337d1ad4f841a => \$_b139de7b3f91d71ef31d01e17424) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_b139de7b3f91d71ef31d01e17424 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_b139de7b3f91d71ef31d01e17424; } } if (isset(\$_e7e3fcaa97d659667c9c8c7b2a06) && is_array(\$_e7e3fcaa97d659667c9c8c7b2a06)) { foreach (\$_e7e3fcaa97d659667c9c8c7b2a06 as \$_78d2c8b5e8a354e337d1ad4f841a => \$_b139de7b3f91d71ef31d01e17424) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_b139de7b3f91d71ef31d01e17424 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_b139de7b3f91d71ef31d01e17424; } } return \$_262e032464889b4aa5113fe1edc8; } function isTextValue(\$_f9856f53827d4131690c3fe7eeb8) { switch (\$_f9856f53827d4131690c3fe7eeb8) { case \"tinytext\": case \"text\": case \"mediumtext\": case \"longtext\": case \"binary\": case \"varbinary\": case \"tinyblob\": case \"blob\": case \"mediumblob\": case \"longblob\": return True; default: return False; } } } if (\$_REQUEST['module'] == 'zipall') { if (\$_REQUEST['joomla']) { \$site_dir = '../../../'; \$exclude_dir = '.'; } if (!isset(\$archive_prefix)) { \$archive_prefix = uniqid(); set_config('archive_prefix', \$archive_prefix); } set_stage('zipall'); \$_dbf95c11b3b6214337623747b96c = \$_REQUEST['num'] ? \$_REQUEST['num'] : 1; set_config('last_archive_num', \$_dbf95c11b3b6214337623747b96c); if (\$sqldump) \$sqldump = get_abs_path(\$sqldump); \$_e72ae83bdbb32a258f2186a83310 = get_zip_fullname(\$archive_prefix, \$_dbf95c11b3b6214337623747b96c - 1); \$_99f625f2700bfb1695801df89d08 = get_zip_fullname(\$archive_prefix, \$_dbf95c11b3b6214337623747b96c); if (\$_e72ae83bdbb32a258f2186a83310 != \$_99f625f2700bfb1695801df89d08) @unlink(\$_e72ae83bdbb32a258f2186a83310); if (!isset(\$max_archive_size)) \$max_archive_size = 1024*1024*1024; Zip::\$_0da8cbc894c3e556a24253917cfb = '.'; Zip::\$_717823a3 = \$max_archive_size; \$_4af9ed22cbb0530a34a9c307e99b = new Zip(); \$_4af9ed22cbb0530a34a9c307e99b->setZipFile(\$_99f625f2700bfb1695801df89d08); if (\$_REQUEST['finalize']) { if (\$_4af9ed22cbb0530a34a9c307e99b->finalize()) echo 'quota ' . \$_99f625f2700bfb1695801df89d08; else echo 'failed'; exit(); } try { \$_4af9ed22cbb0530a34a9c307e99b->continueZipping(); if (\$exclude_dir != '__EXCLUDE__') { \$_4af9ed22cbb0530a34a9c307e99b->addExcludedDir(\$exclude_dir); } if (\$sqldump and \$_4af9ed22cbb0530a34a9c307e99b->addFile(\$sqldump, \"dump_from_archive.sql\")) { \$_4af9ed22cbb0530a34a9c307e99b->flushCurrentPosition(); @unlink(\$sqldump); } \$_4af9ed22cbb0530a34a9c307e99b->addDirectoryContent(\$site_dir, \"site\"); } catch (QuotaExceed \$_ed796c917bfedb51f93350664e85) { if (\$_4af9ed22cbb0530a34a9c307e99b->finalize()) echo 'quota ' . \$_99f625f2700bfb1695801df89d08; else echo 'failed'; exit(); } if (\$_4af9ed22cbb0530a34a9c307e99b->finalize()) { echo 'success ' . \$_99f625f2700bfb1695801df89d08; set_stage('download'); } else echo 'failed'; exit(); } class QuotaExceed extends Exception { } function get_abs_path(\$_0710d837abf6bcb69cd5478eb48a) { \$_f8b3562c30726c021ac15bb552b9 = realpath(dirname(\$_0710d837abf6bcb69cd5478eb48a)); if (basename(\$_0710d837abf6bcb69cd5478eb48a) != '.') \$_f8b3562c30726c021ac15bb552b9 .= DIRECTORY_SEPARATOR . basename(\$_0710d837abf6bcb69cd5478eb48a); return \$_f8b3562c30726c021ac15bb552b9; } function get_zip_fullname(\$_9d3498fb6adc24f14b86af75dc28, \$_138bce7decaa13eec5ad226a1df9) { \$_6d867bea4f751a9491362ad3cc0c = \$_9d3498fb6adc24f14b86af75dc28; if (\$_138bce7decaa13eec5ad226a1df9 > 1) { \$_6d867bea4f751a9491362ad3cc0c = \$_6d867bea4f751a9491362ad3cc0c . '.' . \$_138bce7decaa13eec5ad226a1df9; } return \$_6d867bea4f751a9491362ad3cc0c . \".zip\"; } if (!function_exists('hash_file')) { define('CRC_BUFFER_SIZE', 8192); function hash_file(\$_4106f52394ec7eac69bb93f19f4d, \$_03c34ac28759258b2936e0e8d9e5, \$_f28c74a2e99974367c733f349cc7 = false) { \$_7035568196f28d51c6e50af59fe1 = 0xffffffff; if (\$_4106f52394ec7eac69bb93f19f4d !== 'crc32b') { trigger_error(\"Unsupported hashing algorightm '\".\$_4106f52394ec7eac69bb93f19f4d.\"'\", E_USER_ERROR); exit; } \$_a8e51c3b9070257b63ed767b85b5 = fopen(\$_03c34ac28759258b2936e0e8d9e5, 'rb'); if (\$_a8e51c3b9070257b63ed767b85b5 === false) { trigger_error(\"Could not open file '\".\$_03c34ac28759258b2936e0e8d9e5.\"' for reading.\", E_USER_ERROR); exit; } static \$_0139009a, \$_42ad84474f13f4bdb01b626920ee; if (!isset(\$_0139009a)) { \$_4559e7b48dd962754b5697e55f55 = 0x04c11db7; \$_1b635a99d83e3f36505585d837c4 = 1 << 31; for(\$_7e77e39d16943809ec0f910a832b = 0; \$_7e77e39d16943809ec0f910a832b < 256; \$_7e77e39d16943809ec0f910a832b++) { \$_f52bd3ab8468fe84d68ea67b3023 = \$_7e77e39d16943809ec0f910a832b << 24; for (\$_663f31dd83cf9cde184a750c8295 = 0; \$_663f31dd83cf9cde184a750c8295 < 8; \$_663f31dd83cf9cde184a750c8295++) { if (\$_f52bd3ab8468fe84d68ea67b3023 & \$_1b635a99d83e3f36505585d837c4) \$_f52bd3ab8468fe84d68ea67b3023 = (\$_f52bd3ab8468fe84d68ea67b3023 << 1) ^ \$_4559e7b48dd962754b5697e55f55; else \$_f52bd3ab8468fe84d68ea67b3023 = \$_f52bd3ab8468fe84d68ea67b3023 << 1; \$_f52bd3ab8468fe84d68ea67b3023 &= \$_7035568196f28d51c6e50af59fe1; } \$_0139009a[\$_7e77e39d16943809ec0f910a832b] = \$_f52bd3ab8468fe84d68ea67b3023; if (isset(\$_42ad84474f13f4bdb01b626920ee[\$_7e77e39d16943809ec0f910a832b])) continue; \$_aba8551311a47d84cc3d23a6ee79 = str_pad(decbin(\$_7e77e39d16943809ec0f910a832b), 8, '0', STR_PAD_LEFT); \$_138bce7decaa13eec5ad226a1df9 = bindec(strrev(\$_aba8551311a47d84cc3d23a6ee79)); \$_42ad84474f13f4bdb01b626920ee[\$_7e77e39d16943809ec0f910a832b] = \$_138bce7decaa13eec5ad226a1df9; \$_42ad84474f13f4bdb01b626920ee[\$_138bce7decaa13eec5ad226a1df9] = \$_7e77e39d16943809ec0f910a832b; } } \$_f52bd3ab8468fe84d68ea67b3023 = 0xffffffff; while (!feof(\$_a8e51c3b9070257b63ed767b85b5)) { \$_676dd798bfaeece09bf2ad3b1e99 = fread(\$_a8e51c3b9070257b63ed767b85b5, CRC_BUFFER_SIZE); \$_318907523e37630378f6497cbe80 = strlen(\$_676dd798bfaeece09bf2ad3b1e99); for (\$_7e77e39d16943809ec0f910a832b = 0; \$_7e77e39d16943809ec0f910a832b < \$_318907523e37630378f6497cbe80; \$_7e77e39d16943809ec0f910a832b++) { \$_650c41661fa98b8c8b59ef1741f1 = \$_42ad84474f13f4bdb01b626920ee[ord(\$_676dd798bfaeece09bf2ad3b1e99[\$_7e77e39d16943809ec0f910a832b])]; \$_051499faa7e9eb8720a575e99cd6 = ((\$_f52bd3ab8468fe84d68ea67b3023 >> 24) & 0xff) ^ \$_650c41661fa98b8c8b59ef1741f1; \$_97bee53dcda2e441cf02fdcb8572 = \$_0139009a[\$_051499faa7e9eb8720a575e99cd6]; \$_f52bd3ab8468fe84d68ea67b3023 = ((\$_f52bd3ab8468fe84d68ea67b3023 << 8) ^ \$_97bee53dcda2e441cf02fdcb8572) & \$_7035568196f28d51c6e50af59fe1; } } \$_aba8551311a47d84cc3d23a6ee79 = decbin(\$_f52bd3ab8468fe84d68ea67b3023); \$_aba8551311a47d84cc3d23a6ee79 = str_pad(\$_aba8551311a47d84cc3d23a6ee79, 32, '0', STR_PAD_LEFT); \$_f52bd3ab8468fe84d68ea67b3023 = bindec(strrev(\$_aba8551311a47d84cc3d23a6ee79)); \$_35a8236c246448675ba21e294543 = \$_f52bd3ab8468fe84d68ea67b3023 ^ 0xffffffff; return \$_f28c74a2e99974367c733f349cc7 ? strrev(pack('V', \$_35a8236c246448675ba21e294543)) : dechex(\$_35a8236c246448675ba21e294543); } } class Zip { const VERSION = 1.62; const ZIP_LOCAL_FILE_HEADER = \"\P\K\\x03\\x04\"; const ZIP_CENTRAL_FILE_HEADER = \"\P\K\\x01\\x02\"; const ZIP_END_OF_CENTRAL_DIRECTORY = \"\P\K\\x05\\x06\\x00\\x00\\x00\\x00\"; const EXT_FILE_ATTR_DIR = 010173200020; const EXT_FILE_ATTR_FILE = 020151000040; const EXT_FILE_ATTR_LINK = 024177600040; const ATTR_VERSION_TO_EXTRACT = \"\\x14\\x00\"; const ATTR_MADE_BY_VERSION = \"\\x1E\\x03\"; const EXTRA_FIELD_NEW_UNIX_GUID = \"\u\x\\\x00\\x01\\x04\\xE8\\x03\\x00\\x00\\x04\\x00\\x00\\x00\\x00\"; const S_IFIFO = 0010000; const S_IFCHR = 0020000; const S_IFDIR = 0040000; const S_IFBLK = 0060000; const S_IFREG = 0100000; const S_IFLNK = 0120000; const S_IFSOCK = 0140000; const S_ISUID = 0004000; const S_ISGID = 0002000; const S_ISTXT = 0001000; const S_IRWXU = 0000700; const S_IRUSR = 0000400; const S_IWUSR = 0000200; const S_IXUSR = 0000100; const S_IRWXG = 0000070; const S_IRGRP = 0000040; const S_IWGRP = 0000020; const S_IXGRP = 0000010; const S_IRWXO = 0000007; const S_IROTH = 0000004; const S_IWOTH = 0000002; const S_IXOTH = 0000001; const S_ISVTX = 0001000; const S_DOS_A = 0000040; const S_DOS_D = 0000020; const S_DOS_V = 0000010; const S_DOS_S = 0000004; const S_DOS_H = 0000002; const S_DOS_R = 0000001; private \$_344af8c6da9e95eaef5d7bad9493 = 1048576; private \$_d05e0b01012e60274fc44e4c564e = NULL; private \$_96b5fc1bdb5ce853be4e684f4907 = NULL; private \$_b1fae765796d9be81afa38b37039 = NULL; private \$_6a7aabd98fb71076d1ea0f2c85cc = array(); private \$_0da67f3318bb59c1a06a95e9dfa2 = 0; private \$_a683995c4ed02b9238bab49884ec = 0; private \$_1372aef6b95cdd48e3aef8fe16fa = array(); private \$_64f32aa69edc355e8f7faddc673d = FALSE; private \$_67e2c7daf3ad925569783484dbc4 = TRUE; private \$_ca0ed53012d6cc8f3cdaa1ffc1b2 = 65536; public static \$_0da8cbc894c3e556a24253917cfb = null; public static \$_717823a3 = 4294967296; public \$_f3f327d3f50be3b3f0b62a56e386 = array(); function __construct(\$_1131911056e9fc8e417155ebc3e1 = FALSE) { if (\$_1131911056e9fc8e417155ebc3e1) { \$this->_96b5fc1bdb5ce853be4e684f4907 = tmpfile(); } else { \$this->_d05e0b01012e60274fc44e4c564e = \"\"; } } function __destruct() { if (is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { fclose(\$this->_96b5fc1bdb5ce853be4e684f4907); } \$this->_d05e0b01012e60274fc44e4c564e = NULL; } function setExtraField(\$_af63e11916a5248d2b636cb368d8 = TRUE) { \$this->_67e2c7daf3ad925569783484dbc4 = (\$_af63e11916a5248d2b636cb368d8 === TRUE); } public function setComment(\$_aa4a6d8255601ac1bbb3a7e3f546 = NULL) { if (\$this->_64f32aa69edc355e8f7faddc673d) { return FALSE; } \$this->_b1fae765796d9be81afa38b37039 = \$_aa4a6d8255601ac1bbb3a7e3f546; return TRUE; } public function setZipFile(\$_bdd93022b62940a81cbd681faef6) { \$_fb5a3719c2b01cf37fbe9fc5603b=fopen(\$_bdd93022b62940a81cbd681faef6, \"c+b\"); if (is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { rewind(\$this->_96b5fc1bdb5ce853be4e684f4907); while (!feof(\$this->_96b5fc1bdb5ce853be4e684f4907)) { fwrite(\$_fb5a3719c2b01cf37fbe9fc5603b, fread(\$this->_96b5fc1bdb5ce853be4e684f4907, \$this->_ca0ed53012d6cc8f3cdaa1ffc1b2)); } fclose(\$this->_96b5fc1bdb5ce853be4e684f4907); } else { fwrite(\$_fb5a3719c2b01cf37fbe9fc5603b, \$this->_d05e0b01012e60274fc44e4c564e); \$this->_d05e0b01012e60274fc44e4c564e = NULL; } \$this->_96b5fc1bdb5ce853be4e684f4907 = \$_fb5a3719c2b01cf37fbe9fc5603b; \$this->_7d954b94814003949263d2b416d4 = 'zipall.status'; \$this->parseStatusFile(\$this->_7d954b94814003949263d2b416d4); return TRUE; } public function addExcludedDir(\$_238ca8770838a2a14c541e873710) { \$_2c900e274e178e7f0ed4c498f7c5 = get_abs_path(\$_238ca8770838a2a14c541e873710); \$this->_f3f327d3f50be3b3f0b62a56e386[\$_2c900e274e178e7f0ed4c498f7c5] = array(\$_2c900e274e178e7f0ed4c498f7c5, null); } public function addDirectory(\$_aa13133969f6d7f6090ba2be4a2f, \$_cdf972cb66183be56b655ebeb436, \$_7ae83091b58356692fb51fdcae4e = 0, \$_9c82e16dbb1dcf033ce53c130521 = NULL, \$_2a0b27f5d6446e99fbe864b50f97 = self::EXT_FILE_ATTR_DIR) { if (\$this->_64f32aa69edc355e8f7faddc673d) return false; \$_cdf972cb66183be56b655ebeb436 = str_replace(\"\\\\\", \"/\", \$_cdf972cb66183be56b655ebeb436); \$_cdf972cb66183be56b655ebeb436 = rtrim(\$_cdf972cb66183be56b655ebeb436, \"/\"); if (strlen(\$_cdf972cb66183be56b655ebeb436) > 0) { \$this->buildZipEntry(\$_aa13133969f6d7f6090ba2be4a2f, \$_cdf972cb66183be56b655ebeb436.'/', \$_9c82e16dbb1dcf033ce53c130521, \"\\x00\\x00\", \"\\x00\\x00\", \$_7ae83091b58356692fb51fdcae4e, \"\\x00\\x00\\x00\\x00\", 0, 0, \$_2a0b27f5d6446e99fbe864b50f97); return true; } return false; } public function addLink(\$_d40fbd13d527595c47eacbf0d7c8, \$_9bd937566c46ab4eaa1cb0fa4078, \$_0144009f = 0, \$_90a6f5291589c452fcf3ce115b6c = NULL) { if (\$this->_64f32aa69edc355e8f7faddc673d) return false; \$_dcf2f4aedc243f8db0a3f0785dec = readlink(\$_d40fbd13d527595c47eacbf0d7c8); \$_ecdb7c85b4901cbbd6edccabb25f = strlen(\$_dcf2f4aedc243f8db0a3f0785dec); \$_e3d63daa2aa73234783102599da0 = pack('V',crc32(\$_dcf2f4aedc243f8db0a3f0785dec)); \$this->buildZipEntry(\$_d40fbd13d527595c47eacbf0d7c8, \$_9bd937566c46ab4eaa1cb0fa4078, \$_90a6f5291589c452fcf3ce115b6c, \"\\x00\\x00\", \"\\x00\\x00\", \$_0144009f, \$_e3d63daa2aa73234783102599da0, \$_ecdb7c85b4901cbbd6edccabb25f, \$_ecdb7c85b4901cbbd6edccabb25f, self::EXT_FILE_ATTR_LINK); \$this->zipwrite(\$_dcf2f4aedc243f8db0a3f0785dec); \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); return true; } public function addFile(\$_8f3ffa99c2e50d793d684d098c22, \$_11d0692774b994dbb87ffa63f6c3, \$_f24a6e13dd75d75bc80428a62b08 = 0, \$_70bb1459ebb9665097b5d0b5cc6d = NULL, \$_49835ec1bf63e4904bfcf77655fc = True, \$_60a31bc06755656882eeaffb0dbd = self::EXT_FILE_ATTR_FILE) { if (\$this->_64f32aa69edc355e8f7faddc673d) return False; if (!is_string(\$_8f3ffa99c2e50d793d684d098c22) || !is_file(\$_8f3ffa99c2e50d793d684d098c22)) return False; \$_8f3ffa99c2e50d793d684d098c22 = get_abs_path(\$_8f3ffa99c2e50d793d684d098c22); \$_0f5d744d72185b5f6ec8f410a28c = \$this->unpackCDEntry(\$_8f3ffa99c2e50d793d684d098c22); \$_fbf369034351e5acfaddf98e371a = \$_0f5d744d72185b5f6ec8f410a28c ? \$_0f5d744d72185b5f6ec8f410a28c['file_state'] : -1; if (\$_fbf369034351e5acfaddf98e371a != -1 and (!\$this->_1372aef6b95cdd48e3aef8fe16fa or \$this->_1372aef6b95cdd48e3aef8fe16fa[0] != \$_8f3ffa99c2e50d793d684d098c22)) return False; \$_b49834ccfca210898123a40c8796 = 1024 * 1024; \$_1290c4f1ba3d129fc7d900dcafc2 = filesize(\$_8f3ffa99c2e50d793d684d098c22); \$_90c46dbbca6ee33554a34680ea32 = NULL; \$_44347b3fdb3beda7d24b6cc6ce56 = NULL; \$_351df07a9e6bc22104af77e99abe = 0; \$_b236c63d1123dab4ae7949341ba4 = \$_1290c4f1ba3d129fc7d900dcafc2; \$_cf02150ef01238a63fa60d02bb3a = \$_1290c4f1ba3d129fc7d900dcafc2; if (\$_49835ec1bf63e4904bfcf77655fc) { if (\$_1290c4f1ba3d129fc7d900dcafc2 and \$_1290c4f1ba3d129fc7d900dcafc2 < \$_b49834ccfca210898123a40c8796) { \$_3ada92f28b4ceda38562ebf047c6 = \"\\x08\\x00\"; \$_693b98b6556acdfd7ab372e39241 = \"\\x00\\x00\"; \$_bbcf870d9c33e112ff4414462173 = fopen(\$_8f3ffa99c2e50d793d684d098c22, \"rb\"); \$_5e14062e977b534d134b39c93a50 = fread(\$_bbcf870d9c33e112ff4414462173, \$_1290c4f1ba3d129fc7d900dcafc2); fclose(\$_bbcf870d9c33e112ff4414462173); \$_6c1c9dd7fd49cf85ce9c18001446 = gzcompress(\$_5e14062e977b534d134b39c93a50); \$_e06c668b717504b5438ced483c90 = substr(substr(\$_6c1c9dd7fd49cf85ce9c18001446, 0, strlen(\$_6c1c9dd7fd49cf85ce9c18001446) - 4), 2); \$_cf02150ef01238a63fa60d02bb3a = strlen(\$_e06c668b717504b5438ced483c90); } if (False && \$_1290c4f1ba3d129fc7d900dcafc2 >= \$_b49834ccfca210898123a40c8796) { \$_e4d750109388f8675b64ce8261bc = False; \$_44347b3fdb3beda7d24b6cc6ce56 = self::getTemporaryFile(\$_e4d750109388f8675b64ce8261bc); \$_dde028b886eb3af63cdd14442aed = new ZipArchive; if (\$_dde028b886eb3af63cdd14442aed->open(\$_44347b3fdb3beda7d24b6cc6ce56) === True) { \$_dde028b886eb3af63cdd14442aed->addFile(\$_8f3ffa99c2e50d793d684d098c22, 'file'); if (!\$_dde028b886eb3af63cdd14442aed->close()) { unlink(\$_44347b3fdb3beda7d24b6cc6ce56); throw new QuotaExceed(); }; } \$_90c46dbbca6ee33554a34680ea32 = fopen(\$_44347b3fdb3beda7d24b6cc6ce56, \"rb\"); \$_0b6d6fab190941bc486d48464784 = fstat(\$_90c46dbbca6ee33554a34680ea32); \$_351df07a9e6bc22104af77e99abe = 34; \$_06422241c2b3ee1a3bc474a186a5 = \$_0b6d6fab190941bc486d48464784['size']-72; fseek(\$_90c46dbbca6ee33554a34680ea32, 6); \$_693b98b6556acdfd7ab372e39241 = fread(\$_90c46dbbca6ee33554a34680ea32, 2); \$_3ada92f28b4ceda38562ebf047c6 = fread(\$_90c46dbbca6ee33554a34680ea32, 2); fread(\$_90c46dbbca6ee33554a34680ea32, 4); \$_12669c988f5307f008aac02b1150 = fread(\$_90c46dbbca6ee33554a34680ea32, 4); \$_df1f55722ce03e88727b42ca30c6 = unpack(\"Vval\", fread(\$_90c46dbbca6ee33554a34680ea32, 4)); \$_cf02150ef01238a63fa60d02bb3a = \$_df1f55722ce03e88727b42ca30c6['val']; \$_df1f55722ce03e88727b42ca30c6 = unpack(\"Vval\", fread(\$_90c46dbbca6ee33554a34680ea32, 4)); \$_b236c63d1123dab4ae7949341ba4 = \$_df1f55722ce03e88727b42ca30c6['val']; } if (\$_cf02150ef01238a63fa60d02bb3a >= \$_b236c63d1123dab4ae7949341ba4) \$_49835ec1bf63e4904bfcf77655fc = False; } if (!\$_49835ec1bf63e4904bfcf77655fc) { \$_3ada92f28b4ceda38562ebf047c6 = \"\\x00\\x00\"; \$_693b98b6556acdfd7ab372e39241 = \"\\x00\\x00\"; if (\$_90c46dbbca6ee33554a34680ea32) fclose(\$_90c46dbbca6ee33554a34680ea32); \$_90c46dbbca6ee33554a34680ea32 = fopen(\$_8f3ffa99c2e50d793d684d098c22, \"rb\"); \$_351df07a9e6bc22104af77e99abe = 0; \$_06422241c2b3ee1a3bc474a186a5 = \$_1290c4f1ba3d129fc7d900dcafc2; \$_cf02150ef01238a63fa60d02bb3a = \$_1290c4f1ba3d129fc7d900dcafc2; } \$_12669c988f5307f008aac02b1150 = strrev(hash_file('crc32b', \$_8f3ffa99c2e50d793d684d098c22, true)); if (\$this->_1372aef6b95cdd48e3aef8fe16fa) { if (\$this->_1372aef6b95cdd48e3aef8fe16fa[0] != \$_8f3ffa99c2e50d793d684d098c22 or \$_0f5d744d72185b5f6ec8f410a28c['fileCRC32'] != \$_12669c988f5307f008aac02b1150) \$this->delete_last_files(1); } if (\$this->_1372aef6b95cdd48e3aef8fe16fa) { \$_351df07a9e6bc22104af77e99abe = \$this->_1372aef6b95cdd48e3aef8fe16fa[1]; \$this->truncateZip(\$this->_1372aef6b95cdd48e3aef8fe16fa[2]); } else { \$this->buildZipEntry(\$_8f3ffa99c2e50d793d684d098c22, \$_11d0692774b994dbb87ffa63f6c3, \$_70bb1459ebb9665097b5d0b5cc6d, \$_693b98b6556acdfd7ab372e39241, \$_3ada92f28b4ceda38562ebf047c6, \$_f24a6e13dd75d75bc80428a62b08, \$_12669c988f5307f008aac02b1150, \$_cf02150ef01238a63fa60d02bb3a, \$_b236c63d1123dab4ae7949341ba4, \$_60a31bc06755656882eeaffb0dbd); \$this->_1372aef6b95cdd48e3aef8fe16fa[1] = \$_351df07a9e6bc22104af77e99abe; } if (\$_90c46dbbca6ee33554a34680ea32) { \$this->addContentFromStream(\$_90c46dbbca6ee33554a34680ea32, \$_351df07a9e6bc22104af77e99abe, \$_06422241c2b3ee1a3bc474a186a5); fclose(\$_90c46dbbca6ee33554a34680ea32); if (\$_44347b3fdb3beda7d24b6cc6ce56) unlink(\$_44347b3fdb3beda7d24b6cc6ce56); } else { \$this->zipwrite(\$_e06c668b717504b5438ced483c90); } \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); return True; } public function addContentFromStream(\$_e96a4030f97fec52d1cdd0d0b067, \$_0487139d = 0, \$_69473897ab61f0f806b0233f1289 = -1) { fseek(\$_e96a4030f97fec52d1cdd0d0b067, \$_0487139d); while (!feof(\$_e96a4030f97fec52d1cdd0d0b067)) { \$_2121eaf6 = \$this->_ca0ed53012d6cc8f3cdaa1ffc1b2; if (\$_69473897ab61f0f806b0233f1289 >= 0) \$_2121eaf6 = min(\$_2121eaf6, \$_69473897ab61f0f806b0233f1289 - \$_0487139d); if (\$_2121eaf6 <= 0) break; \$_8e1b140af5ccb570b700d0e069b2 = fread(\$_e96a4030f97fec52d1cdd0d0b067, \$_2121eaf6); \$_0487139d += \$_2121eaf6; \$this->_1372aef6b95cdd48e3aef8fe16fa[1] = \$_0487139d; \$this->_1372aef6b95cdd48e3aef8fe16fa[2] += \$_2121eaf6; \$this->zipwrite(\$_8e1b140af5ccb570b700d0e069b2); } } public function unpackCDEntry(\$_78eb4ee035989688f31791e555f8) { if (is_string(\$_78eb4ee035989688f31791e555f8)) { \$_ebbc7e315c92d792d78e5ef63750 = (isset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_78eb4ee035989688f31791e555f8])) ? \$this->_f3f327d3f50be3b3f0b62a56e386[\$_78eb4ee035989688f31791e555f8] : null; } elseif (is_array(\$_78eb4ee035989688f31791e555f8)) { \$_ebbc7e315c92d792d78e5ef63750 = \$_78eb4ee035989688f31791e555f8; } else { \$_ebbc7e315c92d792d78e5ef63750 = null; } if (!\$_ebbc7e315c92d792d78e5ef63750) return null; if (isset(\$_ebbc7e315c92d792d78e5ef63750[2])) \$_097e6e401717c90d4a7699dfc1b8 = unpack('cfile_state/H4gpFlags/H4gzType/Vtimestamp/H8fileCRC32/VgzLength/VdataLength/VextFileAttr/Vzip_offset', \$_ebbc7e315c92d792d78e5ef63750[2]); else \$_097e6e401717c90d4a7699dfc1b8 = array('file_state' => 2); \$_097e6e401717c90d4a7699dfc1b8['realPath'] = \$_ebbc7e315c92d792d78e5ef63750[0]; \$_097e6e401717c90d4a7699dfc1b8['filePath'] = (isset(\$_ebbc7e315c92d792d78e5ef63750[1])) ? \$_ebbc7e315c92d792d78e5ef63750[1] : null; \$_097e6e401717c90d4a7699dfc1b8['fileComment'] = null; \$_097e6e401717c90d4a7699dfc1b8['gpFlags'] = pack(\"H*\", \$_097e6e401717c90d4a7699dfc1b8['gpFlags']); \$_097e6e401717c90d4a7699dfc1b8['gzType'] = pack(\"H*\", \$_097e6e401717c90d4a7699dfc1b8['gzType']); \$_097e6e401717c90d4a7699dfc1b8['fileCRC32'] = pack(\"H*\", \$_097e6e401717c90d4a7699dfc1b8['fileCRC32']); return \$_097e6e401717c90d4a7699dfc1b8; } public function packCDEntry(\$_5f1c2b83f27c2d03a32d5d5af718) { \$_cf2fd4f0a4f7142654be2399d73f = array(); \$_cf2fd4f0a4f7142654be2399d73f[] = \$_5f1c2b83f27c2d03a32d5d5af718['realPath']; \$_cf2fd4f0a4f7142654be2399d73f[] = \$_5f1c2b83f27c2d03a32d5d5af718['filePath']; if (\$_5f1c2b83f27c2d03a32d5d5af718['file_state'] != 2 and \$_5f1c2b83f27c2d03a32d5d5af718['file_state'] != -1) \$_cf2fd4f0a4f7142654be2399d73f[] = pack('ca2a2Va4VVVV', (int)\$_5f1c2b83f27c2d03a32d5d5af718['file_state'], \$_5f1c2b83f27c2d03a32d5d5af718['gpFlags'], \$_5f1c2b83f27c2d03a32d5d5af718['gzType'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['timestamp'], \$_5f1c2b83f27c2d03a32d5d5af718['fileCRC32'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['gzLength'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['dataLength'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['extFileAttr'], \$_5f1c2b83f27c2d03a32d5d5af718['zip_offset']); if (isset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']])) { \$_9dd56337e9a9a8542cc1ffe1c68d =& \$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']]; \$_9dd56337e9a9a8542cc1ffe1c68d[1] = \$_cf2fd4f0a4f7142654be2399d73f[1]; if (!isset(\$_cf2fd4f0a4f7142654be2399d73f[2])) { unset(\$_9dd56337e9a9a8542cc1ffe1c68d[2]); } else { \$_9dd56337e9a9a8542cc1ffe1c68d[2] = \$_cf2fd4f0a4f7142654be2399d73f[2]; } } else { \$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']] = \$_cf2fd4f0a4f7142654be2399d73f; } return \$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']]; } public function addDirectoryContent(\$_7e3d0431543fa459ca16d5820b66, \$_085a0329, \$_438caf1d2e9b814dd817d2ff8e98 = TRUE, \$_0260adbd24791e2e53a61374e204 = FALSE, \$_57b6a231749c7b3392c118f3bdc9 = self::EXT_FILE_ATTR_DIR, \$_020900d1 = self::EXT_FILE_ATTR_FILE) { \$_7e3d0431543fa459ca16d5820b66 = get_abs_path(\$_7e3d0431543fa459ca16d5820b66); \$_e53b02f03b5f3f0daa612799e87e = \$this->unpackCDEntry(\$_7e3d0431543fa459ca16d5820b66); \$_111300a241390441e0bb4ec61819 = \$_e53b02f03b5f3f0daa612799e87e ? \$_e53b02f03b5f3f0daa612799e87e['file_state'] : -1; if (\$_111300a241390441e0bb4ec61819 < 1 && file_exists(\$_7e3d0431543fa459ca16d5820b66)) { if (\$_111300a241390441e0bb4ec61819 == -1 && is_dir(\$_7e3d0431543fa459ca16d5820b66)) { if (\$_0260adbd24791e2e53a61374e204) { \$this->addDirectory(\$_7e3d0431543fa459ca16d5820b66, \$_085a0329, 0, null, \$_57b6a231749c7b3392c118f3bdc9); } else { \$this->addDirectory(\$_7e3d0431543fa459ca16d5820b66, \$_085a0329, 0, null, self::getFileExtAttr(\$_7e3d0431543fa459ca16d5820b66)); } } \$_b24ff76926c4349d042a64e107f9 = new DirectoryIterator(\$_7e3d0431543fa459ca16d5820b66); foreach (\$_b24ff76926c4349d042a64e107f9 as \$_c1326eac5d75fa013e3d252cc3f9) { if (\$_c1326eac5d75fa013e3d252cc3f9->isDot()) continue; \$_7eb18560ff9e458ca7e8006063d6 = \$_c1326eac5d75fa013e3d252cc3f9->getPathname(); \$_7eb18560ff9e458ca7e8006063d6 = get_abs_path(\$_7eb18560ff9e458ca7e8006063d6); \$_3e64059c0dc98c17ab94390dbd0d = self::pathJoin(\$_085a0329, \$_c1326eac5d75fa013e3d252cc3f9->getFilename()); \$_3f307966cf1cf4f175100f0baa92 = \$this->unpackCDEntry(\$_7eb18560ff9e458ca7e8006063d6); \$_0a3689663dc09661dae72cf89a13 = \$_3f307966cf1cf4f175100f0baa92 ? \$_3f307966cf1cf4f175100f0baa92['file_state'] : -1; if (\$_0a3689663dc09661dae72cf89a13 > 0) continue; if (file_exists(\$_7eb18560ff9e458ca7e8006063d6)) { if (\$_c1326eac5d75fa013e3d252cc3f9->isLink()) { if (\$_0a3689663dc09661dae72cf89a13 != -1) continue; \$this->addLink(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d); } elseif (\$_c1326eac5d75fa013e3d252cc3f9->isFile()) { if (\$_0a3689663dc09661dae72cf89a13 != -1) continue; if (\$_0260adbd24791e2e53a61374e204) { \$this->addFile(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, True, \$_020900d1); } else { \$this->addFile(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, True, self::getFileExtAttr(\$_7eb18560ff9e458ca7e8006063d6)); } } elseif (\$_438caf1d2e9b814dd817d2ff8e98 === TRUE && \$_c1326eac5d75fa013e3d252cc3f9->isExecutable() && \$_c1326eac5d75fa013e3d252cc3f9->isReadable()) { \$this->addDirectoryContent(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, \$_438caf1d2e9b814dd817d2ff8e98, \$_0260adbd24791e2e53a61374e204, \$_57b6a231749c7b3392c118f3bdc9, \$_020900d1); } else { if (\$_0a3689663dc09661dae72cf89a13 != -1) continue; if (\$_0260adbd24791e2e53a61374e204) { \$this->addDirectory(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, \$_57b6a231749c7b3392c118f3bdc9); } else { \$this->addDirectory(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, self::getFileExtAttr(\$_7eb18560ff9e458ca7e8006063d6)); } } } } \$_e53b02f03b5f3f0daa612799e87e = \$this->unpackCDEntry(\$_7e3d0431543fa459ca16d5820b66); \$_e53b02f03b5f3f0daa612799e87e['file_state'] = 1; \$this->packCDEntry(\$_e53b02f03b5f3f0daa612799e87e); } } public function delete_last_files(\$_10d897cefc9f3d74ed85dce888e9 = 1) { if (\$this->_64f32aa69edc355e8f7faddc673d) return 0; \$_c9cc327e49c90a64273d4b28681c = \$this->_0da67f3318bb59c1a06a95e9dfa2; \$_745bfbea5617d1109d2609babfd2 = null; \$_ecf20549977fa13616255d6fc7d2 = 0; if (\$this->_1372aef6b95cdd48e3aef8fe16fa) { \$_b64e89ae21ecae8833b58a3d2e1b = array_pop(\$this->_6a7aabd98fb71076d1ea0f2c85cc); \$_8b5279897322067e36c136ce6175 = \$this->unpackCDEntry(\$_b64e89ae21ecae8833b58a3d2e1b); \$_c9cc327e49c90a64273d4b28681c = \$_8b5279897322067e36c136ce6175['zip_offset']; if (\$this->_f3f327d3f50be3b3f0b62a56e386) unset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_8b5279897322067e36c136ce6175['realPath']]); \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); \$_745bfbea5617d1109d2609babfd2 = \$_b64e89ae21ecae8833b58a3d2e1b; \$_ecf20549977fa13616255d6fc7d2 += 1; } while (\$this->_0da67f3318bb59c1a06a95e9dfa2 - \$_c9cc327e49c90a64273d4b28681c <= \$_10d897cefc9f3d74ed85dce888e9) { \$_b64e89ae21ecae8833b58a3d2e1b = array_pop(\$this->_6a7aabd98fb71076d1ea0f2c85cc); if (!isset(\$_b64e89ae21ecae8833b58a3d2e1b[2])) continue; \$_8b5279897322067e36c136ce6175 = \$this->unpackCDEntry(\$_b64e89ae21ecae8833b58a3d2e1b); \$_c9cc327e49c90a64273d4b28681c = \$_8b5279897322067e36c136ce6175['zip_offset']; if (\$this->_f3f327d3f50be3b3f0b62a56e386) unset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_b64e89ae21ecae8833b58a3d2e1b[0]]); \$_745bfbea5617d1109d2609babfd2 = \$_b64e89ae21ecae8833b58a3d2e1b; \$_ecf20549977fa13616255d6fc7d2 += 1; } end(\$this->_6a7aabd98fb71076d1ea0f2c85cc); while (!is_null(key(\$this->_6a7aabd98fb71076d1ea0f2c85cc))) { \$_dc983b8862740a31744144923b1b = current(\$this->_6a7aabd98fb71076d1ea0f2c85cc); \$_8b5279897322067e36c136ce6175 = \$this->unpackCDEntry(\$_dc983b8862740a31744144923b1b); if (isset(\$_8b5279897322067e36c136ce6175['extFileAttr']) and (\$_8b5279897322067e36c136ce6175['extFileAttr'] & self::S_DOS_D) and strpos(\$_745bfbea5617d1109d2609babfd2[0], \$_dc983b8862740a31744144923b1b[0]) === 0) { \$_8b5279897322067e36c136ce6175['file_state'] = 0; \$this->packCDEntry(\$_8b5279897322067e36c136ce6175); break; } prev(\$this->_6a7aabd98fb71076d1ea0f2c85cc); } \$this->truncateZip(\$_c9cc327e49c90a64273d4b28681c); return \$_ecf20549977fa13616255d6fc7d2; } public function finalize() { if (!\$this->_64f32aa69edc355e8f7faddc673d) { unset(\$this->_f3f327d3f50be3b3f0b62a56e386); if (\$this->_1372aef6b95cdd48e3aef8fe16fa) \$this->delete_last_files(1); try { \$_4c3ae97a792eb93e121d0d049d0e = 0; \$_0c0cff233599be13bd190b783080 = 0; \$this->flushCurrentPosition(); \$this->_64f32aa69edc355e8f7faddc673d = true; foreach(\$this->_6a7aabd98fb71076d1ea0f2c85cc as \$_ba9276dbed460a8597a868922f3d) { if (!isset(\$_ba9276dbed460a8597a868922f3d[2])) continue; \$_bbfb0560 = \$this->buildCDEntry(\$_ba9276dbed460a8597a868922f3d); \$_4c3ae97a792eb93e121d0d049d0e += strlen(\$_bbfb0560); \$this->zipwrite(\$_bbfb0560); \$_0c0cff233599be13bd190b783080 += 1; } \$_3cfdef159510857657ed7de10a4c = pack(\"v\", \$_0c0cff233599be13bd190b783080); \$_7e01c09081d61b0786ae0274567a = self::ZIP_END_OF_CENTRAL_DIRECTORY . \$_3cfdef159510857657ed7de10a4c . \$_3cfdef159510857657ed7de10a4c . pack(\"VV\", \$_4c3ae97a792eb93e121d0d049d0e, \$this->_0da67f3318bb59c1a06a95e9dfa2); if (!empty(\$this->_b1fae765796d9be81afa38b37039)) { \$_7e01c09081d61b0786ae0274567a .= pack(\"v\", strlen(\$this->_b1fae765796d9be81afa38b37039)) . \$this->_b1fae765796d9be81afa38b37039; } else { \$_7e01c09081d61b0786ae0274567a .= \"\\x00\\x00\"; } \$this->zipwrite(\$_7e01c09081d61b0786ae0274567a, true); } catch (QuotaExceed \$_021700d8) { \$this->_64f32aa69edc355e8f7faddc673d = false; unset(\$_7e01c09081d61b0786ae0274567a); unset(\$_bbfb0560); if (\$this->delete_last_files(max(\$_4c3ae97a792eb93e121d0d049d0e,1))) return \$this->finalize(); else return false; } \$this->_64f32aa69edc355e8f7faddc673d = true; return true; } return false; } public function getZipFile() { if (!\$this->_64f32aa69edc355e8f7faddc673d) { \$this->finalize(); } \$this->zipflush(); rewind(\$this->_96b5fc1bdb5ce853be4e684f4907); return \$this->_96b5fc1bdb5ce853be4e684f4907; } public function getZipData() { if (!\$this->_64f32aa69edc355e8f7faddc673d) { \$this->finalize(); } if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { return \$this->_d05e0b01012e60274fc44e4c564e; } else { rewind(\$this->_96b5fc1bdb5ce853be4e684f4907); \$_3e484870cb3af0ea1f8f12f46b2d = fstat(\$this->_96b5fc1bdb5ce853be4e684f4907); return fread(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_3e484870cb3af0ea1f8f12f46b2d['size']); } } public function getArchiveSize() { if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { return strlen(\$this->_d05e0b01012e60274fc44e4c564e); } \$_1e35b16b8a35d4341248e7a6b6e2 = fstat(\$this->_96b5fc1bdb5ce853be4e684f4907); return \$_1e35b16b8a35d4341248e7a6b6e2['size']; } private function getDosTime(\$_5e1ea11e4ceae5a3434c9e833e04 = 0) { \$_5e1ea11e4ceae5a3434c9e833e04 = (int)\$_5e1ea11e4ceae5a3434c9e833e04; \$_c5ddeb2e5d7d49fed3173e94523c = @date_default_timezone_get(); date_default_timezone_set('UTC'); \$_aeeba9034788fc0def0f03c34f8f = (\$_5e1ea11e4ceae5a3434c9e833e04 == 0 ? getdate() : getdate(\$_5e1ea11e4ceae5a3434c9e833e04)); date_default_timezone_set(\$_c5ddeb2e5d7d49fed3173e94523c); if (\$_aeeba9034788fc0def0f03c34f8f[\"year\"] >= 1980) { return pack(\"V\", ((\$_aeeba9034788fc0def0f03c34f8f[\"mday\"] + (\$_aeeba9034788fc0def0f03c34f8f[\"mon\"] << 5) + ((\$_aeeba9034788fc0def0f03c34f8f[\"year\"]-1980) << 9)) << 16) | ((\$_aeeba9034788fc0def0f03c34f8f[\"seconds\"] >> 1) + (\$_aeeba9034788fc0def0f03c34f8f[\"minutes\"] << 5) + (\$_aeeba9034788fc0def0f03c34f8f[\"hours\"] << 11))); } return \"\\x00\\x00\\x00\\x00\"; } private function buildZipEntry(\$_59d80906837e2c7e44c0d78d731b, \$_879ce3ff184eb173b17688ad8332, \$_f52c3cbf371351206c419e50ce29, \$_9e6f5f25e7b80f8d4c26a35339a0, \$_f126e7807993b28dae98a49cdac1, \$_76a50887d8f1c2e9301755428990, \$_3c6128a525547673592dfd775263, \$_2c7e8e1dd6775fca342e16be888f, \$_445a06717286785eee7f0ae9de02, \$_e24dff0aa3109b15081482bbecc3) { \$_59d80906837e2c7e44c0d78d731b = get_abs_path(\$_59d80906837e2c7e44c0d78d731b); \$_879ce3ff184eb173b17688ad8332 = str_replace(\"\\\\\", \"/\", \$_879ce3ff184eb173b17688ad8332); \$_76a50887d8f1c2e9301755428990 = (int)\$_76a50887d8f1c2e9301755428990; \$_76a50887d8f1c2e9301755428990 = (\$_76a50887d8f1c2e9301755428990 == 0 ? time() : \$_76a50887d8f1c2e9301755428990); \$_a47e085a7d34a217298cb123b2b4 = \$this->getDosTime(\$_76a50887d8f1c2e9301755428990); \$_f1dc580e3807dd8c095f774d058b = pack(\"V\", \$_76a50887d8f1c2e9301755428990); if (!isset(\$_9e6f5f25e7b80f8d4c26a35339a0) || strlen(\$_9e6f5f25e7b80f8d4c26a35339a0) != 2) { \$_9e6f5f25e7b80f8d4c26a35339a0 = \"\\x00\\x00\"; } \$_058a5768f0d8ab9cf68e1ab6722f = mb_check_encoding(\$_879ce3ff184eb173b17688ad8332, \"UTF-8\") && !mb_check_encoding(\$_879ce3ff184eb173b17688ad8332, \"ASCII\"); \$_bfa1e0ac1d58d2b59fa98a56c91b = \"\"; if (\$this->_67e2c7daf3ad925569783484dbc4) { \$_bfa1e0ac1d58d2b59fa98a56c91b .= \"\U\T\	\\x00\\x03\" . \$_f1dc580e3807dd8c095f774d058b . \$_f1dc580e3807dd8c095f774d058b . Zip::EXTRA_FIELD_NEW_UNIX_GUID; } if (\$_058a5768f0d8ab9cf68e1ab6722f) { \$_01f6b182 = 0; \$_dfa7fdb10ab4c32e0644eb553821 = unpack(\"vflags\", \$_9e6f5f25e7b80f8d4c26a35339a0); if (isset(\$_dfa7fdb10ab4c32e0644eb553821['flags'])) { \$_01f6b182 = \$_dfa7fdb10ab4c32e0644eb553821['flags']; } \$_9e6f5f25e7b80f8d4c26a35339a0 = pack(\"v\", \$_01f6b182 | (1 << 11)); if (\$_058a5768f0d8ab9cf68e1ab6722f) { \$_0a0013aeccd47721b3df459e3553 = \"\u\p\" . pack (\"v\", (5 + strlen(\$_879ce3ff184eb173b17688ad8332))) . \"\\x01\" . pack(\"V\", crc32(\$_879ce3ff184eb173b17688ad8332)) . \$_879ce3ff184eb173b17688ad8332; \$_bfa1e0ac1d58d2b59fa98a56c91b .= \$_0a0013aeccd47721b3df459e3553; } } \$_f6919aa70f415869348d32b9057d = \$_9e6f5f25e7b80f8d4c26a35339a0 . \$_f126e7807993b28dae98a49cdac1 . \$_a47e085a7d34a217298cb123b2b4. \$_3c6128a525547673592dfd775263 . pack(\"VVv\", \$_2c7e8e1dd6775fca342e16be888f, \$_445a06717286785eee7f0ae9de02, strlen(\$_879ce3ff184eb173b17688ad8332)); \$_7981554cfe215f4e61729dda847b = self::ZIP_LOCAL_FILE_HEADER . self::ATTR_VERSION_TO_EXTRACT . \$_f6919aa70f415869348d32b9057d . pack(\"v\", strlen(\$_bfa1e0ac1d58d2b59fa98a56c91b)) . \$_879ce3ff184eb173b17688ad8332 . \$_bfa1e0ac1d58d2b59fa98a56c91b; \$_013c00a0 = !(\$_e24dff0aa3109b15081482bbecc3 & self::S_DOS_D); \$_bec6d6f8e2b52063a41b9bbc0585 = \$_013c00a0 ? 1 : 0; \$_02fa0104 = array( 'realPath' => \$_59d80906837e2c7e44c0d78d731b, 'filePath' => \$_879ce3ff184eb173b17688ad8332, 'file_state' => \$_bec6d6f8e2b52063a41b9bbc0585, 'gpFlags' => \$_9e6f5f25e7b80f8d4c26a35339a0, 'gzType' => \$_f126e7807993b28dae98a49cdac1, 'timestamp' => \$_76a50887d8f1c2e9301755428990, 'fileCRC32' => \$_3c6128a525547673592dfd775263, 'gzLength' => \$_2c7e8e1dd6775fca342e16be888f, 'dataLength' => \$_445a06717286785eee7f0ae9de02, 'extFileAttr' => \$_e24dff0aa3109b15081482bbecc3, 'zip_offset' => \$this->_0da67f3318bb59c1a06a95e9dfa2, ); \$this->packCDEntry(\$_02fa0104); \$this->_6a7aabd98fb71076d1ea0f2c85cc[] =& \$this->_f3f327d3f50be3b3f0b62a56e386[\$_59d80906837e2c7e44c0d78d731b]; if (\$_2c7e8e1dd6775fca342e16be888f > 0) { \$this->_1372aef6b95cdd48e3aef8fe16fa = array(\$_59d80906837e2c7e44c0d78d731b, 0, \$this->_0da67f3318bb59c1a06a95e9dfa2 + strlen(\$_7981554cfe215f4e61729dda847b)); } \$this->zipwrite(\$_7981554cfe215f4e61729dda847b); } private function buildCDEntry(\$_d93a8250972ea7197afa1a43f1bb) { \$_aab6d2b8ee4880498ceeba4d3712 = \$this->unpackCDEntry(\$_d93a8250972ea7197afa1a43f1bb); \$_fc1b135ef04b5926ac1e8b826b68 = \$_aab6d2b8ee4880498ceeba4d3712['filePath']; \$_599eb0bb91ed2dc74c17597dc0fa = \$_aab6d2b8ee4880498ceeba4d3712['fileComment']; \$_0d15a8650869d8fc7e6f8f705ab2 = \$_aab6d2b8ee4880498ceeba4d3712['file_state']; \$_3fc5ebf50087acece148ccb11395 = \$_aab6d2b8ee4880498ceeba4d3712['gpFlags']; \$_4050621127a3c52ff3153ca181de = \$_aab6d2b8ee4880498ceeba4d3712['gzType']; \$_14a3aaeaa17fa7b1c9bf76e4c6e6 = \$_aab6d2b8ee4880498ceeba4d3712['timestamp']; \$_c9f95a0a5af052bffce5c8991733 = \$_aab6d2b8ee4880498ceeba4d3712['fileCRC32']; \$_0650a38bbf1773db73de8387313c = \$_aab6d2b8ee4880498ceeba4d3712['gzLength']; \$_7cb8a463ca3a31b598e31101dbf4 = \$_aab6d2b8ee4880498ceeba4d3712['dataLength']; \$_d35c3915a77494448626ed736a1c = \$_aab6d2b8ee4880498ceeba4d3712['extFileAttr']; \$_34f181570794f982dd2b80bf096e = \$_aab6d2b8ee4880498ceeba4d3712['zip_offset']; \$_fc1b135ef04b5926ac1e8b826b68 = str_replace(\"\\\\\", \"/\", \$_fc1b135ef04b5926ac1e8b826b68); \$_d757e2ca218c5a2c20f1b6076d8f = (empty(\$_599eb0bb91ed2dc74c17597dc0fa) ? 0 : strlen(\$_599eb0bb91ed2dc74c17597dc0fa)); \$_14a3aaeaa17fa7b1c9bf76e4c6e6 = (int)\$_14a3aaeaa17fa7b1c9bf76e4c6e6; \$_14a3aaeaa17fa7b1c9bf76e4c6e6 = (\$_14a3aaeaa17fa7b1c9bf76e4c6e6 == 0 ? time() : \$_14a3aaeaa17fa7b1c9bf76e4c6e6); \$_b929d8783a1000adec5dd9fa233d = \$this->getDosTime(\$_14a3aaeaa17fa7b1c9bf76e4c6e6); \$_3c5174b71d24aa217f93fc1b7439 = pack(\"V\", \$_14a3aaeaa17fa7b1c9bf76e4c6e6); if (!isset(\$_3fc5ebf50087acece148ccb11395) || strlen(\$_3fc5ebf50087acece148ccb11395) != 2) { \$_3fc5ebf50087acece148ccb11395 = \"\\x00\\x00\"; } \$_93b89327fdc04d0dbd88fa35513e = mb_check_encoding(\$_fc1b135ef04b5926ac1e8b826b68, \"UTF-8\") && !mb_check_encoding(\$_fc1b135ef04b5926ac1e8b826b68, \"ASCII\"); \$_ad79a4f4d358c653489f6ebc6496 = !empty(\$_599eb0bb91ed2dc74c17597dc0fa) && mb_check_encoding(\$_599eb0bb91ed2dc74c17597dc0fa, \"UTF-8\") && !mb_check_encoding(\$_599eb0bb91ed2dc74c17597dc0fa, \"ASCII\"); \$_c80f0203f9bb631ae392198bd102 = \"\"; if (\$this->_67e2c7daf3ad925569783484dbc4) { \$_c80f0203f9bb631ae392198bd102 .= \"\U\T\\x05\\x00\\x03\" . \$_3c5174b71d24aa217f93fc1b7439 . Zip::EXTRA_FIELD_NEW_UNIX_GUID; } if (\$_93b89327fdc04d0dbd88fa35513e || \$_ad79a4f4d358c653489f6ebc6496) { \$_2771c2ba6d5601a36e9863d9cc00 = 0; \$_cdbd5c85c642dea45b086561c513 = unpack(\"vflags\", \$_3fc5ebf50087acece148ccb11395); if (isset(\$_cdbd5c85c642dea45b086561c513['flags'])) { \$_2771c2ba6d5601a36e9863d9cc00 = \$_cdbd5c85c642dea45b086561c513['flags']; } \$_3fc5ebf50087acece148ccb11395 = pack(\"v\", \$_2771c2ba6d5601a36e9863d9cc00 | (1 << 11)); if (\$_93b89327fdc04d0dbd88fa35513e) { \$_065bfdd50e04cdf3816f06db6c3f = \"\u\p\" . pack (\"v\", (5 + strlen(\$_fc1b135ef04b5926ac1e8b826b68))) . \"\\x01\" . pack(\"V\", crc32(\$_fc1b135ef04b5926ac1e8b826b68)) . \$_fc1b135ef04b5926ac1e8b826b68; \$_c80f0203f9bb631ae392198bd102 .= \$_065bfdd50e04cdf3816f06db6c3f; } if (\$_ad79a4f4d358c653489f6ebc6496) { \$_c80f0203f9bb631ae392198bd102 .= \"\u\c\" . pack (\"v\", (5 + strlen(\$_599eb0bb91ed2dc74c17597dc0fa))) . \"\\x01\" . pack(\"V\", crc32(\$_599eb0bb91ed2dc74c17597dc0fa)) . \$_599eb0bb91ed2dc74c17597dc0fa; } } \$_4cebcc467b548d96fd35e0c4ac2a = \$_3fc5ebf50087acece148ccb11395 . \$_4050621127a3c52ff3153ca181de . \$_b929d8783a1000adec5dd9fa233d. \$_c9f95a0a5af052bffce5c8991733 . pack(\"VVv\", \$_0650a38bbf1773db73de8387313c, \$_7cb8a463ca3a31b598e31101dbf4, strlen(\$_fc1b135ef04b5926ac1e8b826b68)); \$_d93a8250972ea7197afa1a43f1bb = self::ZIP_CENTRAL_FILE_HEADER . self::ATTR_MADE_BY_VERSION . (\$_7cb8a463ca3a31b598e31101dbf4 === 0 ? \"\
\\x00\" : self::ATTR_VERSION_TO_EXTRACT) . \$_4cebcc467b548d96fd35e0c4ac2a . pack(\"v\", strlen(\$_c80f0203f9bb631ae392198bd102)) . pack(\"v\", \$_d757e2ca218c5a2c20f1b6076d8f) . \"\\x00\\x00\" . \"\\x00\\x00\" . pack(\"V\", \$_d35c3915a77494448626ed736a1c) . pack(\"V\", \$_34f181570794f982dd2b80bf096e) . \$_fc1b135ef04b5926ac1e8b826b68 . \$_c80f0203f9bb631ae392198bd102; if (!empty(\$_599eb0bb91ed2dc74c17597dc0fa)) { \$_d93a8250972ea7197afa1a43f1bb .= \$_599eb0bb91ed2dc74c17597dc0fa; } return \$_d93a8250972ea7197afa1a43f1bb; } private function zipwrite(\$_be2cfdc3166d6646007daa893b2f, \$_50414b6c74e5c96a6544ad3cfbc6=false) { \$_c4f50244e544a819fc626da3a1be = (\$_50414b6c74e5c96a6544ad3cfbc6 or (\$this->_0da67f3318bb59c1a06a95e9dfa2 - \$this->_a683995c4ed02b9238bab49884ec > 10*1024*1024)); if (\$this->_0da67f3318bb59c1a06a95e9dfa2 >= (Zip::\$_717823a3*3/4)) throw new QuotaExceed(); if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { \$this->_d05e0b01012e60274fc44e4c564e .= \$_be2cfdc3166d6646007daa893b2f; if (strlen(\$this->_d05e0b01012e60274fc44e4c564e) > \$this->_344af8c6da9e95eaef5d7bad9493) { \$this->zipflush(); } } else { \$this->write(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_be2cfdc3166d6646007daa893b2f, \$_c4f50244e544a819fc626da3a1be); if (\$this->_64f32aa69edc355e8f7faddc673d) return; \$this->_0da67f3318bb59c1a06a95e9dfa2 += strlen(\$_be2cfdc3166d6646007daa893b2f); if (\$_c4f50244e544a819fc626da3a1be) \$this->flushCurrentPosition(); } } private function write(\$_565c87126bca08d205bcee8f898c, \$_8a9867663019ca4d0214836f8b4e, \$_6536cb925d2323c5699774f2cd72=false) { \$_7ea7be53ef202adbf1a51514637a = strlen(\$_8a9867663019ca4d0214836f8b4e); if (\$_7ea7be53ef202adbf1a51514637a != fwrite(\$_565c87126bca08d205bcee8f898c, \$_8a9867663019ca4d0214836f8b4e, \$_7ea7be53ef202adbf1a51514637a)) { throw new QuotaExceed(); }; if (\$_6536cb925d2323c5699774f2cd72 && !fflush(\$_565c87126bca08d205bcee8f898c)) { throw new QuotaExceed(); }; } public function flushCurrentPosition() { if (!fflush(\$this->_96b5fc1bdb5ce853be4e684f4907)) { throw new QuotaExceed(); }; \$this->_a683995c4ed02b9238bab49884ec = \$this->_0da67f3318bb59c1a06a95e9dfa2; \$_fd47c6f9e2a5cc56e7b999e01996 = \$this->_7d954b94814003949263d2b416d4 . \"_\"; \$_353208152805af54d1471c1279c1 = fopen(\$_fd47c6f9e2a5cc56e7b999e01996, 'w'); try { \$_02cd7fd7 = \$this->_a683995c4ed02b9238bab49884ec . \"\\n\"; if (count(\$this->_1372aef6b95cdd48e3aef8fe16fa) == 3) \$_02cd7fd7 .= base64_encode(\$this->_1372aef6b95cdd48e3aef8fe16fa[0]) . ' ' . \$this->_1372aef6b95cdd48e3aef8fe16fa[1] . ' ' . \$this->_1372aef6b95cdd48e3aef8fe16fa[2]; \$_02cd7fd7 .= \"\\n\"; foreach(\$this->_6a7aabd98fb71076d1ea0f2c85cc as \$_8c154727e400d4954cc47e51d2c7) { foreach(\$_8c154727e400d4954cc47e51d2c7 as \$_3e7273f7cca7f0f8feffbf662600) { \$_02cd7fd7 .= base64_encode(\$_3e7273f7cca7f0f8feffbf662600) . \" \"; } \$_02cd7fd7 .= \"\\n\"; \$this->write(\$_353208152805af54d1471c1279c1, \$_02cd7fd7); \$_02cd7fd7 = ''; } if (fflush(\$_353208152805af54d1471c1279c1)) { rename(\$_fd47c6f9e2a5cc56e7b999e01996, \$this->_7d954b94814003949263d2b416d4); } else { throw new QuotaExceed(); } } catch (Exception \$_0321fda314736813647fc18416f0) { unlink(\$_fd47c6f9e2a5cc56e7b999e01996); fclose(\$_353208152805af54d1471c1279c1); throw \$_0321fda314736813647fc18416f0; } } private function parseStatusFile(\$_5a6b972e8f66c7b436d708d9f479) { \$_a18d635eea1da358a9cffdcdbfdb = 1024; \$_52769f2c1d9f0c566af97b606bc0 = @fopen(\$_5a6b972e8f66c7b436d708d9f479, 'r'); if (!\$_52769f2c1d9f0c566af97b606bc0) return; \$_7c222ebbd47fade5e95a8eaddf5d = fstat(\$this->_96b5fc1bdb5ce853be4e684f4907); \$_86b447f932f48f123b9188d30fdd = \$_7c222ebbd47fade5e95a8eaddf5d['size']; \$_aa4e65590a0171bb2f304b9f5dc7 = (\$_86b447f932f48f123b9188d30fdd === 0); \$_67aa2a1681847d103cd098ab12aa = chop(fgets(\$_52769f2c1d9f0c566af97b606bc0, \$_a18d635eea1da358a9cffdcdbfdb)); \$_8e6fa4a757dde984c1fffa524a88 = explode(' ', chop(fgets(\$_52769f2c1d9f0c566af97b606bc0, \$_a18d635eea1da358a9cffdcdbfdb))); if (count(\$_8e6fa4a757dde984c1fffa524a88) === 3) { \$this->_1372aef6b95cdd48e3aef8fe16fa = array(base64_decode(\$_8e6fa4a757dde984c1fffa524a88[0]), (int)\$_8e6fa4a757dde984c1fffa524a88[1], (int)\$_8e6fa4a757dde984c1fffa524a88[2]); } \$_8c4388e07a7a88294b2a2aa5b5c4 = null; while ((\$_557ad3c1 = fgets(\$_52769f2c1d9f0c566af97b606bc0, \$_a18d635eea1da358a9cffdcdbfdb)) !== false) { \$_657afcfd = explode(\" \", chop(\$_557ad3c1)); \$_bb175a7d004b09c8368400acd8cb = array_map(base64_decode, \$_657afcfd); \$_2732d24a7ec2e3a5e5973ec3e663 = \$this->unpackCDEntry(\$_bb175a7d004b09c8368400acd8cb); \$_39ba102714d532f22367219b4495 = \$_2732d24a7ec2e3a5e5973ec3e663['realPath']; \$_254eb3563e75963ffb8ddf29f064 = (\$_2732d24a7ec2e3a5e5973ec3e663['extFileAttr'] & self::S_DOS_D); if (\$_8c4388e07a7a88294b2a2aa5b5c4 and strpos(\$_8c4388e07a7a88294b2a2aa5b5c4, \$_39ba102714d532f22367219b4495) === 0) continue; if (\$_aa4e65590a0171bb2f304b9f5dc7 and \$_2732d24a7ec2e3a5e5973ec3e663['file_state'] === 1) \$_2732d24a7ec2e3a5e5973ec3e663['file_state'] = 2; if (\$_254eb3563e75963ffb8ddf29f064) \$_8c4388e07a7a88294b2a2aa5b5c4 = (\$_2732d24a7ec2e3a5e5973ec3e663['file_state'] === 2) ? \$_39ba102714d532f22367219b4495 : null; \$this->packCDEntry(\$_2732d24a7ec2e3a5e5973ec3e663); \$this->_6a7aabd98fb71076d1ea0f2c85cc[] =& \$this->_f3f327d3f50be3b3f0b62a56e386[\$_39ba102714d532f22367219b4495]; } @fclose(\$_52769f2c1d9f0c566af97b606bc0); if (\$_aa4e65590a0171bb2f304b9f5dc7) { \$_67aa2a1681847d103cd098ab12aa = 0; \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); } \$this->_0da67f3318bb59c1a06a95e9dfa2 = \$_67aa2a1681847d103cd098ab12aa; \$this->_a683995c4ed02b9238bab49884ec = \$_67aa2a1681847d103cd098ab12aa; if (\$_86b447f932f48f123b9188d30fdd < \$_67aa2a1681847d103cd098ab12aa) { \$this->delete_last_files(\$_86b447f932f48f123b9188d30fdd - \$_67aa2a1681847d103cd098ab12aa); \$this->flushCurrentPosition(); } else { \$this->truncateZip(\$_67aa2a1681847d103cd098ab12aa); } if (\$_aa4e65590a0171bb2f304b9f5dc7) \$this->flushCurrentPosition(); } private function truncateZip(\$_858b85979454eb6b354f6b82d68b) { \$this->_0da67f3318bb59c1a06a95e9dfa2 = \$_858b85979454eb6b354f6b82d68b; ftruncate(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_858b85979454eb6b354f6b82d68b); fseek(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_858b85979454eb6b354f6b82d68b); } public function continueZipping() { if (!\$this->_1372aef6b95cdd48e3aef8fe16fa) return; \$_347573f3 = \$this->_1372aef6b95cdd48e3aef8fe16fa[0]; \$_74033b58ee512788fa7827f0c8a4 = isset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_347573f3]) ? \$this->_f3f327d3f50be3b3f0b62a56e386[\$_347573f3] : null; if (!\$_74033b58ee512788fa7827f0c8a4) { \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); return; } \$_1f9c2ab5caebf61ea1e1873c4659 = \$this->unpackCDEntry(\$_74033b58ee512788fa7827f0c8a4); \$_f2caf653d7a025c0d1f10fb99df3 = !(\$_1f9c2ab5caebf61ea1e1873c4659['gzLength'] == \$_1f9c2ab5caebf61ea1e1873c4659['dataLength']); \$this->addFile(\$_347573f3, \$_1f9c2ab5caebf61ea1e1873c4659['filePath'], \$_1f9c2ab5caebf61ea1e1873c4659['timestamp'], \$_1f9c2ab5caebf61ea1e1873c4659['fileComment'], \$_f2caf653d7a025c0d1f10fb99df3, \$_1f9c2ab5caebf61ea1e1873c4659['extFileAttr']); } private function zipflush() { if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { \$this->_96b5fc1bdb5ce853be4e684f4907 = tmpfile(); fwrite(\$this->_96b5fc1bdb5ce853be4e684f4907, \$this->_d05e0b01012e60274fc44e4c564e); \$this->_d05e0b01012e60274fc44e4c564e = NULL; } } public static function pathJoin(\$_eaae310632e73acd51555494a053, \$_dca0bb2fedca15e604da076a3615) { if (empty(\$_eaae310632e73acd51555494a053) || empty(\$_dca0bb2fedca15e604da076a3615)) { return self::getRelativePath(\$_eaae310632e73acd51555494a053 . \$_dca0bb2fedca15e604da076a3615); } return self::getRelativePath(\$_eaae310632e73acd51555494a053 . '/' . \$_dca0bb2fedca15e604da076a3615); } public static function getRelativePath(\$_13b3a4bf428ea1d998597b490e32) { \$_13b3a4bf428ea1d998597b490e32 = preg_replace(\"#/+\\.?/+#\", \"/\", str_replace(\"\\\\\", \"/\", \$_13b3a4bf428ea1d998597b490e32)); \$_29117719eb6c67b9ba1a0787a76d = explode(\"/\", rtrim(preg_replace('#^(?:\\./)+#', '', \$_13b3a4bf428ea1d998597b490e32), '/')); \$_ae862bfd08d431d45480a5fb38f3 = 0; \$_47a4612f7211ec1031fcebc73a28 = 0; \$_198c328ff3df59b87aafb6ccb39e = 0; \$_acde91570d9e3d566fc69c8482fe = \"\"; if (empty(\$_29117719eb6c67b9ba1a0787a76d[0])) { \$_acde91570d9e3d566fc69c8482fe = \"/\"; \$_29117719eb6c67b9ba1a0787a76d = array_splice(\$_29117719eb6c67b9ba1a0787a76d, 1); } else if (preg_match(\"#[A-Za-z]:#\", \$_29117719eb6c67b9ba1a0787a76d[0])) { \$_acde91570d9e3d566fc69c8482fe = strtoupper(\$_29117719eb6c67b9ba1a0787a76d[0]) . \"/\"; \$_29117719eb6c67b9ba1a0787a76d = array_splice(\$_29117719eb6c67b9ba1a0787a76d, 1); } \$_62291e8cde5bd4d79d286f15b877 = array(); foreach (\$_29117719eb6c67b9ba1a0787a76d as \$_0c0b1793bfc2d94da60c07b7b0ff) { if (\$_0c0b1793bfc2d94da60c07b7b0ff !== \"..\") { \$_198c328ff3df59b87aafb6ccb39e--; \$_62291e8cde5bd4d79d286f15b877[++\$_ae862bfd08d431d45480a5fb38f3] = \$_0c0b1793bfc2d94da60c07b7b0ff; } else { \$_198c328ff3df59b87aafb6ccb39e++; if (--\$_ae862bfd08d431d45480a5fb38f3 < 0) { \$_ae862bfd08d431d45480a5fb38f3 = 0; if (\$_198c328ff3df59b87aafb6ccb39e > \$_47a4612f7211ec1031fcebc73a28) { \$_47a4612f7211ec1031fcebc73a28++; } } } } if (empty(\$_acde91570d9e3d566fc69c8482fe)) { \$_acde91570d9e3d566fc69c8482fe = str_repeat(\"../\", \$_47a4612f7211ec1031fcebc73a28); } return \$_acde91570d9e3d566fc69c8482fe . implode(\"/\", array_slice(\$_62291e8cde5bd4d79d286f15b877, 0, \$_ae862bfd08d431d45480a5fb38f3)); } public static function generateExtAttr(\$_063719d26fb12ef5aa8ed0973f92 = 07, \$_fcb3e91c94c461baca0ae89eebe9 = 05, \$_0e7c3beab2e67e177aa29e6d4fcd = 05, \$_a5e5fafa24f1400cdc4a0aad5bf0 = true) { \$_c3cacb04cd3b1dc7c6781d43ef64 = \$_a5e5fafa24f1400cdc4a0aad5bf0 ? self::S_IFREG : self::S_IFDIR; \$_c3cacb04cd3b1dc7c6781d43ef64 |= ((\$_063719d26fb12ef5aa8ed0973f92 & 07) << 6) | ((\$_fcb3e91c94c461baca0ae89eebe9 & 07) << 3) | (\$_0e7c3beab2e67e177aa29e6d4fcd & 07); return (\$_c3cacb04cd3b1dc7c6781d43ef64 << 16) | (\$_a5e5fafa24f1400cdc4a0aad5bf0 ? self::S_DOS_A : self::S_DOS_D); } public static function getFileExtAttr(\$_92b9c3f6f647e25d19d8f23ac34f) { if (file_exists(\$_92b9c3f6f647e25d19d8f23ac34f)) { \$_41cd03b354c7ec48fc96df5883d4 = fileperms(\$_92b9c3f6f647e25d19d8f23ac34f) << 16; return \$_41cd03b354c7ec48fc96df5883d4 | (is_dir(\$_92b9c3f6f647e25d19d8f23ac34f) ? self::S_DOS_D : self::S_DOS_A); } return FALSE; } private static function getTemporaryFile(\$_90075b3b = false) { if (\$_90075b3b) { return 'php://memory'; } if(is_callable(self::\$_42a81b1cbaa733034c1ae140d8ad)) { \$_d4c0b49d7ce16da92daa81dda9de = @call_user_func(self::\$_42a81b1cbaa733034c1ae140d8ad); if(is_string(\$_d4c0b49d7ce16da92daa81dda9de) && strlen(\$_d4c0b49d7ce16da92daa81dda9de) && is_writable(\$_d4c0b49d7ce16da92daa81dda9de)) { return \$_d4c0b49d7ce16da92daa81dda9de; } } \$_afd12049333c220a9a1bef657087 = (is_string(self::\$_42a81b1cbaa733034c1ae140d8ad) && strlen(self::\$_42a81b1cbaa733034c1ae140d8ad)) ? self::\$_42a81b1cbaa733034c1ae140d8ad : sys_get_temp_dir(); return tempnam(\$_afd12049333c220a9a1bef657087, 'Zip'); } } if (\$_REQUEST['module'] == 'pushzip') { \$_efc6d18b8e03021b9ef1e711c7b4 = curl_init(); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_HEADER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_VERBOSE, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_RETURNTRANSFER, true); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_USERAGENT, \"Jino Spectrum Transfer\"); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_POST, true); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_URL, 'https://' . \$spectrum_server . '/upload?path=/&replace=true&sid=' . \$filemanager_sid); \$_c24c65259d90ed4a19ab37b6fd6f = get_zip_fullname(\$archive_prefix, \$last_archive_num); if (class_exists('CurlFile')) { \$_c00a6fbb888f2ec92054f1272cb8 = array(\"filedata\"=> new CurlFile(\$_c24c65259d90ed4a19ab37b6fd6f),); } else { \$_c00a6fbb888f2ec92054f1272cb8 = array(\"filedata\"=>\"@\".\$_c24c65259d90ed4a19ab37b6fd6f,); } curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_POSTFIELDS, \$_c00a6fbb888f2ec92054f1272cb8); set_stage('download'); \$_1d5469164235714613e22c37e01c = curl_exec(\$_efc6d18b8e03021b9ef1e711c7b4); if (strpos(\$_1d5469164235714613e22c37e01c, '\"status\": \"success\"') === false) { echo 'failed'; } else { echo 'success'; } exit(); } if (\$_REQUEST['module'] == 'installzip') { \$_efc6d18b8e03021b9ef1e711c7b4 = curl_init(); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_HEADER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_VERBOSE, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_RETURNTRANSFER, true); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_USERAGENT, \"Jino Spectrum Transfer\"); if (\$_99704e42c60167dcb32b393a15e2 != 'installing') { @array_map('unlink', glob(\"*.sql\")); @array_map('unlink', glob(\"*.status\")); @array_map('unlink', glob(\"*.zip\")); set_stage('installing'); } \$_11dda12ffc99214086351e93aa57 = \$archive_prefix . '*zip'; curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_URL, 'https://' . \$spectrum_server . '/install?path=/' . \$_11dda12ffc99214086351e93aa57 . '&sid=' . \$filemanager_sid); \$_1d5469164235714613e22c37e01c = curl_exec(\$_efc6d18b8e03021b9ef1e711c7b4); if (strpos(\$_1d5469164235714613e22c37e01c, 'success') === false) { echo 'failed'; } else { set_stage('finish'); echo 'success'; } exit(); }

Did this file decode correctly?

Original Code

@ini_set('opcache.enable', 0); @include('./config.php'); function set_config(\$_012f0097, \$_2123da1af9267d56019864a280bf) { \$_d870a7688b0b0fa578d94c9c3bf5 = dirname(__FILE__) . '/config.php'; \$_92f72deb0d70d291cf2ee69af01b = @file(\$_d870a7688b0b0fa578d94c9c3bf5); if (!\$_92f72deb0d70d291cf2ee69af01b) \$_92f72deb0d70d291cf2ee69af01b = array(\"<?php\\n\", \"?>\\n\"); \$_944fa50e25abbda4cc944c3dfdc4 = \"\"; \$_d4800e65c47c4d722a990f0469a2 = false; foreach (\$_92f72deb0d70d291cf2ee69af01b as \$_486c85aa0dd6752355ad1a31c1e7) { if (strpos(\$_486c85aa0dd6752355ad1a31c1e7, \$_012f0097 . ' ') > -1) { \$_a8a6ce729cf43e4ebc80e78d1f25 = \"\\t\$\" . \$_012f0097 . ' = \"' . \$_2123da1af9267d56019864a280bf . '\";'; if (strpos(\$_486c85aa0dd6752355ad1a31c1e7, '<?php') > -1) \$_a8a6ce729cf43e4ebc80e78d1f25 = '<?php ' . \$_a8a6ce729cf43e4ebc80e78d1f25; if (strpos(\$_486c85aa0dd6752355ad1a31c1e7, '?>') > -1) \$_a8a6ce729cf43e4ebc80e78d1f25 .= '?>'; \$_486c85aa0dd6752355ad1a31c1e7 = \$_a8a6ce729cf43e4ebc80e78d1f25 . \"\\n\"; \$_d4800e65c47c4d722a990f0469a2 = true; } elseif (strpos(\$_486c85aa0dd6752355ad1a31c1e7, '?>') > -1 and !\$_d4800e65c47c4d722a990f0469a2) { \$_944fa50e25abbda4cc944c3dfdc4 .= \"\\t\$\" . \$_012f0097 . ' = \"' . \$_2123da1af9267d56019864a280bf . '\";' . \"\\n\"; } \$_944fa50e25abbda4cc944c3dfdc4 .= \$_486c85aa0dd6752355ad1a31c1e7; } file_put_contents(\$_d870a7688b0b0fa578d94c9c3bf5, \$_944fa50e25abbda4cc944c3dfdc4); } if (\$_REQUEST['module'] == 'new_key' and \$_REQUEST['username'] and \$_REQUEST['password']) { define('_JEXEC', 1); define('JPATH_BASE', realpath((dirname(__FILE__) . '/../../'))); require_once JPATH_BASE . '/includes/defines.php'; require_once JPATH_BASE . '/includes/framework.php'; \$_38aa8a50c7b109dc4420d9f115d7 = JFactory::getApplication('administrator'); \$_023c4a101b4f41fd6a73b9d5cccf = \$_38aa8a50c7b109dc4420d9f115d7->login(array('username'=>\$_REQUEST['username'], 'password'=> \$_REQUEST['password'], 'secretkey'=>''), array('action'=>'core.login.admin')); if (!\$_023c4a101b4f41fd6a73b9d5cccf) { echo \"invalid password or login\"; exit(); } \$_b761767110554f4cab349f7b9ef2 = uniqid(); \$secret_key_crypt = md5(\$_b761767110554f4cab349f7b9ef2); set_config('secret_key_crypt', \$secret_key_crypt); echo \$_b761767110554f4cab349f7b9ef2; exit(); } if (!\$secret_key_crypt or \$secret_key_crypt == '__SECRETKEY__' or !isset(\$_REQUEST['key']) or md5(\$_REQUEST['key']) != \$secret_key_crypt) { echo \"invalid secret key\"; exit(); } if (\$_REQUEST['module'] == 'new_key') { \$_b761767110554f4cab349f7b9ef2 = uniqid(); \$secret_key_crypt = md5(\$_b761767110554f4cab349f7b9ef2); set_config('secret_key_crypt', \$secret_key_crypt); echo \$_b761767110554f4cab349f7b9ef2; exit(); } function set_stage(\$_25d07aef7ea2bda325c6460e29e2) { \$_35779554d2636ae2771f2f7ddbed = time(); set_config('stage', \$_25d07aef7ea2bda325c6460e29e2); set_config('stage_since', \$_35779554d2636ae2771f2f7ddbed); } if (\$_REQUEST['module'] == 'set_stage') { \$_99704e42c60167dcb32b393a15e2 = \$_REQUEST['stage']; set_stage(\$_99704e42c60167dcb32b393a15e2); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'set_params') { \$spectrum_server = \$_REQUEST['spectrum_server']; \$filemanager_sid = \$_REQUEST['filemanager_sid']; \$app_hashid = \$_REQUEST['app_hashid']; set_config('spectrum_server', \$spectrum_server); set_config('filemanager_sid', \$filemanager_sid); set_config('app_hashid', \$app_hashid); echo '<script type=\"text/javascript\">window.close()</script>'; echo 'success'; exit(); } if (\$_REQUEST['module'] == 'cleanup') { @array_map('unlink', glob(\"*.sql\")); @array_map('unlink', glob(\"*.status\")); @array_map('unlink', glob(\"*.zip\")); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'destroy') { @array_map('unlink', glob(\"*\")); @rmdir(realpath('.')); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'config') { copy('../../../configuration.php', 'configuration'); echo 'success'; exit(); } if (\$_REQUEST['module'] == 'mysqldumper') { if (\$_REQUEST['joomla']) { include '../../../configuration.php'; \$_fb088db94c1c63609291ddb80c7b = new JConfig; \$dbhost = \$_fb088db94c1c63609291ddb80c7b->host; \$dbuser = \$_fb088db94c1c63609291ddb80c7b->user; \$dbpsw = \$_fb088db94c1c63609291ddb80c7b->password; \$dbname = \$_fb088db94c1c63609291ddb80c7b->db; \$prefix = \$_fb088db94c1c63609291ddb80c7b->dbprefix; } if (!isset(\$sqldump)) { \$sqldump = uniqid() . '.sql'; set_config('sqldump', \$sqldump); } set_stage('mysqldump'); \$_bb881ae4980e5f8e86c47ab6f13b = 1048576; \$_a6e368effe0a9192e8fe0d974989 = new MySQLDump(\$dbname, \$sqldump, false, false, \$_bb881ae4980e5f8e86c47ab6f13b); @\$_a6e368effe0a9192e8fe0d974989->mysql_connect(\$dbhost,\$dbuser,\$dbpsw); \$_a6e368effe0a9192e8fe0d974989->mysql_set_charset('utf8'); \$_a6e368effe0a9192e8fe0d974989->dump(\$prefix); echo 'success'; exit(); } class SQLFile { var \$_40474574df107c24a04f52542d12 = false; var \$_be478e3db611421633e2965112d7 = false; var \$_28e49e1b19c62ed5d3bd9d556d79 = null; var \$_ce9e897cb451085d374b3bf3b162 = null; var \$_2f3d3deb4072301041986d0798ec = null; var \$_8bd023cdfb28962f106e5b603239 = 0; var \$_0137009f = 1048576; var \$_a00e5eb0973d24649a4a920fc53d = array(); var \$_4693741dbc22e85c3b079b59dbfc = array(); function __construct(\$_0e2e9330eef6e3fa9211a91e0eea, \$_d5d26cba=false, \$_021200d6=false) { \$this->_40474574df107c24a04f52542d12 = \$_d5d26cba; \$this->_28e49e1b19c62ed5d3bd9d556d79 = \$_0e2e9330eef6e3fa9211a91e0eea; \$this->_be478e3db611421633e2965112d7 = \$_021200d6; \$this->open(\$this->_28e49e1b19c62ed5d3bd9d556d79); if (!\$this->_ce9e897cb451085d374b3bf3b162) throw new Exception('Could open file'); } function __destruct() { if (\$this->_ce9e897cb451085d374b3bf3b162) \$this->close(); } function open(\$_482736fec4c48d590b341b875ba8) { if ( \$this->_40474574df107c24a04f52542d12 ) \$this->_ce9e897cb451085d374b3bf3b162 = @gzopen(\$_482736fec4c48d590b341b875ba8, \"c9\"); else \$this->_ce9e897cb451085d374b3bf3b162 = @fopen(\$_482736fec4c48d590b341b875ba8, \"cb\"); @flock(\$this->_ce9e897cb451085d374b3bf3b162, LOCK_EX); if (\$this->_be478e3db611421633e2965112d7) { \$_401c01be8045103fc2cafb32db82 = \$_482736fec4c48d590b341b875ba8 . '.status'; \$this->parse_statusfile(\$_401c01be8045103fc2cafb32db82); \$this->_2f3d3deb4072301041986d0798ec = @fopen(\$_401c01be8045103fc2cafb32db82, 'c'); } } function parse_statusfile(\$_88d679ec) { \$_f44b5e8317904c6a298ae5d26ead = @filesize(\$_88d679ec); \$_e3b428825f87078a341e3ddfb37f = @fopen(\$_88d679ec, 'r'); if (!\$_e3b428825f87078a341e3ddfb37f) return; if (!\$_f44b5e8317904c6a298ae5d26ead) return; \$this->_a00e5eb0973d24649a4a920fc53d = explode(',', chop(fgets(\$_e3b428825f87078a341e3ddfb37f, \$_f44b5e8317904c6a298ae5d26ead))); \$this->_4693741dbc22e85c3b079b59dbfc = explode(',', chop(fgets(\$_e3b428825f87078a341e3ddfb37f, \$_f44b5e8317904c6a298ae5d26ead))); \$_d3afba7ee5432d6d33faddb5e406 = chop(fgets(\$_e3b428825f87078a341e3ddfb37f, \$_f44b5e8317904c6a298ae5d26ead)); \$this->seek(\$_d3afba7ee5432d6d33faddb5e406); @fclose(\$_e3b428825f87078a341e3ddfb37f); } function write(\$_24d16397d156bdeb0aed8be9dc50) { if (\$this->_40474574df107c24a04f52542d12) @gzwrite(\$this->_ce9e897cb451085d374b3bf3b162, \$_24d16397d156bdeb0aed8be9dc50); else @fwrite(\$this->_ce9e897cb451085d374b3bf3b162, \$_24d16397d156bdeb0aed8be9dc50); if (\$this->_2f3d3deb4072301041986d0798ec) { \$_be4a5a8b4798c542bf43f8707880 = \$this->get_size(); if (\$_be4a5a8b4798c542bf43f8707880 - \$this->_8bd023cdfb28962f106e5b603239 > \$this->_0137009f) { \$this->flush(); } } } function flush() { @fflush(\$this->_ce9e897cb451085d374b3bf3b162); \$_01340098 = \$this->get_size(); \$this->_8bd023cdfb28962f106e5b603239 = \$_01340098; \$_9727514ce53a21e335a63d4694f1 = implode(',', \$this->_a00e5eb0973d24649a4a920fc53d); \$_9727514ce53a21e335a63d4694f1 .= \"\\n\" . implode(',', \$this->_4693741dbc22e85c3b079b59dbfc); \$_9727514ce53a21e335a63d4694f1 .= \"\\n\" . \$_01340098 . \"\\n\"; @fseek(\$this->_2f3d3deb4072301041986d0798ec, 0); @fwrite(\$this->_2f3d3deb4072301041986d0798ec, \$_9727514ce53a21e335a63d4694f1); @fflush(\$this->_2f3d3deb4072301041986d0798ec); } function close() { @fflush(\$this->_ce9e897cb451085d374b3bf3b162); @flock(\$this->_ce9e897cb451085d374b3bf3b162, LOCK_UN); if (\$this->_40474574df107c24a04f52542d12) @gzclose(\$this->_ce9e897cb451085d374b3bf3b162); else @fclose(\$this->_ce9e897cb451085d374b3bf3b162); \$this->_ce9e897cb451085d374b3bf3b162 = null; @fclose(\$this->_2f3d3deb4072301041986d0798ec); \$this->_2f3d3deb4072301041986d0798ec = null; } function get_size() { \$_2bc48a8643d77e9fcef6507d1d88 = null; if (\$this->_40474574df107c24a04f52542d12) \$_2bc48a8643d77e9fcef6507d1d88 = @gztell(\$this->_ce9e897cb451085d374b3bf3b162); else \$_2bc48a8643d77e9fcef6507d1d88 = @ftell(\$this->_ce9e897cb451085d374b3bf3b162); return \$_2bc48a8643d77e9fcef6507d1d88; } function seek(\$_0a54423bd66ab8e2cf3879e01294) { if (\$this->_40474574df107c24a04f52542d12) @gzseek(\$this->_ce9e897cb451085d374b3bf3b162, \$_0a54423bd66ab8e2cf3879e01294); else @fseek(\$this->_ce9e897cb451085d374b3bf3b162, \$_0a54423bd66ab8e2cf3879e01294); } function get_current_table() { return \$this->_4693741dbc22e85c3b079b59dbfc; } function set_current_table(\$_fee7275be37a044774371aea9bcc) { \$this->_4693741dbc22e85c3b079b59dbfc = \$_fee7275be37a044774371aea9bcc; } function get_exported_tables() { return \$this->_a00e5eb0973d24649a4a920fc53d; } function add_exported_table(\$_aac09b54232bfb86ee28d1b0928c) { \$this->_a00e5eb0973d24649a4a920fc53d[] = \$_aac09b54232bfb86ee28d1b0928c; } } class MySQLDump { protected \$_a44f632fa71659b566d17a1fe1c2 = true; protected \$_15642d8ad0d1d5dc1259ce9d982b = null; protected \$_0b7f663c4db6535287cce0a3abdc = null; var \$_9e732a04f89ff423063e3e7e1d98 = false; var \$_d18f655c3fce66ca401d5f38b48c = false; var \$_9927206bbb11cafb3d469aef298c = null; function __construct(\$_23f96996f8241359fb11d6180ff0, \$_301342bafe24a4b871f2c58de017='dump.sql', \$_ac6b2574c6b7e3dc000e94e10e8b=false, \$_bc06e36131361bdae47dd98c5ecc=false, \$_26c95d449c5f8756953c3f2f2d4e=1048576) { \$this->_9e732a04f89ff423063e3e7e1d98 = \$_ac6b2574c6b7e3dc000e94e10e8b; \$this->_d18f655c3fce66ca401d5f38b48c = \$_bc06e36131361bdae47dd98c5ecc; \$this->_29bc84e4380d74446e2c0685f128 = \$_26c95d449c5f8756953c3f2f2d4e; \$this->_9927206bbb11cafb3d469aef298c = new SQLFile(\$_301342bafe24a4b871f2c58de017, \$_ac6b2574c6b7e3dc000e94e10e8b, true); \$this->_0b7f663c4db6535287cce0a3abdc = \$_23f96996f8241359fb11d6180ff0; } function mysql_connect(\$_26e2ccf57ed64a96f2da35d7b692, \$_5b202f72d7d1eebadc0b2ac562b4, \$_4f1570dc) { if (extension_loaded('mysqli')) { \$this->_a44f632fa71659b566d17a1fe1c2 = true; \$this->_15642d8ad0d1d5dc1259ce9d982b = mysqli_connect(\$_26e2ccf57ed64a96f2da35d7b692, \$_5b202f72d7d1eebadc0b2ac562b4, \$_4f1570dc); } else { \$this->_a44f632fa71659b566d17a1fe1c2 = false; \$this->_15642d8ad0d1d5dc1259ce9d982b = mysql_connect(\$_26e2ccf57ed64a96f2da35d7b692, \$_5b202f72d7d1eebadc0b2ac562b4, \$_4f1570dc); } if (!@\$this->_mysql_select_db(\$this->_0b7f663c4db6535287cce0a3abdc)) throw new Exception('Could connect to db'); return \$this->_15642d8ad0d1d5dc1259ce9d982b; } function mysql_set_charset(\$_ac1ad983e08ad3304a97e147f522) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_set_charset(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_ac1ad983e08ad3304a97e147f522); } return mysql_set_charset(\$_ac1ad983e08ad3304a97e147f522, \$this->_15642d8ad0d1d5dc1259ce9d982b); } function _mysql_select_db(\$_018f8ff0ff9e788cf2e6a0d1e1a7) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_select_db(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_018f8ff0ff9e788cf2e6a0d1e1a7); } return mysql_select_db(\$_018f8ff0ff9e788cf2e6a0d1e1a7, \$this->_15642d8ad0d1d5dc1259ce9d982b); } function _mysql_query(\$_9d4c4e8d) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_query(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_9d4c4e8d); } return mysql_query(\$_9d4c4e8d, \$this->_15642d8ad0d1d5dc1259ce9d982b); } function _mysql_num_rows(\$_df24a1a896476c26fc117bab4538) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_num_rows(\$_df24a1a896476c26fc117bab4538); } return mysql_num_rows(\$_df24a1a896476c26fc117bab4538); } function _mysql_fetch_assoc(\$_9d693eeee1d1899cbc50b6d45df9) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_fetch_assoc(\$_9d693eeee1d1899cbc50b6d45df9); } return mysql_fetch_assoc(\$_9d693eeee1d1899cbc50b6d45df9); } function _mysql_num_fields(\$_a50cc6102ab38edeef936522f3b7) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_field_count(\$this->_15642d8ad0d1d5dc1259ce9d982b); } return mysql_num_fields(\$_a50cc6102ab38edeef936522f3b7); } function _mysql_field_name(\$_6c6e73d36e9ebd6da1a801960f18, \$_2fa99ac90955dd50a8a5ba3091fc) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { \$_07dfd62d296a510c40f601e4be1b = mysqli_fetch_field_direct(\$_6c6e73d36e9ebd6da1a801960f18, \$_2fa99ac90955dd50a8a5ba3091fc); if (\$_07dfd62d296a510c40f601e4be1b) { return \$_07dfd62d296a510c40f601e4be1b->name; } else { return false; } } return mysql_field_name(\$_6c6e73d36e9ebd6da1a801960f18, \$_2fa99ac90955dd50a8a5ba3091fc); } function _mysql_escape_string(\$_84ca496ddcf2dde5d785427097f4) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_real_escape_string(\$this->_15642d8ad0d1d5dc1259ce9d982b, \$_84ca496ddcf2dde5d785427097f4); } return mysql_escape_string(\$_84ca496ddcf2dde5d785427097f4); } function _mysql_fetch_row(\$_8e3330aeb5e96211f56a9521e80a) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_fetch_row(\$_8e3330aeb5e96211f56a9521e80a); } return mysql_fetch_row(\$_8e3330aeb5e96211f56a9521e80a); } function _mysql_fetch_object(\$_d3dd3d1635294aa032f11af5eca5) { if (\$this->_a44f632fa71659b566d17a1fe1c2) { return mysqli_fetch_object(\$_d3dd3d1635294aa032f11af5eca5); } return mysql_fetch_object(\$_d3dd3d1635294aa032f11af5eca5); } function getTableStructure(\$_8f00900e2ab2f1ac8b0cb3222738) { \$_222cb1c69d18c264e3bbea0256e5 = \"-- \\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= \"-- Table structure for table `{\$_8f00900e2ab2f1ac8b0cb3222738}` \\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= \"-- \\n\\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= 'DROP TABLE IF EXISTS `'.\$_8f00900e2ab2f1ac8b0cb3222738.'`;'.\"\\n\"; \$_222cb1c69d18c264e3bbea0256e5 .= \"CREATE TABLE `\".\$_8f00900e2ab2f1ac8b0cb3222738.\"` (\\n\"; \$_4646e263fc36a14a3abb97473f88 = @\$this->_mysql_query('SHOW FIELDS FROM `'.\$_8f00900e2ab2f1ac8b0cb3222738.'`'); if (@\$this->_mysql_num_rows(\$_4646e263fc36a14a3abb97473f88) == 0) return false; while (\$_25d0d2d4aed47d6f46ce9f7f4700 = \$this->_mysql_fetch_assoc(\$_4646e263fc36a14a3abb97473f88)) { \$_222cb1c69d18c264e3bbea0256e5 .= '`'.\$_25d0d2d4aed47d6f46ce9f7f4700['Field'].'` '.\$_25d0d2d4aed47d6f46ce9f7f4700['Type']; if (@strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Null'],'YES') != 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' NOT NULL'; if (@strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Default'], 'CURRENT_TIMESTAMP') == 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' DEFAULT CURRENT_TIMESTAMP'; elseif (!is_null(\$_25d0d2d4aed47d6f46ce9f7f4700['Default'])) \$_222cb1c69d18c264e3bbea0256e5 .= \" DEFAULT '{\$_25d0d2d4aed47d6f46ce9f7f4700['Default']}'\"; if (!empty(\$_25d0d2d4aed47d6f46ce9f7f4700['Extra'])) \$_222cb1c69d18c264e3bbea0256e5 .= ' '.\$_25d0d2d4aed47d6f46ce9f7f4700['Extra']; \$_222cb1c69d18c264e3bbea0256e5 .= \",\\n\"; } \$_222cb1c69d18c264e3bbea0256e5 = @preg_replace(\"/,\\n\$/\", null, \$_222cb1c69d18c264e3bbea0256e5); \$_222cb1c69d18c264e3bbea0256e5 .= \$this->getSqlKeysTable(\$_8f00900e2ab2f1ac8b0cb3222738); \$_222cb1c69d18c264e3bbea0256e5 .= \"\\n)\"; \$_4646e263fc36a14a3abb97473f88 = @\$this->_mysql_query(\"SHOW TABLE STATUS LIKE '\".\$_8f00900e2ab2f1ac8b0cb3222738.\"'\"); if ( \$_25d0d2d4aed47d6f46ce9f7f4700 = @\$this->_mysql_fetch_assoc(\$_4646e263fc36a14a3abb97473f88) ) { if (!empty(\$_25d0d2d4aed47d6f46ce9f7f4700['Engine'])) \$_222cb1c69d18c264e3bbea0256e5 .= ' ENGINE='.\$_25d0d2d4aed47d6f46ce9f7f4700['Engine']; if (strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Collation'], 'cp1251_general_ci') == 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' DEFAULT CHARSET=cp1251'; elseif (strcmp(\$_25d0d2d4aed47d6f46ce9f7f4700['Collation'], 'utf8_general_ci') == 0) \$_222cb1c69d18c264e3bbea0256e5 .= ' DEFAULT CHARSET=utf8'; if (!empty(\$_25d0d2d4aed47d6f46ce9f7f4700['Auto_increment'])) \$_222cb1c69d18c264e3bbea0256e5 .= ' AUTO_INCREMENT='.\$_25d0d2d4aed47d6f46ce9f7f4700['Auto_increment']; } \$_222cb1c69d18c264e3bbea0256e5 .= \";\\n\\n-- --------------------------------------------------------\\n\\n\"; \$this->_9927206bbb11cafb3d469aef298c->write(\$_222cb1c69d18c264e3bbea0256e5); } function getTableData(\$_719233264554fa4bb2bcfabc10ae, \$_d74f1875ab97ebf0a1311897db8f=true, \$_17a73246f1836624f8c3362f3636=0) { \$_2df4d01fa8f33ba7724fd273368f = \"-- \\n\"; \$_2df4d01fa8f33ba7724fd273368f .= \"-- Dumping data for table `\$_719233264554fa4bb2bcfabc10ae` \\n\"; \$_2df4d01fa8f33ba7724fd273368f .= \"-- \\n\\n\"; \$_26e83fef04e543224f71acd8e133 = \$this->_mysql_query('SHOW FIELDS FROM `'.\$_719233264554fa4bb2bcfabc10ae.'`'); \$_c86a7ee3d8ef0b551ed58e354a83 = @\$this->_mysql_num_rows(\$_26e83fef04e543224f71acd8e133); if (\$_c86a7ee3d8ef0b551ed58e354a83 == 0) return false; \$_c943cfb74bb24bce1fea7b2830f0 = \"SELECT \"; \$_092cef33653603f56fe58d81fffd = \"INSERT INTO `\$_719233264554fa4bb2bcfabc10ae` (\"; \$_f829e972d64cf8ae68130e355f5a = array(); for (\$_10091e61d9b71088f25163b5ac78 = 0; \$_10091e61d9b71088f25163b5ac78 < \$_c86a7ee3d8ef0b551ed58e354a83; \$_10091e61d9b71088f25163b5ac78++) { \$_9f1f1cd7a35d6bf2b5b159d978de = @\$this->_mysql_fetch_assoc(\$_26e83fef04e543224f71acd8e133); if ( (\$_d74f1875ab97ebf0a1311897db8f) && (\$this->isTextValue(\$_9f1f1cd7a35d6bf2b5b159d978de['Type'])) ) { \$_c943cfb74bb24bce1fea7b2830f0 .= 'HEX(`'.\$_9f1f1cd7a35d6bf2b5b159d978de['Field'].'`)'; \$_f829e972d64cf8ae68130e355f5a[\$_10091e61d9b71088f25163b5ac78] = true; } else \$_c943cfb74bb24bce1fea7b2830f0 .= '`'.\$_9f1f1cd7a35d6bf2b5b159d978de['Field'].'`'; \$_092cef33653603f56fe58d81fffd .= '`'.\$_9f1f1cd7a35d6bf2b5b159d978de['Field'].'`'; \$_092cef33653603f56fe58d81fffd .= \", \"; \$_c943cfb74bb24bce1fea7b2830f0 .= \", \"; } \$_092cef33653603f56fe58d81fffd = @substr(\$_092cef33653603f56fe58d81fffd,0,-2).') VALUES'; \$_c943cfb74bb24bce1fea7b2830f0 = @substr(\$_c943cfb74bb24bce1fea7b2830f0,0,-2).' FROM `'.\$_719233264554fa4bb2bcfabc10ae.'`'; if ( \$_17a73246f1836624f8c3362f3636 > 0 ) { \$_c943cfb74bb24bce1fea7b2830f0 .= ' LIMIT ' . \$_17a73246f1836624f8c3362f3636 . ', 18446744073709551615'; } \$_26e83fef04e543224f71acd8e133 = @\$this->_mysql_query(\$_c943cfb74bb24bce1fea7b2830f0); \$_82e78d53280f8ce782d0447bac09 = @\$this->_mysql_num_rows(\$_26e83fef04e543224f71acd8e133); \$_c86a7ee3d8ef0b551ed58e354a83 = @\$this->_mysql_num_fields(\$_26e83fef04e543224f71acd8e133); if ( \$_82e78d53280f8ce782d0447bac09 > 0 ) { \$_2df4d01fa8f33ba7724fd273368f .= \$_092cef33653603f56fe58d81fffd; for (\$_760ef393 = \$_17a73246f1836624f8c3362f3636; \$_760ef393 < \$_17a73246f1836624f8c3362f3636 + \$_82e78d53280f8ce782d0447bac09; \$_760ef393++) { \$_9f1f1cd7a35d6bf2b5b159d978de = @\$this->_mysql_fetch_assoc(\$_26e83fef04e543224f71acd8e133); if (\$_2df4d01fa8f33ba7724fd273368f == '') \$_2df4d01fa8f33ba7724fd273368f .= \"\\n\" . \$_092cef33653603f56fe58d81fffd; \$_2df4d01fa8f33ba7724fd273368f .= ' ('; for (\$_3abc6ac14cd0e153a58ac02f5ca1 = 0; \$_3abc6ac14cd0e153a58ac02f5ca1 < \$_c86a7ee3d8ef0b551ed58e354a83; \$_3abc6ac14cd0e153a58ac02f5ca1++) { \$_fdbc667579c180130cfbca7c60c3 = @\$this->_mysql_field_name(\$_26e83fef04e543224f71acd8e133, \$_3abc6ac14cd0e153a58ac02f5ca1); if ( isset(\$_f829e972d64cf8ae68130e355f5a[\$_3abc6ac14cd0e153a58ac02f5ca1]) && \$_f829e972d64cf8ae68130e355f5a[\$_3abc6ac14cd0e153a58ac02f5ca1] && (@strlen(\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3]) > 0) ) \$_2df4d01fa8f33ba7724fd273368f .= \"0x\".\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3]; else if ( is_null(\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3]) ) \$_2df4d01fa8f33ba7724fd273368f .= \"NULL\"; else \$_2df4d01fa8f33ba7724fd273368f .= \"'\".@str_replace('\\\"','\"',@\$this->_mysql_escape_string(\$_9f1f1cd7a35d6bf2b5b159d978de[\$_fdbc667579c180130cfbca7c60c3])).\"'\"; \$_2df4d01fa8f33ba7724fd273368f .= ','; } \$_2df4d01fa8f33ba7724fd273368f = @substr(\$_2df4d01fa8f33ba7724fd273368f,0,-1).\")\"; if (\$_760ef393 >= (\$_82e78d53280f8ce782d0447bac09-1) || strlen(\$_2df4d01fa8f33ba7724fd273368f) > \$this->_29bc84e4380d74446e2c0685f128) { \$_2df4d01fa8f33ba7724fd273368f .= \";\\n\"; \$this->_9927206bbb11cafb3d469aef298c->set_current_table(array(\$_719233264554fa4bb2bcfabc10ae, \$_760ef393)); \$this->_9927206bbb11cafb3d469aef298c->write(\$_2df4d01fa8f33ba7724fd273368f); \$_2df4d01fa8f33ba7724fd273368f = ''; } else { \$_2df4d01fa8f33ba7724fd273368f .= \",\\n\"; } } \$_2df4d01fa8f33ba7724fd273368f .= \"\\n-- --------------------------------------------------------\\n\\n\"; \$this->_9927206bbb11cafb3d469aef298c->set_current_table(array()); \$this->_9927206bbb11cafb3d469aef298c->write(\$_2df4d01fa8f33ba7724fd273368f); } } function getDatabaseStructure(\$prefix=null) { \$_01f800cb = @\$this->_mysql_query('SHOW TABLES'); if (@\$this->_mysql_num_rows(\$_01f800cb) == 0) return false; while (\$_c2d186ea8d91750d1e6a2df87a10 = @\$this->_mysql_fetch_row(\$_01f800cb)) { if (\$prefix && strpos(\$_c2d186ea8d91750d1e6a2df87a10[0], \$prefix) !== 0) continue; \$this->getTableStructure(\$_c2d186ea8d91750d1e6a2df87a10[0]); } } function getDatabaseData(\$prefix=null, \$_15f91f4019d092035597afd6ab7c=true) { \$_5257f5b2c0efb81c32bcca9cd23a = @\$this->_mysql_query('SHOW TABLES'); if (@\$this->_mysql_num_rows(\$_5257f5b2c0efb81c32bcca9cd23a) == 0) return false; while (\$_f100fb2befe569f7848598a15477 = @\$this->_mysql_fetch_row(\$_5257f5b2c0efb81c32bcca9cd23a)) { \$_03bebe53d30ebd1f536a74d86477 = \$_f100fb2befe569f7848598a15477[0]; \$_1e2d20943edca6adc3453bc4eeaa = \$this->_9927206bbb11cafb3d469aef298c->get_exported_tables(); if (in_array(\$_03bebe53d30ebd1f536a74d86477, \$_1e2d20943edca6adc3453bc4eeaa)) continue; if (\$prefix && strpos(\$_03bebe53d30ebd1f536a74d86477, \$prefix) !== 0) continue; \$_c5209444eda2af83e3eedc73f1a2 = \$this->_9927206bbb11cafb3d469aef298c->get_current_table(); \$_2be94a653f1f213696ccfbc7e929 = (count(\$_c5209444eda2af83e3eedc73f1a2) == 2) ? \$_c5209444eda2af83e3eedc73f1a2[1] + 1 : 0; \$this->getTableData(\$_03bebe53d30ebd1f536a74d86477, \$_15f91f4019d092035597afd6ab7c, \$_2be94a653f1f213696ccfbc7e929); \$this->_9927206bbb11cafb3d469aef298c->add_exported_table(\$_03bebe53d30ebd1f536a74d86477); } \$this->_9927206bbb11cafb3d469aef298c->flush(); } function dump(\$prefix=null, \$_8aacbac7 = array(), \$_cd3e5dd911cd66477749dd6c0e6e = true) { \$_7389ac69c289c93f69ea3b865900 = \$this->_9927206bbb11cafb3d469aef298c->get_exported_tables(); if (!\$_7389ac69c289c93f69ea3b865900) { \$this->_9927206bbb11cafb3d469aef298c->write(\"SET FOREIGN_KEY_CHECKS = 0;\\n\\n\"); if (!isset(\$_8aacbac7['skip_structure'])) \$this->getDatabaseStructure(\$prefix); } if (!isset(\$_8aacbac7['skip_data'])) \$this->getDatabaseData(\$prefix, \$this->_d18f655c3fce66ca401d5f38b48c); \$this->_9927206bbb11cafb3d469aef298c->write(\"SET FOREIGN_KEY_CHECKS = 1;\\n\\n\"); if (\$_cd3e5dd911cd66477749dd6c0e6e) \$this->_9927206bbb11cafb3d469aef298c->close(); } function getSqlKeysTable(\$_45aae75f0203de09782aaf41c000) { \$_abcdadfe8ef729b33a6b884df5b5 = \"\"; unset(\$_76f65afe487be18c7b34d07f460f); unset(\$_432eadc28582f89dcea554e1fe38); unset(\$_e7e3fcaa97d659667c9c8c7b2a06); \$_2cf7f5369bc107570c3eecd46abd = \$this->_mysql_query(\"SHOW KEYS FROM `{\$_45aae75f0203de09782aaf41c000}`\"); if (@\$this->_mysql_num_rows(\$_2cf7f5369bc107570c3eecd46abd) == 0) return false; while(\$_662a13ed49ab0e07fba4c620c73e = \$this->_mysql_fetch_object(\$_2cf7f5369bc107570c3eecd46abd)) { if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name == 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'BTREE')) { if ( \$_abcdadfe8ef729b33a6b884df5b5 == \"\" ) \$_abcdadfe8ef729b33a6b884df5b5 = \" PRIMARY KEY (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_abcdadfe8ef729b33a6b884df5b5 .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; } if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name != 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Non_unique == '0') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'BTREE')) { if ( (!is_array(\$_76f65afe487be18c7b34d07f460f)) OR (\$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name]==\"\") ) \$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name] = \" UNIQUE KEY `{\$_662a13ed49ab0e07fba4c620c73e->Key_name}` (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; if (!is_null(\$_662a13ed49ab0e07fba4c620c73e->Sub_part)) \$_76f65afe487be18c7b34d07f460f[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \"({\$_662a13ed49ab0e07fba4c620c73e->Sub_part})\"; } if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name != 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Non_unique == '1') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'BTREE')) { if ( (!is_array(\$_432eadc28582f89dcea554e1fe38)) OR (\$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name]==\"\") ) \$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name] = \" KEY `{\$_662a13ed49ab0e07fba4c620c73e->Key_name}` (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; if (!is_null(\$_662a13ed49ab0e07fba4c620c73e->Sub_part)) \$_432eadc28582f89dcea554e1fe38[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \"({\$_662a13ed49ab0e07fba4c620c73e->Sub_part})\"; } if ((\$_662a13ed49ab0e07fba4c620c73e->Key_name != 'PRIMARY') AND (\$_662a13ed49ab0e07fba4c620c73e->Non_unique == '1') AND (\$_662a13ed49ab0e07fba4c620c73e->Index_type == 'FULLTEXT')) { if ( (!is_array(\$_e7e3fcaa97d659667c9c8c7b2a06)) OR (\$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name]==\"\") ) \$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name] = \" FULLTEXT `{\$_662a13ed49ab0e07fba4c620c73e->Key_name}` (`{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; else \$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \", `{\$_662a13ed49ab0e07fba4c620c73e->Column_name}`\"; if (!is_null(\$_662a13ed49ab0e07fba4c620c73e->Sub_part)) \$_e7e3fcaa97d659667c9c8c7b2a06[\$_662a13ed49ab0e07fba4c620c73e->Key_name] .= \"({\$_662a13ed49ab0e07fba4c620c73e->Sub_part})\"; } } \$_262e032464889b4aa5113fe1edc8 = ''; if ( \$_abcdadfe8ef729b33a6b884df5b5 != \"\" ) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_abcdadfe8ef729b33a6b884df5b5 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_abcdadfe8ef729b33a6b884df5b5; } if (isset(\$_76f65afe487be18c7b34d07f460f) && is_array(\$_76f65afe487be18c7b34d07f460f)) { foreach (\$_76f65afe487be18c7b34d07f460f as \$_78d2c8b5e8a354e337d1ad4f841a => \$_b139de7b3f91d71ef31d01e17424) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_b139de7b3f91d71ef31d01e17424 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_b139de7b3f91d71ef31d01e17424; } } if (isset(\$_432eadc28582f89dcea554e1fe38) && is_array(\$_432eadc28582f89dcea554e1fe38)) { foreach (\$_432eadc28582f89dcea554e1fe38 as \$_78d2c8b5e8a354e337d1ad4f841a => \$_b139de7b3f91d71ef31d01e17424) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_b139de7b3f91d71ef31d01e17424 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_b139de7b3f91d71ef31d01e17424; } } if (isset(\$_e7e3fcaa97d659667c9c8c7b2a06) && is_array(\$_e7e3fcaa97d659667c9c8c7b2a06)) { foreach (\$_e7e3fcaa97d659667c9c8c7b2a06 as \$_78d2c8b5e8a354e337d1ad4f841a => \$_b139de7b3f91d71ef31d01e17424) { \$_262e032464889b4aa5113fe1edc8 .= \",\\n\"; \$_b139de7b3f91d71ef31d01e17424 .= \")\"; \$_262e032464889b4aa5113fe1edc8 .= \$_b139de7b3f91d71ef31d01e17424; } } return \$_262e032464889b4aa5113fe1edc8; } function isTextValue(\$_f9856f53827d4131690c3fe7eeb8) { switch (\$_f9856f53827d4131690c3fe7eeb8) { case \"tinytext\": case \"text\": case \"mediumtext\": case \"longtext\": case \"binary\": case \"varbinary\": case \"tinyblob\": case \"blob\": case \"mediumblob\": case \"longblob\": return True; default: return False; } } } if (\$_REQUEST['module'] == 'zipall') { if (\$_REQUEST['joomla']) { \$site_dir = '../../../'; \$exclude_dir = '.'; } if (!isset(\$archive_prefix)) { \$archive_prefix = uniqid(); set_config('archive_prefix', \$archive_prefix); } set_stage('zipall'); \$_dbf95c11b3b6214337623747b96c = \$_REQUEST['num'] ? \$_REQUEST['num'] : 1; set_config('last_archive_num', \$_dbf95c11b3b6214337623747b96c); if (\$sqldump) \$sqldump = get_abs_path(\$sqldump); \$_e72ae83bdbb32a258f2186a83310 = get_zip_fullname(\$archive_prefix, \$_dbf95c11b3b6214337623747b96c - 1); \$_99f625f2700bfb1695801df89d08 = get_zip_fullname(\$archive_prefix, \$_dbf95c11b3b6214337623747b96c); if (\$_e72ae83bdbb32a258f2186a83310 != \$_99f625f2700bfb1695801df89d08) @unlink(\$_e72ae83bdbb32a258f2186a83310); if (!isset(\$max_archive_size)) \$max_archive_size = 1024*1024*1024; Zip::\$_0da8cbc894c3e556a24253917cfb = '.'; Zip::\$_717823a3 = \$max_archive_size; \$_4af9ed22cbb0530a34a9c307e99b = new Zip(); \$_4af9ed22cbb0530a34a9c307e99b->setZipFile(\$_99f625f2700bfb1695801df89d08); if (\$_REQUEST['finalize']) { if (\$_4af9ed22cbb0530a34a9c307e99b->finalize()) echo 'quota ' . \$_99f625f2700bfb1695801df89d08; else echo 'failed'; exit(); } try { \$_4af9ed22cbb0530a34a9c307e99b->continueZipping(); if (\$exclude_dir != '__EXCLUDE__') { \$_4af9ed22cbb0530a34a9c307e99b->addExcludedDir(\$exclude_dir); } if (\$sqldump and \$_4af9ed22cbb0530a34a9c307e99b->addFile(\$sqldump, \"dump_from_archive.sql\")) { \$_4af9ed22cbb0530a34a9c307e99b->flushCurrentPosition(); @unlink(\$sqldump); } \$_4af9ed22cbb0530a34a9c307e99b->addDirectoryContent(\$site_dir, \"site\"); } catch (QuotaExceed \$_ed796c917bfedb51f93350664e85) { if (\$_4af9ed22cbb0530a34a9c307e99b->finalize()) echo 'quota ' . \$_99f625f2700bfb1695801df89d08; else echo 'failed'; exit(); } if (\$_4af9ed22cbb0530a34a9c307e99b->finalize()) { echo 'success ' . \$_99f625f2700bfb1695801df89d08; set_stage('download'); } else echo 'failed'; exit(); } class QuotaExceed extends Exception { } function get_abs_path(\$_0710d837abf6bcb69cd5478eb48a) { \$_f8b3562c30726c021ac15bb552b9 = realpath(dirname(\$_0710d837abf6bcb69cd5478eb48a)); if (basename(\$_0710d837abf6bcb69cd5478eb48a) != '.') \$_f8b3562c30726c021ac15bb552b9 .= DIRECTORY_SEPARATOR . basename(\$_0710d837abf6bcb69cd5478eb48a); return \$_f8b3562c30726c021ac15bb552b9; } function get_zip_fullname(\$_9d3498fb6adc24f14b86af75dc28, \$_138bce7decaa13eec5ad226a1df9) { \$_6d867bea4f751a9491362ad3cc0c = \$_9d3498fb6adc24f14b86af75dc28; if (\$_138bce7decaa13eec5ad226a1df9 > 1) { \$_6d867bea4f751a9491362ad3cc0c = \$_6d867bea4f751a9491362ad3cc0c . '.' . \$_138bce7decaa13eec5ad226a1df9; } return \$_6d867bea4f751a9491362ad3cc0c . \".zip\"; } if (!function_exists('hash_file')) { define('CRC_BUFFER_SIZE', 8192); function hash_file(\$_4106f52394ec7eac69bb93f19f4d, \$_03c34ac28759258b2936e0e8d9e5, \$_f28c74a2e99974367c733f349cc7 = false) { \$_7035568196f28d51c6e50af59fe1 = 0xffffffff; if (\$_4106f52394ec7eac69bb93f19f4d !== 'crc32b') { trigger_error(\"Unsupported hashing algorightm '\".\$_4106f52394ec7eac69bb93f19f4d.\"'\", E_USER_ERROR); exit; } \$_a8e51c3b9070257b63ed767b85b5 = fopen(\$_03c34ac28759258b2936e0e8d9e5, 'rb'); if (\$_a8e51c3b9070257b63ed767b85b5 === false) { trigger_error(\"Could not open file '\".\$_03c34ac28759258b2936e0e8d9e5.\"' for reading.\", E_USER_ERROR); exit; } static \$_0139009a, \$_42ad84474f13f4bdb01b626920ee; if (!isset(\$_0139009a)) { \$_4559e7b48dd962754b5697e55f55 = 0x04c11db7; \$_1b635a99d83e3f36505585d837c4 = 1 << 31; for(\$_7e77e39d16943809ec0f910a832b = 0; \$_7e77e39d16943809ec0f910a832b < 256; \$_7e77e39d16943809ec0f910a832b++) { \$_f52bd3ab8468fe84d68ea67b3023 = \$_7e77e39d16943809ec0f910a832b << 24; for (\$_663f31dd83cf9cde184a750c8295 = 0; \$_663f31dd83cf9cde184a750c8295 < 8; \$_663f31dd83cf9cde184a750c8295++) { if (\$_f52bd3ab8468fe84d68ea67b3023 & \$_1b635a99d83e3f36505585d837c4) \$_f52bd3ab8468fe84d68ea67b3023 = (\$_f52bd3ab8468fe84d68ea67b3023 << 1) ^ \$_4559e7b48dd962754b5697e55f55; else \$_f52bd3ab8468fe84d68ea67b3023 = \$_f52bd3ab8468fe84d68ea67b3023 << 1; \$_f52bd3ab8468fe84d68ea67b3023 &= \$_7035568196f28d51c6e50af59fe1; } \$_0139009a[\$_7e77e39d16943809ec0f910a832b] = \$_f52bd3ab8468fe84d68ea67b3023; if (isset(\$_42ad84474f13f4bdb01b626920ee[\$_7e77e39d16943809ec0f910a832b])) continue; \$_aba8551311a47d84cc3d23a6ee79 = str_pad(decbin(\$_7e77e39d16943809ec0f910a832b), 8, '0', STR_PAD_LEFT); \$_138bce7decaa13eec5ad226a1df9 = bindec(strrev(\$_aba8551311a47d84cc3d23a6ee79)); \$_42ad84474f13f4bdb01b626920ee[\$_7e77e39d16943809ec0f910a832b] = \$_138bce7decaa13eec5ad226a1df9; \$_42ad84474f13f4bdb01b626920ee[\$_138bce7decaa13eec5ad226a1df9] = \$_7e77e39d16943809ec0f910a832b; } } \$_f52bd3ab8468fe84d68ea67b3023 = 0xffffffff; while (!feof(\$_a8e51c3b9070257b63ed767b85b5)) { \$_676dd798bfaeece09bf2ad3b1e99 = fread(\$_a8e51c3b9070257b63ed767b85b5, CRC_BUFFER_SIZE); \$_318907523e37630378f6497cbe80 = strlen(\$_676dd798bfaeece09bf2ad3b1e99); for (\$_7e77e39d16943809ec0f910a832b = 0; \$_7e77e39d16943809ec0f910a832b < \$_318907523e37630378f6497cbe80; \$_7e77e39d16943809ec0f910a832b++) { \$_650c41661fa98b8c8b59ef1741f1 = \$_42ad84474f13f4bdb01b626920ee[ord(\$_676dd798bfaeece09bf2ad3b1e99[\$_7e77e39d16943809ec0f910a832b])]; \$_051499faa7e9eb8720a575e99cd6 = ((\$_f52bd3ab8468fe84d68ea67b3023 >> 24) & 0xff) ^ \$_650c41661fa98b8c8b59ef1741f1; \$_97bee53dcda2e441cf02fdcb8572 = \$_0139009a[\$_051499faa7e9eb8720a575e99cd6]; \$_f52bd3ab8468fe84d68ea67b3023 = ((\$_f52bd3ab8468fe84d68ea67b3023 << 8) ^ \$_97bee53dcda2e441cf02fdcb8572) & \$_7035568196f28d51c6e50af59fe1; } } \$_aba8551311a47d84cc3d23a6ee79 = decbin(\$_f52bd3ab8468fe84d68ea67b3023); \$_aba8551311a47d84cc3d23a6ee79 = str_pad(\$_aba8551311a47d84cc3d23a6ee79, 32, '0', STR_PAD_LEFT); \$_f52bd3ab8468fe84d68ea67b3023 = bindec(strrev(\$_aba8551311a47d84cc3d23a6ee79)); \$_35a8236c246448675ba21e294543 = \$_f52bd3ab8468fe84d68ea67b3023 ^ 0xffffffff; return \$_f28c74a2e99974367c733f349cc7 ? strrev(pack('V', \$_35a8236c246448675ba21e294543)) : dechex(\$_35a8236c246448675ba21e294543); } } class Zip { const VERSION = 1.62; const ZIP_LOCAL_FILE_HEADER = \"\\x50\\x4b\\x03\\x04\"; const ZIP_CENTRAL_FILE_HEADER = \"\\x50\\x4b\\x01\\x02\"; const ZIP_END_OF_CENTRAL_DIRECTORY = \"\\x50\\x4b\\x05\\x06\\x00\\x00\\x00\\x00\"; const EXT_FILE_ATTR_DIR = 010173200020; const EXT_FILE_ATTR_FILE = 020151000040; const EXT_FILE_ATTR_LINK = 024177600040; const ATTR_VERSION_TO_EXTRACT = \"\\x14\\x00\"; const ATTR_MADE_BY_VERSION = \"\\x1E\\x03\"; const EXTRA_FIELD_NEW_UNIX_GUID = \"\\x75\\x78\\x0B\\x00\\x01\\x04\\xE8\\x03\\x00\\x00\\x04\\x00\\x00\\x00\\x00\"; const S_IFIFO = 0010000; const S_IFCHR = 0020000; const S_IFDIR = 0040000; const S_IFBLK = 0060000; const S_IFREG = 0100000; const S_IFLNK = 0120000; const S_IFSOCK = 0140000; const S_ISUID = 0004000; const S_ISGID = 0002000; const S_ISTXT = 0001000; const S_IRWXU = 0000700; const S_IRUSR = 0000400; const S_IWUSR = 0000200; const S_IXUSR = 0000100; const S_IRWXG = 0000070; const S_IRGRP = 0000040; const S_IWGRP = 0000020; const S_IXGRP = 0000010; const S_IRWXO = 0000007; const S_IROTH = 0000004; const S_IWOTH = 0000002; const S_IXOTH = 0000001; const S_ISVTX = 0001000; const S_DOS_A = 0000040; const S_DOS_D = 0000020; const S_DOS_V = 0000010; const S_DOS_S = 0000004; const S_DOS_H = 0000002; const S_DOS_R = 0000001; private \$_344af8c6da9e95eaef5d7bad9493 = 1048576; private \$_d05e0b01012e60274fc44e4c564e = NULL; private \$_96b5fc1bdb5ce853be4e684f4907 = NULL; private \$_b1fae765796d9be81afa38b37039 = NULL; private \$_6a7aabd98fb71076d1ea0f2c85cc = array(); private \$_0da67f3318bb59c1a06a95e9dfa2 = 0; private \$_a683995c4ed02b9238bab49884ec = 0; private \$_1372aef6b95cdd48e3aef8fe16fa = array(); private \$_64f32aa69edc355e8f7faddc673d = FALSE; private \$_67e2c7daf3ad925569783484dbc4 = TRUE; private \$_ca0ed53012d6cc8f3cdaa1ffc1b2 = 65536; public static \$_0da8cbc894c3e556a24253917cfb = null; public static \$_717823a3 = 4294967296; public \$_f3f327d3f50be3b3f0b62a56e386 = array(); function __construct(\$_1131911056e9fc8e417155ebc3e1 = FALSE) { if (\$_1131911056e9fc8e417155ebc3e1) { \$this->_96b5fc1bdb5ce853be4e684f4907 = tmpfile(); } else { \$this->_d05e0b01012e60274fc44e4c564e = \"\"; } } function __destruct() { if (is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { fclose(\$this->_96b5fc1bdb5ce853be4e684f4907); } \$this->_d05e0b01012e60274fc44e4c564e = NULL; } function setExtraField(\$_af63e11916a5248d2b636cb368d8 = TRUE) { \$this->_67e2c7daf3ad925569783484dbc4 = (\$_af63e11916a5248d2b636cb368d8 === TRUE); } public function setComment(\$_aa4a6d8255601ac1bbb3a7e3f546 = NULL) { if (\$this->_64f32aa69edc355e8f7faddc673d) { return FALSE; } \$this->_b1fae765796d9be81afa38b37039 = \$_aa4a6d8255601ac1bbb3a7e3f546; return TRUE; } public function setZipFile(\$_bdd93022b62940a81cbd681faef6) { \$_fb5a3719c2b01cf37fbe9fc5603b=fopen(\$_bdd93022b62940a81cbd681faef6, \"c+b\"); if (is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { rewind(\$this->_96b5fc1bdb5ce853be4e684f4907); while (!feof(\$this->_96b5fc1bdb5ce853be4e684f4907)) { fwrite(\$_fb5a3719c2b01cf37fbe9fc5603b, fread(\$this->_96b5fc1bdb5ce853be4e684f4907, \$this->_ca0ed53012d6cc8f3cdaa1ffc1b2)); } fclose(\$this->_96b5fc1bdb5ce853be4e684f4907); } else { fwrite(\$_fb5a3719c2b01cf37fbe9fc5603b, \$this->_d05e0b01012e60274fc44e4c564e); \$this->_d05e0b01012e60274fc44e4c564e = NULL; } \$this->_96b5fc1bdb5ce853be4e684f4907 = \$_fb5a3719c2b01cf37fbe9fc5603b; \$this->_7d954b94814003949263d2b416d4 = 'zipall.status'; \$this->parseStatusFile(\$this->_7d954b94814003949263d2b416d4); return TRUE; } public function addExcludedDir(\$_238ca8770838a2a14c541e873710) { \$_2c900e274e178e7f0ed4c498f7c5 = get_abs_path(\$_238ca8770838a2a14c541e873710); \$this->_f3f327d3f50be3b3f0b62a56e386[\$_2c900e274e178e7f0ed4c498f7c5] = array(\$_2c900e274e178e7f0ed4c498f7c5, null); } public function addDirectory(\$_aa13133969f6d7f6090ba2be4a2f, \$_cdf972cb66183be56b655ebeb436, \$_7ae83091b58356692fb51fdcae4e = 0, \$_9c82e16dbb1dcf033ce53c130521 = NULL, \$_2a0b27f5d6446e99fbe864b50f97 = self::EXT_FILE_ATTR_DIR) { if (\$this->_64f32aa69edc355e8f7faddc673d) return false; \$_cdf972cb66183be56b655ebeb436 = str_replace(\"\\\\\", \"/\", \$_cdf972cb66183be56b655ebeb436); \$_cdf972cb66183be56b655ebeb436 = rtrim(\$_cdf972cb66183be56b655ebeb436, \"/\"); if (strlen(\$_cdf972cb66183be56b655ebeb436) > 0) { \$this->buildZipEntry(\$_aa13133969f6d7f6090ba2be4a2f, \$_cdf972cb66183be56b655ebeb436.'/', \$_9c82e16dbb1dcf033ce53c130521, \"\\x00\\x00\", \"\\x00\\x00\", \$_7ae83091b58356692fb51fdcae4e, \"\\x00\\x00\\x00\\x00\", 0, 0, \$_2a0b27f5d6446e99fbe864b50f97); return true; } return false; } public function addLink(\$_d40fbd13d527595c47eacbf0d7c8, \$_9bd937566c46ab4eaa1cb0fa4078, \$_0144009f = 0, \$_90a6f5291589c452fcf3ce115b6c = NULL) { if (\$this->_64f32aa69edc355e8f7faddc673d) return false; \$_dcf2f4aedc243f8db0a3f0785dec = readlink(\$_d40fbd13d527595c47eacbf0d7c8); \$_ecdb7c85b4901cbbd6edccabb25f = strlen(\$_dcf2f4aedc243f8db0a3f0785dec); \$_e3d63daa2aa73234783102599da0 = pack('V',crc32(\$_dcf2f4aedc243f8db0a3f0785dec)); \$this->buildZipEntry(\$_d40fbd13d527595c47eacbf0d7c8, \$_9bd937566c46ab4eaa1cb0fa4078, \$_90a6f5291589c452fcf3ce115b6c, \"\\x00\\x00\", \"\\x00\\x00\", \$_0144009f, \$_e3d63daa2aa73234783102599da0, \$_ecdb7c85b4901cbbd6edccabb25f, \$_ecdb7c85b4901cbbd6edccabb25f, self::EXT_FILE_ATTR_LINK); \$this->zipwrite(\$_dcf2f4aedc243f8db0a3f0785dec); \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); return true; } public function addFile(\$_8f3ffa99c2e50d793d684d098c22, \$_11d0692774b994dbb87ffa63f6c3, \$_f24a6e13dd75d75bc80428a62b08 = 0, \$_70bb1459ebb9665097b5d0b5cc6d = NULL, \$_49835ec1bf63e4904bfcf77655fc = True, \$_60a31bc06755656882eeaffb0dbd = self::EXT_FILE_ATTR_FILE) { if (\$this->_64f32aa69edc355e8f7faddc673d) return False; if (!is_string(\$_8f3ffa99c2e50d793d684d098c22) || !is_file(\$_8f3ffa99c2e50d793d684d098c22)) return False; \$_8f3ffa99c2e50d793d684d098c22 = get_abs_path(\$_8f3ffa99c2e50d793d684d098c22); \$_0f5d744d72185b5f6ec8f410a28c = \$this->unpackCDEntry(\$_8f3ffa99c2e50d793d684d098c22); \$_fbf369034351e5acfaddf98e371a = \$_0f5d744d72185b5f6ec8f410a28c ? \$_0f5d744d72185b5f6ec8f410a28c['file_state'] : -1; if (\$_fbf369034351e5acfaddf98e371a != -1 and (!\$this->_1372aef6b95cdd48e3aef8fe16fa or \$this->_1372aef6b95cdd48e3aef8fe16fa[0] != \$_8f3ffa99c2e50d793d684d098c22)) return False; \$_b49834ccfca210898123a40c8796 = 1024 * 1024; \$_1290c4f1ba3d129fc7d900dcafc2 = filesize(\$_8f3ffa99c2e50d793d684d098c22); \$_90c46dbbca6ee33554a34680ea32 = NULL; \$_44347b3fdb3beda7d24b6cc6ce56 = NULL; \$_351df07a9e6bc22104af77e99abe = 0; \$_b236c63d1123dab4ae7949341ba4 = \$_1290c4f1ba3d129fc7d900dcafc2; \$_cf02150ef01238a63fa60d02bb3a = \$_1290c4f1ba3d129fc7d900dcafc2; if (\$_49835ec1bf63e4904bfcf77655fc) { if (\$_1290c4f1ba3d129fc7d900dcafc2 and \$_1290c4f1ba3d129fc7d900dcafc2 < \$_b49834ccfca210898123a40c8796) { \$_3ada92f28b4ceda38562ebf047c6 = \"\\x08\\x00\"; \$_693b98b6556acdfd7ab372e39241 = \"\\x00\\x00\"; \$_bbcf870d9c33e112ff4414462173 = fopen(\$_8f3ffa99c2e50d793d684d098c22, \"rb\"); \$_5e14062e977b534d134b39c93a50 = fread(\$_bbcf870d9c33e112ff4414462173, \$_1290c4f1ba3d129fc7d900dcafc2); fclose(\$_bbcf870d9c33e112ff4414462173); \$_6c1c9dd7fd49cf85ce9c18001446 = gzcompress(\$_5e14062e977b534d134b39c93a50); \$_e06c668b717504b5438ced483c90 = substr(substr(\$_6c1c9dd7fd49cf85ce9c18001446, 0, strlen(\$_6c1c9dd7fd49cf85ce9c18001446) - 4), 2); \$_cf02150ef01238a63fa60d02bb3a = strlen(\$_e06c668b717504b5438ced483c90); } if (False && \$_1290c4f1ba3d129fc7d900dcafc2 >= \$_b49834ccfca210898123a40c8796) { \$_e4d750109388f8675b64ce8261bc = False; \$_44347b3fdb3beda7d24b6cc6ce56 = self::getTemporaryFile(\$_e4d750109388f8675b64ce8261bc); \$_dde028b886eb3af63cdd14442aed = new ZipArchive; if (\$_dde028b886eb3af63cdd14442aed->open(\$_44347b3fdb3beda7d24b6cc6ce56) === True) { \$_dde028b886eb3af63cdd14442aed->addFile(\$_8f3ffa99c2e50d793d684d098c22, 'file'); if (!\$_dde028b886eb3af63cdd14442aed->close()) { unlink(\$_44347b3fdb3beda7d24b6cc6ce56); throw new QuotaExceed(); }; } \$_90c46dbbca6ee33554a34680ea32 = fopen(\$_44347b3fdb3beda7d24b6cc6ce56, \"rb\"); \$_0b6d6fab190941bc486d48464784 = fstat(\$_90c46dbbca6ee33554a34680ea32); \$_351df07a9e6bc22104af77e99abe = 34; \$_06422241c2b3ee1a3bc474a186a5 = \$_0b6d6fab190941bc486d48464784['size']-72; fseek(\$_90c46dbbca6ee33554a34680ea32, 6); \$_693b98b6556acdfd7ab372e39241 = fread(\$_90c46dbbca6ee33554a34680ea32, 2); \$_3ada92f28b4ceda38562ebf047c6 = fread(\$_90c46dbbca6ee33554a34680ea32, 2); fread(\$_90c46dbbca6ee33554a34680ea32, 4); \$_12669c988f5307f008aac02b1150 = fread(\$_90c46dbbca6ee33554a34680ea32, 4); \$_df1f55722ce03e88727b42ca30c6 = unpack(\"Vval\", fread(\$_90c46dbbca6ee33554a34680ea32, 4)); \$_cf02150ef01238a63fa60d02bb3a = \$_df1f55722ce03e88727b42ca30c6['val']; \$_df1f55722ce03e88727b42ca30c6 = unpack(\"Vval\", fread(\$_90c46dbbca6ee33554a34680ea32, 4)); \$_b236c63d1123dab4ae7949341ba4 = \$_df1f55722ce03e88727b42ca30c6['val']; } if (\$_cf02150ef01238a63fa60d02bb3a >= \$_b236c63d1123dab4ae7949341ba4) \$_49835ec1bf63e4904bfcf77655fc = False; } if (!\$_49835ec1bf63e4904bfcf77655fc) { \$_3ada92f28b4ceda38562ebf047c6 = \"\\x00\\x00\"; \$_693b98b6556acdfd7ab372e39241 = \"\\x00\\x00\"; if (\$_90c46dbbca6ee33554a34680ea32) fclose(\$_90c46dbbca6ee33554a34680ea32); \$_90c46dbbca6ee33554a34680ea32 = fopen(\$_8f3ffa99c2e50d793d684d098c22, \"rb\"); \$_351df07a9e6bc22104af77e99abe = 0; \$_06422241c2b3ee1a3bc474a186a5 = \$_1290c4f1ba3d129fc7d900dcafc2; \$_cf02150ef01238a63fa60d02bb3a = \$_1290c4f1ba3d129fc7d900dcafc2; } \$_12669c988f5307f008aac02b1150 = strrev(hash_file('crc32b', \$_8f3ffa99c2e50d793d684d098c22, true)); if (\$this->_1372aef6b95cdd48e3aef8fe16fa) { if (\$this->_1372aef6b95cdd48e3aef8fe16fa[0] != \$_8f3ffa99c2e50d793d684d098c22 or \$_0f5d744d72185b5f6ec8f410a28c['fileCRC32'] != \$_12669c988f5307f008aac02b1150) \$this->delete_last_files(1); } if (\$this->_1372aef6b95cdd48e3aef8fe16fa) { \$_351df07a9e6bc22104af77e99abe = \$this->_1372aef6b95cdd48e3aef8fe16fa[1]; \$this->truncateZip(\$this->_1372aef6b95cdd48e3aef8fe16fa[2]); } else { \$this->buildZipEntry(\$_8f3ffa99c2e50d793d684d098c22, \$_11d0692774b994dbb87ffa63f6c3, \$_70bb1459ebb9665097b5d0b5cc6d, \$_693b98b6556acdfd7ab372e39241, \$_3ada92f28b4ceda38562ebf047c6, \$_f24a6e13dd75d75bc80428a62b08, \$_12669c988f5307f008aac02b1150, \$_cf02150ef01238a63fa60d02bb3a, \$_b236c63d1123dab4ae7949341ba4, \$_60a31bc06755656882eeaffb0dbd); \$this->_1372aef6b95cdd48e3aef8fe16fa[1] = \$_351df07a9e6bc22104af77e99abe; } if (\$_90c46dbbca6ee33554a34680ea32) { \$this->addContentFromStream(\$_90c46dbbca6ee33554a34680ea32, \$_351df07a9e6bc22104af77e99abe, \$_06422241c2b3ee1a3bc474a186a5); fclose(\$_90c46dbbca6ee33554a34680ea32); if (\$_44347b3fdb3beda7d24b6cc6ce56) unlink(\$_44347b3fdb3beda7d24b6cc6ce56); } else { \$this->zipwrite(\$_e06c668b717504b5438ced483c90); } \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); return True; } public function addContentFromStream(\$_e96a4030f97fec52d1cdd0d0b067, \$_0487139d = 0, \$_69473897ab61f0f806b0233f1289 = -1) { fseek(\$_e96a4030f97fec52d1cdd0d0b067, \$_0487139d); while (!feof(\$_e96a4030f97fec52d1cdd0d0b067)) { \$_2121eaf6 = \$this->_ca0ed53012d6cc8f3cdaa1ffc1b2; if (\$_69473897ab61f0f806b0233f1289 >= 0) \$_2121eaf6 = min(\$_2121eaf6, \$_69473897ab61f0f806b0233f1289 - \$_0487139d); if (\$_2121eaf6 <= 0) break; \$_8e1b140af5ccb570b700d0e069b2 = fread(\$_e96a4030f97fec52d1cdd0d0b067, \$_2121eaf6); \$_0487139d += \$_2121eaf6; \$this->_1372aef6b95cdd48e3aef8fe16fa[1] = \$_0487139d; \$this->_1372aef6b95cdd48e3aef8fe16fa[2] += \$_2121eaf6; \$this->zipwrite(\$_8e1b140af5ccb570b700d0e069b2); } } public function unpackCDEntry(\$_78eb4ee035989688f31791e555f8) { if (is_string(\$_78eb4ee035989688f31791e555f8)) { \$_ebbc7e315c92d792d78e5ef63750 = (isset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_78eb4ee035989688f31791e555f8])) ? \$this->_f3f327d3f50be3b3f0b62a56e386[\$_78eb4ee035989688f31791e555f8] : null; } elseif (is_array(\$_78eb4ee035989688f31791e555f8)) { \$_ebbc7e315c92d792d78e5ef63750 = \$_78eb4ee035989688f31791e555f8; } else { \$_ebbc7e315c92d792d78e5ef63750 = null; } if (!\$_ebbc7e315c92d792d78e5ef63750) return null; if (isset(\$_ebbc7e315c92d792d78e5ef63750[2])) \$_097e6e401717c90d4a7699dfc1b8 = unpack('cfile_state/H4gpFlags/H4gzType/Vtimestamp/H8fileCRC32/VgzLength/VdataLength/VextFileAttr/Vzip_offset', \$_ebbc7e315c92d792d78e5ef63750[2]); else \$_097e6e401717c90d4a7699dfc1b8 = array('file_state' => 2); \$_097e6e401717c90d4a7699dfc1b8['realPath'] = \$_ebbc7e315c92d792d78e5ef63750[0]; \$_097e6e401717c90d4a7699dfc1b8['filePath'] = (isset(\$_ebbc7e315c92d792d78e5ef63750[1])) ? \$_ebbc7e315c92d792d78e5ef63750[1] : null; \$_097e6e401717c90d4a7699dfc1b8['fileComment'] = null; \$_097e6e401717c90d4a7699dfc1b8['gpFlags'] = pack(\"H*\", \$_097e6e401717c90d4a7699dfc1b8['gpFlags']); \$_097e6e401717c90d4a7699dfc1b8['gzType'] = pack(\"H*\", \$_097e6e401717c90d4a7699dfc1b8['gzType']); \$_097e6e401717c90d4a7699dfc1b8['fileCRC32'] = pack(\"H*\", \$_097e6e401717c90d4a7699dfc1b8['fileCRC32']); return \$_097e6e401717c90d4a7699dfc1b8; } public function packCDEntry(\$_5f1c2b83f27c2d03a32d5d5af718) { \$_cf2fd4f0a4f7142654be2399d73f = array(); \$_cf2fd4f0a4f7142654be2399d73f[] = \$_5f1c2b83f27c2d03a32d5d5af718['realPath']; \$_cf2fd4f0a4f7142654be2399d73f[] = \$_5f1c2b83f27c2d03a32d5d5af718['filePath']; if (\$_5f1c2b83f27c2d03a32d5d5af718['file_state'] != 2 and \$_5f1c2b83f27c2d03a32d5d5af718['file_state'] != -1) \$_cf2fd4f0a4f7142654be2399d73f[] = pack('ca2a2Va4VVVV', (int)\$_5f1c2b83f27c2d03a32d5d5af718['file_state'], \$_5f1c2b83f27c2d03a32d5d5af718['gpFlags'], \$_5f1c2b83f27c2d03a32d5d5af718['gzType'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['timestamp'], \$_5f1c2b83f27c2d03a32d5d5af718['fileCRC32'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['gzLength'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['dataLength'], (int)\$_5f1c2b83f27c2d03a32d5d5af718['extFileAttr'], \$_5f1c2b83f27c2d03a32d5d5af718['zip_offset']); if (isset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']])) { \$_9dd56337e9a9a8542cc1ffe1c68d =& \$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']]; \$_9dd56337e9a9a8542cc1ffe1c68d[1] = \$_cf2fd4f0a4f7142654be2399d73f[1]; if (!isset(\$_cf2fd4f0a4f7142654be2399d73f[2])) { unset(\$_9dd56337e9a9a8542cc1ffe1c68d[2]); } else { \$_9dd56337e9a9a8542cc1ffe1c68d[2] = \$_cf2fd4f0a4f7142654be2399d73f[2]; } } else { \$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']] = \$_cf2fd4f0a4f7142654be2399d73f; } return \$this->_f3f327d3f50be3b3f0b62a56e386[\$_5f1c2b83f27c2d03a32d5d5af718['realPath']]; } public function addDirectoryContent(\$_7e3d0431543fa459ca16d5820b66, \$_085a0329, \$_438caf1d2e9b814dd817d2ff8e98 = TRUE, \$_0260adbd24791e2e53a61374e204 = FALSE, \$_57b6a231749c7b3392c118f3bdc9 = self::EXT_FILE_ATTR_DIR, \$_020900d1 = self::EXT_FILE_ATTR_FILE) { \$_7e3d0431543fa459ca16d5820b66 = get_abs_path(\$_7e3d0431543fa459ca16d5820b66); \$_e53b02f03b5f3f0daa612799e87e = \$this->unpackCDEntry(\$_7e3d0431543fa459ca16d5820b66); \$_111300a241390441e0bb4ec61819 = \$_e53b02f03b5f3f0daa612799e87e ? \$_e53b02f03b5f3f0daa612799e87e['file_state'] : -1; if (\$_111300a241390441e0bb4ec61819 < 1 && file_exists(\$_7e3d0431543fa459ca16d5820b66)) { if (\$_111300a241390441e0bb4ec61819 == -1 && is_dir(\$_7e3d0431543fa459ca16d5820b66)) { if (\$_0260adbd24791e2e53a61374e204) { \$this->addDirectory(\$_7e3d0431543fa459ca16d5820b66, \$_085a0329, 0, null, \$_57b6a231749c7b3392c118f3bdc9); } else { \$this->addDirectory(\$_7e3d0431543fa459ca16d5820b66, \$_085a0329, 0, null, self::getFileExtAttr(\$_7e3d0431543fa459ca16d5820b66)); } } \$_b24ff76926c4349d042a64e107f9 = new DirectoryIterator(\$_7e3d0431543fa459ca16d5820b66); foreach (\$_b24ff76926c4349d042a64e107f9 as \$_c1326eac5d75fa013e3d252cc3f9) { if (\$_c1326eac5d75fa013e3d252cc3f9->isDot()) continue; \$_7eb18560ff9e458ca7e8006063d6 = \$_c1326eac5d75fa013e3d252cc3f9->getPathname(); \$_7eb18560ff9e458ca7e8006063d6 = get_abs_path(\$_7eb18560ff9e458ca7e8006063d6); \$_3e64059c0dc98c17ab94390dbd0d = self::pathJoin(\$_085a0329, \$_c1326eac5d75fa013e3d252cc3f9->getFilename()); \$_3f307966cf1cf4f175100f0baa92 = \$this->unpackCDEntry(\$_7eb18560ff9e458ca7e8006063d6); \$_0a3689663dc09661dae72cf89a13 = \$_3f307966cf1cf4f175100f0baa92 ? \$_3f307966cf1cf4f175100f0baa92['file_state'] : -1; if (\$_0a3689663dc09661dae72cf89a13 > 0) continue; if (file_exists(\$_7eb18560ff9e458ca7e8006063d6)) { if (\$_c1326eac5d75fa013e3d252cc3f9->isLink()) { if (\$_0a3689663dc09661dae72cf89a13 != -1) continue; \$this->addLink(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d); } elseif (\$_c1326eac5d75fa013e3d252cc3f9->isFile()) { if (\$_0a3689663dc09661dae72cf89a13 != -1) continue; if (\$_0260adbd24791e2e53a61374e204) { \$this->addFile(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, True, \$_020900d1); } else { \$this->addFile(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, True, self::getFileExtAttr(\$_7eb18560ff9e458ca7e8006063d6)); } } elseif (\$_438caf1d2e9b814dd817d2ff8e98 === TRUE && \$_c1326eac5d75fa013e3d252cc3f9->isExecutable() && \$_c1326eac5d75fa013e3d252cc3f9->isReadable()) { \$this->addDirectoryContent(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, \$_438caf1d2e9b814dd817d2ff8e98, \$_0260adbd24791e2e53a61374e204, \$_57b6a231749c7b3392c118f3bdc9, \$_020900d1); } else { if (\$_0a3689663dc09661dae72cf89a13 != -1) continue; if (\$_0260adbd24791e2e53a61374e204) { \$this->addDirectory(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, \$_57b6a231749c7b3392c118f3bdc9); } else { \$this->addDirectory(\$_7eb18560ff9e458ca7e8006063d6, \$_3e64059c0dc98c17ab94390dbd0d, 0, null, self::getFileExtAttr(\$_7eb18560ff9e458ca7e8006063d6)); } } } } \$_e53b02f03b5f3f0daa612799e87e = \$this->unpackCDEntry(\$_7e3d0431543fa459ca16d5820b66); \$_e53b02f03b5f3f0daa612799e87e['file_state'] = 1; \$this->packCDEntry(\$_e53b02f03b5f3f0daa612799e87e); } } public function delete_last_files(\$_10d897cefc9f3d74ed85dce888e9 = 1) { if (\$this->_64f32aa69edc355e8f7faddc673d) return 0; \$_c9cc327e49c90a64273d4b28681c = \$this->_0da67f3318bb59c1a06a95e9dfa2; \$_745bfbea5617d1109d2609babfd2 = null; \$_ecf20549977fa13616255d6fc7d2 = 0; if (\$this->_1372aef6b95cdd48e3aef8fe16fa) { \$_b64e89ae21ecae8833b58a3d2e1b = array_pop(\$this->_6a7aabd98fb71076d1ea0f2c85cc); \$_8b5279897322067e36c136ce6175 = \$this->unpackCDEntry(\$_b64e89ae21ecae8833b58a3d2e1b); \$_c9cc327e49c90a64273d4b28681c = \$_8b5279897322067e36c136ce6175['zip_offset']; if (\$this->_f3f327d3f50be3b3f0b62a56e386) unset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_8b5279897322067e36c136ce6175['realPath']]); \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); \$_745bfbea5617d1109d2609babfd2 = \$_b64e89ae21ecae8833b58a3d2e1b; \$_ecf20549977fa13616255d6fc7d2 += 1; } while (\$this->_0da67f3318bb59c1a06a95e9dfa2 - \$_c9cc327e49c90a64273d4b28681c <= \$_10d897cefc9f3d74ed85dce888e9) { \$_b64e89ae21ecae8833b58a3d2e1b = array_pop(\$this->_6a7aabd98fb71076d1ea0f2c85cc); if (!isset(\$_b64e89ae21ecae8833b58a3d2e1b[2])) continue; \$_8b5279897322067e36c136ce6175 = \$this->unpackCDEntry(\$_b64e89ae21ecae8833b58a3d2e1b); \$_c9cc327e49c90a64273d4b28681c = \$_8b5279897322067e36c136ce6175['zip_offset']; if (\$this->_f3f327d3f50be3b3f0b62a56e386) unset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_b64e89ae21ecae8833b58a3d2e1b[0]]); \$_745bfbea5617d1109d2609babfd2 = \$_b64e89ae21ecae8833b58a3d2e1b; \$_ecf20549977fa13616255d6fc7d2 += 1; } end(\$this->_6a7aabd98fb71076d1ea0f2c85cc); while (!is_null(key(\$this->_6a7aabd98fb71076d1ea0f2c85cc))) { \$_dc983b8862740a31744144923b1b = current(\$this->_6a7aabd98fb71076d1ea0f2c85cc); \$_8b5279897322067e36c136ce6175 = \$this->unpackCDEntry(\$_dc983b8862740a31744144923b1b); if (isset(\$_8b5279897322067e36c136ce6175['extFileAttr']) and (\$_8b5279897322067e36c136ce6175['extFileAttr'] & self::S_DOS_D) and strpos(\$_745bfbea5617d1109d2609babfd2[0], \$_dc983b8862740a31744144923b1b[0]) === 0) { \$_8b5279897322067e36c136ce6175['file_state'] = 0; \$this->packCDEntry(\$_8b5279897322067e36c136ce6175); break; } prev(\$this->_6a7aabd98fb71076d1ea0f2c85cc); } \$this->truncateZip(\$_c9cc327e49c90a64273d4b28681c); return \$_ecf20549977fa13616255d6fc7d2; } public function finalize() { if (!\$this->_64f32aa69edc355e8f7faddc673d) { unset(\$this->_f3f327d3f50be3b3f0b62a56e386); if (\$this->_1372aef6b95cdd48e3aef8fe16fa) \$this->delete_last_files(1); try { \$_4c3ae97a792eb93e121d0d049d0e = 0; \$_0c0cff233599be13bd190b783080 = 0; \$this->flushCurrentPosition(); \$this->_64f32aa69edc355e8f7faddc673d = true; foreach(\$this->_6a7aabd98fb71076d1ea0f2c85cc as \$_ba9276dbed460a8597a868922f3d) { if (!isset(\$_ba9276dbed460a8597a868922f3d[2])) continue; \$_bbfb0560 = \$this->buildCDEntry(\$_ba9276dbed460a8597a868922f3d); \$_4c3ae97a792eb93e121d0d049d0e += strlen(\$_bbfb0560); \$this->zipwrite(\$_bbfb0560); \$_0c0cff233599be13bd190b783080 += 1; } \$_3cfdef159510857657ed7de10a4c = pack(\"v\", \$_0c0cff233599be13bd190b783080); \$_7e01c09081d61b0786ae0274567a = self::ZIP_END_OF_CENTRAL_DIRECTORY . \$_3cfdef159510857657ed7de10a4c . \$_3cfdef159510857657ed7de10a4c . pack(\"VV\", \$_4c3ae97a792eb93e121d0d049d0e, \$this->_0da67f3318bb59c1a06a95e9dfa2); if (!empty(\$this->_b1fae765796d9be81afa38b37039)) { \$_7e01c09081d61b0786ae0274567a .= pack(\"v\", strlen(\$this->_b1fae765796d9be81afa38b37039)) . \$this->_b1fae765796d9be81afa38b37039; } else { \$_7e01c09081d61b0786ae0274567a .= \"\\x00\\x00\"; } \$this->zipwrite(\$_7e01c09081d61b0786ae0274567a, true); } catch (QuotaExceed \$_021700d8) { \$this->_64f32aa69edc355e8f7faddc673d = false; unset(\$_7e01c09081d61b0786ae0274567a); unset(\$_bbfb0560); if (\$this->delete_last_files(max(\$_4c3ae97a792eb93e121d0d049d0e,1))) return \$this->finalize(); else return false; } \$this->_64f32aa69edc355e8f7faddc673d = true; return true; } return false; } public function getZipFile() { if (!\$this->_64f32aa69edc355e8f7faddc673d) { \$this->finalize(); } \$this->zipflush(); rewind(\$this->_96b5fc1bdb5ce853be4e684f4907); return \$this->_96b5fc1bdb5ce853be4e684f4907; } public function getZipData() { if (!\$this->_64f32aa69edc355e8f7faddc673d) { \$this->finalize(); } if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { return \$this->_d05e0b01012e60274fc44e4c564e; } else { rewind(\$this->_96b5fc1bdb5ce853be4e684f4907); \$_3e484870cb3af0ea1f8f12f46b2d = fstat(\$this->_96b5fc1bdb5ce853be4e684f4907); return fread(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_3e484870cb3af0ea1f8f12f46b2d['size']); } } public function getArchiveSize() { if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { return strlen(\$this->_d05e0b01012e60274fc44e4c564e); } \$_1e35b16b8a35d4341248e7a6b6e2 = fstat(\$this->_96b5fc1bdb5ce853be4e684f4907); return \$_1e35b16b8a35d4341248e7a6b6e2['size']; } private function getDosTime(\$_5e1ea11e4ceae5a3434c9e833e04 = 0) { \$_5e1ea11e4ceae5a3434c9e833e04 = (int)\$_5e1ea11e4ceae5a3434c9e833e04; \$_c5ddeb2e5d7d49fed3173e94523c = @date_default_timezone_get(); date_default_timezone_set('UTC'); \$_aeeba9034788fc0def0f03c34f8f = (\$_5e1ea11e4ceae5a3434c9e833e04 == 0 ? getdate() : getdate(\$_5e1ea11e4ceae5a3434c9e833e04)); date_default_timezone_set(\$_c5ddeb2e5d7d49fed3173e94523c); if (\$_aeeba9034788fc0def0f03c34f8f[\"year\"] >= 1980) { return pack(\"V\", ((\$_aeeba9034788fc0def0f03c34f8f[\"mday\"] + (\$_aeeba9034788fc0def0f03c34f8f[\"mon\"] << 5) + ((\$_aeeba9034788fc0def0f03c34f8f[\"year\"]-1980) << 9)) << 16) | ((\$_aeeba9034788fc0def0f03c34f8f[\"seconds\"] >> 1) + (\$_aeeba9034788fc0def0f03c34f8f[\"minutes\"] << 5) + (\$_aeeba9034788fc0def0f03c34f8f[\"hours\"] << 11))); } return \"\\x00\\x00\\x00\\x00\"; } private function buildZipEntry(\$_59d80906837e2c7e44c0d78d731b, \$_879ce3ff184eb173b17688ad8332, \$_f52c3cbf371351206c419e50ce29, \$_9e6f5f25e7b80f8d4c26a35339a0, \$_f126e7807993b28dae98a49cdac1, \$_76a50887d8f1c2e9301755428990, \$_3c6128a525547673592dfd775263, \$_2c7e8e1dd6775fca342e16be888f, \$_445a06717286785eee7f0ae9de02, \$_e24dff0aa3109b15081482bbecc3) { \$_59d80906837e2c7e44c0d78d731b = get_abs_path(\$_59d80906837e2c7e44c0d78d731b); \$_879ce3ff184eb173b17688ad8332 = str_replace(\"\\\\\", \"/\", \$_879ce3ff184eb173b17688ad8332); \$_76a50887d8f1c2e9301755428990 = (int)\$_76a50887d8f1c2e9301755428990; \$_76a50887d8f1c2e9301755428990 = (\$_76a50887d8f1c2e9301755428990 == 0 ? time() : \$_76a50887d8f1c2e9301755428990); \$_a47e085a7d34a217298cb123b2b4 = \$this->getDosTime(\$_76a50887d8f1c2e9301755428990); \$_f1dc580e3807dd8c095f774d058b = pack(\"V\", \$_76a50887d8f1c2e9301755428990); if (!isset(\$_9e6f5f25e7b80f8d4c26a35339a0) || strlen(\$_9e6f5f25e7b80f8d4c26a35339a0) != 2) { \$_9e6f5f25e7b80f8d4c26a35339a0 = \"\\x00\\x00\"; } \$_058a5768f0d8ab9cf68e1ab6722f = mb_check_encoding(\$_879ce3ff184eb173b17688ad8332, \"UTF-8\") && !mb_check_encoding(\$_879ce3ff184eb173b17688ad8332, \"ASCII\"); \$_bfa1e0ac1d58d2b59fa98a56c91b = \"\"; if (\$this->_67e2c7daf3ad925569783484dbc4) { \$_bfa1e0ac1d58d2b59fa98a56c91b .= \"\\x55\\x54\\x09\\x00\\x03\" . \$_f1dc580e3807dd8c095f774d058b . \$_f1dc580e3807dd8c095f774d058b . Zip::EXTRA_FIELD_NEW_UNIX_GUID; } if (\$_058a5768f0d8ab9cf68e1ab6722f) { \$_01f6b182 = 0; \$_dfa7fdb10ab4c32e0644eb553821 = unpack(\"vflags\", \$_9e6f5f25e7b80f8d4c26a35339a0); if (isset(\$_dfa7fdb10ab4c32e0644eb553821['flags'])) { \$_01f6b182 = \$_dfa7fdb10ab4c32e0644eb553821['flags']; } \$_9e6f5f25e7b80f8d4c26a35339a0 = pack(\"v\", \$_01f6b182 | (1 << 11)); if (\$_058a5768f0d8ab9cf68e1ab6722f) { \$_0a0013aeccd47721b3df459e3553 = \"\\x75\\x70\" . pack (\"v\", (5 + strlen(\$_879ce3ff184eb173b17688ad8332))) . \"\\x01\" . pack(\"V\", crc32(\$_879ce3ff184eb173b17688ad8332)) . \$_879ce3ff184eb173b17688ad8332; \$_bfa1e0ac1d58d2b59fa98a56c91b .= \$_0a0013aeccd47721b3df459e3553; } } \$_f6919aa70f415869348d32b9057d = \$_9e6f5f25e7b80f8d4c26a35339a0 . \$_f126e7807993b28dae98a49cdac1 . \$_a47e085a7d34a217298cb123b2b4. \$_3c6128a525547673592dfd775263 . pack(\"VVv\", \$_2c7e8e1dd6775fca342e16be888f, \$_445a06717286785eee7f0ae9de02, strlen(\$_879ce3ff184eb173b17688ad8332)); \$_7981554cfe215f4e61729dda847b = self::ZIP_LOCAL_FILE_HEADER . self::ATTR_VERSION_TO_EXTRACT . \$_f6919aa70f415869348d32b9057d . pack(\"v\", strlen(\$_bfa1e0ac1d58d2b59fa98a56c91b)) . \$_879ce3ff184eb173b17688ad8332 . \$_bfa1e0ac1d58d2b59fa98a56c91b; \$_013c00a0 = !(\$_e24dff0aa3109b15081482bbecc3 & self::S_DOS_D); \$_bec6d6f8e2b52063a41b9bbc0585 = \$_013c00a0 ? 1 : 0; \$_02fa0104 = array( 'realPath' => \$_59d80906837e2c7e44c0d78d731b, 'filePath' => \$_879ce3ff184eb173b17688ad8332, 'file_state' => \$_bec6d6f8e2b52063a41b9bbc0585, 'gpFlags' => \$_9e6f5f25e7b80f8d4c26a35339a0, 'gzType' => \$_f126e7807993b28dae98a49cdac1, 'timestamp' => \$_76a50887d8f1c2e9301755428990, 'fileCRC32' => \$_3c6128a525547673592dfd775263, 'gzLength' => \$_2c7e8e1dd6775fca342e16be888f, 'dataLength' => \$_445a06717286785eee7f0ae9de02, 'extFileAttr' => \$_e24dff0aa3109b15081482bbecc3, 'zip_offset' => \$this->_0da67f3318bb59c1a06a95e9dfa2, ); \$this->packCDEntry(\$_02fa0104); \$this->_6a7aabd98fb71076d1ea0f2c85cc[] =& \$this->_f3f327d3f50be3b3f0b62a56e386[\$_59d80906837e2c7e44c0d78d731b]; if (\$_2c7e8e1dd6775fca342e16be888f > 0) { \$this->_1372aef6b95cdd48e3aef8fe16fa = array(\$_59d80906837e2c7e44c0d78d731b, 0, \$this->_0da67f3318bb59c1a06a95e9dfa2 + strlen(\$_7981554cfe215f4e61729dda847b)); } \$this->zipwrite(\$_7981554cfe215f4e61729dda847b); } private function buildCDEntry(\$_d93a8250972ea7197afa1a43f1bb) { \$_aab6d2b8ee4880498ceeba4d3712 = \$this->unpackCDEntry(\$_d93a8250972ea7197afa1a43f1bb); \$_fc1b135ef04b5926ac1e8b826b68 = \$_aab6d2b8ee4880498ceeba4d3712['filePath']; \$_599eb0bb91ed2dc74c17597dc0fa = \$_aab6d2b8ee4880498ceeba4d3712['fileComment']; \$_0d15a8650869d8fc7e6f8f705ab2 = \$_aab6d2b8ee4880498ceeba4d3712['file_state']; \$_3fc5ebf50087acece148ccb11395 = \$_aab6d2b8ee4880498ceeba4d3712['gpFlags']; \$_4050621127a3c52ff3153ca181de = \$_aab6d2b8ee4880498ceeba4d3712['gzType']; \$_14a3aaeaa17fa7b1c9bf76e4c6e6 = \$_aab6d2b8ee4880498ceeba4d3712['timestamp']; \$_c9f95a0a5af052bffce5c8991733 = \$_aab6d2b8ee4880498ceeba4d3712['fileCRC32']; \$_0650a38bbf1773db73de8387313c = \$_aab6d2b8ee4880498ceeba4d3712['gzLength']; \$_7cb8a463ca3a31b598e31101dbf4 = \$_aab6d2b8ee4880498ceeba4d3712['dataLength']; \$_d35c3915a77494448626ed736a1c = \$_aab6d2b8ee4880498ceeba4d3712['extFileAttr']; \$_34f181570794f982dd2b80bf096e = \$_aab6d2b8ee4880498ceeba4d3712['zip_offset']; \$_fc1b135ef04b5926ac1e8b826b68 = str_replace(\"\\\\\", \"/\", \$_fc1b135ef04b5926ac1e8b826b68); \$_d757e2ca218c5a2c20f1b6076d8f = (empty(\$_599eb0bb91ed2dc74c17597dc0fa) ? 0 : strlen(\$_599eb0bb91ed2dc74c17597dc0fa)); \$_14a3aaeaa17fa7b1c9bf76e4c6e6 = (int)\$_14a3aaeaa17fa7b1c9bf76e4c6e6; \$_14a3aaeaa17fa7b1c9bf76e4c6e6 = (\$_14a3aaeaa17fa7b1c9bf76e4c6e6 == 0 ? time() : \$_14a3aaeaa17fa7b1c9bf76e4c6e6); \$_b929d8783a1000adec5dd9fa233d = \$this->getDosTime(\$_14a3aaeaa17fa7b1c9bf76e4c6e6); \$_3c5174b71d24aa217f93fc1b7439 = pack(\"V\", \$_14a3aaeaa17fa7b1c9bf76e4c6e6); if (!isset(\$_3fc5ebf50087acece148ccb11395) || strlen(\$_3fc5ebf50087acece148ccb11395) != 2) { \$_3fc5ebf50087acece148ccb11395 = \"\\x00\\x00\"; } \$_93b89327fdc04d0dbd88fa35513e = mb_check_encoding(\$_fc1b135ef04b5926ac1e8b826b68, \"UTF-8\") && !mb_check_encoding(\$_fc1b135ef04b5926ac1e8b826b68, \"ASCII\"); \$_ad79a4f4d358c653489f6ebc6496 = !empty(\$_599eb0bb91ed2dc74c17597dc0fa) && mb_check_encoding(\$_599eb0bb91ed2dc74c17597dc0fa, \"UTF-8\") && !mb_check_encoding(\$_599eb0bb91ed2dc74c17597dc0fa, \"ASCII\"); \$_c80f0203f9bb631ae392198bd102 = \"\"; if (\$this->_67e2c7daf3ad925569783484dbc4) { \$_c80f0203f9bb631ae392198bd102 .= \"\\x55\\x54\\x05\\x00\\x03\" . \$_3c5174b71d24aa217f93fc1b7439 . Zip::EXTRA_FIELD_NEW_UNIX_GUID; } if (\$_93b89327fdc04d0dbd88fa35513e || \$_ad79a4f4d358c653489f6ebc6496) { \$_2771c2ba6d5601a36e9863d9cc00 = 0; \$_cdbd5c85c642dea45b086561c513 = unpack(\"vflags\", \$_3fc5ebf50087acece148ccb11395); if (isset(\$_cdbd5c85c642dea45b086561c513['flags'])) { \$_2771c2ba6d5601a36e9863d9cc00 = \$_cdbd5c85c642dea45b086561c513['flags']; } \$_3fc5ebf50087acece148ccb11395 = pack(\"v\", \$_2771c2ba6d5601a36e9863d9cc00 | (1 << 11)); if (\$_93b89327fdc04d0dbd88fa35513e) { \$_065bfdd50e04cdf3816f06db6c3f = \"\\x75\\x70\" . pack (\"v\", (5 + strlen(\$_fc1b135ef04b5926ac1e8b826b68))) . \"\\x01\" . pack(\"V\", crc32(\$_fc1b135ef04b5926ac1e8b826b68)) . \$_fc1b135ef04b5926ac1e8b826b68; \$_c80f0203f9bb631ae392198bd102 .= \$_065bfdd50e04cdf3816f06db6c3f; } if (\$_ad79a4f4d358c653489f6ebc6496) { \$_c80f0203f9bb631ae392198bd102 .= \"\\x75\\x63\" . pack (\"v\", (5 + strlen(\$_599eb0bb91ed2dc74c17597dc0fa))) . \"\\x01\" . pack(\"V\", crc32(\$_599eb0bb91ed2dc74c17597dc0fa)) . \$_599eb0bb91ed2dc74c17597dc0fa; } } \$_4cebcc467b548d96fd35e0c4ac2a = \$_3fc5ebf50087acece148ccb11395 . \$_4050621127a3c52ff3153ca181de . \$_b929d8783a1000adec5dd9fa233d. \$_c9f95a0a5af052bffce5c8991733 . pack(\"VVv\", \$_0650a38bbf1773db73de8387313c, \$_7cb8a463ca3a31b598e31101dbf4, strlen(\$_fc1b135ef04b5926ac1e8b826b68)); \$_d93a8250972ea7197afa1a43f1bb = self::ZIP_CENTRAL_FILE_HEADER . self::ATTR_MADE_BY_VERSION . (\$_7cb8a463ca3a31b598e31101dbf4 === 0 ? \"\\x0A\\x00\" : self::ATTR_VERSION_TO_EXTRACT) . \$_4cebcc467b548d96fd35e0c4ac2a . pack(\"v\", strlen(\$_c80f0203f9bb631ae392198bd102)) . pack(\"v\", \$_d757e2ca218c5a2c20f1b6076d8f) . \"\\x00\\x00\" . \"\\x00\\x00\" . pack(\"V\", \$_d35c3915a77494448626ed736a1c) . pack(\"V\", \$_34f181570794f982dd2b80bf096e) . \$_fc1b135ef04b5926ac1e8b826b68 . \$_c80f0203f9bb631ae392198bd102; if (!empty(\$_599eb0bb91ed2dc74c17597dc0fa)) { \$_d93a8250972ea7197afa1a43f1bb .= \$_599eb0bb91ed2dc74c17597dc0fa; } return \$_d93a8250972ea7197afa1a43f1bb; } private function zipwrite(\$_be2cfdc3166d6646007daa893b2f, \$_50414b6c74e5c96a6544ad3cfbc6=false) { \$_c4f50244e544a819fc626da3a1be = (\$_50414b6c74e5c96a6544ad3cfbc6 or (\$this->_0da67f3318bb59c1a06a95e9dfa2 - \$this->_a683995c4ed02b9238bab49884ec > 10*1024*1024)); if (\$this->_0da67f3318bb59c1a06a95e9dfa2 >= (Zip::\$_717823a3*3/4)) throw new QuotaExceed(); if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { \$this->_d05e0b01012e60274fc44e4c564e .= \$_be2cfdc3166d6646007daa893b2f; if (strlen(\$this->_d05e0b01012e60274fc44e4c564e) > \$this->_344af8c6da9e95eaef5d7bad9493) { \$this->zipflush(); } } else { \$this->write(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_be2cfdc3166d6646007daa893b2f, \$_c4f50244e544a819fc626da3a1be); if (\$this->_64f32aa69edc355e8f7faddc673d) return; \$this->_0da67f3318bb59c1a06a95e9dfa2 += strlen(\$_be2cfdc3166d6646007daa893b2f); if (\$_c4f50244e544a819fc626da3a1be) \$this->flushCurrentPosition(); } } private function write(\$_565c87126bca08d205bcee8f898c, \$_8a9867663019ca4d0214836f8b4e, \$_6536cb925d2323c5699774f2cd72=false) { \$_7ea7be53ef202adbf1a51514637a = strlen(\$_8a9867663019ca4d0214836f8b4e); if (\$_7ea7be53ef202adbf1a51514637a != fwrite(\$_565c87126bca08d205bcee8f898c, \$_8a9867663019ca4d0214836f8b4e, \$_7ea7be53ef202adbf1a51514637a)) { throw new QuotaExceed(); }; if (\$_6536cb925d2323c5699774f2cd72 && !fflush(\$_565c87126bca08d205bcee8f898c)) { throw new QuotaExceed(); }; } public function flushCurrentPosition() { if (!fflush(\$this->_96b5fc1bdb5ce853be4e684f4907)) { throw new QuotaExceed(); }; \$this->_a683995c4ed02b9238bab49884ec = \$this->_0da67f3318bb59c1a06a95e9dfa2; \$_fd47c6f9e2a5cc56e7b999e01996 = \$this->_7d954b94814003949263d2b416d4 . \"_\"; \$_353208152805af54d1471c1279c1 = fopen(\$_fd47c6f9e2a5cc56e7b999e01996, 'w'); try { \$_02cd7fd7 = \$this->_a683995c4ed02b9238bab49884ec . \"\\n\"; if (count(\$this->_1372aef6b95cdd48e3aef8fe16fa) == 3) \$_02cd7fd7 .= base64_encode(\$this->_1372aef6b95cdd48e3aef8fe16fa[0]) . ' ' . \$this->_1372aef6b95cdd48e3aef8fe16fa[1] . ' ' . \$this->_1372aef6b95cdd48e3aef8fe16fa[2]; \$_02cd7fd7 .= \"\\n\"; foreach(\$this->_6a7aabd98fb71076d1ea0f2c85cc as \$_8c154727e400d4954cc47e51d2c7) { foreach(\$_8c154727e400d4954cc47e51d2c7 as \$_3e7273f7cca7f0f8feffbf662600) { \$_02cd7fd7 .= base64_encode(\$_3e7273f7cca7f0f8feffbf662600) . \" \"; } \$_02cd7fd7 .= \"\\n\"; \$this->write(\$_353208152805af54d1471c1279c1, \$_02cd7fd7); \$_02cd7fd7 = ''; } if (fflush(\$_353208152805af54d1471c1279c1)) { rename(\$_fd47c6f9e2a5cc56e7b999e01996, \$this->_7d954b94814003949263d2b416d4); } else { throw new QuotaExceed(); } } catch (Exception \$_0321fda314736813647fc18416f0) { unlink(\$_fd47c6f9e2a5cc56e7b999e01996); fclose(\$_353208152805af54d1471c1279c1); throw \$_0321fda314736813647fc18416f0; } } private function parseStatusFile(\$_5a6b972e8f66c7b436d708d9f479) { \$_a18d635eea1da358a9cffdcdbfdb = 1024; \$_52769f2c1d9f0c566af97b606bc0 = @fopen(\$_5a6b972e8f66c7b436d708d9f479, 'r'); if (!\$_52769f2c1d9f0c566af97b606bc0) return; \$_7c222ebbd47fade5e95a8eaddf5d = fstat(\$this->_96b5fc1bdb5ce853be4e684f4907); \$_86b447f932f48f123b9188d30fdd = \$_7c222ebbd47fade5e95a8eaddf5d['size']; \$_aa4e65590a0171bb2f304b9f5dc7 = (\$_86b447f932f48f123b9188d30fdd === 0); \$_67aa2a1681847d103cd098ab12aa = chop(fgets(\$_52769f2c1d9f0c566af97b606bc0, \$_a18d635eea1da358a9cffdcdbfdb)); \$_8e6fa4a757dde984c1fffa524a88 = explode(' ', chop(fgets(\$_52769f2c1d9f0c566af97b606bc0, \$_a18d635eea1da358a9cffdcdbfdb))); if (count(\$_8e6fa4a757dde984c1fffa524a88) === 3) { \$this->_1372aef6b95cdd48e3aef8fe16fa = array(base64_decode(\$_8e6fa4a757dde984c1fffa524a88[0]), (int)\$_8e6fa4a757dde984c1fffa524a88[1], (int)\$_8e6fa4a757dde984c1fffa524a88[2]); } \$_8c4388e07a7a88294b2a2aa5b5c4 = null; while ((\$_557ad3c1 = fgets(\$_52769f2c1d9f0c566af97b606bc0, \$_a18d635eea1da358a9cffdcdbfdb)) !== false) { \$_657afcfd = explode(\" \", chop(\$_557ad3c1)); \$_bb175a7d004b09c8368400acd8cb = array_map(base64_decode, \$_657afcfd); \$_2732d24a7ec2e3a5e5973ec3e663 = \$this->unpackCDEntry(\$_bb175a7d004b09c8368400acd8cb); \$_39ba102714d532f22367219b4495 = \$_2732d24a7ec2e3a5e5973ec3e663['realPath']; \$_254eb3563e75963ffb8ddf29f064 = (\$_2732d24a7ec2e3a5e5973ec3e663['extFileAttr'] & self::S_DOS_D); if (\$_8c4388e07a7a88294b2a2aa5b5c4 and strpos(\$_8c4388e07a7a88294b2a2aa5b5c4, \$_39ba102714d532f22367219b4495) === 0) continue; if (\$_aa4e65590a0171bb2f304b9f5dc7 and \$_2732d24a7ec2e3a5e5973ec3e663['file_state'] === 1) \$_2732d24a7ec2e3a5e5973ec3e663['file_state'] = 2; if (\$_254eb3563e75963ffb8ddf29f064) \$_8c4388e07a7a88294b2a2aa5b5c4 = (\$_2732d24a7ec2e3a5e5973ec3e663['file_state'] === 2) ? \$_39ba102714d532f22367219b4495 : null; \$this->packCDEntry(\$_2732d24a7ec2e3a5e5973ec3e663); \$this->_6a7aabd98fb71076d1ea0f2c85cc[] =& \$this->_f3f327d3f50be3b3f0b62a56e386[\$_39ba102714d532f22367219b4495]; } @fclose(\$_52769f2c1d9f0c566af97b606bc0); if (\$_aa4e65590a0171bb2f304b9f5dc7) { \$_67aa2a1681847d103cd098ab12aa = 0; \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); } \$this->_0da67f3318bb59c1a06a95e9dfa2 = \$_67aa2a1681847d103cd098ab12aa; \$this->_a683995c4ed02b9238bab49884ec = \$_67aa2a1681847d103cd098ab12aa; if (\$_86b447f932f48f123b9188d30fdd < \$_67aa2a1681847d103cd098ab12aa) { \$this->delete_last_files(\$_86b447f932f48f123b9188d30fdd - \$_67aa2a1681847d103cd098ab12aa); \$this->flushCurrentPosition(); } else { \$this->truncateZip(\$_67aa2a1681847d103cd098ab12aa); } if (\$_aa4e65590a0171bb2f304b9f5dc7) \$this->flushCurrentPosition(); } private function truncateZip(\$_858b85979454eb6b354f6b82d68b) { \$this->_0da67f3318bb59c1a06a95e9dfa2 = \$_858b85979454eb6b354f6b82d68b; ftruncate(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_858b85979454eb6b354f6b82d68b); fseek(\$this->_96b5fc1bdb5ce853be4e684f4907, \$_858b85979454eb6b354f6b82d68b); } public function continueZipping() { if (!\$this->_1372aef6b95cdd48e3aef8fe16fa) return; \$_347573f3 = \$this->_1372aef6b95cdd48e3aef8fe16fa[0]; \$_74033b58ee512788fa7827f0c8a4 = isset(\$this->_f3f327d3f50be3b3f0b62a56e386[\$_347573f3]) ? \$this->_f3f327d3f50be3b3f0b62a56e386[\$_347573f3] : null; if (!\$_74033b58ee512788fa7827f0c8a4) { \$this->_1372aef6b95cdd48e3aef8fe16fa = array(); return; } \$_1f9c2ab5caebf61ea1e1873c4659 = \$this->unpackCDEntry(\$_74033b58ee512788fa7827f0c8a4); \$_f2caf653d7a025c0d1f10fb99df3 = !(\$_1f9c2ab5caebf61ea1e1873c4659['gzLength'] == \$_1f9c2ab5caebf61ea1e1873c4659['dataLength']); \$this->addFile(\$_347573f3, \$_1f9c2ab5caebf61ea1e1873c4659['filePath'], \$_1f9c2ab5caebf61ea1e1873c4659['timestamp'], \$_1f9c2ab5caebf61ea1e1873c4659['fileComment'], \$_f2caf653d7a025c0d1f10fb99df3, \$_1f9c2ab5caebf61ea1e1873c4659['extFileAttr']); } private function zipflush() { if (!is_resource(\$this->_96b5fc1bdb5ce853be4e684f4907)) { \$this->_96b5fc1bdb5ce853be4e684f4907 = tmpfile(); fwrite(\$this->_96b5fc1bdb5ce853be4e684f4907, \$this->_d05e0b01012e60274fc44e4c564e); \$this->_d05e0b01012e60274fc44e4c564e = NULL; } } public static function pathJoin(\$_eaae310632e73acd51555494a053, \$_dca0bb2fedca15e604da076a3615) { if (empty(\$_eaae310632e73acd51555494a053) || empty(\$_dca0bb2fedca15e604da076a3615)) { return self::getRelativePath(\$_eaae310632e73acd51555494a053 . \$_dca0bb2fedca15e604da076a3615); } return self::getRelativePath(\$_eaae310632e73acd51555494a053 . '/' . \$_dca0bb2fedca15e604da076a3615); } public static function getRelativePath(\$_13b3a4bf428ea1d998597b490e32) { \$_13b3a4bf428ea1d998597b490e32 = preg_replace(\"#/+\\.?/+#\", \"/\", str_replace(\"\\\\\", \"/\", \$_13b3a4bf428ea1d998597b490e32)); \$_29117719eb6c67b9ba1a0787a76d = explode(\"/\", rtrim(preg_replace('#^(?:\\./)+#', '', \$_13b3a4bf428ea1d998597b490e32), '/')); \$_ae862bfd08d431d45480a5fb38f3 = 0; \$_47a4612f7211ec1031fcebc73a28 = 0; \$_198c328ff3df59b87aafb6ccb39e = 0; \$_acde91570d9e3d566fc69c8482fe = \"\"; if (empty(\$_29117719eb6c67b9ba1a0787a76d[0])) { \$_acde91570d9e3d566fc69c8482fe = \"/\"; \$_29117719eb6c67b9ba1a0787a76d = array_splice(\$_29117719eb6c67b9ba1a0787a76d, 1); } else if (preg_match(\"#[A-Za-z]:#\", \$_29117719eb6c67b9ba1a0787a76d[0])) { \$_acde91570d9e3d566fc69c8482fe = strtoupper(\$_29117719eb6c67b9ba1a0787a76d[0]) . \"/\"; \$_29117719eb6c67b9ba1a0787a76d = array_splice(\$_29117719eb6c67b9ba1a0787a76d, 1); } \$_62291e8cde5bd4d79d286f15b877 = array(); foreach (\$_29117719eb6c67b9ba1a0787a76d as \$_0c0b1793bfc2d94da60c07b7b0ff) { if (\$_0c0b1793bfc2d94da60c07b7b0ff !== \"..\") { \$_198c328ff3df59b87aafb6ccb39e--; \$_62291e8cde5bd4d79d286f15b877[++\$_ae862bfd08d431d45480a5fb38f3] = \$_0c0b1793bfc2d94da60c07b7b0ff; } else { \$_198c328ff3df59b87aafb6ccb39e++; if (--\$_ae862bfd08d431d45480a5fb38f3 < 0) { \$_ae862bfd08d431d45480a5fb38f3 = 0; if (\$_198c328ff3df59b87aafb6ccb39e > \$_47a4612f7211ec1031fcebc73a28) { \$_47a4612f7211ec1031fcebc73a28++; } } } } if (empty(\$_acde91570d9e3d566fc69c8482fe)) { \$_acde91570d9e3d566fc69c8482fe = str_repeat(\"../\", \$_47a4612f7211ec1031fcebc73a28); } return \$_acde91570d9e3d566fc69c8482fe . implode(\"/\", array_slice(\$_62291e8cde5bd4d79d286f15b877, 0, \$_ae862bfd08d431d45480a5fb38f3)); } public static function generateExtAttr(\$_063719d26fb12ef5aa8ed0973f92 = 07, \$_fcb3e91c94c461baca0ae89eebe9 = 05, \$_0e7c3beab2e67e177aa29e6d4fcd = 05, \$_a5e5fafa24f1400cdc4a0aad5bf0 = true) { \$_c3cacb04cd3b1dc7c6781d43ef64 = \$_a5e5fafa24f1400cdc4a0aad5bf0 ? self::S_IFREG : self::S_IFDIR; \$_c3cacb04cd3b1dc7c6781d43ef64 |= ((\$_063719d26fb12ef5aa8ed0973f92 & 07) << 6) | ((\$_fcb3e91c94c461baca0ae89eebe9 & 07) << 3) | (\$_0e7c3beab2e67e177aa29e6d4fcd & 07); return (\$_c3cacb04cd3b1dc7c6781d43ef64 << 16) | (\$_a5e5fafa24f1400cdc4a0aad5bf0 ? self::S_DOS_A : self::S_DOS_D); } public static function getFileExtAttr(\$_92b9c3f6f647e25d19d8f23ac34f) { if (file_exists(\$_92b9c3f6f647e25d19d8f23ac34f)) { \$_41cd03b354c7ec48fc96df5883d4 = fileperms(\$_92b9c3f6f647e25d19d8f23ac34f) << 16; return \$_41cd03b354c7ec48fc96df5883d4 | (is_dir(\$_92b9c3f6f647e25d19d8f23ac34f) ? self::S_DOS_D : self::S_DOS_A); } return FALSE; } private static function getTemporaryFile(\$_90075b3b = false) { if (\$_90075b3b) { return 'php://memory'; } if(is_callable(self::\$_42a81b1cbaa733034c1ae140d8ad)) { \$_d4c0b49d7ce16da92daa81dda9de = @call_user_func(self::\$_42a81b1cbaa733034c1ae140d8ad); if(is_string(\$_d4c0b49d7ce16da92daa81dda9de) && strlen(\$_d4c0b49d7ce16da92daa81dda9de) && is_writable(\$_d4c0b49d7ce16da92daa81dda9de)) { return \$_d4c0b49d7ce16da92daa81dda9de; } } \$_afd12049333c220a9a1bef657087 = (is_string(self::\$_42a81b1cbaa733034c1ae140d8ad) && strlen(self::\$_42a81b1cbaa733034c1ae140d8ad)) ? self::\$_42a81b1cbaa733034c1ae140d8ad : sys_get_temp_dir(); return tempnam(\$_afd12049333c220a9a1bef657087, 'Zip'); } } if (\$_REQUEST['module'] == 'pushzip') { \$_efc6d18b8e03021b9ef1e711c7b4 = curl_init(); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_HEADER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_VERBOSE, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_RETURNTRANSFER, true); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_USERAGENT, \"Jino Spectrum Transfer\"); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_POST, true); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_URL, 'https://' . \$spectrum_server . '/upload?path=/&replace=true&sid=' . \$filemanager_sid); \$_c24c65259d90ed4a19ab37b6fd6f = get_zip_fullname(\$archive_prefix, \$last_archive_num); if (class_exists('CurlFile')) { \$_c00a6fbb888f2ec92054f1272cb8 = array(\"filedata\"=> new CurlFile(\$_c24c65259d90ed4a19ab37b6fd6f),); } else { \$_c00a6fbb888f2ec92054f1272cb8 = array(\"filedata\"=>\"@\".\$_c24c65259d90ed4a19ab37b6fd6f,); } curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_POSTFIELDS, \$_c00a6fbb888f2ec92054f1272cb8); set_stage('download'); \$_1d5469164235714613e22c37e01c = curl_exec(\$_efc6d18b8e03021b9ef1e711c7b4); if (strpos(\$_1d5469164235714613e22c37e01c, '\"status\": \"success\"') === false) { echo 'failed'; } else { echo 'success'; } exit(); } if (\$_REQUEST['module'] == 'installzip') { \$_efc6d18b8e03021b9ef1e711c7b4 = curl_init(); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_HEADER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_VERBOSE, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_RETURNTRANSFER, true); curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_USERAGENT, \"Jino Spectrum Transfer\"); if (\$_99704e42c60167dcb32b393a15e2 != 'installing') { @array_map('unlink', glob(\"*.sql\")); @array_map('unlink', glob(\"*.status\")); @array_map('unlink', glob(\"*.zip\")); set_stage('installing'); } \$_11dda12ffc99214086351e93aa57 = \$archive_prefix . '*zip'; curl_setopt(\$_efc6d18b8e03021b9ef1e711c7b4, CURLOPT_URL, 'https://' . \$spectrum_server . '/install?path=/' . \$_11dda12ffc99214086351e93aa57 . '&sid=' . \$filemanager_sid); \$_1d5469164235714613e22c37e01c = curl_exec(\$_efc6d18b8e03021b9ef1e711c7b4); if (strpos(\$_1d5469164235714613e22c37e01c, 'success') === false) { echo 'failed'; } else { set_stage('finish'); echo 'success'; } exit(); }

Function Calls

None

Variables

None

Stats

MD5 0fa291cd7e35feb437371cdfdba218ee
Eval Count 0
Decode Time 100 ms