Line 60... |
Line 60... |
60 |
if (empty($arcname)) |
60 |
if (empty($arcname)) |
61 |
$arcname = $rep->name; |
61 |
$arcname = $rep->name; |
62 |
|
62 |
|
63 |
$svnrep->exportDirectory($path, $tmpname.DIRECTORY_SEPARATOR.$arcname, $rev); |
63 |
$svnrep->exportDirectory($path, $tmpname.DIRECTORY_SEPARATOR.$arcname, $rev); |
64 |
|
64 |
|
65 |
// Create the tar file |
65 |
// ZIP it up |
66 |
chdir($tmpname); |
66 |
chdir($tmpname); |
67 |
//!!!KAKL exec($config->tar." -cf ".quote("$arcname.tar")." ".quote($arcname)); |
- |
|
68 |
exec("zip -r ".quote("$arcname")." ."); |
67 |
exec("zip -r ".quote("$arcname")." ."); |
69 |
|
68 |
|
70 |
// ZIP it up |
- |
|
71 |
//!!!KAKL exec($config->gzip." ".quote("$arcname.tar")); |
- |
|
72 |
//!!!KAKL $size = filesize("$arcname.tar.gz"); |
- |
|
73 |
$size = filesize("$arcname.zip"); |
69 |
$size = filesize("$arcname.zip"); |
74 |
|
70 |
|
75 |
// Give the file to the browser |
71 |
// Give the file to the browser |
76 |
|
72 |
|
77 |
if ($fp = @fopen("$arcname.zip","rb")) |
73 |
if ($fp = @fopen("$arcname.zip","rb")) |