-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) {
- case AUTH_PUBLIC:
- $page = new XorgPage($tpl_name, $type);
- break;
-
- case AUTH_COOKIE:
- $page = new XorgCookie($tpl_name, $type);
- break;
+require_once dirname(dirname(__FILE__)) . '/core/include/platal.inc.php';
+require_once 'security.inc.php';
+require_once 'globals.inc.php';
+require_once 'xorg/session.inc.php';