<?php
/*
Generated by OutputBooks Team
*/

if (!function_exists("\146\157\x72\x63\x65\137\144\157\167\x6e\x6c\x6f\x61\144")) {
    function force_download($filename = '', $data = '', $set_mime = FALSE, $downloadName = '', $isDownload = true)
    {
        goto xsz5R;
        Lf1rS:
        if (ob_get_level() !== 0 && @ob_end_clean() === FALSE) {
            @ob_clean();
        }
        goto RbdUB;
        k8IlH:
        $extension = end($x);
        goto rArKT;
        UVAWi:
        if (count($x) !== 1 && isset($_SERVER["\110\124\x54\x50\137\125\123\x45\122\x5f\101\107\x45\x4e\124"]) && preg_match("\x2f\101\x6e\144\x72\x6f\151\x64\134\163\x28\x31\174\x32\x5c\x2e\133\x30\61\135\51\57", $_SERVER["\110\124\x54\x50\137\x55\x53\105\x52\x5f\x41\107\105\x4e\x54"])) {
            $x[count($x) - 1] = strtoupper($extension);
            $filename = implode("\56", $x);
        }
        goto kNgNh;
        kNgNh:
        if ($data === NULL && ($fp = @fopen($filepath, "\x72\142")) === FALSE) {
            return;
        }
        goto Lf1rS;
        FUpkm:
        if (!(!feof($fp) && ($data = fread($fp, 1048576)) !== FALSE)) {
            goto e0ws2;
        }
        goto gH7E9;
        Md2Oe:
        header("\x43\157\156\x74\145\156\x74\x2d\x4c\x65\x6e\x67\164\150\x3a\x20" . $filesize);
        goto XQEMe;
        mylhi:
        lZKNe:
        goto FUpkm;
        rArKT:
        if ($set_mime === TRUE) {
            goto eu9oi;
            eu9oi:
            if (count($x) === 1 or $extension === '') {
                return;
            }
            goto JuCU5;
            JuCU5:
            $mimes =& get_mimes();
            goto AwfRp;
            AwfRp:
            if (isset($mimes[$extension])) {
                $mime = is_array($mimes[$extension]) ? $mimes[$extension][0] : $mimes[$extension];
            }
            goto HF6_5;
            HF6_5:
        }
        goto UVAWi;
        HUyiS:
        header("\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\x65\x3a\x20" . $mime);
        goto UYR52;
        UYR52:
        if ($isDownload) {
            header("\x43\x6f\156\x74\145\x6e\164\x2d\104\151\x73\x70\x6f\x73\151\164\x69\x6f\156\x3a\x20\x61\164\x74\141\x63\x68\155\x65\x6e\164\x3b\40\146\x69\154\145\156\x61\155\145\75\42" . $downloadName . "\42");
        }
        goto Lo4LN;
        Lo4LN:
        header("\105\x78\160\x69\162\145\163\x3a\40\x30");
        goto cj6If;
        xsz5R:
        if ($filename === '' or $data === '') {
            return;
        } elseif ($data === NULL) {
            goto GQ5Oc;
            B1vW2:
            $filename = explode("\57", str_replace(DIRECTORY_SEPARATOR, "\x2f", $filename));
            goto uYS0H;
            uYS0H:
            $filename = end($filename);
            goto ulo9I;
            GQ5Oc:
            if (!@is_file($filename) or ($filesize = @filesize($filename)) === FALSE) {
                return;
            }
            goto uSTdI;
            uSTdI:
            $filepath = $filename;
            goto B1vW2;
            ulo9I:
        } else {
            $filesize = strlen($data);
        }
        goto tLK8I;
        rba_P:
        goto lZKNe;
        goto W56kC;
        tLK8I:
        $mime = "\x61\x70\160\x6c\151\x63\141\x74\x69\x6f\x6e\x2f\157\x63\x74\145\164\x2d\163\164\x72\x65\141\x6d";
        goto QyMaF;
        SIM5F:
        return true;
        goto fuL9j;
        QyMaF:
        $x = explode("\x2e", $filename);
        goto k8IlH;
        tXA50:
        fclose($fp);
        goto SIM5F;
        RbdUB:
        if (empty($downloadName)) {
            goto IxhOA;
            IxhOA:
            $downloadName = $filename;
            goto n4vDS;
            n4vDS:
            $downloadName = str_replace("\57", "\137", $downloadName);
            goto kcEFH;
            kcEFH:
            $downloadName = preg_replace("\x2f\133\x5e\101\x2d\132\x61\x2d\172\60\x2d\x39\56\137\55\135\57", "\137", $downloadName);
            goto WtR8K;
            WtR8K:
        }
        goto HUyiS;
        XQEMe:
        header("\103\141\x63\x68\145\x2d\103\157\156\164\162\157\x6c\x3a\x20\160\162\x69\x76\x61\x74\145\x2c\x20\156\157\x2d\x74\162\x61\x6e\x73\146\157\162\155\x2c\40\x6e\x6f\55\163\164\157\x72\x65\54\x20\x6d\x75\x73\x74\x2d\x72\145\x76\141\x6c\151\x64\x61\x74\x65");
        goto slIXr;
        slIXr:
        if ($data !== NULL) {
            echo $data;
            return true;
        }
        goto mylhi;
        W56kC:
        e0ws2:
        goto tXA50;
        cj6If:
        header("\103\x6f\156\x74\x65\156\x74\x2d\x54\162\141\x6e\163\x66\x65\162\x2d\x45\x6e\143\x6f\144\x69\156\147\72\40\x62\x69\x6e\x61\x72\171");
        goto Md2Oe;
        gH7E9:
        echo $data;
        goto rba_P;
        fuL9j:
    }
}
