Rev 342 Rev 508
Line 70... Line 70...
70   70  
71 // Give the file to the browser 71 // Give the file to the browser
72   72  
73 if ($fp = @fopen("$arcname.zip","rb")) 73 if ($fp = @fopen("$arcname.zip","rb"))
74 { 74 {
75 header("Content-Type: application/x-gzip"); 75 header("Content-Type: application/zip");
76 header("Content-Length: $size"); 76 header("Content-Length: $size");
77 header("Content-Disposition: attachment; filename=\"".$rep->name."-$arcname.zip\""); 77 header("Content-Disposition: attachment; filename=\"".$rep->name."-$arcname.zip\"");
78 // Use a loop to transfer the data 4KB at a time. 78 // Use a loop to transfer the data 4KB at a time.
79 while(!feof($fp)) 79 while(!feof($fp))
80 { 80 {