I was thinking an optional parameter for the secure_download function that defaults to "attachment" - or whatever, maybe a constant. This way, you could use the function to send other files as inline, for example text files. What do you think?
Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Win, Linux/1.3.34/4.0.26, 5.0.19/4.3.10, 5.1.2, 8.1.4(PostgresSQL)/188.8.131.52, CVS