[phpcvsview-cvs-updates] phpcvsview func_ArchiveDownload.php,1.2,1.3
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Sijis A. <si...@us...> - 2005-02-04 09:35:48
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8653 Modified Files: func_ArchiveDownload.php Log Message: - correct reference to cvsroot path Index: func_ArchiveDownload.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/func_ArchiveDownload.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func_ArchiveDownload.php 4 Feb 2005 04:44:47 -0000 1.2 --- func_ArchiveDownload.php 4 Feb 2005 09:35:31 -0000 1.3 *************** *** 93,97 **** $jobpath = $config['TempFileLocation']."/".md5(uniqid(rand(), true)); mkdir($jobpath, 0700); ! $buildpath = $jobpath."/".$config['CVSROOT']; mkdir($buildpath, 0700); $ReposFolders = explode("/", $env['mod_path']); --- 93,97 ---- $jobpath = $config['TempFileLocation']."/".md5(uniqid(rand(), true)); mkdir($jobpath, 0700); ! $buildpath = $jobpath."/".$env['CVSROOT']; mkdir($buildpath, 0700); $ReposFolders = explode("/", $env['mod_path']); *************** *** 104,117 **** // Create the tar file. ! $FileName = $jobpath."/".$config['CVSROOT'].".tar.gz"; $tar = new Archive_Tar($FileName, "gz"); $cwd = getcwd(); chdir($jobpath); ! $tar->create($config['CVSROOT']); chdir($cwd); header('Content-Type: application/x-tar'); ! header("Content-Disposition: attachment; filename=\"".$config['CVSROOT'].".tar.gz\""); ! header("Content-Length: " . filesize($FileName)); $tarfile = fopen($FileName, "rb"); --- 104,117 ---- // Create the tar file. ! $FileName = $jobpath."/".$env['CVSROOT'].".tar.gz"; $tar = new Archive_Tar($FileName, "gz"); $cwd = getcwd(); chdir($jobpath); ! $tar->create($env['CVSROOT']); chdir($cwd); header('Content-Type: application/x-tar'); ! header('Content-Disposition: attachment; filename="'.$env['CVSROOT'].'.tar.gz"'); ! header('Content-Length: ' . filesize($FileName)); $tarfile = fopen($FileName, "rb"); |