Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php require_once "\x2e\x2e\x2f\56\x2e\57\x76\x65\x6e\144\157\162\x2f\141\x75\164\157\x..
Decoded Output download
<?php
require_once "../../vendor/autoload.php"; require_once "src/File/Manager.php"; use App\File\Manager as FileManager; use Symfony\Component\Dotenv\Dotenv; goto Bef43; e3351: C9272: goto Eb671; b7117: $data = []; goto bc601; F2e10: D04d7: goto Ddbc5; e8f91: $user = $_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]; goto bec77; d6ea6: $id = $_POST["id"] ?? null; goto cf934; B5ebd: $files = $_POST["files"] ?? null; goto c57b9; f2dbd: $id = $_POST["id"] ?? null; goto a3215; B193b: B1fd2: goto Cb421; Befd8: A66f1: goto C23c8; c626b: if (true === isset($_POST["content"]) && true === isset($_POST["id"])) { goto d91d7; } goto A1910; ee46d: $files = []; goto Aa2bd; A60d6: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Ba1cd; Ea7d6: Da7c5: goto f1742; Ffce4: if (!(true === str_contains($requestUri, "makedir"))) { goto C698b; } goto A8406; b8498: checkPath($file, $homeDirectory); goto b0b00; f0902: $copyToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto b8498; f490e: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto ae946; ed227: $data = $fileManager->getFiles($directory); goto c1f6e; A1910: if (!(false === is_null($id))) { goto F77f5; } goto A60d6; e346f: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto E21d0; ef9e0: A9161: goto Ccd56; Fc205: if (!(true === isset($_POST["id"]))) { goto B1fd2; } goto Df2a9; bec77: cb8df: goto C7d23; d9211: echo $fileContent; goto Efec7; Eb3df: if (!(true === str_contains($requestUri, "upload"))) { goto Ad5de; } goto C8285; a4668: C1bdc: goto Caec1; b35af: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto B17b3; Cb974: goto e1da8; goto eb1d5; C8285: if (!(true === isset($_FILES["upload"]))) { goto b9c95; } goto c5421; Fdd5b: checkPath($file, $homeDirectory); goto D88fe; a66c3: checkPath($directory, $homeDirectory); goto a3ce6; c07ab: $destinationDirectoryName = str_replace([".."], [''], $destinationDirectoryName); goto E1a70; Aa2bd: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto A5dc2; } goto a44f8; b1103: $destinationDirectoryName = $_POST["destinationDirectoryName"] ?? null; goto ad703; c335e: ini_set("display_errors", 1); goto f82bc; F2174: d489b: goto b8b95; C3c1e: if (!(false === is_null($id))) { goto A9161; } goto e27e2; f1742: C698b: goto F8ae3; d6464: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto eb656; ae946: checkPath($directory, $homeDirectory); goto b064c; caa83: $fileUploadPath = $_POST["upload_fullpath"] ?? null; goto B927c; d9bbd: $id = $_POST["id"] ?? null; goto E6970; Ae385: C0886: goto Ebe2c; b0b00: checkPath($copyToDirectory, $homeDirectory); goto F34af; df24a: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto Baf11; A3361: d28ac: goto e3351; eebdc: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto F2174; e3503: E8871: goto Ca95b; Fa6d3: $fileContent = $_POST["content"] ?? ''; goto bfd91; d14bc: $sessionFile = sprintf("/var/lib/php/sessions/sess_%s", $sessionId); goto C0d9e; bc948: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Fa6d3; b75f8: $download = $_GET["download"] ?? null; goto C3c1e; E21d0: $moveToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto D6555; ac11b: if (!(false == is_dir($homeDirectory))) { goto E4106; } goto C778e; F0012: f43a2: goto bc597; F41ad: F7e1b: goto e94a9; C604c: session_decode($sessionData); goto Cb830; cc38d: $data = $fileManager->makeDirectory($directoryName, $directory); goto cf1a8; f82bc: e0ea0: goto bc15b; f2280: if (!(true === isset($_POST["id"]) && true === isset($_POST["destinationDirectoryName"]))) { goto Fbe48; } goto a61e6; c5421: $tmpFile = $_FILES["upload"]["tmp_name"] ?? null; goto caa83; Ddbc5: exit; goto edaba; f6a97: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto ad0d4; } goto d9bbd; ea606: Dd238: goto b42f9; D20e6: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto f0902; a3215: if (!(false === is_null($id))) { goto ae80e; } goto bc948; e6d7b: $envFile = "../../.env"; goto f60d4; bd1e4: $id = $_POST["id"] ?? null; goto a4c41; Db32a: Bb2d2: goto F0012; f065d: if (!("/" != $id)) { goto d489b; } goto eebdc; bfd91: checkPath($file, $homeDirectory); goto d47e3; c57b9: if (!(false === is_null($files))) { goto F8b8f; } goto ae954; D080c: $sessionData = file_get_contents($sessionFile); goto B5bd6; E693f: if (!(true === str_contains($requestUri, "text"))) { goto cade7; } goto c626b; f949d: session_name("clp-file-manager"); goto A0f62; d32ec: $data = $fileManager->getFolders($directory); goto f7a65; efdeb: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto d28ac; } goto A8141; B17b3: checkPath($file, $homeDirectory); goto c07ab; e3d1a: if (!(true === str_contains($requestUri, "files") && false === is_null($id))) { goto ffadd; } goto E3b11; a6de9: if (!(true === isset($_POST["files"]) && true === isset($_POST["target"]))) { goto C9272; } goto B5ebd; f3012: exit; goto Cb974; Ac983: e1da8: goto e6d7b; E1a70: $data = $fileManager->extract($file, $destinationDirectoryName); goto Ef61e; dddf8: checkPath($file, $homeDirectory); goto ec6d2; d2e8e: if (!(true === isset($_POST["id"]) && true === isset($_POST["permissions"]))) { goto C0886; } goto d6ea6; Dd2ec: checkPath($file, $homeDirectory); goto A8908; C778e: exit; goto F09cf; Df2a9: $id = $_POST["id"] ?? null; goto Fe7db; Efec7: F77f5: goto F0ac2; dbd2d: checkPath($file, $homeDirectory); goto c9979; A8908: $data = $fileManager->permissions($file, $permissions); goto de205; Efc77: a5dbb: goto B193b; cf934: $permissions = $_POST["permissions"] ?? null; goto B348f; d7552: if (!(true === str_contains($requestUri, "compress"))) { goto b90a7; } goto a6de9; f3b69: ae80e: goto F2e10; D88fe: $data = $fileManager->rename($file, $newFilename); goto Adc65; f6fd4: echo json_encode($data); goto Cf88b; f81a6: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto a66c3; F0ac2: goto D04d7; goto C14da; Cf88b: ad0d4: goto F41ad; b5760: F8b8f: goto Df555; f6595: if (!(true === str_contains($requestUri, "folders") && false === is_null($id))) { goto D8432; } goto c1b7e; C6897: if (!(true === str_contains($requestUri, "move"))) { goto F7e1b; } goto f6a97; faecb: function isFilenameValid($filename) { goto Ff33f; fd2ea: if (!preg_match("/^(?!.*\.\.)[a-zA-Z0-9_\-\ \/\.]+$/", $filename)) { goto ae63e; } goto F7fed; F7fed: $isFilenameValid = true; goto e08ce; e08ce: ae63e: goto cd309; cd309: return $isFilenameValid; goto Aa659; Ff33f: $isFilenameValid = false; goto fd2ea; Aa659: } goto E60e9; e8d0d: $id = $_GET["id"] ?? null; goto Ecd98; f8181: b9c95: goto c9738; A8b9e: Bbc24: goto Ed44c; Bf3ca: $directoryName = $_POST["name"] ?? null; goto c104f; A8141: $targetDirectory = str_replace([".."], [''], $targetDirectory); goto F21f6; a6083: checkPath($directory, $homeDirectory); goto cc38d; d7109: exit; goto e3a24; e6ad1: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Dd2ec; b2205: function checkPath($file, $homeDirectory) { goto Eb750; Eb750: $file = realpath($file); goto Ff47e; B4501: C44e7: goto df997; da3d8: if (!(false === str_starts_with($file, $homeDirectory))) { goto C44e7; } goto B8de6; Ff47e: $homeDirectory = rtrim($homeDirectory, "/"); goto da3d8; B8de6: exit(sprintf("File is not valid: %s", $file)); goto B4501; df997: } goto faecb; C14da: d91d7: goto f2dbd; Cb830: f5461: goto Ac983; Da676: $data = $fileManager->move($file, $moveToDirectory); goto f6fd4; b7275: a501a: goto Ea7d6; B5bd6: if (!(false === empty($sessionData))) { goto f5461; } goto f949d; c7175: if (!(true === str_contains($requestUri, "rename"))) { goto Dbfb2; } goto Baf1c; c9738: Ad5de: goto a8648; D9ea2: $id = $_POST["id"] ?? null; goto D4d47; C0d9e: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto bc85f; } goto f3012; f60d4: $dotenv = new Dotenv(); goto F3681; f02a0: if (!(true === str_contains($requestUri, "extract"))) { goto c54ec; } goto f2280; D4d47: $filename = $_POST["name"] ?? null; goto c3d82; ed5e4: echo json_encode($data); goto Befd8; cfd03: if (!(true === str_contains($requestUri, "direct"))) { goto Ca285; } goto b75f8; ec6d2: $data = $fileManager->delete($file); goto af254; a4c31: $targetDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($targetDirectory, "/")); goto Ef922; e27e2: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto dbd2d; c3d82: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto Bb2d2; } goto f490e; B03a5: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto c335e; Ef61e: echo json_encode($data); goto a4668; edaba: cade7: goto c7175; c71a9: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto Dd238; } goto b7117; F3681: $dotenv->load($envFile); goto ca834; a4c41: $copyTo = $_POST["to"] ?? null; goto D20e6; Ecd98: $homeDirectory = sprintf("/home/%s/", $user); goto ac11b; Baf11: echo json_encode($data); goto A3361; ee955: echo json_encode($data); goto f3b69; e94a9: if (!(true === str_contains($requestUri, "permissions"))) { goto F4812; } goto d2e8e; bc601: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Fdd5b; Df555: $targetDirectory = $_POST["target"] ?? null; goto efdeb; A1260: e0709: goto f8181; A589f: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto f43a2; } goto D9ea2; Ca95b: $requestUri = $_SERVER["REQUEST_URI"] ?? null; goto e8d0d; E60e9: $fileManager = new FileManager($user); goto f6595; eb1d5: bc85f: goto D080c; f86fb: if (!("dev" === $appEnv)) { goto e0ea0; } goto B03a5; F2005: echo json_encode($data); goto dc787; F307c: echo json_encode($data); goto Db32a; C7d23: if (!(true === is_null($user))) { goto E8871; } goto d91ac; a3d42: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto a6083; e3a24: D8432: goto e3d1a; F21f6: $id = $targetDirectory; goto a4c31; ad703: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto C1bdc; } goto b35af; c1f6e: fc44a: goto F2005; Fac37: Dbfb2: goto F83e6; Baf1c: if (!(true === isset($_POST["name"]) && false === empty($_POST["name"]) && true === isset($_POST["id"]))) { goto e0b29; } goto d8c88; Caec1: Fbe48: goto C163b; D8d4e: $appVersion = $_ENV["APP_VERSION"]; goto f86fb; bc597: b13ca: goto Ffce4; d52c8: $directory = $homeDirectory; goto f065d; Ccd56: Ca285: goto Eb3df; c1b7e: $data = []; goto d52c8; Ba1cd: checkPath($file, $homeDirectory); goto a6d3a; D6555: checkPath($file, $homeDirectory); goto D22e0; F83e6: if (!(true === str_contains($requestUri, "delete"))) { goto b8265; } goto Fc205; de205: echo json_encode($data); goto D1c78; C163b: c54ec: goto d7552; Fe7db: if (!(false === is_null($id) && "/" != $id)) { goto a5dbb; } goto ee7bb; a3ce6: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto D4730; A0f62: session_start(); goto C604c; E3b11: $data = []; goto d6464; D1c78: aca20: goto Ae385; E6970: $copyTo = $_POST["to"] ?? null; goto e346f; c104f: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto a501a; } goto a3d42; Ebe2c: F4812: goto f02a0; dc787: ffadd: goto E693f; Adc65: echo json_encode($data); goto ea606; bc15b: $user = null; goto B5c2c; C23c8: D04c2: goto C6897; a5367: $id = $_POST["id"] ?? null; goto Bf3ca; F8ae3: if (!(true === str_contains($requestUri, "copy"))) { goto D04c2; } goto D3de1; af254: echo json_encode($data); goto Efc77; a44f8: foreach ($filesDecoded as $file) { goto b9cf4; c6d04: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($filePath, "/")); goto A2adf; b05f1: d687c: goto Ad219; b6870: Eee40: goto b05f1; daab5: if (!(false === is_null($filePath))) { goto Eee40; } goto c6d04; A2adf: if (!(true === file_exists($file))) { goto A64ec; } goto E1de5; fab1b: A64ec: goto b6870; E1de5: $files[] = $file; goto fab1b; b9cf4: $filePath = $file["id"] ?? null; goto daab5; Ad219: } goto A8b9e; c9979: $fileManager->download($file); goto ef9e0; b8b95: checkPath($directory, $homeDirectory); goto d32ec; a61e6: $id = $_POST["id"] ?? null; goto b1103; cf1a8: echo json_encode($data); goto b7275; D4730: echo json_encode($data); goto A1260; Cb421: b8265: goto cfd03; Ef922: checkPath($targetDirectory, $homeDirectory); goto df24a; A8406: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto Da7c5; } goto a5367; f7a65: echo json_encode($data); goto d7109; Ed44c: A5dc2: goto b5760; F09cf: E4106: goto b2205; ea915: $id = $_POST["id"] ?? null; goto c71a9; a8648: if (!(true === str_contains($requestUri, "makefile"))) { goto b13ca; } goto A589f; d91ac: exit; goto e3503; eb656: if (!(true === is_dir($directory))) { goto fc44a; } goto f5ae6; d8c88: $newFilename = $_POST["name"] ?? ''; goto ea915; B348f: if (!(false === is_null($permissions) && false === is_null($id))) { goto aca20; } goto e6ad1; b064c: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto F307c; f5ae6: checkPath($directory, $homeDirectory); goto ed227; B5c2c: if (!(true === isset($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]) && false === empty($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]))) { goto cb8df; } goto e8f91; a6d3a: $fileContent = $fileManager->getFileContent($file); goto d9211; ae954: $filesDecoded = json_decode($files, true); goto ee46d; B927c: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "../") && false === is_null($tmpFile) && false === is_null($id))) { goto e0709; } goto f81a6; b42f9: e0b29: goto Fac37; D3de1: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto A66f1; } goto bd1e4; F34af: $data = $fileManager->copy($file, $copyToDirectory); goto ed5e4; D22e0: checkPath($moveToDirectory, $homeDirectory); goto Da676; Bef43: $sessionId = $_COOKIE["cloudpanel"] ?? null; goto d14bc; ca834: $appEnv = $_ENV["APP_ENV"]; goto D8d4e; ee7bb: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto dddf8; d47e3: $data = $fileManager->writeFileContent($file, $fileContent); goto ee955; Eb671: b90a7:
?>
Did this file decode correctly?
Original Code
<?php
require_once "\x2e\x2e\x2f\56\x2e\57\x76\x65\x6e\144\157\162\x2f\141\x75\164\157\x6c\157\x61\144\56\x70\x68\160"; require_once "\x73\162\143\x2f\x46\151\154\x65\x2f\115\141\x6e\141\x67\x65\x72\x2e\x70\150\160"; use App\File\Manager as FileManager; use Symfony\Component\Dotenv\Dotenv; goto Bef43; e3351: C9272: goto Eb671; b7117: $data = []; goto bc601; F2e10: D04d7: goto Ddbc5; e8f91: $user = $_SESSION["\137\x73\146\x32\137\141\x74\164\x72\151\142\x75\x74\145\163"]["\x63\x6c\160\55\146\x69\154\145\55\x6d\141\x6e\141\x67\145\x72"]["\165\x73\x65\x72"]; goto bec77; d6ea6: $id = $_POST["\x69\x64"] ?? null; goto cf934; B5ebd: $files = $_POST["\x66\x69\154\145\163"] ?? null; goto c57b9; f2dbd: $id = $_POST["\151\144"] ?? null; goto a3215; B193b: B1fd2: goto Cb421; Befd8: A66f1: goto C23c8; c626b: if (true === isset($_POST["\x63\157\x6e\x74\x65\156\x74"]) && true === isset($_POST["\x69\x64"])) { goto d91d7; } goto A1910; ee46d: $files = []; goto Aa2bd; A60d6: $file = sprintf("\x25\x73\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto Ba1cd; Ea7d6: Da7c5: goto f1742; Ffce4: if (!(true === str_contains($requestUri, "\155\x61\153\145\x64\151\x72"))) { goto C698b; } goto A8406; b8498: checkPath($file, $homeDirectory); goto b0b00; f0902: $copyToDirectory = sprintf("\x25\x73\57\45\163", rtrim($homeDirectory, "\x2f"), ltrim($copyTo, "\x2f")); goto b8498; f490e: $directory = sprintf("\45\x73\x2f\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto ae946; ed227: $data = $fileManager->getFiles($directory); goto c1f6e; A1910: if (!(false === is_null($id))) { goto F77f5; } goto A60d6; e346f: $file = sprintf("\x25\x73\x2f\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto E21d0; ef9e0: A9161: goto Ccd56; Fc205: if (!(true === isset($_POST["\151\144"]))) { goto B1fd2; } goto Df2a9; bec77: cb8df: goto C7d23; d9211: echo $fileContent; goto Efec7; Eb3df: if (!(true === str_contains($requestUri, "\x75\160\x6c\x6f\x61\x64"))) { goto Ad5de; } goto C8285; a4668: C1bdc: goto Caec1; b35af: $file = sprintf("\45\x73\57\45\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto B17b3; Cb974: goto e1da8; goto eb1d5; C8285: if (!(true === isset($_FILES["\x75\160\x6c\157\141\x64"]))) { goto b9c95; } goto c5421; Fdd5b: checkPath($file, $homeDirectory); goto D88fe; a66c3: checkPath($directory, $homeDirectory); goto a3ce6; c07ab: $destinationDirectoryName = str_replace(["\x2e\56"], [''], $destinationDirectoryName); goto E1a70; Aa2bd: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto A5dc2; } goto a44f8; b1103: $destinationDirectoryName = $_POST["\x64\145\x73\164\x69\x6e\141\164\151\x6f\156\x44\x69\x72\x65\143\x74\x6f\162\171\x4e\141\x6d\145"] ?? null; goto ad703; c335e: ini_set("\x64\151\163\160\154\141\171\137\x65\162\162\157\x72\x73", 1); goto f82bc; F2174: d489b: goto b8b95; C3c1e: if (!(false === is_null($id))) { goto A9161; } goto e27e2; f1742: C698b: goto F8ae3; d6464: $directory = sprintf("\45\163\x2f\x25\163\x2f", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto eb656; ae946: checkPath($directory, $homeDirectory); goto b064c; caa83: $fileUploadPath = $_POST["\x75\x70\x6c\x6f\x61\x64\137\x66\x75\x6c\x6c\x70\141\164\x68"] ?? null; goto B927c; d9bbd: $id = $_POST["\151\x64"] ?? null; goto E6970; Ae385: C0886: goto Ebe2c; b0b00: checkPath($copyToDirectory, $homeDirectory); goto F34af; df24a: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto Baf11; A3361: d28ac: goto e3351; eebdc: $directory = sprintf("\45\x73\x2f\x25\x73\57", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto F2174; e3503: E8871: goto Ca95b; Fa6d3: $fileContent = $_POST["\143\x6f\x6e\x74\x65\156\x74"] ?? ''; goto bfd91; d14bc: $sessionFile = sprintf("\57\166\x61\x72\57\154\x69\142\57\160\x68\x70\57\x73\145\163\163\x69\x6f\x6e\x73\57\163\145\163\x73\x5f\x25\163", $sessionId); goto C0d9e; bc948: $file = sprintf("\45\163\x2f\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto Fa6d3; b75f8: $download = $_GET["\144\x6f\x77\156\154\157\x61\144"] ?? null; goto C3c1e; E21d0: $moveToDirectory = sprintf("\x25\x73\x2f\45\x73", rtrim($homeDirectory, "\57"), ltrim($copyTo, "\x2f")); goto D6555; ac11b: if (!(false == is_dir($homeDirectory))) { goto E4106; } goto C778e; F0012: f43a2: goto bc597; F41ad: F7e1b: goto e94a9; C604c: session_decode($sessionData); goto Cb830; cc38d: $data = $fileManager->makeDirectory($directoryName, $directory); goto cf1a8; f82bc: e0ea0: goto bc15b; f2280: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\x64\145\163\x74\151\x6e\x61\164\151\x6f\156\x44\x69\x72\x65\143\164\157\x72\x79\x4e\x61\155\x65"]))) { goto Fbe48; } goto a61e6; c5421: $tmpFile = $_FILES["\x75\160\154\x6f\x61\144"]["\164\155\160\137\x6e\141\x6d\145"] ?? null; goto caa83; Ddbc5: exit; goto edaba; f6a97: if (!(true === isset($_POST["\x69\144"]) && true === isset($_POST["\164\x6f"]))) { goto ad0d4; } goto d9bbd; ea606: Dd238: goto b42f9; D20e6: $file = sprintf("\45\x73\x2f\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto f0902; a3215: if (!(false === is_null($id))) { goto ae80e; } goto bc948; e6d7b: $envFile = "\56\56\57\x2e\56\57\x2e\145\x6e\166"; goto f60d4; bd1e4: $id = $_POST["\151\x64"] ?? null; goto a4c41; Db32a: Bb2d2: goto F0012; f065d: if (!("\57" != $id)) { goto d489b; } goto eebdc; bfd91: checkPath($file, $homeDirectory); goto d47e3; c57b9: if (!(false === is_null($files))) { goto F8b8f; } goto ae954; D080c: $sessionData = file_get_contents($sessionFile); goto B5bd6; E693f: if (!(true === str_contains($requestUri, "\x74\x65\170\164"))) { goto cade7; } goto c626b; f949d: session_name("\143\x6c\160\x2d\x66\x69\x6c\145\55\x6d\x61\156\141\x67\x65\162"); goto A0f62; d32ec: $data = $fileManager->getFolders($directory); goto f7a65; efdeb: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto d28ac; } goto A8141; B17b3: checkPath($file, $homeDirectory); goto c07ab; e3d1a: if (!(true === str_contains($requestUri, "\146\x69\x6c\145\163") && false === is_null($id))) { goto ffadd; } goto E3b11; a6de9: if (!(true === isset($_POST["\x66\x69\x6c\145\163"]) && true === isset($_POST["\164\x61\x72\147\x65\164"]))) { goto C9272; } goto B5ebd; f3012: exit; goto Cb974; Ac983: e1da8: goto e6d7b; E1a70: $data = $fileManager->extract($file, $destinationDirectoryName); goto Ef61e; dddf8: checkPath($file, $homeDirectory); goto ec6d2; d2e8e: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\x70\x65\x72\x6d\151\163\x73\151\x6f\x6e\163"]))) { goto C0886; } goto d6ea6; Dd2ec: checkPath($file, $homeDirectory); goto A8908; C778e: exit; goto F09cf; Df2a9: $id = $_POST["\x69\x64"] ?? null; goto Fe7db; Efec7: F77f5: goto F0ac2; dbd2d: checkPath($file, $homeDirectory); goto c9979; A8908: $data = $fileManager->permissions($file, $permissions); goto de205; Efc77: a5dbb: goto B193b; cf934: $permissions = $_POST["\160\x65\x72\x6d\151\163\x73\151\x6f\x6e\x73"] ?? null; goto B348f; d7552: if (!(true === str_contains($requestUri, "\x63\157\x6d\160\x72\x65\x73\163"))) { goto b90a7; } goto a6de9; f3b69: ae80e: goto F2e10; D88fe: $data = $fileManager->rename($file, $newFilename); goto Adc65; f6fd4: echo json_encode($data); goto Cf88b; f81a6: $directory = sprintf("\x25\x73\57\x25\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto a66c3; F0ac2: goto D04d7; goto C14da; Cf88b: ad0d4: goto F41ad; b5760: F8b8f: goto Df555; f6595: if (!(true === str_contains($requestUri, "\146\157\154\144\x65\x72\163") && false === is_null($id))) { goto D8432; } goto c1b7e; C6897: if (!(true === str_contains($requestUri, "\155\x6f\x76\x65"))) { goto F7e1b; } goto f6a97; faecb: function isFilenameValid($filename) { goto Ff33f; fd2ea: if (!preg_match("\x2f\136\x28\x3f\x21\x2e\x2a\x5c\56\134\x2e\51\x5b\141\55\172\x41\55\x5a\60\55\71\x5f\x5c\x2d\134\40\x5c\x2f\134\56\x5d\x2b\44\x2f", $filename)) { goto ae63e; } goto F7fed; F7fed: $isFilenameValid = true; goto e08ce; e08ce: ae63e: goto cd309; cd309: return $isFilenameValid; goto Aa659; Ff33f: $isFilenameValid = false; goto fd2ea; Aa659: } goto E60e9; e8d0d: $id = $_GET["\x69\144"] ?? null; goto Ecd98; f8181: b9c95: goto c9738; A8b9e: Bbc24: goto Ed44c; Bf3ca: $directoryName = $_POST["\156\141\155\x65"] ?? null; goto c104f; A8141: $targetDirectory = str_replace(["\x2e\56"], [''], $targetDirectory); goto F21f6; a6083: checkPath($directory, $homeDirectory); goto cc38d; d7109: exit; goto e3a24; e6ad1: $file = sprintf("\x25\163\x2f\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto Dd2ec; b2205: function checkPath($file, $homeDirectory) { goto Eb750; Eb750: $file = realpath($file); goto Ff47e; B4501: C44e7: goto df997; da3d8: if (!(false === str_starts_with($file, $homeDirectory))) { goto C44e7; } goto B8de6; Ff47e: $homeDirectory = rtrim($homeDirectory, "\57"); goto da3d8; B8de6: exit(sprintf("\106\151\x6c\x65\x20\151\163\40\x6e\157\164\40\x76\x61\154\x69\144\72\40\45\x73", $file)); goto B4501; df997: } goto faecb; C14da: d91d7: goto f2dbd; Cb830: f5461: goto Ac983; Da676: $data = $fileManager->move($file, $moveToDirectory); goto f6fd4; b7275: a501a: goto Ea7d6; B5bd6: if (!(false === empty($sessionData))) { goto f5461; } goto f949d; c7175: if (!(true === str_contains($requestUri, "\x72\145\156\141\155\145"))) { goto Dbfb2; } goto Baf1c; c9738: Ad5de: goto a8648; D9ea2: $id = $_POST["\151\144"] ?? null; goto D4d47; C0d9e: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto bc85f; } goto f3012; f60d4: $dotenv = new Dotenv(); goto F3681; f02a0: if (!(true === str_contains($requestUri, "\x65\170\x74\162\141\x63\x74"))) { goto c54ec; } goto f2280; D4d47: $filename = $_POST["\156\141\x6d\x65"] ?? null; goto c3d82; ed5e4: echo json_encode($data); goto Befd8; cfd03: if (!(true === str_contains($requestUri, "\144\x69\162\145\x63\164"))) { goto Ca285; } goto b75f8; ec6d2: $data = $fileManager->delete($file); goto af254; a4c31: $targetDirectory = sprintf("\x25\x73\57\45\163", rtrim($homeDirectory, "\57"), ltrim($targetDirectory, "\x2f")); goto Ef922; e27e2: $file = sprintf("\x25\163\x2f\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto dbd2d; c3d82: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto Bb2d2; } goto f490e; B03a5: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto c335e; Ef61e: echo json_encode($data); goto a4668; edaba: cade7: goto c7175; c71a9: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto Dd238; } goto b7117; F3681: $dotenv->load($envFile); goto ca834; a4c41: $copyTo = $_POST["\164\157"] ?? null; goto D20e6; Ecd98: $homeDirectory = sprintf("\x2f\x68\x6f\x6d\x65\57\45\x73\57", $user); goto ac11b; Baf11: echo json_encode($data); goto A3361; ee955: echo json_encode($data); goto f3b69; e94a9: if (!(true === str_contains($requestUri, "\x70\x65\162\x6d\x69\x73\x73\x69\x6f\156\163"))) { goto F4812; } goto d2e8e; bc601: $file = sprintf("\45\163\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto Fdd5b; Df555: $targetDirectory = $_POST["\x74\141\x72\x67\x65\x74"] ?? null; goto efdeb; A1260: e0709: goto f8181; A589f: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\x6e\141\x6d\145"]))) { goto f43a2; } goto D9ea2; Ca95b: $requestUri = $_SERVER["\x52\105\121\125\105\x53\124\137\125\122\111"] ?? null; goto e8d0d; E60e9: $fileManager = new FileManager($user); goto f6595; eb1d5: bc85f: goto D080c; f86fb: if (!("\144\x65\166" === $appEnv)) { goto e0ea0; } goto B03a5; F2005: echo json_encode($data); goto dc787; F307c: echo json_encode($data); goto Db32a; C7d23: if (!(true === is_null($user))) { goto E8871; } goto d91ac; a3d42: $directory = sprintf("\45\163\57\45\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\57")); goto a6083; e3a24: D8432: goto e3d1a; F21f6: $id = $targetDirectory; goto a4c31; ad703: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto C1bdc; } goto b35af; c1f6e: fc44a: goto F2005; Fac37: Dbfb2: goto F83e6; Baf1c: if (!(true === isset($_POST["\156\x61\155\145"]) && false === empty($_POST["\x6e\x61\x6d\x65"]) && true === isset($_POST["\x69\x64"]))) { goto e0b29; } goto d8c88; Caec1: Fbe48: goto C163b; D8d4e: $appVersion = $_ENV["\101\x50\x50\137\126\105\122\123\111\117\116"]; goto f86fb; bc597: b13ca: goto Ffce4; d52c8: $directory = $homeDirectory; goto f065d; Ccd56: Ca285: goto Eb3df; c1b7e: $data = []; goto d52c8; Ba1cd: checkPath($file, $homeDirectory); goto a6d3a; D6555: checkPath($file, $homeDirectory); goto D22e0; F83e6: if (!(true === str_contains($requestUri, "\144\145\x6c\145\164\x65"))) { goto b8265; } goto Fc205; de205: echo json_encode($data); goto D1c78; C163b: c54ec: goto d7552; Fe7db: if (!(false === is_null($id) && "\x2f" != $id)) { goto a5dbb; } goto ee7bb; a3ce6: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto D4730; A0f62: session_start(); goto C604c; E3b11: $data = []; goto d6464; D1c78: aca20: goto Ae385; E6970: $copyTo = $_POST["\164\x6f"] ?? null; goto e346f; c104f: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto a501a; } goto a3d42; Ebe2c: F4812: goto f02a0; dc787: ffadd: goto E693f; Adc65: echo json_encode($data); goto ea606; bc15b: $user = null; goto B5c2c; C23c8: D04c2: goto C6897; a5367: $id = $_POST["\x69\144"] ?? null; goto Bf3ca; F8ae3: if (!(true === str_contains($requestUri, "\143\157\160\171"))) { goto D04c2; } goto D3de1; af254: echo json_encode($data); goto Efc77; a44f8: foreach ($filesDecoded as $file) { goto b9cf4; c6d04: $file = sprintf("\x25\x73\x2f\x25\163", rtrim($homeDirectory, "\57"), ltrim($filePath, "\x2f")); goto A2adf; b05f1: d687c: goto Ad219; b6870: Eee40: goto b05f1; daab5: if (!(false === is_null($filePath))) { goto Eee40; } goto c6d04; A2adf: if (!(true === file_exists($file))) { goto A64ec; } goto E1de5; fab1b: A64ec: goto b6870; E1de5: $files[] = $file; goto fab1b; b9cf4: $filePath = $file["\x69\144"] ?? null; goto daab5; Ad219: } goto A8b9e; c9979: $fileManager->download($file); goto ef9e0; b8b95: checkPath($directory, $homeDirectory); goto d32ec; a61e6: $id = $_POST["\151\x64"] ?? null; goto b1103; cf1a8: echo json_encode($data); goto b7275; D4730: echo json_encode($data); goto A1260; Cb421: b8265: goto cfd03; Ef922: checkPath($targetDirectory, $homeDirectory); goto df24a; A8406: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\x6e\x61\x6d\145"]))) { goto Da7c5; } goto a5367; f7a65: echo json_encode($data); goto d7109; Ed44c: A5dc2: goto b5760; F09cf: E4106: goto b2205; ea915: $id = $_POST["\x69\x64"] ?? null; goto c71a9; a8648: if (!(true === str_contains($requestUri, "\x6d\x61\153\145\x66\x69\x6c\145"))) { goto b13ca; } goto A589f; d91ac: exit; goto e3503; eb656: if (!(true === is_dir($directory))) { goto fc44a; } goto f5ae6; d8c88: $newFilename = $_POST["\x6e\x61\155\x65"] ?? ''; goto ea915; B348f: if (!(false === is_null($permissions) && false === is_null($id))) { goto aca20; } goto e6ad1; b064c: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto F307c; f5ae6: checkPath($directory, $homeDirectory); goto ed227; B5c2c: if (!(true === isset($_SESSION["\137\x73\146\62\x5f\x61\164\164\x72\x69\x62\x75\164\x65\x73"]["\x63\x6c\x70\55\146\151\x6c\145\x2d\155\141\x6e\x61\147\145\162"]["\165\x73\x65\x72"]) && false === empty($_SESSION["\x5f\163\x66\x32\x5f\x61\x74\x74\162\151\142\x75\x74\x65\163"]["\143\154\x70\x2d\x66\x69\x6c\x65\x2d\155\x61\x6e\x61\x67\145\x72"]["\165\x73\x65\x72"]))) { goto cb8df; } goto e8f91; a6d3a: $fileContent = $fileManager->getFileContent($file); goto d9211; ae954: $filesDecoded = json_decode($files, true); goto ee46d; B927c: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "\x2e\x2e\57") && false === is_null($tmpFile) && false === is_null($id))) { goto e0709; } goto f81a6; b42f9: e0b29: goto Fac37; D3de1: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\x74\x6f"]))) { goto A66f1; } goto bd1e4; F34af: $data = $fileManager->copy($file, $copyToDirectory); goto ed5e4; D22e0: checkPath($moveToDirectory, $homeDirectory); goto Da676; Bef43: $sessionId = $_COOKIE["\143\x6c\157\165\x64\160\x61\x6e\145\154"] ?? null; goto d14bc; ca834: $appEnv = $_ENV["\x41\x50\x50\x5f\105\116\x56"]; goto D8d4e; ee7bb: $file = sprintf("\45\x73\57\45\163", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto dddf8; d47e3: $data = $fileManager->writeFileContent($file, $fileContent); goto ee955; Eb671: b90a7:
Function Calls
None |
Stats
MD5 | d8ed96350a85b16cd62deee023a8567a |
Eval Count | 0 |
Decode Time | 63 ms |