Small fix
[platal.git] / include / xnet.inc.php
index 836efe4..9b8679c 100644 (file)
  ***************************************************************************/
 
 require_once('platal.inc.php');
-require_once('xnet/globals.inc.php');
+require_once('globals.inc.php');
 require_once('xnet/session.inc.php');
-XnetGlobals::init();
-XnetGlobals::setlocale();
+$globals = new PlatalGlobals('XnetSession');
 XnetSession::init();
 
 // {{{ function new_skinned_page()
@@ -42,16 +41,6 @@ function new_skinned_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)
@@ -60,8 +49,7 @@ function new_group_page($tpl_name)
 
     new_page($tpl_name);
 
-    $page->doAuth(true);
-    if (!is_member() && !has_perms()) {
+    if (!is_member() && !S::has_perms()) {
         $page->kill("You have not sufficient credentials");
     }
 
@@ -107,24 +95,5 @@ function new_admin_page($tpl_name)
 }
 
 // }}}
-// {{{ 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() && !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:
 ?>