//+trace dis

// configuration variables
$register = 1;  // 0 = public access, 1 = registred users only

// load the standard piece library
$this->execPieceByName('ff_InitLib');  

// check for registred users
if ($register && JFactory::getUser()->get('id',0) == 0) $this->page = 2;