12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/extlib/');
- class LRDDPlugin extends Plugin
- {
- public function onAutoload($cls)
- {
- switch ($cls) {
- case 'XML_XRD':
- require_once __DIR__ . '/extlib/XML/XRD.php';
- return false;
- }
- return parent::onAutoload($cls);
- }
- public function onStartDiscoveryMethodRegistration(Discovery $disco) {
- $disco->registerMethod('LRDDMethod_WebFinger');
- }
- public function onEndDiscoveryMethodRegistration(Discovery $disco) {
- $disco->registerMethod('LRDDMethod_HostMeta');
- $disco->registerMethod('LRDDMethod_LinkHeader');
- $disco->registerMethod('LRDDMethod_LinkHTML');
- }
- public function onPluginVersion(array &$versions)
- {
- $versions[] = array('name' => 'LRDD',
- 'version' => GNUSOCIAL_VERSION,
- 'author' => 'Mikael Nordfeldth',
- 'homepage' => 'http://www.gnu.org/software/social/',
-
- 'rawdescription' => _m('Implements LRDD support for GNU Social.'));
- return true;
- }
- }
|