Sorry about the missing pieces, they are from the API, CleanupAds is just a routine to cleanup variables, here is the rest of the code...
blnDoFatalError is an internal error handler, just replace it with your own...
when you look at the security on the folder, it won't be human readable, it...