Home
last modified time | relevance | path

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

123

/plugin/farmsync/_test/mock/
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…
34 public function remotePageExists($animal, $page, $clean = true) { argument
35 …set($this->remoteData[$animal][$page]['exists']) ? $this->remoteData[$animal][$page]['exists'] : p…
46 public function setCommonAncestor($source, $animal, $page, $content) { argument
[all …]
/plugin/farmer/
H A Dhelper.php67 public function getAnimalURL($animal) argument
72 if (str_contains($animal, '.')) {
73 return $protocol . $animal;
75 return $protocol . $animal . '.' . $config['base']['basedomain'];
77 return DOKU_URL . '!' . $animal . '/';
91 $animal = basename(dirname($path));
92 if ($animal == '_animal') continue; // old template
93 $animals[] = $animal;
228 public function getAnimalPluginLocalStates($animal) argument
230 if (isset($this->animalPluginState[$animal])) return $this->animalPluginState[$animal];
[all …]
H A DDokuWikiFarmCore.php51 protected $animal = false; variable in DokuWikiFarmCore
74 define('DOKU_FARM_ANIMAL', $this->animal);
75 if ($this->animal) {
76 define('DOKU_CONF', DOKU_FARMDIR . $this->animal . '/conf/');
98 return $this->animal;
139 * @param mixed $animal the animal name
142 protected function setAnimal($animal) argument
147 if (!is_string($animal) || strpbrk($animal, '\\/') !== false) {
151 $animal = strtolower($animal);
154 if (is_dir("$farmdir/$animal/conf")) {
[all …]
H A Dremote.php67 foreach ($this->helper->getAllAnimals() as $animal) {
68 $animalUrls[] = $this->helper->getAnimalURL($animal);
83 foreach ($this->helper->getAllAnimals() as $index => $animal) {
84 $farmerConfig['animals'][$index]["name"] = $animal;
85 $farmerConfig['animals'][$index]["url"] = $this->helper->getAnimalURL($animal);
/plugin/farmsync/meta/
DFarmSyncUtil.php46 * @param string $animal
49 public function getAnimalDataDir($animal) { argument
50 return $this->getAnimalDir($animal) . 'data/';
53 public function getAnimalDir($animal) { argument
54 return DOKU_FARMDIR . $animal . '/';
57 public function getAnimalLink($animal) { argument
58 return $this->farmer->getAnimalURL($animal);
61 public function clearAnimalCache($animal) { argument
62 $animalDir = $this->getAnimalDir($animal);
66 private function setAnimalContext($animal) { argument
[all …]
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;
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/
Dinfos.animal.class.php15 var $animal = null; variable in dokuwiki_farm_animal_infos
20 function __construct($animal = null) { argument
21 if(is_a($animal, 'dokuwiki_farm_animal')) {
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);
83 …if(isset($opt['size'])) $fmt = str_replace('{size}', $this->animal->manager->nicesize($opt['size']…
120 if(!$this->animal) return 0;
121 $s = $this->dirsize($this->animal->getPath().(($mode != '') ? '/data/'.$mode : ''));
122 if($nice) $s = $this->animal->manager->nicesize($s);
[all …]
Danimalmanager.class.php18 private $animal = null; variable in dokuwiki_farm_animalmanager
33 $a = array_merge(array('aid' => $this->animal->getName()), $opts);
73 $this->animal = new dokuwiki_farm_animal($this->manager->opt['aid'], $this->manager);
95 if(!$this->animal->setMetadata('status', $s)) {
103 if(!$this->animal->setMetadata('lockstate', $s)) {
138 …if($this->animal->addUser($_POST['new_animal_user_login'], $_POST['new_animal_user_pass'], $_POST[…
148 if($this->animal->deleteUser(base64_decode($this->manager->opt['deleteuser']))) {
156 if($this->animal->setFileContent(base64_decode($this->manager->opt['file']), '', true)) {
161 …if($this->animal->setFileContent(base64_decode($this->manager->opt['file']), isset($this->manager-…
167 if($this->animal->setFileContent($this->manager->opt['file'], '')) {
[all …]
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.php92 $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);
168 * @param string $animal
[all …]
H A Dstartup.php92 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/
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 …]
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]
/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);
63 if (!$animal || $config['notfound']['show'] == 'list') {
96 foreach ($animals as $animal) {
97 $link = $this->helper->getAnimalURL($animal);
98 $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, …
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 sera un wiki complètement fonctionnel, avec sa propre base
[all …]
/plugin/authsqlite/
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}\'';
Dauth.sql20 animal text not null default '', field
21 primary key (uid, gid, animal)
/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/oauth/
H A Dauth.php232 if (empty($data->animal) || $farmer->getAnimal() == $data->animal) {
235 $animal = $data->animal;
237 if (!in_array($animal, $allAnimals)) {
238 msg('Animal ' . $animal . ' does not exist!');
242 $url = $farmer->getAnimalURL($animal) . '/doku.php?' . $INPUT->server->str('QUERY_STRING');
/plugin/farmer/_test/
H A Dcore.test.php33 return $this->animal;
48 $this->animal = false;
167 'CLI animal parameter - URL with bang path' => [
169 'server_params' => ['animal' => 'https://example.com/!banganimal/page'],
185 'CLI animal parameter - URL with hostname' => [
187 'server_params' => ['animal' => 'https://hostanimal.example.com/page'],
/plugin/farmsync/script/
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/
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/
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