File "Reader.php"

Full Path: /home2/sdektunc/cepali.edu.mx/wp-content/plugins/smart-slider-3/Nextend/Framework/Misc/Zip/Reader.php
File size: 441 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Nextend\Framework\Misc\Zip;

use Nextend\Framework\Misc\Zip\Reader\Custom;
use Nextend\Framework\Misc\Zip\Reader\ZipExtension;

class Reader {

    public static function read($path) {

        if (class_exists('ZipArchive') && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
            $reader = new ZipExtension();
        } else {
            $reader = new Custom();
        }

        return $reader->read($path);
    }
}