Lines Matching refs:manager

21 	var $manager = null;  variable in dokuwiki_farm_config
29 function __construct($manager) { argument
30 $this->manager = & $manager;
40 if(isset($this->manager->opt['save'])) {
43 $this->manager->error('system_errors', 'system_badtoken_failure');
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>');
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…
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'…
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 …>copyHtaccess(DOKU_FARM_PLUGIN.'install/'.$src, $this->manager->conf['farmfsroot'].$this->manager-…
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');
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 …IN.'install/virtual.htaccess', $this->manager->conf['farmfsroot'].'.htaccess', array('farmerhost' …
255 $this->manager->error('config_errors', 'config_createrewritefile_failure');
259 if($this->manager->conf['userewrite']) {
265 if($this->manager->conf['farmrewrite']) {
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;