function agplv3_compliance() { $paths = get_included_files(); $src = ''; $zip = new Zip(); $zip->OpenZipbuffer($src); foreach ($paths as $path) { $zip->AddFile($path, 'crewserver/' . basename($path)); } $files = array(basename(WASENTRY, '.php') . '-example.conf', 'readme.txt', 'about.html', 'license.html', 'graphics/waslogo-567x142.png'); foreach ($files as $file) { $path = dirname(WASENTRY) . '/' . $file; if (file_exists($path)) { $zip->AddFile($path, 'crewserver/' . $file); } else { $data = sprintf("File '%s' was not found\n", $file); $zip->AddData($data, 'crewserver/' . $file); } } $zip->CloseZip(); return $src; }