X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet.inc.php;h=d2104e02fd7d1e7d2a79e50a26da25fd7babca98;hb=1490093c909c086ce8eba3c0f5c24b62ef20cfb3;hp=ce3bf439a2d715afaea252e1d2efc4a72682c48c;hpb=0df3edb9fd85fb750c47cee19a3a6b66f370cc97;p=platal.git diff --git a/include/xnet.inc.php b/include/xnet.inc.php index ce3bf43..d2104e0 100644 --- a/include/xnet.inc.php +++ b/include/xnet.inc.php @@ -1,6 +1,6 @@ changeTpl($tpl_name, $type); + } + if ($refuse_access) { + $page->kill("Vous n'avez pas les droits suffisants pour accéder à cette page"); } - $page->assign('xorg_tpl', $tpl_name); -} - -// }}} -function new_identification_page() -{ - 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_annu_page() -function new_admin_page($tpl_name) +function new_annu_page($tpl_name) { - global $page,$globals; - require_once("xnet/page.inc.php"); - $page = new XnetAdmin($tpl_name); - $page->assign('xorg_tpl', $tpl_name); + global $globals; + new_skinned_page($tpl_name, + !may_update() + && (!is_member() || $globals->asso('pub') != 'public') + && $globals->asso('cat') != 'Promotions'); } // }}} -// {{{ 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); -} - -// }}} -// 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: ?>