<?php chdir('/var/www/forums'); define('NO_REGISTER_GLOBALS', 1); $phrasegroups = array(); $actiontemplates = array('lostpw' => array('lostpw')); require_once('./global.php'); require_once('./includes/functions_login.php'); if ($bbuserinfo['userid']) { readfile('your_file'); } else { print_no_permission(); } ?>