Lines Matching refs:animal
49 /** @var string|false The current animal, false for farmer */
50 protected $animal = false;
51 /** @var bool true if an animal was requested but was not found */
53 /** @var bool true if the current animal was requested by host */
60 * DOKU_CONF depending on the requested animal
69 // animal?
73 define('DOKU_FARM_ANIMAL', $this->animal);
74 if ($this->animal) {
75 define('DOKU_CONF', DOKU_FARMDIR . $this->animal . '/conf/');
97 return $this->animal;
134 * Detect the current animal
136 * Sets internal members $animal, $notfound and $hostbased
145 // check if animal was set via rewrite parameter
146 $animal = '';
147 if (isset($_GET['animal'])) {
148 $animal = $_GET['animal'];
150 unset($_GET['animal']);
153 if (isset($params['animal'])) unset($params['animal']);
156 // get animal from CLI parameter
157 if ('cli' == PHP_SAPI && isset($_SERVER['animal'])) $animal = $_SERVER['animal'];
158 if ($animal) {
159 // check that $animal is a string and just a directory name and not a path
160 if (!is_string($animal) || strpbrk($animal, '\\/') !== false) {
164 $animal = strtolower($animal);
166 // check if animal exists
167 if (is_dir("$farmdir/$animal/conf")) {
168 $this->animal = $animal;
187 foreach ($possible as $animal) {
188 if (is_dir("$farmdir/$animal/conf/")) {
189 $this->animal = $animal;
199 * Return a list of possible animal names for the given host
330 if (!$this->animal) return;