I would delete all the main php files except config and reupload. I dont think your files are getting overwritten to the new ones.
example your not creating a ppperpage cookie like the code states in showgallery so somewhere either in pp-inc.php or more than likely showgallery.php your using an old file
Code:
Content visible to verified customers only.