PlatalPage($tpl, $type); } // }}} // {{{ function run() function run() { global $globals; if ($this->_page_type != NO_SKIN) { $this->assign('menu', $globals->menu->menu()); } $this->_run('skin/'.Session::get('skin')); } // }}} } // }}} // {{{ class XOrgAuth /** Une classe pour les pages nécessitant l'authentification. * (equivalent de controlauthentification.inc.php) */ class XorgAuth extends XorgPage { // {{{ function XorgAuth() function XorgAuth($tpl, $type=SKINNED) { $this->XorgPage($tpl, $type); } // }}} // {{{ function doAuth() function doAuth() { $_SESSION['session']->doAuth($this); } // }}} } // }}} // {{{ class XorgCookie /** Une classe pour les pages nécessitant l'authentification permanente. * (equivalent de controlpermanent.inc.php) */ class XorgCookie extends XorgPage { // {{{ function XorgCookie() function XorgCookie($tpl, $type=SKINNED) { $this->XorgPage($tpl, $type); } // }}} // {{{ function doAuth() function doAuth() { $_SESSION['session']->doAuthCookie($this); } // }}} } // }}} // {{{ class XorgAdmin /** Une classe pour les pages réservées aux admins (authentifiés!). */ class XorgAdmin extends XorgAuth { // {{{ function XorgAdmin() function XorgAdmin($tpl, $type=SKINNED) { $this->XorgAuth($tpl, $type); check_perms(); } // }}} } // }}} // vim:set et sw=4 sts=4 sws=4 foldmethod=marker: ?>