38,6 → 38,7 |
$info = array(); |
$contenu = ''; |
|
if (! $this->etreFluxAdmin() || $this->authentifier()) { |
// Pré traitement des paramêtres |
$pour_bdd = false; |
$p = $this->traiterParametres(array('service', 'format'), $params, $pour_bdd); |
77,6 → 78,7 |
} else { |
$this->messages[] = "Le service CEL Syndication Observation nécessite d'indiquer en premier paramètre le type d'information demandé."; |
} |
} |
|
// Envoie sur la sortie standard |
$encodage = 'utf-8'; |
204,8 → 206,6 |
} |
|
private function getServicePourAdmin() { |
$contenu = ''; |
if ($this->authentifier()) { |
// Construction de la requête |
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' * '. |
'FROM cel_inventory '. |
216,7 → 216,6 |
|
// Création du contenu |
$contenu = $this->executerService($elements); |
} |
return $contenu; |
} |
|
388,7 → 387,7 |
} |
|
private function etreFluxAdmin() { |
return ($this->service == 'pour-admin') ? true : false; |
return ($this->service == 'pour-admin' || $_GET['admin'] == '1') ? true : false; |
} |
|
private function creerUrlService() { |