示例#1
0
 public function download()
 {
     $project = $_GET['idProject'];
     $facade = new SystemFacade($project);
     $root = $facade->getFileSystem()->getRoot()->getID();
     echo $facade->makeZipFromDir($root);
 }
示例#2
0
 public function download()
 {
     $dirCrypted = $_GET['file'];
     $project = $_GET['project'];
     $facade = new SystemFacade($project);
     $dir = $facade->decrypt($dirCrypted);
     echo $facade->makeZipFromDir($dir);
 }
示例#3
0
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$_GRUNT_PATH = 1;
require_once '../GruntFileSystem.php';
$project = $_GET['idProject'];
$facade = new SystemFacade($project);
$root = $facade->getFileSystem()->getRoot()->getID();
echo $facade->makeZipFromDir($root);
示例#4
0
<?php

$_GRUNT_PATH = 1;
require_once '../GruntFileSystem.php';
$dirCrypted = $_GET['file'];
$project = $_GET['project'];
$facade = new SystemFacade($project);
$dir = $facade->decrypt($dirCrypted);
echo $facade->makeZipFromDir($dir);