version 1.4, 2010/03/21 18:06:04
|
version 1.5, 2010/04/24 18:04:15
|
Line 104 function chgk_db_fb2($string) {
|
Line 104 function chgk_db_fb2($string) {
|
$tournament = DbPackage::newFromDb($string); |
$tournament = DbPackage::newFromDb($string); |
$tournament->getAll(); |
$tournament->getAll(); |
$xml = theme('chgk_db_fb2', $tournament); |
$xml = theme('chgk_db_fb2', $tournament); |
header("Content-Type: application/octet-stream"); |
$filename = "$string.fb2"; |
header("Content-Disposition: attachment; filename=\"$string.fb2\"\n"); |
$zipname = $filename.".zip"; |
print $xml;; |
|
|
header("Content-Type: application/octet-stream\n"); |
|
header("Content-Type: application/force-download\n"); |
|
header("Content-Type: application/download\n"); |
|
header("Content-Type: application/x-zip-compressed; name=$filename\n"); |
|
header("Content-Disposition: attachment; filename=$filename.zip \n"); |
|
chdir(file_directory_temp()); |
|
$f = fopen ($filename, "w"); |
|
fputs($f, $xml); |
|
fclose($f); |
|
system("zip $zipname $filename>/dev/null"); |
|
print passthru("cat $zipname"); |
exit; |
exit; |
#print $tournament->getFb2(); |
#print $tournament->getFb2(); |
} |
} |