addFile (implode ('', file ($File2zip)), $File2name); } } // Add the extra files foreach ($config['Download']['ZIP']['Others'] as $File2zip) { if (is_file (db_getconfval("publicdown")."/". $File2zip)) $zipData->addFile (implode ('', file (db_getconfval("publicdown")."/". $File2zip)), $File2zip); } // Flush the ZIP file to the client html_download_data ($zipData -> file (), openssl_hex_serial ($GETidDEC) .'.zip'); //echo " file () target=_blank>Direktlink zur Datei } else { // echo "ID: " .$GETidDEC[0] . "Ext: " .$sExt; if (($sCertificateFile = openssl_get_filename ($GETidDEC, $sExt)) == '') html_error ("Can't find requested file..FU"); // Cheat the extension if ($sExt == '.pem') $sExt = '.crt'; // Download html_download ($sCertificateFile, openssl_hex_serial ($GETidDEC) . $sExt); //html_dump ('$GLOBALS', $GLOBALS); } ?>