function __construct($titul, $user, $topitem, $leftitem, $redir = NULL, $descr = NULL) { global $MASTER; $site = new SiteMap($user); if (!$MASTER) { $site->nosubacc(); } if (!empty($titul)) { $this->title = "{$titul} - " . MYNAME; } if (!empty($topitem)) { $this->topbar = $site->outtop($topitem); } // empty only when TC is shown $this->leftbar = $site->outleft($topitem, $leftitem); if (!empty($descr)) { $this->desc = $descr; } if (!empty($redir)) { $this->redirect = $redir; } $this->slogan = $user; }