Update appheader.php and appfooter.php

Changed the relative paths
Added apppublic.php