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\56\57\x2e\56\57\x76\145\x6e\144\157\x72\57\x61\165\164\157\x6c\..

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 E0505; F0892: c6f63: goto e9b2a; Bf53c: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto C6acf; bcf95: function checkPath($file, $homeDirectory) { goto cc9e4; cc9e4: $file = realpath($file); goto ee9db; E21ec: E8f0f: goto Ef0d6; d9f32: if (!(false === str_starts_with($file, $homeDirectory))) { goto E8f0f; } goto a3218; ee9db: $homeDirectory = rtrim($homeDirectory, "/"); goto d9f32; a3218: exit(sprintf("File is not valid: %s", $file)); goto E21ec; Ef0d6: } goto ecd90; e1706: if (!(true === str_contains($requestUri, "makedir"))) { goto C17bd; } goto ba508; E49dd: if (!(true === isset($_POST["id"]) && true === isset($_POST["permissions"]))) { goto F1122; } goto e296e; Dcf48: session_name("clp-file-manager"); goto fc835; b9997: $sessionFile = sprintf("/var/lib/php/sessions/sess_%s", $sessionId); goto b8a82; C3cfe: $data = $fileManager->copy($file, $copyToDirectory); goto cad8d; bd67b: checkPath($directory, $homeDirectory); goto ecf3a; D2054: checkPath($file, $homeDirectory); goto Fc3ec; E463f: $dotenv->load($envFile); goto f5f2b; Ff7cc: $fileUploadPath = $_POST["upload_fullpath"] ?? null; goto fadc8; fdce4: $user = $_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]; goto d5ad4; D142e: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto feec5; } goto c7e2a; A2e83: if (!(true === str_contains($requestUri, "files") && false === is_null($id))) { goto F11e8; } goto dbd4a; Ef9e4: $dotenv = new Dotenv(); goto E463f; D1830: if (!(false === is_null($id))) { goto b887f; } goto b93d2; B2520: $id = $_POST["id"] ?? null; goto B3927; D0cf3: B753f: goto eedf4; E02d4: $id = $_POST["id"] ?? null; goto b7ac1; Fa806: if (!(true === str_contains($requestUri, "permissions"))) { goto Bb0ae; } goto E49dd; F1b59: checkPath($file, $homeDirectory); goto d8d3c; eedf4: e0e4a: goto e1706; abd30: $id = $_POST["id"] ?? null; goto C01b1; E893b: if (!(true === str_contains($requestUri, "direct"))) { goto D4b8c; } goto F79c6; b93d2: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Ad861; c67b5: if (!(true === isset($_FILES["upload"]))) { goto D9b23; } goto b1382; D2544: f44ed: goto f6f8a; Fb8bc: f51a5: goto bd67b; B479e: echo json_encode($data); goto d76b0; Fcad9: Ea2aa: goto E893b; b694e: ebd67: goto Ad89c; fc835: session_start(); goto B03d5; d0d15: echo json_encode($data); goto C51b7; d8d3c: checkPath($copyToDirectory, $homeDirectory); goto C3cfe; aebd5: B2e84: goto Baeb0; Ebfd9: $data = $fileManager->delete($file); goto afd31; Dfce6: exit; goto a70dc; E1672: echo $fileContent; goto b31b4; C7238: $envFile = "../../.env"; goto Ef9e4; cf9db: $data = $fileManager->makeDirectory($directoryName, $directory); goto c1dd2; Ba1ef: C2276: goto C6ffa; a959e: if (!(true === str_contains($requestUri, "rename"))) { goto B2e84; } goto Cd846; eb2a4: $homeDirectory = sprintf("/home/%s/", $user); goto E7640; ff740: checkPath($targetDirectory, $homeDirectory); goto Fed75; A93d5: $data = $fileManager->extract($file, $destinationDirectoryName); goto B9481; ecd90: function isFilenameValid($filename) { goto bcd27; a2e73: $isFilenameValid = true; goto d2f41; db2f2: return $isFilenameValid; goto e88ba; Be29a: if (!preg_match("/^(?!.*\.\.)[a-zA-Z0-9_\-\/\.]+$/", $filename)) { goto ca51a; } goto a2e73; d2f41: ca51a: goto db2f2; bcd27: $isFilenameValid = false; goto Be29a; e88ba: } goto Aa733; Ddaf1: $data = []; goto E6bae; Dfe89: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Fb8bc; D69e5: $user = null; goto a415d; D22be: $data = $fileManager->move($file, $moveToDirectory); goto c8f2f; F5a5e: if (!(false === is_null($id))) { goto aa9c2; } goto b4882; e73bd: checkPath($file, $homeDirectory); goto e3a6d; C5ba3: $copyTo = $_POST["to"] ?? null; goto B23b2; C6d5a: $id = $_POST["id"] ?? null; goto d449c; A0d8d: D9284: goto a9dd2; d83b3: $directory = sprintf("%s/%s/", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto dd1f0; C6acf: checkPath($file, $homeDirectory); goto Ebfd9; e9af5: checkPath($directory, $homeDirectory); goto ce40d; F4d11: if (!("dev" === $appEnv)) { goto de68a; } goto D96c3; ee5d3: $id = $_POST["id"] ?? null; goto D1830; b72bc: $targetDirectory = str_replace([".."], [''], $targetDirectory); goto e6f07; E984b: c0d40: goto a590a; c8f2f: echo json_encode($data); goto bf6b1; e60aa: F11e8: goto e6ae4; bbb5b: if (!(true === str_contains($requestUri, "makefile"))) { goto e0e4a; } goto Bdf50; ecf3a: $data = $fileManager->getFolders($directory); goto B479e; afd31: echo json_encode($data); goto F0892; f8b81: if (!(false === is_null($permissions) && false === is_null($id))) { goto E9474; } goto c784a; Ff514: $newFilename = $_POST["name"] ?? ''; goto E02d4; Eb1da: if (!(true === isset($_POST["files"]) && true === isset($_POST["target"]))) { goto b361f; } goto C1168; cad8d: echo json_encode($data); goto E4330; F0b99: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto b4a73; } goto fb29f; b4805: Ae5ad: goto f3eee; Ad51d: $moveToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto b2d2e; af87c: C2386: goto ee5d3; e8422: if (!(true === isset($_POST["id"]))) { goto a2656; } goto abd30; d0bef: $id = $_POST["id"] ?? null; goto C5ba3; aa279: if (!(true === str_contains($requestUri, "upload"))) { goto Bb3c8; } goto c67b5; abd4d: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Ad51d; d8a79: $copyToDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($copyTo, "/")); goto F1b59; Ad89c: C17bd: goto a457c; E7640: if (!(false == is_dir($homeDirectory))) { goto a6a4d; } goto Dfce6; D158b: if (!(true === isset($_POST["id"]) && true === isset($_POST["destinationDirectoryName"]))) { goto eb908; } goto B2520; cc102: exit; goto efa88; F3abe: aa9c2: goto Db98b; ec591: $data = []; goto D98bf; B23b2: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto d8a79; defb9: if (!(false === empty($sessionData))) { goto C2276; } goto Dcf48; C21a0: checkPath($file, $homeDirectory); goto edb06; D96c3: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto d5614; d45b8: $id = $_POST["id"] ?? null; goto c1e36; E1a9c: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto B2d50; } goto Ce03b; b4882: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto C21a0; eea1d: B2d50: goto b694e; a9dd2: if (!(true === str_contains($requestUri, "move"))) { goto c6918; } goto Deea0; c8c5c: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto f44c0; } goto E2ad5; Ca457: goto A2927; goto a4220; C51b7: b887f: goto D2544; b1382: $tmpFile = $_FILES["upload"]["tmp_name"] ?? null; goto Ff7cc; Bdf13: checkPath($directory, $homeDirectory); goto c9a75; Be804: if (!(true === str_contains($requestUri, "extract"))) { goto F1600; } goto D158b; Ce03b: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto cfb36; e4b8a: $id = $_GET["id"] ?? null; goto eb2a4; ea47b: echo json_encode($data); goto b4805; B420b: checkPath($file, $homeDirectory); goto c0005; B3927: $destinationDirectoryName = $_POST["destinationDirectoryName"] ?? null; goto c8c5c; dd1f0: if (!(true === is_dir($directory))) { goto d28cd; } goto D9f34; a415d: if (!(true === isset($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]) && false === empty($_SESSION["_sf2_attributes"]["clp-file-manager"]["user"]))) { goto Bd916; } goto fdce4; bec89: $files = []; goto F0b99; fbfbe: if (!(true === str_contains($requestUri, "compress"))) { goto d1ebb; } goto Eb1da; E0505: $sessionId = $_COOKIE["cloudpanel"] ?? null; goto b9997; f5f2b: $appEnv = $_ENV["APP_ENV"]; goto Bd50a; E3706: echo json_encode($data); goto E984b; B9c50: $data = $fileManager->writeFileContent($file, $fileContent); goto d0d15; f0c07: f44c0: goto B7980; bf6b1: B8082: goto de502; C1b85: if (!(false === is_null($id))) { goto A7165; } goto Fe92f; D98bf: $directory = $homeDirectory; goto C6a11; f034c: b4a73: goto c1aab; Db98b: D4b8c: goto aa279; d88e9: c2c3c: goto Ecb66; c8687: $filesDecoded = json_decode($files, true); goto bec89; c0005: $data = $fileManager->rename($file, $newFilename); goto ea47b; Be020: echo json_encode($data); goto e60aa; d5614: ini_set("display_errors", 1); goto d12e5; c9a75: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto B4ba2; B7980: eb908: goto b90ee; dbd4a: $data = []; goto d83b3; cfb36: checkPath($directory, $homeDirectory); goto cf9db; d449c: $directoryName = $_POST["name"] ?? null; goto E1a9c; ba508: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto ebd67; } goto C6d5a; d12e5: de68a: goto D69e5; Fc8c6: $copyTo = $_POST["to"] ?? null; goto abd4d; E4330: e483a: goto A0d8d; c7e2a: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto Bdf13; Deea0: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto B8082; } goto c550b; b8a82: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto Be55e; } goto a2212; Ea6d5: $targetDirectory = $_POST["target"] ?? null; goto C80cc; efa88: b7bb9: goto E60b1; D9f34: checkPath($directory, $homeDirectory); goto A85dc; b76f7: C0bbf: goto a959e; b50fc: $directory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto e9af5; Fe92f: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto e73bd; a12fc: checkPath($moveToDirectory, $homeDirectory); goto D22be; c784a: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto D2054; C66ea: F0caa: goto f034c; b31b4: A7165: goto efe56; e296e: $id = $_POST["id"] ?? null; goto Eac31; A103b: E9474: goto A3f05; e6f07: $id = $targetDirectory; goto Bf620; Bf620: $targetDirectory = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($targetDirectory, "/")); goto ff740; adb18: if (!(true === str_contains($requestUri, "folders") && false === is_null($id))) { goto f48c2; } goto ec591; f9f95: if (!(true === is_null($user))) { goto b7bb9; } goto cc102; Eac31: $permissions = $_POST["permissions"] ?? null; goto f8b81; e9b2a: a2656: goto Fcad9; F5b9c: d28cd: goto Be020; A85dc: $data = $fileManager->getFiles($directory); goto F5b9c; E60b1: $requestUri = $_SERVER["REQUEST_URI"] ?? null; goto e4b8a; C3811: if (true === isset($_POST["content"]) && true === isset($_POST["id"])) { goto C2386; } goto C1b85; A3f05: F1122: goto Babea; Fed75: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto E3706; a2212: exit; goto Ca457; B9481: echo json_encode($data); goto f0c07; Aa733: $fileManager = new FileManager($user); goto adb18; Baeb0: if (!(true === str_contains($requestUri, "delete"))) { goto Ea2aa; } goto e8422; F4f59: checkPath($file, $homeDirectory); goto eb82c; eb82c: $destinationDirectoryName = str_replace([".."], [''], $destinationDirectoryName); goto A93d5; c1aab: D9e63: goto Ea6d5; b90ee: F1600: goto fbfbe; C01b1: if (!(false === is_null($id) && "/" != $id)) { goto c6f63; } goto Bf53c; a70dc: a6a4d: goto bcf95; C6a11: if (!("/" != $id)) { goto f51a5; } goto Dfe89; Cd846: if (!(true === isset($_POST["name"]) && false === empty($_POST["name"]) && true === isset($_POST["id"]))) { goto e2a0c; } goto Ff514; c550b: $id = $_POST["id"] ?? null; goto Fc8c6; f3eee: e2a0c: goto aebd5; fadc8: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "../") && false === is_null($tmpFile) && false === is_null($id))) { goto c2c3c; } goto b50fc; C1168: $files = $_POST["files"] ?? null; goto Ccd21; b7ac1: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto Ae5ad; } goto Ddaf1; F2e1b: $sessionData = file_get_contents($sessionFile); goto defb9; b2d2e: checkPath($file, $homeDirectory); goto a12fc; B4ba2: echo json_encode($data); goto de8a3; de8a3: feec5: goto D0cf3; Fc3ec: $data = $fileManager->permissions($file, $permissions); goto e58a7; Ccd21: if (!(false === is_null($files))) { goto D9e63; } goto c8687; Bdf50: if (!(true === isset($_POST["id"]) && true === isset($_POST["name"]))) { goto B753f; } goto d45b8; fb29f: foreach ($filesDecoded as $file) { goto d8a31; c74cb: B51f9: goto D4bd5; Eafb3: if (!(false === is_null($filePath))) { goto e9e82; } goto ad89b; D4bd5: e9e82: goto cddad; ad89b: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($filePath, "/")); goto C8a17; d8a31: $filePath = $file["id"] ?? null; goto Eafb3; C8a17: if (!(true === file_exists($file))) { goto B51f9; } goto b03a6; cddad: a360b: goto Cc203; b03a6: $files[] = $file; goto c74cb; Cc203: } goto C66ea; c1dd2: echo json_encode($data); goto eea1d; C6ffa: A2927: goto C7238; c1e36: $filename = $_POST["name"] ?? null; goto D142e; e3a6d: $fileContent = $fileManager->getFileContent($file); goto E1672; a4220: Be55e: goto F2e1b; C80cc: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto c0d40; } goto b72bc; d58b2: Bb3c8: goto bbb5b; d5ad4: Bd916: goto f9f95; de502: c6918: goto Fa806; edb06: $fileManager->download($file); goto F3abe; f08d8: checkPath($file, $homeDirectory); goto B9c50; f6f8a: exit; goto b76f7; B03d5: session_decode($sessionData); goto Ba1ef; E6bae: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto B420b; d76b0: exit; goto f931d; E2ad5: $file = sprintf("%s/%s", rtrim($homeDirectory, "/"), ltrim($id, "/")); goto F4f59; fef23: if (!(true === isset($_POST["id"]) && true === isset($_POST["to"]))) { goto e483a; } goto d0bef; F79c6: $download = $_GET["download"] ?? null; goto F5a5e; Ad861: $fileContent = $_POST["content"] ?? ''; goto f08d8; ce40d: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto d322c; e6ae4: if (!(true === str_contains($requestUri, "text"))) { goto C0bbf; } goto C3811; Ecb66: D9b23: goto d58b2; Babea: Bb0ae: goto Be804; e58a7: echo json_encode($data); goto A103b; a590a: b361f: goto f86c0; efe56: goto f44ed; goto af87c; Bd50a: $appVersion = $_ENV["APP_VERSION"]; goto F4d11; f931d: f48c2: goto A2e83; a457c: if (!(true === str_contains($requestUri, "copy"))) { goto D9284; } goto fef23; d322c: echo json_encode($data); goto d88e9; f86c0: d1ebb: 
 ?>

Did this file decode correctly?

Original Code

<?php
 require_once "\x2e\56\57\x2e\56\57\x76\145\x6e\144\157\x72\57\x61\165\164\157\x6c\157\x61\144\56\160\150\160"; require_once "\163\x72\143\57\106\x69\x6c\145\x2f\x4d\x61\x6e\x61\147\145\x72\56\x70\x68\160"; use App\File\Manager as FileManager; use Symfony\Component\Dotenv\Dotenv; goto E0505; F0892: c6f63: goto e9b2a; Bf53c: $file = sprintf("\45\x73\57\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto C6acf; bcf95: function checkPath($file, $homeDirectory) { goto cc9e4; cc9e4: $file = realpath($file); goto ee9db; E21ec: E8f0f: goto Ef0d6; d9f32: if (!(false === str_starts_with($file, $homeDirectory))) { goto E8f0f; } goto a3218; ee9db: $homeDirectory = rtrim($homeDirectory, "\57"); goto d9f32; a3218: exit(sprintf("\106\151\154\145\40\x69\x73\40\156\x6f\164\x20\x76\x61\x6c\151\144\72\x20\45\163", $file)); goto E21ec; Ef0d6: } goto ecd90; e1706: if (!(true === str_contains($requestUri, "\155\141\153\145\x64\151\162"))) { goto C17bd; } goto ba508; E49dd: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\160\x65\x72\155\151\x73\163\151\x6f\x6e\x73"]))) { goto F1122; } goto e296e; Dcf48: session_name("\143\154\x70\x2d\146\x69\x6c\x65\x2d\x6d\141\x6e\141\147\x65\162"); goto fc835; b9997: $sessionFile = sprintf("\57\166\141\x72\57\154\151\142\x2f\160\150\x70\57\x73\145\x73\x73\x69\157\156\163\57\x73\x65\163\x73\137\45\x73", $sessionId); goto b8a82; C3cfe: $data = $fileManager->copy($file, $copyToDirectory); goto cad8d; bd67b: checkPath($directory, $homeDirectory); goto ecf3a; D2054: checkPath($file, $homeDirectory); goto Fc3ec; E463f: $dotenv->load($envFile); goto f5f2b; Ff7cc: $fileUploadPath = $_POST["\x75\160\x6c\157\x61\144\137\146\165\154\x6c\x70\141\164\150"] ?? null; goto fadc8; fdce4: $user = $_SESSION["\137\163\146\62\x5f\x61\164\164\162\151\x62\165\164\x65\x73"]["\x63\x6c\160\x2d\x66\151\154\145\x2d\155\141\156\x61\x67\x65\162"]["\x75\163\145\162"]; goto d5ad4; D142e: if (!(false === is_null($filename) && true === isFilenameValid($filename) && false === is_null($id))) { goto feec5; } goto c7e2a; A2e83: if (!(true === str_contains($requestUri, "\x66\x69\154\x65\x73") && false === is_null($id))) { goto F11e8; } goto dbd4a; Ef9e4: $dotenv = new Dotenv(); goto E463f; D1830: if (!(false === is_null($id))) { goto b887f; } goto b93d2; B2520: $id = $_POST["\x69\144"] ?? null; goto B3927; D0cf3: B753f: goto eedf4; E02d4: $id = $_POST["\x69\x64"] ?? null; goto b7ac1; Fa806: if (!(true === str_contains($requestUri, "\160\145\162\x6d\x69\x73\x73\151\x6f\156\x73"))) { goto Bb0ae; } goto E49dd; F1b59: checkPath($file, $homeDirectory); goto d8d3c; eedf4: e0e4a: goto e1706; abd30: $id = $_POST["\151\144"] ?? null; goto C01b1; E893b: if (!(true === str_contains($requestUri, "\144\151\x72\x65\x63\x74"))) { goto D4b8c; } goto F79c6; b93d2: $file = sprintf("\x25\x73\x2f\x25\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto Ad861; c67b5: if (!(true === isset($_FILES["\x75\160\x6c\157\141\x64"]))) { goto D9b23; } goto b1382; D2544: f44ed: goto f6f8a; Fb8bc: f51a5: goto bd67b; B479e: echo json_encode($data); goto d76b0; Fcad9: Ea2aa: goto E893b; b694e: ebd67: goto Ad89c; fc835: session_start(); goto B03d5; d0d15: echo json_encode($data); goto C51b7; d8d3c: checkPath($copyToDirectory, $homeDirectory); goto C3cfe; aebd5: B2e84: goto Baeb0; Ebfd9: $data = $fileManager->delete($file); goto afd31; Dfce6: exit; goto a70dc; E1672: echo $fileContent; goto b31b4; C7238: $envFile = "\56\56\x2f\x2e\x2e\57\56\x65\x6e\x76"; goto Ef9e4; cf9db: $data = $fileManager->makeDirectory($directoryName, $directory); goto c1dd2; Ba1ef: C2276: goto C6ffa; a959e: if (!(true === str_contains($requestUri, "\x72\x65\156\141\155\x65"))) { goto B2e84; } goto Cd846; eb2a4: $homeDirectory = sprintf("\57\x68\157\x6d\145\x2f\x25\163\57", $user); goto E7640; ff740: checkPath($targetDirectory, $homeDirectory); goto Fed75; A93d5: $data = $fileManager->extract($file, $destinationDirectoryName); goto B9481; ecd90: function isFilenameValid($filename) { goto bcd27; a2e73: $isFilenameValid = true; goto d2f41; db2f2: return $isFilenameValid; goto e88ba; Be29a: if (!preg_match("\57\x5e\50\x3f\41\56\52\x5c\x2e\134\56\x29\133\x61\x2d\x7a\x41\55\x5a\x30\x2d\x39\x5f\x5c\55\134\57\134\x2e\135\53\x24\x2f", $filename)) { goto ca51a; } goto a2e73; d2f41: ca51a: goto db2f2; bcd27: $isFilenameValid = false; goto Be29a; e88ba: } goto Aa733; Ddaf1: $data = []; goto E6bae; Dfe89: $directory = sprintf("\45\x73\57\45\x73\57", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto Fb8bc; D69e5: $user = null; goto a415d; D22be: $data = $fileManager->move($file, $moveToDirectory); goto c8f2f; F5a5e: if (!(false === is_null($id))) { goto aa9c2; } goto b4882; e73bd: checkPath($file, $homeDirectory); goto e3a6d; C5ba3: $copyTo = $_POST["\x74\x6f"] ?? null; goto B23b2; C6d5a: $id = $_POST["\151\144"] ?? null; goto d449c; A0d8d: D9284: goto a9dd2; d83b3: $directory = sprintf("\45\163\x2f\x25\x73\x2f", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto dd1f0; C6acf: checkPath($file, $homeDirectory); goto Ebfd9; e9af5: checkPath($directory, $homeDirectory); goto ce40d; F4d11: if (!("\x64\145\x76" === $appEnv)) { goto de68a; } goto D96c3; ee5d3: $id = $_POST["\x69\144"] ?? null; goto D1830; b72bc: $targetDirectory = str_replace(["\56\56"], [''], $targetDirectory); goto e6f07; E984b: c0d40: goto a590a; c8f2f: echo json_encode($data); goto bf6b1; e60aa: F11e8: goto e6ae4; bbb5b: if (!(true === str_contains($requestUri, "\x6d\141\x6b\x65\x66\151\154\x65"))) { goto e0e4a; } goto Bdf50; ecf3a: $data = $fileManager->getFolders($directory); goto B479e; afd31: echo json_encode($data); goto F0892; f8b81: if (!(false === is_null($permissions) && false === is_null($id))) { goto E9474; } goto c784a; Ff514: $newFilename = $_POST["\x6e\141\155\x65"] ?? ''; goto E02d4; Eb1da: if (!(true === isset($_POST["\146\151\x6c\145\163"]) && true === isset($_POST["\164\x61\x72\147\145\164"]))) { goto b361f; } goto C1168; cad8d: echo json_encode($data); goto E4330; F0b99: if (!(false === empty($filesDecoded) && true === is_array($filesDecoded))) { goto b4a73; } goto fb29f; b4805: Ae5ad: goto f3eee; Ad51d: $moveToDirectory = sprintf("\45\x73\x2f\x25\x73", rtrim($homeDirectory, "\57"), ltrim($copyTo, "\x2f")); goto b2d2e; af87c: C2386: goto ee5d3; e8422: if (!(true === isset($_POST["\151\144"]))) { goto a2656; } goto abd30; d0bef: $id = $_POST["\x69\x64"] ?? null; goto C5ba3; aa279: if (!(true === str_contains($requestUri, "\165\160\154\157\x61\x64"))) { goto Bb3c8; } goto c67b5; abd4d: $file = sprintf("\x25\163\x2f\x25\x73", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto Ad51d; d8a79: $copyToDirectory = sprintf("\x25\163\x2f\x25\x73", rtrim($homeDirectory, "\57"), ltrim($copyTo, "\x2f")); goto F1b59; Ad89c: C17bd: goto a457c; E7640: if (!(false == is_dir($homeDirectory))) { goto a6a4d; } goto Dfce6; D158b: if (!(true === isset($_POST["\x69\144"]) && true === isset($_POST["\x64\x65\x73\x74\x69\156\x61\164\151\x6f\x6e\x44\x69\162\145\143\x74\x6f\x72\171\116\141\x6d\145"]))) { goto eb908; } goto B2520; cc102: exit; goto efa88; F3abe: aa9c2: goto Db98b; ec591: $data = []; goto D98bf; B23b2: $file = sprintf("\45\163\57\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto d8a79; defb9: if (!(false === empty($sessionData))) { goto C2276; } goto Dcf48; C21a0: checkPath($file, $homeDirectory); goto edb06; D96c3: error_reporting((E_ALL | E_STRICT) ^ E_NOTICE); goto d5614; d45b8: $id = $_POST["\151\x64"] ?? null; goto c1e36; E1a9c: if (!(false === is_null($directoryName) && true === isFilenameValid($directoryName) && false === is_null($id))) { goto B2d50; } goto Ce03b; b4882: $file = sprintf("\x25\x73\57\x25\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto C21a0; eea1d: B2d50: goto b694e; a9dd2: if (!(true === str_contains($requestUri, "\155\x6f\166\145"))) { goto c6918; } goto Deea0; c8c5c: if (!(false === is_null($destinationDirectoryName) && false === is_null($id))) { goto f44c0; } goto E2ad5; Ca457: goto A2927; goto a4220; C51b7: b887f: goto D2544; b1382: $tmpFile = $_FILES["\x75\160\154\x6f\141\x64"]["\x74\155\x70\137\156\141\155\145"] ?? null; goto Ff7cc; Bdf13: checkPath($directory, $homeDirectory); goto c9a75; Be804: if (!(true === str_contains($requestUri, "\145\x78\164\162\x61\x63\x74"))) { goto F1600; } goto D158b; Ce03b: $directory = sprintf("\x25\x73\x2f\45\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto cfb36; e4b8a: $id = $_GET["\x69\x64"] ?? null; goto eb2a4; ea47b: echo json_encode($data); goto b4805; B420b: checkPath($file, $homeDirectory); goto c0005; B3927: $destinationDirectoryName = $_POST["\144\x65\x73\x74\151\156\141\x74\151\157\156\x44\x69\162\145\x63\164\x6f\162\171\116\x61\155\x65"] ?? null; goto c8c5c; dd1f0: if (!(true === is_dir($directory))) { goto d28cd; } goto D9f34; a415d: if (!(true === isset($_SESSION["\137\x73\146\x32\137\x61\x74\164\x72\151\142\x75\x74\145\163"]["\x63\154\160\x2d\x66\x69\154\145\x2d\x6d\141\156\x61\x67\145\x72"]["\165\x73\x65\162"]) && false === empty($_SESSION["\x5f\x73\x66\x32\137\x61\164\x74\162\151\142\165\164\145\163"]["\143\154\x70\x2d\146\151\154\x65\55\155\x61\156\x61\147\x65\162"]["\165\163\145\x72"]))) { goto Bd916; } goto fdce4; bec89: $files = []; goto F0b99; fbfbe: if (!(true === str_contains($requestUri, "\143\157\x6d\x70\162\145\x73\x73"))) { goto d1ebb; } goto Eb1da; E0505: $sessionId = $_COOKIE["\143\x6c\x6f\x75\144\160\141\x6e\x65\x6c"] ?? null; goto b9997; f5f2b: $appEnv = $_ENV["\x41\x50\120\x5f\105\116\x56"]; goto Bd50a; E3706: echo json_encode($data); goto E984b; B9c50: $data = $fileManager->writeFileContent($file, $fileContent); goto d0d15; f0c07: f44c0: goto B7980; bf6b1: B8082: goto de502; C1b85: if (!(false === is_null($id))) { goto A7165; } goto Fe92f; D98bf: $directory = $homeDirectory; goto C6a11; f034c: b4a73: goto c1aab; Db98b: D4b8c: goto aa279; d88e9: c2c3c: goto Ecb66; c8687: $filesDecoded = json_decode($files, true); goto bec89; c0005: $data = $fileManager->rename($file, $newFilename); goto ea47b; Be020: echo json_encode($data); goto e60aa; d5614: ini_set("\144\x69\163\x70\154\141\x79\137\x65\x72\162\x6f\x72\x73", 1); goto d12e5; c9a75: $data = $fileManager->makeFile($filename, $directory, $homeDirectory); goto B4ba2; B7980: eb908: goto b90ee; dbd4a: $data = []; goto d83b3; cfb36: checkPath($directory, $homeDirectory); goto cf9db; d449c: $directoryName = $_POST["\156\141\155\145"] ?? null; goto E1a9c; ba508: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\156\141\x6d\x65"]))) { goto ebd67; } goto C6d5a; d12e5: de68a: goto D69e5; Fc8c6: $copyTo = $_POST["\164\x6f"] ?? null; goto abd4d; E4330: e483a: goto A0d8d; c7e2a: $directory = sprintf("\45\163\57\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto Bdf13; Deea0: if (!(true === isset($_POST["\151\x64"]) && true === isset($_POST["\x74\157"]))) { goto B8082; } goto c550b; b8a82: if (false === empty($sessionId) && true === is_file($sessionFile) && true === file_exists($sessionFile)) { goto Be55e; } goto a2212; Ea6d5: $targetDirectory = $_POST["\x74\141\162\147\145\164"] ?? null; goto C80cc; efa88: b7bb9: goto E60b1; D9f34: checkPath($directory, $homeDirectory); goto A85dc; b76f7: C0bbf: goto a959e; b50fc: $directory = sprintf("\45\163\x2f\45\163", rtrim($homeDirectory, "\x2f"), ltrim($id, "\x2f")); goto e9af5; Fe92f: $file = sprintf("\x25\163\57\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto e73bd; a12fc: checkPath($moveToDirectory, $homeDirectory); goto D22be; c784a: $file = sprintf("\x25\163\x2f\45\x73", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto D2054; C66ea: F0caa: goto f034c; b31b4: A7165: goto efe56; e296e: $id = $_POST["\151\x64"] ?? null; goto Eac31; A103b: E9474: goto A3f05; e6f07: $id = $targetDirectory; goto Bf620; Bf620: $targetDirectory = sprintf("\x25\x73\57\x25\x73", rtrim($homeDirectory, "\57"), ltrim($targetDirectory, "\57")); goto ff740; adb18: if (!(true === str_contains($requestUri, "\x66\x6f\154\144\145\x72\163") && false === is_null($id))) { goto f48c2; } goto ec591; f9f95: if (!(true === is_null($user))) { goto b7bb9; } goto cc102; Eac31: $permissions = $_POST["\160\x65\162\x6d\151\x73\x73\151\x6f\156\163"] ?? null; goto f8b81; e9b2a: a2656: goto Fcad9; F5b9c: d28cd: goto Be020; A85dc: $data = $fileManager->getFiles($directory); goto F5b9c; E60b1: $requestUri = $_SERVER["\122\x45\121\125\x45\123\124\137\x55\122\111"] ?? null; goto e4b8a; C3811: if (true === isset($_POST["\x63\x6f\156\x74\145\156\x74"]) && true === isset($_POST["\151\x64"])) { goto C2386; } goto C1b85; A3f05: F1122: goto Babea; Fed75: $data = $fileManager->compress($files, $targetDirectory, $id, $homeDirectory); goto E3706; a2212: exit; goto Ca457; B9481: echo json_encode($data); goto f0c07; Aa733: $fileManager = new FileManager($user); goto adb18; Baeb0: if (!(true === str_contains($requestUri, "\144\145\x6c\x65\x74\x65"))) { goto Ea2aa; } goto e8422; F4f59: checkPath($file, $homeDirectory); goto eb82c; eb82c: $destinationDirectoryName = str_replace(["\56\x2e"], [''], $destinationDirectoryName); goto A93d5; c1aab: D9e63: goto Ea6d5; b90ee: F1600: goto fbfbe; C01b1: if (!(false === is_null($id) && "\57" != $id)) { goto c6f63; } goto Bf53c; a70dc: a6a4d: goto bcf95; C6a11: if (!("\57" != $id)) { goto f51a5; } goto Dfe89; Cd846: if (!(true === isset($_POST["\156\x61\x6d\x65"]) && false === empty($_POST["\156\x61\x6d\x65"]) && true === isset($_POST["\151\144"]))) { goto e2a0c; } goto Ff514; c550b: $id = $_POST["\151\144"] ?? null; goto Fc8c6; f3eee: e2a0c: goto aebd5; fadc8: if (!(false === is_null($fileUploadPath) && false === str_contains($fileUploadPath, "\x2e\56\x2f") && false === is_null($tmpFile) && false === is_null($id))) { goto c2c3c; } goto b50fc; C1168: $files = $_POST["\x66\151\x6c\x65\163"] ?? null; goto Ccd21; b7ac1: if (!(false === is_null($id) && true === isFilenameValid($id) && true === isFilenameValid($newFilename))) { goto Ae5ad; } goto Ddaf1; F2e1b: $sessionData = file_get_contents($sessionFile); goto defb9; b2d2e: checkPath($file, $homeDirectory); goto a12fc; B4ba2: echo json_encode($data); goto de8a3; de8a3: feec5: goto D0cf3; Fc3ec: $data = $fileManager->permissions($file, $permissions); goto e58a7; Ccd21: if (!(false === is_null($files))) { goto D9e63; } goto c8687; Bdf50: if (!(true === isset($_POST["\x69\x64"]) && true === isset($_POST["\x6e\x61\155\145"]))) { goto B753f; } goto d45b8; fb29f: foreach ($filesDecoded as $file) { goto d8a31; c74cb: B51f9: goto D4bd5; Eafb3: if (!(false === is_null($filePath))) { goto e9e82; } goto ad89b; D4bd5: e9e82: goto cddad; ad89b: $file = sprintf("\45\x73\x2f\45\x73", rtrim($homeDirectory, "\57"), ltrim($filePath, "\x2f")); goto C8a17; d8a31: $filePath = $file["\x69\x64"] ?? null; goto Eafb3; C8a17: if (!(true === file_exists($file))) { goto B51f9; } goto b03a6; cddad: a360b: goto Cc203; b03a6: $files[] = $file; goto c74cb; Cc203: } goto C66ea; c1dd2: echo json_encode($data); goto eea1d; C6ffa: A2927: goto C7238; c1e36: $filename = $_POST["\156\x61\x6d\145"] ?? null; goto D142e; e3a6d: $fileContent = $fileManager->getFileContent($file); goto E1672; a4220: Be55e: goto F2e1b; C80cc: if (!(false === empty($files) && false === is_null($targetDirectory))) { goto c0d40; } goto b72bc; d58b2: Bb3c8: goto bbb5b; d5ad4: Bd916: goto f9f95; de502: c6918: goto Fa806; edb06: $fileManager->download($file); goto F3abe; f08d8: checkPath($file, $homeDirectory); goto B9c50; f6f8a: exit; goto b76f7; B03d5: session_decode($sessionData); goto Ba1ef; E6bae: $file = sprintf("\45\163\x2f\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\57")); goto B420b; d76b0: exit; goto f931d; E2ad5: $file = sprintf("\x25\163\57\x25\163", rtrim($homeDirectory, "\57"), ltrim($id, "\x2f")); goto F4f59; fef23: if (!(true === isset($_POST["\151\144"]) && true === isset($_POST["\164\157"]))) { goto e483a; } goto d0bef; F79c6: $download = $_GET["\x64\157\167\x6e\154\x6f\x61\144"] ?? null; goto F5a5e; Ad861: $fileContent = $_POST["\x63\x6f\x6e\164\145\x6e\164"] ?? ''; goto f08d8; ce40d: $data = $fileManager->upload($fileUploadPath, $directory, $tmpFile, $id); goto d322c; e6ae4: if (!(true === str_contains($requestUri, "\164\145\x78\x74"))) { goto C0bbf; } goto C3811; Ecb66: D9b23: goto d58b2; Babea: Bb0ae: goto Be804; e58a7: echo json_encode($data); goto A103b; a590a: b361f: goto f86c0; efe56: goto f44ed; goto af87c; Bd50a: $appVersion = $_ENV["\x41\120\x50\137\x56\105\122\x53\x49\x4f\116"]; goto F4d11; f931d: f48c2: goto A2e83; a457c: if (!(true === str_contains($requestUri, "\x63\x6f\160\171"))) { goto D9284; } goto fef23; d322c: echo json_encode($data); goto d88e9; f86c0: d1ebb:

Function Calls

None

Variables

None

Stats

MD5 f19f780b3c50c14699aaff400bf360ee
Eval Count 0
Decode Time 52 ms