$globals = new PlatalGlobals('XnetSession');
XnetSession::init();
-// {{{ function new_skinned_page()
-
-function new_skinned_page($tpl_name, $refuse_access = false)
+function new_skinned_page($tpl_name)
{
- global $page, $globals;
+ global $page;
require_once("xnet/page.inc.php");
if (!$page instanceof XnetPage) {
- $page = new XnetPage($tpl_name, $type);
+ $page = new XnetPage($tpl_name);
} else {
- $page->changeTpl($tpl_name, $type);
- }
- if ($refuse_access) {
- $page->kill("Vous n'avez pas les droits suffisants pour accéder à cette page");
+ $page->changeTpl($tpl_name);
}
}
-// }}}
-// {{{ function new_annu_page()
-
-function new_annu_page($tpl_name)
-{
- global $globals;
- new_skinned_page($tpl_name,
- !may_update()
- && (!is_member() || $globals->asso('pub') != 'public')
- && $globals->asso('cat') != 'Promotions');
-}
-
-// }}}
-
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>