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