projects
/
wikifarm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
uses perms field from auth groupex
[wikifarm.git]
/
install
/
cookbook
/
farmadmin.php
1
<
?php
2
3
// vérification de l'autorisation
4
function
is_farm_admin
()
5
{
6
global
$isFarmAdmin
;
7
if
(!
isset
(
$isFarmAdmin
)) {
8
global
$WikiIsMainField
;
9
10
$isFarmAdmin
=
$WikiIsMainField
&& (
RetrieveAuthPage
(
'Accueil.Accueil'
,
'admin'
,
false
) !==
false
);
11
}
12
return
$isFarmAdmin
;
13
}
14
?
>