authorize bots to read sitemap
[wikifarm.git] / install / cookbook / farmadmin.php
CommitLineData
b1b3c24c
DB
1<?php
2
3// vérification de l'autorisation
4function 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?>