'."\n"; echo ''."\n"; echo ' '."\n"; echo ''."\n"; echo '
'."\n"; echo '
'."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo '
'.$TbMsg['DOWNLOADS'].':
'."\n"; echo '
'."\n"; echo '
'."\n"; echo ''."\n"; } // Change again to source directory. chdir($oldpwd); // Send a file. function sendFile($file) { // Check if file exists in current directory and it isn't this file. if (file_exists($file) and strpos($file,"/") === false and $file !== basename(__FILE__)) { $file_info = apache_lookup_uri($file); header('Content-Type: ' . $file_info->content_type); header('Content-Length: ' . filesize($file)); header('Content-Disposition: attachment; filename="' . $file . '"'); virtual($file); } } // Warning: Don't left any character outside PHP code. ?>