X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsiteprofile.php;h=55aeaa972f2b9466292ecc428f69fc57adea3b3b;hb=97ce71e55d719af3ff53d70367c5e72312bcd136;hp=b5c6fc304cbe827538a5aa01d95ee492d01cf669;hpb=8e501584b4537750fbd0ca3954e1426b723d5dad;p=quix0rs-gnu-social.git diff --git a/lib/siteprofile.php b/lib/siteprofile.php index b5c6fc304c..55aeaa972f 100644 --- a/lib/siteprofile.php +++ b/lib/siteprofile.php @@ -74,6 +74,19 @@ class SiteProfile abstract class SiteProfileSettings { abstract static function getSettings(); + + static function defaultPlugins() { + return array( + 'Bookmark' => null, + 'Event' => null, + 'OpenID' => null, + 'Poll' => null, + 'QnA' => null, + 'SearchSub' => null, + 'StrictTransportSecurity' => null, + 'TagSub' => null, + ); + } } /** @@ -98,23 +111,14 @@ class PublicSite extends SiteProfileSettings ) ), 'plugins' => array( - 'default' => array( - 'Activity' => null, - 'Bookmark' => null, + 'default' => array_merge(self::defaultPlugins(), array( 'ClientSideShorten' => null, 'Directory' => null, - 'Event' => null, 'ExtendedProfile' => null, 'Geonames' => null, 'Gravatar' => null, - 'OpenID' => null, 'OStatus' => null, - 'Poll' => null, - 'QnA' => null, - 'SearchSub' => null, - 'StrictTransportSecurity' => null, - 'TagSub' => null - ) + )) ), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) ); @@ -144,25 +148,16 @@ class PrivateSite extends SiteProfileSettings ) ), 'plugins' => array( - 'default' => array( - 'Activity' => null, - 'Bookmark' => null, + 'default' => array_merge(self::defaultPlugins(), array( 'ClientSideShorten' => null, 'Directory' => null, - 'Event' => null, 'ExtendedProfile' => null, 'EmailRegistration' => null, 'Geonames' => null, 'Gravatar' => null, 'NewMenu' => null, 'MobileProfile' => null, - 'OpenID' => null, - 'Poll' => null, - 'QnA' => null, - 'SearchSub' => null, - 'StrictTransportSecurity' => null, - 'TagSub' => null - ) + )) ), 'profile' => array('delete' => 'true'), 'license' => array('type' => 'private'), @@ -207,22 +202,13 @@ class CommunitySite extends SiteProfileSettings ) ), 'plugins' => array( - 'default' => array( - 'Activity' => null, - 'Bookmark' => null, + 'default' => array_merge(self::defaultPlugins(), array( 'ClientSideShorten' => null, 'Directory' => null, - 'Event' => null, 'Geonames' => null, 'Gravatar' => null, - 'OpenID' => null, 'OStatus' => null, - 'Poll' => null, - 'QnA' => null, - 'SearchSub' => null, - 'StrictTransportSecurity' => null, - 'TagSub' => null - ) + )) ), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) ); @@ -252,24 +238,15 @@ class SingleuserSite extends SiteProfileSettings ) ), 'plugins' => array( - 'default' => array( - 'Activity' => null, - 'Bookmark' => null, + 'default' => array_merge(self::defaultPlugins(), array( 'ClientSideShorten' => null, - 'Event' => null, 'Geonames' => null, 'NewMenu' => null, 'MobileProfile' => null, - 'OpenID' => null, 'OStatus' => null, - 'Poll' => null, - 'QnA' => null, - 'SearchSub' => null, - 'StrictTransportSecurity' => null, - 'TagSub' => null, 'TwitterBridge' => null, 'FacebookBridge' => null, - ) + )) ), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) );