X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet.inc.php;h=d0d1aefbdcd6f89138b9e4113d62ca17d20bc3a3;hb=ced003168bf3b75a29313c727fe28d65cb03057c;hp=aea2c122f1f5bd90a0de29411cd250ae2fc719cf;hpb=cab0809050d58f8484608e91f7555ebd69dcb451;p=platal.git diff --git a/include/xnet.inc.php b/include/xnet.inc.php index aea2c12..d0d1aef 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_identification_page() -{ - global $page; - - new_page(''); - $page->doAuth(true); - $page->useMenu(); -} - -// {{{ function new_group_page() - -function new_group_page($tpl_name) -{ - global $page, $globals; - - new_page($tpl_name); - - $page->doAuth(true); - 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')); - } -} - -// }}} -// {{{ function new_nonhtml_page() - -function new_nonhtml_page($tpl_name) -{ - global $page, $globals; - - new_page($tpl_name, NO_SKIN); - - $page->doAuth(true); - 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')); -} - -// }}} -// 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: ?>