scorm_html5_page_create($row['template_framework'], $lo_name, $xml->getLanguage()); } } else { if ($scorm == "2004") { $useflash = $export_flash && !$export_html5; lmsmanifest_2004_create($row['zipname'], $useflash, $lo_name); if ($export_flash && !$export_html5) { scorm2004_html_page_create($row['template_name'], $row['template_framework'], $rlo_file, $lo_name, $xml->getLanguage()); } else { scorm2004_html5_page_create($row['template_framework'], $lo_name, $xml->getLanguage()); } } else { if ($export_flash) { basic_html_page_create($row['template_name'], $row['template_framework'], $rlo_file, $lo_name); } if ($export_html5) { basic_html5_page_create($row['template_framework'], $lo_name); } } } /* * Add the files to the zip file, create the archive, then send it to the user */ xerte_zip_files($fullArchive, $dir_path); $zipfile->create_archive(); $zipfile->download_file($row['zipname']); /* * remove the files */ clean_up_files(); unlink($dir_path . "template.xml");
} } else { if ($scorm == "2004") { $useflash = $export_flash && !$export_html5; lmsmanifest_2004_create($row['zipname'], $useflash, $lo_name); if ($export_flash && !$export_html5) { scorm2004_html_page_create($row['template_name'], $row['template_framework'], $rlo_file, $lo_name, $xml->getLanguage()); } else { scorm2004_html5_page_create($row['template_framework'], $row['template_name'], $lo_name, $xml->getLanguage()); } } else { if ($export_flash) { basic_html_page_create($row['template_name'], $row['template_framework'], $rlo_file, $lo_name); } if ($export_html5) { basic_html5_page_create($row['template_framework'], $row['template_name'], $lo_name, $export_offline, $offline_includes); } } } /* * Add the files to the zip file, create the archive, then send it to the user */ xerte_zip_files($fullArchive, $dir_path); $zipfile->create_archive(); // This outputs http headers etc. $zipfile->download_file($row['zipname']); _debug("Zip file errors? " . implode(',', $zipfile->error)); /* * remove the files */ clean_up_files();