Dumb implementation of viewfiles.php. Do not look at code, please.