echo $file['contents'];
break;
case 'image' == $_REQUEST['module']:
+ # The difference between "image" and "download" ways to serve the same
+ # picture file is that the former is used in <IMG SRC=...> construct,
+ # and the latter is accessed as a standalone URL and can reply with any
+ # Content-type. Hence "image" module indicates failures with internally
+ # built images, and "download" can return a full-fledged "permission
+ # denied" or "exception" HTML page instead of the file requested.
require_once 'inc/init.php'; // for authentication check
// 'progressbar's never change, attempt an IMS shortcut before loading init.php
if (@$_REQUEST['img'] == 'progressbar')