global $globals;
if ($globals->asso()) {
if ($p = strpos($this->path, '/')) {
- $this->ns = substr($this->path, 0, $p);
+ $this->ns = substr($this->path, 0, $p).'/';
$this->path = 'grp'.substr($this->path, $p);
} else {
$this->ns = $this->path.'/';
}
}
}
+
+ function find_hook()
+ {
+ $ans = parent::find_hook();
+ if ($ans && $this->ns) {
+ $this->path = $this->ns . substr($this->path, 4);
+ }
+ return $ans;
+ }
+
+ function force_login(&$page)
+ {
+ http_redirect(S::v('loginX'));
+ }
}
?>