//+trace dis

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

// declare globals used in this piece
global $my;

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

// check for registred users
if ($register && !$my->id) $this->page = 2;