projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reorder directory.enum.inc.php, add a few
[platal.git]
/
classes
/
xnet.php
diff --git
a/classes/xnet.php
b/classes/xnet.php
index
4554d25
..
b0bfe8b
100644
(file)
--- a/
classes/xnet.php
+++ b/
classes/xnet.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
7
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-21,10
+21,10
@@
class Xnet extends Platal
{
class Xnet extends Platal
{
-
function Xne
t()
+
public function __construc
t()
{
$modules = func_get_args();
{
$modules = func_get_args();
-
call_user_func_array(array(&$this, 'Platal'),
$modules);
+
parent::__construct(
$modules);
global $globals;
if ($globals->asso()) {
global $globals;
if ($globals->asso()) {
@@
-38,7
+38,7
@@
class Xnet extends Platal
}
}
}
}
-
function find_nearest_key($key,
&$array)
+
protected function find_nearest_key($key, array
&$array)
{
global $globals;
if (in_array('%grp', array_keys($array)) && $key == $globals->asso('diminutif')) {
{
global $globals;
if (in_array('%grp', array_keys($array)) && $key == $globals->asso('diminutif')) {
@@
-47,19
+47,26
@@
class Xnet extends Platal
return parent::find_nearest_key($key, $array);
}
return parent::find_nearest_key($key, $array);
}
- 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;
{
global $globals;
$link = str_replace('%grp', $globals->asso('diminutif'), parent::near_hook());
if ($link != $this->path) {
return $link;
- }
- return null;
+ }
+ return null;
+ }
+
+ public function pl_self($n = null)
+ {
+ global $globals;
+ return str_replace('%grp', $globals->asso('diminutif'), parent::pl_self($n));
}
}
- function find_hook()
+
protected
function find_hook()
{
$ans = parent::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);
if ($ans && $this->ns) {
$this->path = $this->ns . substr($this->path, 5);
$this->argv[0] = $this->ns . substr($this->argv[0], 5);
@@
-67,10
+74,11
@@
class Xnet extends Platal
return $ans;
}
return $ans;
}
-
function force_login(
&$page)
+
public function force_login(PlPage
&$page)
{
http_redirect(S::v('loginX'));
}
}
{
http_redirect(S::v('loginX'));
}
}
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
?>