I added the following line to wap_top.php as otherwise I was presented with problems when it came to filenames:
require('includes/filenames.php');

The download is just the updated wap_top.php file in includes.

More...