Getting footer and header in an external script?

Magento 1.9

I created an external script in my root folder. It contains these lines in order to work:

require '../app/Mage.php';
Mage::app();

How can I get the header and footer? Is it possible at all?