12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class OfflineBackupPlugin extends Plugin
- {
- const PLUGIN_VERSION = '2.0.0';
- public function onRouterInitialized($m)
- {
- $m->connect(
- 'main/backupaccount',
- ['action' => 'offlinebackup'],
- [],
- true
- );
- return true;
- }
-
- public function onEndInitializeQueueManager($qm)
- {
- $qm->connect('backoff', 'OfflineBackupQueueHandler');
- return true;
- }
- public function onPluginVersion(array &$versions): bool
- {
- $versions[] = [
- 'name' => 'OfflineBackup',
- 'version' => self::PLUGIN_VERSION,
- 'author' => 'Evan Prodromou',
- 'homepage' => GNUSOCIAL_ENGINE_REPO_URL . 'tree/master/plugins/OfflineBackup',
- 'rawdescription' =>
-
- _m('Backup user data in offline queue and email when ready.')
- ];
- return true;
- }
- }
|