destroy_session($_SERVER['REMOTE_ADDR']); $user->logoutUser(); } else { $user->logoutUser(); } $smarty->assign("CONTENT", "default.tpl"); ?>