Home
last modified time | relevance | path

Searched refs:animal (Results 1 – 25 of 57) sorted by relevance

123

/plugin/farmsync/_test/mock/
H A DFarmSyncUtil.php17 * @param string $animal
21 public function setPageExists($animal, $page, $exists) { argument
22 $this->remoteData[$animal][$page]['exists'] = $exists;
25 public function setAnimalDataDir($animal, $dir) { argument
26 $this->remoteData[$animal]['datadir'] = $dir;
29 public function getAnimalDataDir($animal) { argument
30 …return isset($this->remoteData[$animal]['datadir']) ? $this->remoteData[$animal]['datadir'] : '/va…
35 …set($this->remoteData[$animal][$page]['exists']) ? $this->remoteData[$animal][$page]['exists'] : p…
57 'animal' => $animal,
70 …set($this->remoteData[$animal][$page]['mtime']) ? $this->remoteData[$animal][$page]['mtime'] : par…
[all …]
/plugin/farmer/
H A Dhelper.php18 * Returns the name of the current animal if any, false otherwise
40 * Was the current animal requested by host?
51 * Was an animal requested that could not be found?
62 * Guess the URL for an animal
64 * @param $animal argument
67 public function getAnimalURL($animal)
71 if (strpos($animal, '.') !== false) {
72 return 'http://' . $animal;
74 return 'http://' . $animal . '.' . $config['base']['basedomain'];
76 return DOKU_URL . '!' . $animal
216 getAnimalPluginLocalStates($animal) global() argument
262 getAnimalPluginRealState($animal) global() argument
295 setPluginState($plugin, $animal, $state) global() argument
319 writePluginConf($plugins, $animal) global() argument
[all...]
H A DDokuWikiFarmCore.php49 /** @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;
48 protected $animal = false; global() variable in DokuWikiFarmCore
[all...]
/plugin/farmsync/meta/
H A DFarmSyncUtil.php46 * @param string $animal
53 public function getAnimalDir($animal) { argument
113 * @param string $animal
149 * @param string $animal
161 * @param string $animal
173 * @param string $animal
197 * @param string $animal the animal
220 * @param string $animal
236 * @param string $animal
290 * @param string $animal
[all …]
H A DUpdateResults.php30 * @param string $animal the animal that was updated
32 function __construct($item, $animal) { argument
34 $this->_animal = $animal;
87 * @param string $animal
89 public function setAnimal($animal) { argument
90 $this->_animal = $animal;
H A DEntityUpdates.php41 public function getNumberOfAnimalConflicts($animal) { argument
42 return count($this->results[$animal]['failed']);
45 public function printAnimalResultHTML($animal) { argument
48 if (!empty($this->results[$animal]['failed'])) {
51 foreach ($this->results[$animal]['failed'] as $result) {
59 if (!empty($this->results[$animal]['passed'])) {
63 foreach ($this->results[$animal]['passed'] as $result) {
/plugin/farm/
H A Dinfos.animal.class.php15 var $animal = null; variable in dokuwiki_farm_animal_infos
20 function __construct($animal = null) { argument
22 if(dokuwiki_farm_animal::exists($animal->getName())) $this->animal = $animal;
23 }elseif(is_string($animal)) {
24 if(dokuwiki_farm_animal::exists($animal)) $this->animal = new dokuwiki_farm_animal($animal);
120 if(!$this->animal) return 0;
196 if(!$this->animal) return 0;
245 if(!$this->animal) return 0;
264 return $this->animal->getStatus();
300 if(!$this->animal) return 0;
[all …]
H A Danimalmanager.class.php18 private $animal = null; variable in dokuwiki_farm_animalmanager
95 if(!$this->animal->setMetadata('status', $s)) {
103 if(!$this->animal->setMetadata('lockstate', $s)) {
181 }elseif($this->animal->delete()) {
183 $this->animal = null;
198 if($this->animal) {
216 if($displaydefault && $this->animal) {
228 $status = $this->animal->getInfos()->getStatus();
272 $users = $this->animal->getUsers();
287 foreach($this->animal->getUsers() as $l => $u) {
[all …]
H A Daction.php24 private $animal = null; variable in action_plugin_farm
85 $animal = new dokuwiki_farm_animal(DOKU_FARM_ANIMAL, null);
91 if($animal->getInfos()->getSize() >= (int)$farmconf['animalmaxsize']) $toobig = true;
111 $animal = new dokuwiki_farm_animal(DOKU_FARM_ANIMAL, null);
118 …$event->data['link'][$i]['href'] = preg_replace('`^/?'.$animal->getName().'`', '', $event->data['l…
123 …$event->data['script'][$i]['src'] = preg_replace('`^/?'.$animal->getName().'`', '', $event->data['…
129 …strrpos($event->data['link'][$i]['href'], '?') !== false ? '&' : '?').'animal='.$animal->getName();
135 …trrpos($event->data['script'][$i]['src'], '?') !== false ? '&' : '?').'animal='.$animal->getName();
/plugin/farmer/action/
H A Dajax.php66 * to an ajax request to a non-existing animal.
92 $animal = $INPUT->str('ani');
95 $plugins = $helper->getAnimalPluginRealState($animal);
105 $helper->setPluginState($pname, $animal, $new);
108 $plugins = $helper->getAnimalPluginRealState($animal);
111 echo $this->createPluginMatrixCell($plugin, $animal);
150 foreach ($animals as $animal) {
151 $plugins = $helper->getAnimalPluginRealState($animal);
153 echo '<th>' . hsc($animal) . '</th>';
155 echo $this->createPluginMatrixCell($plugin, $animal);
159 plugin_matrix_cell($plugin, $animal, $defaults = false) global() argument
[all...]
H A Dstartup.php51 * Handles the animal not found case
92 foreach ($animals as $animal) {
93 $link = $this->helper->getAnimalURL($animal);
94 $html .= '<li><div class="li"><a href="' . $link . '">' . hsc($animal) . '</a></div></li>';
/plugin/farm/install/
H A Dpreload.php52 $animal = null; variable
58 $animal = $m[2]; variable
69 if(!$animal) {
70 $animal = isset($_REQUEST['animal']) && !empty($_REQUEST['animal']) ? $_REQUEST['animal'] : null; variable
71 if(!preg_match('`^[a-z0-9\_\.\-]+$`i', $animal)) $animal = null; variable
74 if($animal) {
75 define('DOKU_FARM_ANIMAL', $animal);
76 if(!@is_dir($barn.$animal)) displayAndExit('unknown');
80 foreach(explode("\n", @file_get_contents($barn.$animal.'/animal.meta')) as $l) {
91 define('DOKU_CONF', $barn.$animal.'/conf/');
[all …]
H A Dbarn.htaccess6 RewriteRule ^([^/]+)$ {farmer}doku.php?animal=$1 [QSA,L]
7 RewriteRule ^([^/]+)/$ {farmer}doku.php?animal=$1 [QSA,L]
8 RewriteRule ^([^/]+)/(.+) {farmer}$2?animal=$1 [QSA,L]
H A Dvirtual.htaccess14 RewriteRule ^{farmer}([^/]+)/(.+) {farmer}$2?animal=$1 [QSA,L]
18 RewriteRule ^{farmer}([^/]+)/$ {farmer}doku.php?animal=$1 [QSA,L]
H A Dbarnatroot.htaccess11 RewriteRule ^([^/]+)/(.*) {farmer}$2?animal=$1 [QSA,L]
17 RewriteRule ^([^/]+)/$ {farmer}doku.php?animal=$1 [QSA,L]
/plugin/farmer/admin/
H A Dinfo.php48 $animal = $this->helper->getAnimal();
53 $this->line('thisis', $animal ? $this->getLang('thisis.animal') : $this->getLang('thisis.farmer'));
54 if ($animal) {
55 $this->line('animal', $animal);
94 foreach ($animals as $animal) {
95 $link = $this->helper->getAnimalURL($animal);
96 $html .= '<li><div class="li"><a href="' . $link . '">' . $animal . '</a></div></li>';
H A Dplugins.php42 foreach ($animals as $animal) {
43 $this->helper->setPluginState($plugin, $animal, $INPUT->int('state'));
50 $animal = $INPUT->str('bulk_animal');
53 $this->helper->setPluginState($plugin, $animal, $state);
/plugin/farmer/lang/fr/
H A Dtab_new_help.txt3 Les animaux sont des sous-wikis indépendants d'une ferme de DokuWiki. Pour créer un nouvel animal, il faut lui assigner un nom.
17 * basé sur .htaccess : ''toto'' pour un animal accessible à ''%%http://example.org/dokuwiki/!toto/%%''
18 * basé sur le domaine : ''%%www.toto.com%%'' pour un animal accessible à ''%%http://www.toto.com/%%''
19 * basé sur le sous domaine : ''toto'' pour un animal accessible à ''%%http://toto.example.com/%%''
23 ==== Copie d'animal ====
25 Vous pouvez sélectionner un animal existant comme base d'un
26 nouvel animal. Toute la configuration, toutes les pages et fichiers
28 animal. L'historique des pages et médias ne sera pas copié.
33 ==== Administrateur de l'animal ====
35 L'animal ser
[all...]
/plugin/authsqlite/
H A DREADME.md9 options for PostgreSQL, authsqlite allows the %{animal} parameter in all
10 sql statements. %{animal} is the animal component of a wiki farm setup,
11 and corresponds to the folder where the animal's configuration and data
16 different for each animal.
30 AND ug.animal=\'%{animal}\'
34 LEFT JOIN usergroup AS ug ON u.uid=ug.uid AND ug.animal=\'%{animal}\'
47 'INSERT INTO usergroup (uid, gid, animal) VALUES (%{uid}, %{gid}, \'%{animal}\')';
60 'DELETE from usergroup WHERE uid=%{uid} AND gid=%{gid} AND animal=\'%{animal}\'';
H A Dauth.sql20 animal text not null default '', field
21 primary key (uid, gid, animal)
/plugin/oauth/
H A Dauth.php37 // handle redirects from farmer to animal wiki instances
202 * to a proper animal instance detected from $state
211 if (empty($data->animal) || $farmer->getAnimal() == $data->animal) {
214 $animal = $data->animal;
216 if (!in_array($animal, $allAnimals)) {
217 msg('Animal ' . $animal . ' does not exist!');
221 $url = $farmer->getAnimalURL($animal) . '/doku.php?' . $INPUT->server->str('QUERY_STRING');
/plugin/farmer/lang/en/
H A Dtab_new_help.txt3 Animals are the independent subwikis of a Dokuwiki farm. To create a new animal a name has to be assigned.
12 * .htaccess based: ''foo'' for an animal accessible at ''%%http://example.org/dokuwiki/!foo/%%''
13 * domain based: ''%%www.foo.com%%'' for an animal accessible at ''%%http://www.foo.com/%%''
14 * sub domain based: ''foo'' for an animal accessible at ''%%http://foo.example.com/%%''
20 You can select an existing animal to base the new one on. All configuration, page, media and meta data will be copied
21 to the new animal. Page and media revisions will not be copied.
31 configuration tab or you copied a different animal with existing users.
/plugin/farmsync/script/
H A Dresults.js47 var animal = $this.parent('form').data('animal');
56 'farmsync-animal': animal,
72 var animal = $this.parent('form').data('animal');
80 var animal = $this.parent('form').data('animal');
90 'farmsync-animal': animal,
102 jQuery('form[data-animal="' + animal + '"][data-page="' + page + '"] button').hide();
167 var animal = $form.data('animal');
177 'farmsync-animal': animal,
/plugin/ckgdoku/fckeditor/editor/filemanager/connectors/php/
H A Dconfig.php53 $animal = 'userfiles'; variable
55 $animal = $_COOKIE['FCK_animal']; variable
117 if(preg_match('#(\/\w+\/' . $animal . ')#',$path,$matches)) {
120 else $Config['UserFilesPath'] = '../' . $animal . '/data/pages/';
192 global $Config,$animal;
195 $dir = preg_replace('/editor\/filemanager\/connectors\/.*/', "$animal/",$dir);
206 global $animal;
226 $Config['UserFilesPath'] = $base_url . 'lib/plugins/ckgdoku/fckeditor/' . $animal .'/';
/plugin/ckgedit/fckeditor/editor/filemanager/connectors/php/
H A Dconfig.php53 $animal = 'userfiles'; variable
55 $animal = $_COOKIE['FCK_animal']; variable
119 if(preg_match('#(\/\w+\/' . $animal . ')#',$path,$matches)) {
122 else $Config['UserFilesPath'] = '../' . $animal . '/data/pages/';
194 global $Config,$animal;
197 $dir = preg_replace('/editor\/filemanager\/connectors\/.*/', "$animal/",$dir);
208 global $animal;
228 $Config['UserFilesPath'] = $base_url . 'lib/plugins/ckgedit/fckeditor/' . $animal .'/';

123