Lines Matching full:zip
46 * This function exports page and timestamp and makes it available as ZIP download.
76 $filename = "GuardTime_Timestamp_Attic_{$filerev}.zip";
79 $zip = new ZipArchive();
81 $result = $zip->open($filetemp, ZipArchive::CREATE);
84 die("Unable to create zip file: {$filetemp}, error code: {$result}");
87 $zip->addFile($pagefile,$filerev);
88 $zip->addFile($pagefile.".gtts",$filerev.".gtts");
89 $zip->addfromString("README.txt",$GT_README);
90 $zip->close();
95 die("Unable to open ZIP file: {$filetemp}");
98 header("Content-Type: archive/zip");
102 'Content-Type' => 'archive/zip',
103 'Content-Disposition' => "attachment; filename={$filename}.zip"
105 p_set_metadata($ID,array('format' => array('zip' => $headers) ));