コード例 #1
0
    protected $ver = '0.1.2';
    /* version */
    protected $lic = 'Try';
    /* license */
    /**
     * 
     * @param int $lvl -- obfuscation:
     *                      0|false - no
     *                      1|true - JS
     * @param array $opt -- options
     */
    public function __construct($lvl = 0, $opt = [])
    {
        parent::__construct((int) $lvl, (array) $opt);
    }
    /**
     * foreign action
     */
    public static function Packer()
    {
        $obj = new PackApp(-1);
        $rsp = str_replace("\n", '<br>', $obj->Request());
        // display in html
        header("Content-Type: text/html; charset=utf-8");
        return $rsp;
    }
}
if (count(get_included_files()) == 1) {
    echo PackApp::Packer();
    //called outside
}