This repository has been archived by the owner on May 4, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set time limit to increase time backupaccount can take
Wills till run out of memory probably, we should fix that.
- Loading branch information
Mikael Nordfeldth
committed
Feb 3, 2016
1 parent
9fcfb7c
commit 19b743a
Showing
3 changed files
with
85 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
/** | ||
* A form for backing up the account. | ||
* | ||
* @category Account | ||
* @package StatusNet | ||
* @author Evan Prodromou <evan@status.net> | ||
* @copyright 2010 StatusNet, Inc. | ||
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0 | ||
* @link http://status.net/ | ||
*/ | ||
class BackupAccountForm extends Form | ||
{ | ||
/** | ||
* Class of the form. | ||
* | ||
* @return string the form's class | ||
*/ | ||
function formClass() | ||
{ | ||
return 'form_profile_backup'; | ||
} | ||
|
||
/** | ||
* URL the form posts to | ||
* | ||
* @return string the form's action URL | ||
*/ | ||
function action() | ||
{ | ||
return common_local_url('backupaccount'); | ||
} | ||
|
||
/** | ||
* Output form data | ||
* | ||
* Really, just instructions for doing a backup. | ||
* | ||
* @return void | ||
*/ | ||
function formData() | ||
{ | ||
$msg = | ||
// TRANS: Information displayed on the backup account page. | ||
_('You can backup your account data in '. | ||
'<a href="http://activitystrea.ms/">Activity Streams</a> '. | ||
'format. This is an experimental feature and provides an '. | ||
'incomplete backup; private account '. | ||
'information like email and IM addresses is not backed up. '. | ||
'Additionally, uploaded files and direct messages are not '. | ||
'backed up.'); | ||
$this->out->elementStart('p'); | ||
$this->out->raw($msg); | ||
$this->out->elementEnd('p'); | ||
} | ||
|
||
/** | ||
* Buttons for the form | ||
* | ||
* In this case, a single submit button | ||
* | ||
* @return void | ||
*/ | ||
function formActions() | ||
{ | ||
$this->out->submit('submit', | ||
// TRANS: Submit button to backup an account on the backup account page. | ||
_m('BUTTON', 'Backup'), | ||
'submit', | ||
null, | ||
// TRANS: Title for submit button to backup an account on the backup account page. | ||
_('Backup your account.')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters