{site}.inc.php is the base for all jobs.
[platal.git] / include / xorg / session.inc.php
index 6520c44..e9b98b7 100644 (file)
@@ -23,6 +23,10 @@ require_once 'xorg.misc.inc.php';
 
 class XorgSession
 {
+    public function __construct() {
+        XorgSession::init();
+    }
+
     // {{{ public static function init
 
     public static function init()
@@ -180,7 +184,7 @@ class XorgSession
 
     public static function &make_perms($perm)
     {
-        $flags = new FlagSet();
+        $flags = new PlFlagSet();
         if ($perm == 'disabled' || $perm == 'ext') {
             return $flags;
         }
@@ -286,12 +290,11 @@ function start_connexion ($uid, $identified)
         if (check_ip('ban')) {
             send_warning_mail($mail_subject);
             $_SESSION = array();
-            $_SESSION['perms'] = new FlagSet();
+            $_SESSION['perms'] = new PlFlagSet();
             global $page;
             $newpage = false;
             if (!$page) {
-                require_once 'xorg.inc.php';
-                new_skinned_page('platal/index.tpl');
+                $page =& Platal::page();
                 $newpage = true;
             }
             $page->trigError("Une erreur est survenue lors de la procédure d'authentification. "