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