-# GNU social 1.3.x
+# GNU social 1.19.x
(c) 2010 Free Software Foundation, Inc
This is the README file for GNU social, the free
define('GNUSOCIAL_ENGINE', 'GNU social');
define('GNUSOCIAL_ENGINE_URL', 'https://www.gnu.org/software/social/');
-define('GNUSOCIAL_BASE_VERSION', '1.3.0');
-define('GNUSOCIAL_LIFECYCLE', 'beta5'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
+define('GNUSOCIAL_BASE_VERSION', '1.19.0');
+define('GNUSOCIAL_LIFECYCLE', 'rc0'); // 'dev', 'alpha[0-9]+', 'beta[0-9]+', 'rc[0-9]+', 'release'
define('GNUSOCIAL_VERSION', GNUSOCIAL_BASE_VERSION . '-' . GNUSOCIAL_LIFECYCLE);
class AccountManagerPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
const AM_REL = 'acct-mgmt';
function __construct()
}
function onLoginAction($action, &$login) {
- switch ($action)
+ switch ($action)
{
case 'AccountManagementControlDocument':
$login = true;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'AccountManager',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/AccountManager',
'rawdescription' =>
*/
class ActivityPlugin extends Plugin
{
- const VERSION = '0.1';
+ const PLUGIN_VERSION = '0.1.0';
const SOURCE = 'activity';
// Flags to switch off certain activity notices
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Activity',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Activity',
'rawdescription' =>
/**
* Check new notices with activity spam service.
- *
+ *
* @category Spam
* @package StatusNet
* @author Evan Prodromou <evan@status.net>
*/
class ActivitySpamPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $server = null;
public $hideSpam = false;
// Let DB_DataObject find Spam_score
- common_config_set('db', 'class_location',
+ common_config_set('db', 'class_location',
common_config('db', 'class_location') .':'.dirname(__FILE__));
return true;
/**
* When a notice is saved, check its spam score
- *
+ *
* @param Notice $notice Notice that was just saved
*
* @return boolean hook value; true means continue processing, false means stop.
$this->log(LOG_INFO, "Notice " . $notice->id . " has spam score " . $score->score);
} catch (Exception $e) {
- // Log but continue
+ // Log but continue
$this->log(LOG_ERR, $e->getMessage());
}
return true;
}
-
+
/**
* Map URLs to actions
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ActivitySpam',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ActivitySpam',
'description' =>
class ActivityVerbPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
public function onRouterInitialized(URLMapper $m)
{
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Activity Verb',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://www.gnu.org/software/social/',
'rawdescription' =>
*/
class ActivityVerbPostPlugin extends ActivityVerbHandlerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
// TODO: Implement a "fallback" feature which can handle anything _as_ an activityobject "note"
public function tag()
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Post verb',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/',
'rawdescription' =>
exit(1);
}
-define('ANONYMOUS_FAVE_PLUGIN_VERSION', '0.1');
+define('ANONYMOUS_FAVE_PLUGIN_VERSION', '0.1.0');
/**
* Anonymous Fave plugin to allow anonymous (not logged in) users
if (!defined('GNUSOCIAL')) { exit(1); }
class AntiBrutePlugin extends Plugin {
+ const PLUGIN_VERSION = '2.0.0';
protected $failed_attempts = 0;
protected $unauthed_user = null;
protected $client_ip = null;
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'AntiBrute',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://gnu.io/',
'description' =>
class ApiLoggerPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
// Lower this to do random sampling of API requests rather than all.
// 0.1 will check about 10% of hits, etc.
public $frequency = 1.0;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ApiLogger',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ApiLogger',
'rawdescription' =>
class AuthCryptPlugin extends AuthenticationPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
protected $hash = '$6$'; // defaults to SHA512, i.e. '$6$', in onInitializePlugin()
protected $statusnet = true; // if true, also check StatusNet style password hash
protected $overwrite = true; // if true, password change means overwrite with crypt()
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'AuthCrypt',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/AuthCrypt',
'rawdescription' =>
class AutoSandboxPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
var $contact;
var $debug;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'AutoSandbox',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Sean Carmody',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/AutoSandbox',
'rawdescription' =>
class AutocompletePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
function __construct()
{
parent::__construct();
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Autocomplete',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Autocomplete',
'rawdescription' =>
class AwesomenessPlugin extends Plugin
{
- const VERSION = '0.0.42';
+ const PLUGIN_VERSION = '0.0.42';
public function onPluginVersion(array &$versions)
{
$versions[] = array(
'name' => 'Awesomeness',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Jeroen De Dauw',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Awesomeness',
// TRANS: Plugin description for a sample plugin.
class BitlyUrlPlugin extends UrlShortenerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $shortenerName = 'bit.ly';
public $serviceUrl = 'http://api.bit.ly/v3/shorten?longUrl=%s';
public $login; // To set a site-default when admins or users don't override it.
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => sprintf('BitlyUrl (%s)', $this->shortenerName),
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews, Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/BitlyUrl',
'rawdescription' =>
*/
class BlacklistPlugin extends Plugin
{
- const VERSION = GNUSOCIAL_VERSION;
+ const PLUGIN_VERSION = '2.0.0';
public $nicknames = array();
public $urls = array();
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Blacklist',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' =>
'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Blacklist',
*/
class BlankAdPlugin extends UAPPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
/**
* Show a medium rectangle 'ad'
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'BlankAd',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/BlankAdPlugin',
'rawdescription' =>
exit(1);
}
-define('BLOGSPAMNETPLUGIN_VERSION', '0.1');
+define('PLUGIN_VERSION', '0.1.0');
/**
* Plugin to check submitted notices with blogspam.net
function version()
{
- return BLOGSPAMNETPLUGIN_VERSION;
+ return PLUGIN_VERSION;
}
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'BlogspamNet',
- 'version' => BLOGSPAMNETPLUGIN_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/BlogspamNet',
'rawdescription' =>
*/
class BookmarkPlugin extends MicroAppPlugin
{
- const VERSION = '0.1';
+ const PLUGIN_VERSION = '0.1.0';
const IMPORTDELICIOUS = 'BookmarkPlugin:IMPORTDELICIOUS';
/**
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Bookmark',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, Stephane Berube, Jean Baptiste Favre, Mikael Nordfeldth',
'homepage' => 'https://gnu.io/social',
'description' =>
*/
class CacheLogPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onStartCacheGet(&$key, &$value)
{
$this->log(LOG_INFO, "Fetching key '$key'");
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'CacheLog',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/CacheLog',
'description' =>
class CasAuthenticationPlugin extends AuthenticationPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $server;
public $port = 443;
public $path = '';
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'CAS Authentication',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/CasAuthentication',
// TRANS: Plugin description. CAS is Central Authentication Service.
*/
class ChooseThemePlugin extends Plugin {
+ const PLUGIN_VERSION = '0.1.0';
public function onRouterInitialized(URLMapper $m) {
$m->connect('main/choosethemesettings', array('action' => 'choosethemesettings'));
public function onPluginVersion(array &$versions) {
$versions[] = array('name' => 'ChooseTheme',
- 'version' => '0.1',
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Knut Erik "abjectio" Hollund',
'homepage' => 'https://gitlab.com/kollektivet0x242/gsp-choosetheme',
'rawdescription' =>
class ClientSideShortenPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
function __construct()
{
parent::__construct();
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Shorten',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ClientSideShorten',
'rawdescription' =>
*/
class CometPlugin extends RealtimePlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $server = null;
public $username = null;
public $password = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Comet',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Comet',
'rawdescription' =>
*/
class ConversationTreePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public function onStartShowConversation(Action $action, Conversation $conv, Profile $scoped=null) {
$nl = new ConversationTree($conv->getNotices($action->getScoped()), $action);
$cnt = $nl->show();
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ConversationTree',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://gnu.io/',
'rawdescription' =>
if (!defined('GNUSOCIAL')) { exit(1); }
class CronishPlugin extends Plugin {
+ const PLUGIN_VERSION = '2.0.0';
+
public function onCronMinutely()
{
common_debug('CRON: Running near-minutely cron job!');
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Cronish',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://www.gnu.org/software/social/',
'description' =>
class DefaultLayoutPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $prerender_replyforms = false;
public function onEndShowThreadedNoticeTail(NoticeListItem $nli, Notice $notice, array $notices) {
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Default Layout',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://www.gnu.org/software/social/',
'rawdescription' =>
class DiasporaPlugin extends Plugin
{
+ const PLUGIN_VERSION = '0.2.0';
+
const REL_SEED_LOCATION = 'http://joindiaspora.com/seed_location';
const REL_GUID = 'http://joindiaspora.com/guid';
const REL_PUBLIC_KEY = 'diaspora-public-key';
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Diaspora',
- 'version' => '0.2',
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/social',
// TRANS: Plugin description.
/**
* Encrypt your <decrypted_header> XML snippet using the “outer key”
* and “outer iv” (using the aes-256-cbc cipher). This encrypted
- * blob shall be referred to as “the ciphertext”.
+ * blob shall be referred to as “the ciphertext”.
*/
$ciphertext = $outer_key->encrypt($decrypted_header, \phpseclib\Crypt\RSA::PADDING_PKCS1);
*/
class DirectMessagePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public function onCheckSchema()
{
$schema = Schema::get();
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Direct Message',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://gnu.io/',
'rawdescription' =>
*/
class DirectoryPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
private $dir = null;
/**
{
$versions[] = array(
'name' => 'Directory',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Zach Copley',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Directory',
// TRANS: Plugin description.
*/
class DiskCachePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
var $root = '/tmp';
function keyToFilename($key)
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'DiskCache',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/DiskCache',
'rawdescription' =>
*/
class DomainStatusNetworkPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
static $_thetree = null;
function initialize()
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'DomainStatusNetwork',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/DomainStatusNetwork',
'rawdescription' =>
*/
class DomainWhitelistPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Get the path to the plugin's installation directory. Used
* to link in js files and whatnot.
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'DomainWhitelist',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, Zach Copley',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/DomainWhitelist',
'rawdescription' =>
class EmailAuthenticationPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
// $nickname for this plugin is the user's email address
function onStartCheckPassword($nickname, $password, &$authenticatedUser)
{
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Email Authentication',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/EmailAuthentication',
'rawdescription' =>
*/
class EmailRegistrationPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
const CONFIRMTYPE = 'register';
function onArgsInitialize(&$args)
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'EmailRegistration',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/EmailRegistration',
'rawdescription' =>
*/
class EmailReminderPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Set up email_reminder table
*
{
$versions[] = array(
'name' => 'EmailReminder',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Zach Copley',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/EmailReminder',
// TRANS: Plugin description.
*/
class EmailSummaryPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
/**
* Database schema setup
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'EmailSummary',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/EmailSummary',
'rawdescription' =>
*/
class EventPlugin extends ActivityVerbHandlerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Set up our tables (event and rsvp)
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Event',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Event',
'description' =>
*/
class ExtendedProfilePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onPluginVersion(array &$versions)
{
$versions[] = array(
'name' => 'ExtendedProfile',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber, Samantha Doherty, Zach Copley',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ExtendedProfile',
// TRANS: Plugin description.
*/
class FavoritePlugin extends ActivityVerbHandlerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
protected $email_notify_fave = 1;
public function tag()
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Favorite',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://gnu.io/',
'rawdescription' =>
if (!defined('GNUSOCIAL')) { exit(1); }
class FeedPollerPlugin extends Plugin {
+ const PLUGIN_VERSION = '2.0.0';
+
public $interval = 5; // interval in minutes for feed checks
public function onEndInitializeQueueManager(QueueManager $qm)
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'FeedPoller',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://www.gnu.org/software/social/',
'description' =>
class FetchRemotePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
static function fetchNoticeFromUrl($url)
{
if (!common_valid_http_url($url)) {
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'FetchRemote',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://www.gnu.org/software/social/',
// TRANS: Plugin description.
*/
class FollowEveryonePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Called when a new user is registered.
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'FollowEveryone',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/FollowEveryone',
'rawdescription' =>
class ForceGroupPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Members of these groups will have all their posts mirrored into
* the group even if they don't explicitly mention it.
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ForceGroup';
$versions[] = array('name' => 'ForceGroup',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => $url,
'rawdescription' =>
*/
class GeoURLPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $ping = 'http://geourl.org/ping/';
/**
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'GeoURL',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/GeoURL',
'rawdescription' =>
*/
class GeonamesPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
const LOCATION_NS = 1;
public $host = 'ws.geonames.org';
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Geonames',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Geonames',
'rawdescription' =>
class GroupFavoritedPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Hook for RouterInitialized event.
*
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/GroupFavorited';
$versions[] = array('name' => 'GroupFavorited',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => $url,
'rawdescription' =>
*/
class GroupPrivateMessagePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Database schema setup
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'GroupPrivateMessage',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/GroupPrivateMessage',
'rawdescription' =>
*/
class HTMLPurifierSchemesPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'HTMLPurifier Schemes',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/social',
'rawdescription' =>
class ImageMagickPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $preview_imageformat = 'PNG'; // Image format strings: http://www.imagemagick.org/script/formats.php#supported
public $rasterize_vectors = false; // Whether we want to turn SVG into PNG etc.
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ImageMagick',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://gnu.io/social',
'rawdescription' =>
*/
class ImapPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $mailbox;
public $user;
public $password;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'IMAP',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/IMAP',
'rawdescription' =>
*/
class InProcessCachePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
private $_items = array();
private $_hits = array();
private $active;
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/InProcessCache';
$versions[] = array('name' => 'InProcessCache',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => $url,
'description' =>
class InfiniteScrollPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $on_next_only = false;
function onEndShowScripts(Action $action)
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'InfiniteScroll',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/InfiniteScroll',
'rawdescription' =>
class LRDDPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public function onAutoload($cls)
{
switch ($cls) {
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'LRDD',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://www.gnu.org/software/social/',
// TRANS: Plugin description.
class LdapAuthenticationPlugin extends AuthenticationPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
function onInitializePlugin(){
parent::onInitializePlugin();
if(!isset($this->attributes['nickname'])){
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'LDAP Authentication',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/LdapAuthentication',
'rawdescription' =>
class LdapAuthorizationPlugin extends AuthorizationPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $roles_to_groups = array();
public $login_group = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'LDAP Authorization',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/LdapAuthorization',
'rawdescription' =>
class LilUrlPlugin extends UrlShortenerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $serviceUrl;
function onInitializePlugin(){
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => sprintf('LilUrl (%s)', $this->shortenerName),
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/LilUrl',
'rawdescription' =>
*/
class LinkPreviewPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'LinkPreview',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/LinkPreview',
'rawdescription' =>
*/
class LogFilterPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $default = true; // Set to false to require opting things in
public $priority = array(); // override by priority: array(LOG_ERR => true, LOG_DEBUG => false)
public $regex = array(); // override by regex match of message: array('/twitter/i' => false)
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'LogFilter',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/LogFilter',
'rawdescription' =>
*/
class MapstractionPlugin extends Plugin
{
- const VERSION = GNUSOCIAL_VERSION;
+ const PLUGIN_VERSION = '2.0.0';
/** provider name, one of:
'cloudmade', 'microsoft', 'openlayers', 'yahoo' */
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Mapstraction',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Mapstraction',
'rawdescription' =>
*/
class MemcachePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
static $cacheInitialized = false;
private $_conn = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Memcache',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Memcache',
'rawdescription' =>
*/
class MemcachedPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
static $cacheInitialized = false;
private $_conn = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Memcached',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Memcached',
'rawdescription' =>
*/
class MentionURLPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onEndFindMentions(Profile $sender, $text, &$mentions)
{
$matches = array();
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'MentionURL',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Stephen Paul Weber',
'homepage' => 'http://gnu.io/',
'description' =>
*/
class MeteorPlugin extends RealtimePlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $webserver = null;
public $webport = null;
public $controlport = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Meteor',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Meteor',
'rawdescription' =>
*/
class MobileProfilePlugin extends WAP20Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $DTD = null;
public $serveMobile = false;
public $reallyMobile = false;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'MobileProfile',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Sarven Capadisli',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/MobileProfile',
'rawdescription' =>
*/
class ModHelperPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
static $rights = array(Right::SILENCEUSER, Right::TRAINSPAM, Right::REVIEWSPAM);
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ModHelper',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ModHelper',
'rawdescription' =>
class ModLogPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
const VIEWMODLOG = 'ModLogPlugin::VIEWMODLOG';
/**
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ModLog',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ModLog',
'description' =>
*/
class ModPlusPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'ModPlus',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ModPlus',
'rawdescription' =>
class NodeinfoPlugin extends Plugin
{
- const VERSION = '0.0.1';
+ const VERSION = '1.0.1';
public function onRouterInitialized($m)
{
class OStatusPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Hook for RouterInitialized event.
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OStatus',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, James Walker, Brion Vibber, Zach Copley',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/OStatus',
// TRANS: Plugin description.
class OembedPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
// settings which can be set in config.php with addPlugin('Oembed', array('param'=>'value', ...));
// WARNING, these are _regexps_ (slashes added later). Always escape your dots and end your strings
public $domain_whitelist = array( // hostname => service provider
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Oembed',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://gnu.io/',
'description' =>
* Copyright (C) 2011, StatusNet, Inc.
*
* Offline backup
- *
+ *
* PHP version 5
*
* This program is free software: you can redistribute it and/or modify
/**
* Offline backup
*
- * Instead of a big
+ * Instead of a big
*
* @category General
* @package StatusNet
class OfflineBackupPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
function onRouterInitialized($m)
{
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OfflineBackup',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/OfflineBackup',
'rawdescription' =>
*/
class OpenExternalLinkTargetPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onEndShowScripts($action)
{
$action->inlineScript('$(document).on("click", "a[rel~=external]:not([class~=attachment])", function () { window.open(this.href); return false; });');
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OpenExternalLinkTarget',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Sarven Capadisli',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/OpenExternalLinkTarget',
'rawdescription' =>
*/
class OpenIDPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
// Plugin parameter: set true to disallow non-OpenID logins
// If set, overrides the setting in database or $config['site']['openidonly']
public $openidOnly = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OpenID',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou, Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/OpenID',
'rawdescription' =>
*/
class OpenXPlugin extends UAPPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $adScript = null;
function initialize()
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OpenX',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/OpenX',
'rawdescription' =>
<?php
class OpportunisticQMPlugin extends Plugin {
+ const PLUGIN_VERSION = '2.0.0';
+
public $qmkey = false;
public $secs_per_action = 1; // total seconds to run script per action
public $rel_to_pageload = true; // relative to pageload or queue start
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'OpportunisticQM',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://www.gnu.org/software/social/',
'description' =>
*/
class OrbitedPlugin extends RealtimePlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $webserver = null;
public $webport = null;
public $channelbase = null;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Orbited',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Orbited',
'rawdescription' =>
*/
class PiwikAnalyticsPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/** the base of your Piwik installation */
public $piwikroot = null;
/** the Piwik Id of your statusnet installation */
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'PiwikAnalytics',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Tobias Diekershoff, Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Piwik',
'rawdescription' =>
*/
class PollPlugin extends MicroAppPlugin
{
- const VERSION = '0.1';
+ const PLUGIN_VERSION = '0.1.0';
// @fixme which domain should we use for these namespaces?
const POLL_OBJECT = 'http://activityschema.org/object/poll';
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Poll',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Poll',
'rawdescription' =>
class PostDebugPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Set to a directory to dump individual items instead of
* sending to the debug log
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'PostDebug',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/PostDebug',
'rawdescription' =>
class PtitUrlPlugin extends UrlShortenerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $serviceUrl;
function onInitializePlugin(){
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => sprintf('PtitUrl (%s)', $this->shortenerName),
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/PtitUrl',
'rawdescription' =>
*/
class QnAPlugin extends MicroAppPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
var $oldSaveNew = true;
{
$versions[] = array(
'name' => 'QnA',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Zach Copley',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/QnA',
'description' =>
exit(1);
}
-define('RSSCLOUDPLUGIN_VERSION', '0.1');
+define('RSSCLOUDPLUGIN_VERSION', '0.1.0');
/**
* Plugin class for adding RSSCloud capabilities to StatusNet
class RegisterThrottlePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Array of time spans in seconds to limits.
*
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'RegisterThrottle',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/RegisterThrottle',
'description' =>
*/
class RequireValidatedEmailPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Users created before this time will be grandfathered in
* without the validation requirement.
{
$versions[] =
array('name' => 'Require Validated Email',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews, '.
'Evan Prodromou, '.
'Brion Vibber',
class ReverseUsernameAuthenticationPlugin extends AuthenticationPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
//---interface implementation---//
function onInitializePlugin(){
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Reverse Username Authentication',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ReverseUsernameAuthentication',
'rawdescription' =>
*/
class SQLProfilePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
private $recursionGuard = false;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'SQLProfile',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SQLProfile',
'rawdescription' =>
*/
class SQLStatsPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
protected $queryCount = 0;
protected $queryStart = 0;
protected $queryTimes = array();
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'SQLStats',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SQLStats',
'rawdescription' =>
*/
class SamplePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Plugins are configured using public instance attributes. To set
* their values, site administrators use this syntax:
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Sample',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber, Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Sample',
'rawdescription' =>
*/
class SearchSubPlugin extends Plugin
{
- const VERSION = '0.1';
+ const PLUGIN_VERSION = '0.1.0';
/**
* Database schema setup
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'SearchSub',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SearchSub',
'rawdescription' =>
class SensitiveContentPlugin extends Plugin
{
- const VERSION = '0.0.1';
+ const PLUGIN_VERSION = '0.0.1';
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Sensitive Content',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'MoonMan',
'homepage' => 'https://gitgud.io/ShitposterClub/SensitiveContent/',
'description' =>
*/
class SharePlugin extends ActivityVerbHandlerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public function tag()
{
return 'share';
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Share verb',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/',
'rawdescription' =>
class ShareNoticePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $targets = array(
array('Twitter'),
array('Facebook'),
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/ShareNotice';
$versions[] = array('name' => 'ShareNotice',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => $url,
'rawdescription' =>
*/
class SimpleCaptchaPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public function initialize()
{
// This probably needs some work. For example with IPv6 you can easily generate new IPs...
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Simple Captcha',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/social',
'rawdescription' =>
class SimpleUrlPlugin extends UrlShortenerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $serviceUrl;
function onInitializePlugin(){
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => sprintf('SimpleUrl (%s)', $this->shortenerName),
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SimpleUrl',
'rawdescription' =>
*/
class SitemapPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
const USERS_PER_MAP = 50000;
const NOTICES_PER_MAP = 50000;
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Sitemap';
$versions[] = array('name' => 'Sitemap',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => $url,
'rawdescription' =>
class SlicedFavoritesPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Example:
*
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SlicedFavorites';
$versions[] = array('name' => 'SlicedFavorites',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => $url,
'rawdescription' =>
*/
class SphinxSearchPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Automatically load any classes used
*
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SphinxSearch';
$versions[] = array('name' => 'SphinxSearch',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => $url,
'rawdescription' =>
class StoreRemoteMediaPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
// settings which can be set in config.php with addPlugin('Oembed', array('param'=>'value', ...));
// WARNING, these are _regexps_ (slashes added later). Always escape your dots and end your strings
public $domain_whitelist = array( // hostname => service provider
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'StoreRemoteMedia',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/',
'description' =>
class StrictTransportSecurityPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $max_age = 15552000;
public $includeSubDomains = false;
public $preloadToken = false;
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'StrictTransportSecurity',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/StrictTransportSecurity',
'rawdescription' =>
*/
class SubMirrorPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/**
* Hook for RouterInitialized event.
*
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'SubMirror',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SubMirror',
'rawdescription' =>
*/
class SubscriptionThrottlePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $subLimits = array(86400 => 100,
3600 => 50);
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'SubscriptionThrottle',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/SubscriptionThrottle',
'rawdescription' =>
class TabFocusPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function __construct()
{
parent::__construct();
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'TabFocus',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews and Paul Irish',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/TabFocus',
'rawdescription' =>
if (!defined('GNUSOCIAL')) { exit(1); }
class TagCloudPlugin extends Plugin {
+ const PLUGIN_VERSION = '2.0.0';
public function onRouterInitialized(URLMapper $m)
{
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'TagCloud',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://gnu.io/social',
'description' =>
*/
class TagSubPlugin extends Plugin
{
- const VERSION = '0.1';
+ const PLUGIN_VERSION = '0.1.0';
/**
* Database schema setup
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'TagSub',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/TagSub',
'rawdescription' =>
class TightUrlPlugin extends UrlShortenerPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $serviceUrl;
function onInitializePlugin(){
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => sprintf('TightUrl (%s)', $this->shortenerName),
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/TightUrl',
'rawdescription' =>
*/
class TwitterBridgePlugin extends Plugin
{
- const VERSION = GNUSOCIAL_VERSION;
+ const PLUGIN_VERSION = '2.0.0';
public $adminImportControl = false; // Should the 'import' checkbox be exposed in the admin panel?
/**
{
$versions[] = array(
'name' => 'TwitterBridge',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Zach Copley, Julien C, Jean Baptiste Favre',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/TwitterBridge',
// TRANS: Plugin description.
*/
class UserFlagPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
const REVIEWFLAGS = 'UserFlagPlugin::reviewflags';
const CLEARFLAGS = 'UserFlagPlugin::clearflags';
$url = 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/UserFlag';
$versions[] = array('name' => 'UserFlag',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => $url,
'rawdescription' =>
*/
class UserLimitPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $maxUsers = null;
public function onStartUserRegister(Profile $profile)
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'UserLimit',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/UserLimit',
'description' =>
class VideoThumbnailsPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
/*
* This function should only extract an image from the video stream
* and disregard any cropping or scaling in the resulting file, as
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'Video Thumbnails',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'https://www.gnu.org/software/social/',
'rawdescription' =>
class WebFingerPlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
const OAUTH_ACCESS_TOKEN_REL = 'http://apinamespace.org/oauth/access_token';
const OAUTH_REQUEST_TOKEN_REL = 'http://apinamespace.org/oauth/request_token';
const OAUTH_AUTHORIZE_REL = 'http://apinamespace.org/oauth/authorize';
public function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'WebFinger',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Mikael Nordfeldth',
'homepage' => 'http://www.gnu.org/software/social/',
// TRANS: Plugin description.
*/
class WikiHashtagsPlugin extends Plugin
{
- const VERSION = '0.1';
+ const PLUGIN_VERSION = '0.1.0';
function __construct($code=null)
{
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'WikiHashtags',
- 'version' => self::VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/WikiHashtags',
'rawdescription' =>
*/
class WikiHowProfilePlugin extends Plugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'WikiHow avatar fetcher',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Brion Vibber',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/Sample',
'rawdescription' =>
*/
class XmppPlugin extends ImPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $server = null;
public $port = 5222;
public $user = 'update';
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'XMPP',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews, Evan Prodromou',
'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/XMPP',
'rawdescription' =>