$codes[$href] = $h5ai->getHttpCode($href); } } return $codes; } $hrefs = preg_split("/;/", $hrefs); $codes = getHttpCodes($h5ai, $hrefs); echo count($codes) === 0 ? "{}" : json_encode($codes); } else { if ($action === "thumb") { fail(0, "thumbs are disabled", !$options["showThumbs"]); list($srcAbsHref, $width, $height, $mode) = checkKeys(array("href", "width", "height", "mode")); require_once "inc/Thumbnail.php"; require_once "inc/Image.php"; $srcAbsPath = $h5ai->getDocRoot() . rawurldecode($srcAbsHref); if (!Thumbnail::isUsable()) { Image::showImage($srcAbsPath); exit; } $thumbnail = new Thumbnail($h5ai, $srcAbsHref, $mode, $width, $height); $thumbnail->create(1); if (file_exists($thumbnail->getPath())) { Image::showImage($thumbnail->getPath()); } else { $image = new Image(); $image->setSource($srcAbsPath); $image->thumb($mode, $width, $height); $image->showDest(); } } else { if ($action === "tree") {