X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet.inc.php;h=a2d1c22c5855289cd5f31c75b1987eb4e3c8a245;hb=a392390935dc54af4523011a9c3d69ceeda35f2c;hp=6b589065fd2f45cdc9f788941277322aa6372160;hpb=ea6398d17ff92793b0a76d6fffc88147bb40a203;p=platal.git diff --git a/include/xnet.inc.php b/include/xnet.inc.php index 6b58906..a2d1c22 100644 --- a/include/xnet.inc.php +++ b/include/xnet.inc.php @@ -1,6 +1,6 @@ assign('xorg_tpl', $tpl_name); -} - -function new_skinned_page($tpl_name) -{ - return new_page($tpl_name); -} - -// }}} -// {{{ function new_group_page() - -function new_group_page($tpl_name) -{ - global $page, $globals; - - new_page($tpl_name); - - if (!is_member() && !S::has_perms()) { - $page->kill("You have not sufficient credentials"); - } - - $page->useMenu(); - $page->assign('asso', $globals->asso()); - $page->setType($globals->asso('cat')); -} - -// }}} -// {{{ function new_groupadmin_page() - -function new_groupadmin_page($tpl_name) -{ - global $page, $globals; - - new_page($tpl_name); - - if (!may_update()) { - $page->kill("You have not sufficient credentials"); - } - - $page->useMenu(); - $page->assign('asso', $globals->asso()); - $page->setType($globals->asso('cat')); -} - -// }}} -// {{{ function new_admin_page() - -function new_admin_page($tpl_name) -{ - global $page, $globals; - - new_page($tpl_name); - - check_perms(); - - $page->useMenu(); - if ($globals->asso('cat')) { - $page->assign('asso', $globals->asso()); - $page->setType($globals->asso('cat')); - } -} - -// }}} -// 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: ?>