X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet.inc.php;h=8e131532b24616b35fd98da8e7bf0b4311f0d9ae;hb=7674ad0547292059134711708eb3068150f47054;hp=b31c15ebeb14d4e916b86561f9a292e6bb6718f8;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/include/xnet.inc.php b/include/xnet.inc.php index b31c15e..8e13153 100644 --- a/include/xnet.inc.php +++ b/include/xnet.inc.php @@ -1,6 +1,6 @@ assign('xorg_tpl', $tpl_name); -} - -// }}} -function new_identification_page() +function new_skinned_page($tpl_name) { - new_page('', AUTH_MDP); global $page; - $page->useMenu(); -} - -// {{{ function new_group_page() - -function new_group_page($tpl_name) -{ - global $page,$globals; require_once("xnet/page.inc.php"); - $page = new XnetGroupPage($tpl_name); - $page->assign('xorg_tpl', $tpl_name); -} - -// }}} -// {{{ function new_groupadmin_page() - -function new_groupadmin_page($tpl_name) -{ - global $page,$globals; - require_once("xnet/page.inc.php"); - $page = new XnetGroupAdmin($tpl_name); - $page->assign('xorg_tpl', $tpl_name); -} - -// }}} -// {{{ function new_admin_page() - -function new_admin_page($tpl_name) -{ - global $page,$globals; - require_once("xnet/page.inc.php"); - $page = new XnetAdmin($tpl_name); - $page->assign('xorg_tpl', $tpl_name); -} - -// }}} -// {{{ function new_nonhtml_page() - -function new_nonhtml_page($tpl_name) -{ - global $page, $globals; - require_once("xnet/page.inc.php"); - $page = new XnetGroupPage($tpl_name, NO_SKIN); - $page->assign('xorg_tpl', $tpl_name); + if (!$page instanceof XnetPage) { + $page = new XnetPage($tpl_name); + } else { + $page->changeTpl($tpl_name); + } } -// }}} -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: ?>