X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsiteprofile.php;h=a2c09efb2f6be08f5dc0919573ff1a0b601d5d71;hb=d2e6519bad041e50b4ae7df441e43fd2cfed46fc;hp=6ab095d7121cfa573945cb309500800685a55b5c;hpb=aa36fecd0af84010d4d5e955c13857b091fd30ad;p=quix0rs-gnu-social.git diff --git a/lib/siteprofile.php b/lib/siteprofile.php index 6ab095d712..a2c09efb2f 100644 --- a/lib/siteprofile.php +++ b/lib/siteprofile.php @@ -28,7 +28,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET')) { +if (!defined('GNUSOCIAL')) { exit(1); } @@ -110,10 +110,7 @@ class PublicSite extends SiteProfileSettings 'plugins' => array( 'core' => self::corePlugins(), 'default' => array_merge(self::defaultPlugins(), array( - 'Directory' => null, - 'ExtendedProfile' => null, - 'OStatus' => null, - 'WebFinger' => null, + 'RegisterThrottle' => array(), )) ), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) @@ -146,13 +143,14 @@ class PrivateSite extends SiteProfileSettings 'plugins' => array( 'core' => self::corePlugins(), 'default' => array_merge(self::defaultPlugins(), array( - 'Directory' => null, - 'ExtendedProfile' => null, - 'EmailRegistration' => null, - 'NewMenu' => null, - 'MobileProfile' => null, - )) + 'ExtendedProfile' => array(), + 'EmailRegistration' => array(), + 'MobileProfile' => array(), + )), + 'disable-OStatus' => 1, + 'disable-WebFinger' => 1, ), + 'public' => array('localonly' => true), 'profile' => array('delete' => 'true'), 'license' => array('type' => 'private'), 'attachments' => array( @@ -192,17 +190,16 @@ class CommunitySite extends SiteProfileSettings 'site' => array_merge( $config['site'], array( 'private' => false, + 'inviteonly' => true, 'closed' => false ) ), 'plugins' => array( 'core' => self::corePlugins(), 'default' => array_merge(self::defaultPlugins(), array( - 'Directory' => null, - 'OStatus' => null, - 'WebFinger' => null, )) ), + 'public' => array('localonly' => true), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) ); } @@ -228,19 +225,17 @@ class SingleuserSite extends SiteProfileSettings $config['site'], array( 'private' => false, 'closed' => true, + 'localonly' => true, ) ), 'plugins' => array( 'core' => self::corePlugins(), 'default' => array_merge(self::defaultPlugins(), array( - 'NewMenu' => null, - 'MobileProfile' => null, - 'OStatus' => null, - 'TwitterBridge' => null, - 'FacebookBridge' => null, - 'WebFinger' => null, - )) + 'MobileProfile' => array(), + )), + 'disable-Directory' => 1, ), + 'public' => array('localonly' => true), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) ); }