1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class OfflinebackupAction extends BackupaccountAction
- {
-
- public function handle(): void
- {
- if ($this->isPost()) {
- $this->queueBackup();
- } else {
- $this->showPage();
- }
- }
- public function queueBackup(): void
- {
- $cur = common_current_user();
- $qm = QueueManager::get();
- $qm->enqueue($cur->id, 'backoff');
- $this->showPage();
- }
- public function showContent(): void
- {
- if ($this->isPost()) {
- $this->text(_('Backup queued. You will get a notification by email when your backup is ready to download.'));
- } else {
- parent::showContent();
- }
- }
- }
|