if (!isset($action) or $action=="") { $action="stats"; }
// Check if user is logged in if (!$bbuserinfo['userid']) show_nopermission();