exists()) { include 'auth.php'; exit; } install_sape(); $xslFile = CORE.'xml/chapter.xsl'; $params = array( 'MODE'=>personCan($person, $mode) ? $mode : 'restricted', 'UID'=>$person->getAttribute('uid'), 'NAME'=>$person->getAttribute('name'), 'ADMIN'=>isAdmin($person), 'CANEDIT'=>personCanEdit($person), 'CANVIEW'=>personCanView($person)); echo $chapter->transform($xslFile, $params); flush_sape(); ob_end_flush(); ?>