Lines Matching refs:this

35         if ($INPUT->bool('isupdate')) $this->type = 'update';
38 $this->sendArchiveAndExit();
52 if ($this->type == 'full') {
57 msg(sprintf($this->getLang('message: email invalid'), hsc($email)), -1);
62 msg($this->getLang('message: password empty'), -1);
67 $this->generateArchive = true;
73 if (!$this->generateArchive) {
74 $this->downloadView();
76 ptln('<h1>' . $this->getLang('menu') . '</h1>');
77 echo $this->locale_xhtml('intro');
79 ptln('<h1>' . $this->getLang('menu') . '</h1>');
81 if ($this->type == 'full') {
82 $this->generateArchive();
84 $this->generateUpdateArchive();
91 $this->showFullForm();
92 $this->showUpdateForm();
101 if ($this->type == 'full') {
121 $this->log('info', $this->getLang('message: starting'));
123 $archive = $this->createZipArchive($tmpArchiveFN);
125 $this->addDirToArchive($archive, '.', false);
126 $this->addDirToArchive($archive, 'inc');
127 $this->addDirToArchive($archive, 'bin');
128 $this->addDirToArchive($archive, 'vendor');
129 …$this->addDirToArchive($archive, 'conf', true, '^' . $this->base . 'conf/(users\.auth\.php|acl\.au…
130 $this->addUsersAuthToArchive($archive);
131 $this->addACLToArchive($archive);
132 $this->addDirToArchive($archive, 'lib', true, '^' . $this->base . 'lib/plugins$');
133 $this->addDirToArchive($archive, 'lib/plugins', true, $this->buildSkipPluginRegex());
134 $this->addDirToArchive($archive, 'data/pages');
135 $this->addDirToArchive($archive, 'data/meta', true, '\.changes(\.trimmed)?$');
136 $this->addDirToArchive($archive, 'data/media');
137 $this->addDirToArchive($archive, 'data/media_meta', true, '\.changes$');
138 $this->addDirToArchive($archive, 'data/index');
140 $this->addEmptyDirToArchive($archive, 'data/attic');
141 $this->addEmptyDirToArchive($archive, 'data/cache');
142 $this->addEmptyDirToArchive($archive, 'data/log');
143 $this->addEmptyDirToArchive($archive, 'data/locks');
144 $this->addEmptyDirToArchive($archive, 'data/tmp');
145 $this->addEmptyDirToArchive($archive, 'data/media_attic');
148 $this->log('info', $this->getLang('message: adding data done'));
153 $href = $this->getDownloadLinkHref();
154 $link = "<a href=\"$href\">" . $this->getLang('link: download now') . '</a>';
155 $this->log('success', $this->getLang('message: done') . ' ' . $link);
158 …ptln('<script type="text/javascript">window.location.href=\'' . $this->getSelfRedirect() . '\';</s…
169 $this->log('info', $this->getLang('message: starting'));
171 $archive = $this->createZipArchive($tmpArchiveFN);
173 $this->addDirToArchive($archive, '.', false);
174 $this->addDirToArchive($archive, 'inc');
175 $this->addDirToArchive($archive, 'bin');
176 $this->addDirToArchive($archive, 'vendor');
177 …$this->addDirToArchive($archive, 'conf', true, '^' . $this->base . 'conf/(users\.auth\.php|acl\.au…
178 $this->addDirToArchive($archive, 'lib', true, '^' . $this->base . 'lib/plugins$');
179 $this->addDirToArchive($archive, 'lib/plugins', true, $this->buildSkipPluginRegex());
181 $this->addEmptyDirToArchive($archive, 'data/pages');
182 $this->addEmptyDirToArchive($archive, 'data/media');
183 $this->addEmptyDirToArchive($archive, 'data/index');
184 $this->addEmptyDirToArchive($archive, 'data/media_meta');
185 $this->addEmptyDirToArchive($archive, 'data/meta');
186 $this->addEmptyDirToArchive($archive, 'data/attic');
187 $this->addEmptyDirToArchive($archive, 'data/cache');
188 $this->addEmptyDirToArchive($archive, 'data/log');
189 $this->addEmptyDirToArchive($archive, 'data/locks');
190 $this->addEmptyDirToArchive($archive, 'data/tmp');
191 $this->addEmptyDirToArchive($archive, 'data/media_attic');
194 $this->log('info', $this->getLang('message: adding data done'));
199 $href = $this->getDownloadLinkHref('update');
200 $link = "<a href=\"$href\">" . $this->getLang('link: download now') . '</a>';
201 $this->log('success', $this->getLang('message: done') . ' ' . $link);
204 …ptln('<script type="text/javascript">window.location.href=\'' . $this->getSelfRedirect() . '\';</s…
214 $list = array_map('trim', explode(',', $this->getConf('pluginsToIgnore')));
215 return '^' . $this->base . 'lib/plugins/(' . implode('|', $list) . ')$';
262 $this->log('info', sprintf($this->getLang('message: create empty dir'), $directory));
263 $dirPath = $this->base . $directory . '/.keep';
281 $this->log('info', $this->getLang('message: create users'));
297 $archive->addData($this->base . 'conf/users.auth.php', $authFile . $adminLine);
309 $this->log('info', $this->getLang('message: create acl'));
315 $archive->addData($this->base . 'conf/acl.auth.php', $aclFileContents);
326 $this->log('info', sprintf($this->getLang('message: create zip archive'), hsc($archiveFN)));
347 $message[] = sprintf($this->getLang('message: add files in dir'), hsc($srcDir . '/'));
349 $message[] = $this->getLang('message: recursive');
352 $message[] = sprintf($this->getLang('message: skipping files'), hsc($skipRegex));
355 $this->log('info', implode(' ', $message));
356 $this->addFilesToArchive(DOKU_INC . $srcDir, $archive, !$recursive, $skipRegex);
377 $this->log('warning', sprintf($this->getLang('message: file is large'),
382 $archive->addFile($source, $this->getDWPathName($source));
384 $this->log('error', hsc($e->getMessage()));
398 if ($skipRegex && preg_match("#$skipRegex#", $this->getDWPathName($srcFN))) {
406 $copyOK = $this->addFilesToArchive($srcFN, $archive, $filesOnly, $skipRegex);
426 return $this->base . substr($filepath, strlen(DOKU_INC));
440 ptln('<h1>' . $this->getLang('label: download') . '</h1>');
444 $href = $this->getDownloadLinkHref();
446 ptln('<b>' . $this->getLang('label: full archive') . '</b><br>');
447 ptln(sprintf($this->getLang('message: archive exists'), $mtime));
448 ptln("<a href=\"$href\">" . $this->getLang('link: download now') . '</a>');
454 $href = $this->getDownloadLinkHref('update');
456 ptln('<b>' . $this->getLang('label: update archive') . '</b><br>');
457 ptln(sprintf($this->getLang('message: archive exists'), $mtime));
458 ptln("<a href=\"$href\">" . $this->getLang('link: download now') . '</a>');
469 $form->addFieldsetOpen($this->getLang('label: full archive'));
471 $adminMailInput = $form->addTextInput('adminMail', $this->getLang('label: admin mail'));
475 $adminPassInput = $form->addPasswordInput('adminPass', $this->getLang('label: admin pass'));
479 $form->addButton('submit', $this->getLang('button: generate archive'));
491 $form->addFieldsetOpen($this->getLang('label: update archive'));
495 $form->addButton('submit', $this->getLang('button: generate archive'));
517 $timedMessage = sprintf($this->getLang('seconds'), $time) . ': ' . $message;