/* Decoded by unphp.net */
Local"; goto FXG7D; v3XxM: require "header.php"; goto Bj_3p; eskF0: function getAccessToken() { goto b8AiK; ymcHJ: pDHT4: goto cIdpp; b8AiK: if (!file_exists("token.json")) { goto pDHT4; } goto gB9Nz; cIdpp: return null; goto G4rPy; BaLcH: return $tokenData; goto ymcHJ; gB9Nz: $tokenData = json_decode(file_get_contents("token.json"), true); goto BaLcH; G4rPy: } goto lXfVd; dS2aC: I1UMz: goto G3b3u; lXfVd: function getFoldersList($service) { try { goto K7cnn; K7cnn: $results = $service->files->listFiles(array("q" => 'mimeType="application/vnd.google-apps.folder"')); goto kwpPc; EJyWA: foreach ($results->getFiles() as $file) { goto Dz2Aw; Dz2Aw: $folder = array("id" => $file->getId(), "name" => $file->getName()); goto qUPcp; bcbaW: eWlWb: goto Tsy64; qUPcp: $folders[] = $folder; goto bcbaW; Tsy64: } goto VJW71; XwV_U: if (!(count($results->getFiles()) > 0)) { goto ntyXj; } goto EJyWA; kwpPc: $folders = array(); goto XwV_U; VJW71: DROa_: goto AN3n3; AN3n3: ntyXj: goto Qbidr; Qbidr: return $folders; goto iW_wg; iW_wg: } catch (Google_Service_Exception $e) { error_log("Error retrieving folders from Google Drive: " . $e->getMessage()); return []; } } goto YqcHq; BadLg: echo '
'; goto DCQCo; jBDmc: EU27Z: goto ESU47; TXD0T: X2NDC: goto ID8sh; qLAZA: if (!($drive === "checked")) { goto X2NDC; } goto LZbhF; VLoh0: foreach ($folders as $folder) { echo '"; IuF4i: } goto IJ9p8; UPO5k: if (!isset($_POST["grab_info"])) { goto fsSPa; } goto eB900; eywEd: $tokenData = getAccessToken(); goto dR1mc; dR1mc: if (!isset($tokenData["refresh_token"])) { goto ZfVGd; } goto m8hz7; i20U6: goto RfQcO; goto UoXVL; o2QQ2: $folders = getFoldersList($driveService); goto ySZns; yw0oq: $directories = array_filter(glob("*", GLOB_ONLYDIR), function ($directory) { return !in_array($directory, ["assets", "vendor"]); }); goto PQ2ru; PQ2ru: foreach ($directories as $key => $directory) { goto YBbGn; YBbGn: $selected = $key === 0 ? "selected" : ''; goto QLWGa; QLWGa: echo ""; goto k6Mfb; k6Mfb: gAEpF: goto ZEVE2; ZEVE2: } goto s4BoK; NWqRl: fsSPa: goto w5m85; E56Bq: echo "
\xa