parameter['variant']; if (!$SITE->modules->ProjectLawful()->variantExists($variant)) { $FRAME_OPTIONS->setForced404('epub file not found'); return; } $SITE->modules->ProjectLawful()->insertDownload($variant); $FRAME_OPTIONS->setForcedRedirect('/data/projectlawful/project-lawful-' . $variant . '.epub');