Home
last modified time | relevance | path

Searched refs:animal (Results 1 – 25 of 58) 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.php64 public function getAnimalURL($animal) { argument
67 if(strpos($animal, '.') !== false) {
72 return DOKU_URL . '!' . $animal . '/';
85 $animal = basename(dirname($path));
87 $animals[] = $animal;
217 if(isset($this->animalPluginState[$animal])) return $this->animalPluginState[$animal];
225 $this->animalPluginState[$animal] = $plugins;
292 * @param string $animal
305 $this->writePluginConf($plugins, $animal);
308 if(isset($this->animalPluginState[$animal])) unset($this->animalPluginState[$animal]);
[all …]
H A DDokuWikiFarmCore.php48 protected $animal = false; variable in DokuWikiFarmCore
71 if($this->animal) {
92 return $this->animal;
136 $animal = '';
139 if($animal) {
141 if(!is_string($animal) || strpbrk($animal, '\\/') !== false) {
145 $animal = strtolower($animal);
149 $this->animal = $animal;
168 foreach($possible as $animal) {
170 $this->animal = $animal;
[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.php80 $animal = $INPUT->str('ani');
83 $plugins = $helper->getAnimalPluginRealState($animal);
93 $helper->setPluginState($pname, $animal, $new);
96 $plugins = $helper->getAnimalPluginRealState($animal);
99 echo $this->plugin_matrix_cell($plugin, $animal);
137 foreach($animals as $animal) {
140 echo '<th>' . hsc($animal) . '</th>';
155 * @param string $animal
182 'title' => $animal . ': ' . $plugin['name'],
183 'data-animal' => $animal,
[all …]
H A Dstartup.php81 foreach($animals as $animal) {
82 $link = $this->helper->getAnimalURL($animal);
83 … $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);
93 foreach($animals as $animal) {
94 $link = $this->helper->getAnimalURL($animal);
95 $html .= '<li><div class="li"><a href="' . $link . '">' . $animal . '</a></div></li>';
H A Dplugins.php37 foreach($animals as $animal) {
38 $this->helper->setPluginState($plugin, $animal, $INPUT->int('state'));
45 $animal = $INPUT->str('bulk_animal');
48 $this->helper->setPluginState($plugin, $animal, $state);
/plugin/farmer/lang/fr/
H A Dtab_new_help.txt17 …* 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 sera un wiki complètement fonctionnel, avec sa propre base
38 du fermier, ou créer un tout nouvel utilisateur pour l'animal.
[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.php208 if (empty($data->animal) || $farmer->getAnimal() == $data->animal) {
211 $animal = $data->animal;
213 if (!in_array($animal, $allAnimals)) {
214 msg('Animal ' . $animal . ' does not exist!');
218 $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 as…
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 d…
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