foreach ($USER->filelist as $file) {
$files[] = "$basedir/$file";
}
- include_once('../lib/pclzip/pclzip.lib.php');
+ include_once("$CFG->libdir/pclzip/pclzip.lib.php");
$archive = new PclZip("$basedir/$wdir/$name");
if (($list = $archive->create($files,'',"$basedir/$wdir/")) == 0) {
error($archive->errorInfo(true));
$file = basename($file);
if (empty($CFG->unzip)) { // Use built-in php-based unzip function
- include_once('../lib/pclzip/pclzip.lib.php');
+ include_once("$CFG->libdir/pclzip/pclzip.lib.php");
$archive = new PclZip("$basedir/$wdir/$file");
if (!$list = $archive->extract("$basedir/$wdir")) {
error($archive->errorInfo(true));
echo "<P ALIGN=CENTER>$strlistfiles:</P>";
$file = basename($file);
- include_once('../lib/pclzip/pclzip.lib.php');
+ include_once("$CFG->libdir/pclzip/pclzip.lib.php");
$archive = new PclZip("$basedir/$wdir/$file");
if (!$list = $archive->listContent("$basedir/$wdir")) {
notify($archive->errorInfo(true));