Lines Matching refs:this

38         $this->tgzurl = "https://github.com/splitbrain/dokuwiki/archive/$branch.tar.gz";
39 $this->tgzfile = $conf['tmpdir'] . '/dokuwiki-upgrade.tgz';
40 $this->tgzdir = $conf['tmpdir'] . '/dokuwiki-upgrade/';
41 $this->tgzversion = "https://raw.githubusercontent.com/splitbrain/dokuwiki/$branch/VERSION";
42 $this->composer = "https://raw.githubusercontent.com/splitbrain/dokuwiki/$branch/composer.json";
43 $this->pluginversion = "https://raw.githubusercontent.com/splitbrain/dokuwiki-plugin-upgrade/master/plugin.info.txt";
52 $this->logger = $logger;
68 $this->log('error', $this->getLang('vs_ssl'));
74 $tgzversion = trim($http->get($this->tgzversion));
76 $this->log('error', $this->getLang('vs_tgzno') . ' ' . hsc($http->error));
79 $tgzversionnum = $this->dateFromVersion($tgzversion);
81 $this->log('error', $this->getLang('vs_tgzno'));
84 $this->log('notice', $this->getLang('vs_tgz'), $tgzversion);
90 $versionnum = $this->dateFromVersion($version);
91 $this->log('notice', $this->getLang('vs_local'), $version);
95 $this->log('warning', $this->getLang('vs_localno'));
99 $this->log('warning', $this->getLang('vs_newer'));
102 $this->log('warning', $this->getLang('vs_same'));
108 $pluginversion = $http->get($this->pluginversion);
111 $myinfo = $this->getInfo();
113 $this->log('warning', $this->getLang('vs_plugin'), $plugininfo['date']);
119 $json = $http->get($this->composer);
123 $this->log('error', $this->getLang('vs_php'), $minphp, phpversion());
137 $this->log('notice', $this->getLang('dl_from'), $this->tgzurl);
144 $data = $http->get($this->tgzurl);
147 $this->log('error', $http->error);
148 $this->log('error', $this->getLang('dl_fail'));
152 io_mkdir_p(dirname($this->tgzfile));
153 if (!file_put_contents($this->tgzfile, $data)) {
154 $this->log('error', $this->getLang('dl_fail'));
158 $this->log('success', $this->getLang('dl_done'), filesize_h(strlen($data)));
169 $this->log('notice', '<b>' . $this->getLang('pk_extract') . '</b>');
178 $this->log('info', $file->getPath());
180 $tar->open($this->tgzfile);
181 $tar->extract($this->tgzdir, 1);
184 $this->log('error', $e->getMessage());
185 $this->log('error', $this->getLang('pk_fail'));
189 $this->log('success', $this->getLang('pk_done'));
191 $this->log(
193 $this->getLang('pk_version'),
194 hsc(file_get_contents($this->tgzdir . '/VERSION')),
207 $this->log('notice', $this->getLang('ck_start'));
208 $ok = $this->traverseCheckAndCopy('', true);
210 $this->log('success', '<b>' . $this->getLang('ck_done') . '</b>');
212 $this->log('error', '<b>' . $this->getLang('ck_fail') . '</b>');
224 $this->log('notice', $this->getLang('cp_start'));
225 $ok = $this->traverseCheckAndCopy('', false);
227 $this->log('success', '<b>' . $this->getLang('cp_done') . '</b>');
229 $this->log('error', '<b>' . $this->getLang('cp_fail') . '</b>');
241 $list = file($this->tgzdir . 'data/deleted.files');
250 $this->log('info', $this->getLang('rm_mismatch'), hsc($line));
255 (is_dir($file) && $this->recursiveDelete($file)) ||
258 $this->log('info', $this->getLang('rm_done'), hsc($line));
260 $this->log('error', $this->getLang('rm_fail'), hsc($line));
275 $this->log('success', '<b>' . $this->getLang('finish') . '</b>');
286 @unlink($this->tgzfile);
287 $this->recursiveDelete($this->tgzdir);
304 $base = $this->tgzdir;
319 $this->log('error', '<b>' . $this->getLang('tv_noperm') . '</b>', hsc("$dir/$file"));
326 if (!$this->traverseCheckAndCopy("$dir/$file", $dryrun)) {
339 $this->log('error', '<b>' . $this->getLang('tv_noperm') . '</b>', hsc("$dir/$file"));
342 $this->log('info', $this->getLang('tv_upd'), hsc("$dir/$file"));
349 $this->log('error', '<b>' . $this->getLang('tv_nodel') . '</b>', hsc("$dir/$file"));
354 $this->log('error', '<b>' . $this->getLang('tv_nocopy') . '</b>', hsc("$dir/$file"));
357 $this->log('info', $this->getLang('tv_done'), hsc("$dir/$file"));
360 $this->log('error', '<b>' . $this->getLang('tv_nodir') . '</b>', hsc("$dir"));
402 $this->recursiveDelete($dir . '/' . $obj);
420 if ($this->logger) $this->logger->log($level, $msg);