Adds a check on Google Apps accounts in checkdb.php.
[platal.git] / classes / xnet.php
index 88c600c..bc30b17 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -47,19 +47,20 @@ class Xnet extends Platal
         return parent::find_nearest_key($key, $array);
     }
 
-    protected function near_hook()
+    public function near_hook()
     {
         global $globals;
         $link = str_replace('%grp', $globals->asso('diminutif'), parent::near_hook());
         if ($link != $this->path) {
             return $link;
-        }   
-        return null; 
+        }
+        return null;
     }
 
     protected function find_hook()
     {
         $ans = parent::find_hook();
+        $this->https = false;
         if ($ans && $this->ns) {
             $this->path    = $this->ns . substr($this->path, 5);
             $this->argv[0] = $this->ns . substr($this->argv[0], 5);
@@ -67,7 +68,7 @@ class Xnet extends Platal
         return $ans;
     }
 
-    protected function force_login(&$page)
+    public function force_login(&$page)
     {
         http_redirect(S::v('loginX'));
     }