Lines Matching refs:this

30 		$this->manager = & $manager;
33 $this->data = $farmconf;
40 if(isset($this->manager->opt['save'])) {
43 $this->manager->error('system_errors', 'system_badtoken_failure');
46 if(!$this->save()) {
47 $this->manager->error('config_errors', 'config_save_failure');
57 ptln('<div class="farm_cmd_title">'.$this->manager->getLang('config_title').'</div>');
58 ptln('<div class="farm_cmd_info">'.$this->manager->getLang('config_info').'</div>');
59 $this->form();
85 if(!$this->allowed($id)) continue;
93 $this->manager->formHead(array('farm_cmd' => 'farmconfig'));
96 $l = ' '.$this->manager->getLang('config_field_name_'.$id).' : ';
105 ptln('<small>'.$this->manager->getLang('config_field_desc_'.$id).'</small>');
110 …ptln(' <input type="submit" class="button" name="farm_opt[save]" value="'.$this->manager->getLang…
120 $this->conf = explode("\n", @file_get_contents(DOKU_FARM_PLUGIN.'config.php'));
121 if(!count($this->conf)) return false;
123 for($i=0; $i<count($this->conf); $i++) {
124 …if(preg_match('`^\$farmconf\[[\'"]([a-z0-9_-]+)[\'"]\]\s*=\s*([^;]+);$`i', trim($this->conf[$i]), …
126 $this->ref[$id] = $i;
130 foreach($this->ref as $id => $n) {
131 if(!$this->allowed($id)) continue;
132 …if(preg_match('`^\$farmconf\[[\'"]([a-z0-9_-]+)[\'"]\]\s*=\s*([^;]+);$`i', trim($this->conf[$n]), …
137 …if($this->triggerChange($id, $d, isset($_POST['config_field_'.$id]))) $this->conf[$n] = '$farmconf…
143 …if($this->triggerChange($id, $fb(), $fa())) $this->conf[$n] = '$farmconf[\''.$id.'\'] = '.$_POST['…
146 …if($this->triggerChange($id, $d, $_POST['config_field_'.$id])) $this->conf[$n] = '$farmconf[\''.$i…
151 fwrite($fp, implode("\n", $this->conf));
166 $farm = $this->manager->conf['farmwebroot'];
170 $c = str_replace('{farmer}', $this->manager->conf['farmer'], $c);
171 $c = str_replace('{barn}', $this->manager->conf['barn'], $c);
194 …if(realpath($this->manager->conf['farmfsroot'].$this->manager->conf['barn']) == realpath($this->ma…
196 …if($this->copyHtaccess(DOKU_FARM_PLUGIN.'install/farm.htaccess', $this->manager->conf['farmfsroot'…
197 if($this->triggerChange('userewrite', false, true)) {
199 $this->conf[$this->ref['userewrite']] = '$farmconf[\'userewrite\'] = true;';
204 $this->manager->error('config_errors', 'config_createfarmrewritefile_failure');
207 }elseif(@file_exists($this->manager->conf['farmfsroot'].'.htaccess')) {
208 …if(realpath($this->manager->conf['farmfsroot'].$this->manager->conf['barn']) == realpath($this->ma…
209 if(!unlink($this->manager->conf['farmfsroot'].'.htaccess')) {
210 $this->manager->error('config_errors', 'config_deletefarmrewritefile_failure');
219 …$src = (realpath($this->manager->conf['farmfsroot'].$this->manager->conf['barn']) != realpath($thi…
220 …if($this->copyHtaccess(DOKU_FARM_PLUGIN.'install/'.$src, $this->manager->conf['farmfsroot'].$this-…
223 $this->manager->error('config_errors', 'config_createrewritefile_failure');
227 if(@file_exists($this->manager->conf['farmfsroot'].'.htaccess')) {
228 if(!unlink($this->manager->conf['farmfsroot'].'.htaccess')) {
229 $this->manager->error('config_errors', 'config_deletefarmrewritefile_failure');
232 $this->conf[$this->ref['barnrewrite']] = '$farmconf[\'farmrewrite\'] = false;';
235 if(@file_exists($this->manager->conf['farmfsroot'].$this->manager->conf['barn'].'.htaccess')) {
236 if(!unlink($this->manager->conf['farmfsroot'].$this->manager->conf['barn'].'.htaccess')) {
237 $this->manager->error('config_errors', 'config_deleterewritefile_failure');
249 $this->manager->error('config_errors', 'config_copyvirtualhostfile_failure');
254 …if(!$this->copyHtaccess(DOKU_FARM_PLUGIN.'install/virtual.htaccess', $this->manager->conf['farmfsr…
255 $this->manager->error('config_errors', 'config_createrewritefile_failure');
259 if($this->manager->conf['userewrite']) {
260 if($this->triggerChange('userewrite', false, true)) {
262 $this->conf[$this->ref['userewrite']] = '$farmconf[\'userewrite\'] = true;';
265 if($this->manager->conf['farmrewrite']) {
266 if($this->triggerChange('farmrewrite', false, true)) {
268 $this->conf[$this->ref['farmrewrite']] = '$farmconf[\'farmrewrite\'] = true;';
272 $this->manager->conf['virtual'] = $after;
277 if(!$this->manager->conf['virtual']) return true;
278 …if($this->copyHtaccess(DOKU_FARM_PLUGIN.'install/virtual.htaccess', $this->manager->conf['farmfsro…
281 $this->manager->error('config_errors', 'config_createrewritefile_failure');
288 $this->manager->error('config_errors', 'animal_unknownanimal_failure');
295 if(!@file_exists($this->manager->conf['farmfsroot'].'farm.wsdl')) {
298 $this->manager->error('config_errors', 'config_createwsdl_failure');
301 $file = $this->manager->conf['farmwebroot'].'farm.wsdl';
303 …$wsdl = str_replace('{location}', $this->manager->conf['farmwebroot'].$this->manager->conf['farmer…
304 if($fp = fopen($this->manager->conf['farmfsroot'].'farm.wsdl', 'w')) {
308 $this->manager->error('config_errors', 'config_createwsdl_failure');
315 $this->manager->error('config_errors', 'config_copytrustedappsfile_failure');
320 if(@file_exists($this->manager->conf['farmfsroot'].'farm.wsdl')) {
321 if(!unlink($this->manager->conf['farmfsroot'].'farm.wsdl')) {
322 $this->manager->error('config_errors', 'config_deletewsdl_failure');
327 $this->manager->conf['enablesoap'] = $after;