$currpage = "index.php"; function head() { ?> } function content() { ?> include "db.php"; if ( isset($curUser)) { if ( $curUser->getToken() ) { print ''; ?> } include "template.php"; ?>