X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.inc.php;h=cb1fb377c1e14bbf9c9c03612aa2f40a47d63ec3;hb=f5bfe967e960befe2f7752d994ecf3e9b03b36be;hp=95a7bb9ef08c249728bf0d3b82677b46173cfbd8;hpb=0337d704b62718d7c77106c0e4c4e26fb02beacf;p=platal.git diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 95a7bb9..cb1fb37 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -18,7 +18,6 @@ * Foundation, Inc., * * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ - require_once('platal.inc.php'); require_once('xorg/globals.inc.php'); require_once('xorg/session.inc.php'); @@ -32,6 +31,8 @@ function _new_page($type, $tpl_name, $min_auth, $admin=false) { global $page,$globals; require_once("xorg/page.inc.php"); + if ($min_auth == AUTH_PUBLIC && Env::get('force_login') == '1') + $min_auth = AUTH_COOKIE; if (!empty($admin)) { $page = new XorgAdmin($tpl_name, $type); } else switch($min_auth) { @@ -51,6 +52,10 @@ function _new_page($type, $tpl_name, $min_auth, $admin=false) } // }}} +function new_identification_page() +{ + _new_page(SKINNED, '', AUTH_MDP); +} // {{{ function new_skinned_page() function new_skinned_page($tpl_name, $min_auth)