Added a lot of PHP to all pages