X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fsiteprofile.php;h=4bbffea7542ccd149ded02acad15b64f4762c4bb;hb=b24d711f552854d88f2df2120672bdaf173335fc;hp=ff7f6f61e9edcc55562f3d440c7b1ffe6eb7b0f9;hpb=039874195649f578c89d4435e99a0359501cda79;p=quix0rs-gnu-social.git diff --git a/lib/siteprofile.php b/lib/siteprofile.php index ff7f6f61e9..4bbffea754 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,11 +110,8 @@ class PublicSite extends SiteProfileSettings 'plugins' => array( 'core' => self::corePlugins(), 'default' => array_merge(self::defaultPlugins(), array( - 'Directory' => null, - 'ExtendedProfile' => null, - 'Geonames' => null, - 'OStatus' => null, - 'WebFinger' => null, + 'ExtendedProfile' => array(), + 'RegisterThrottle' => array(), )) ), 'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.) @@ -147,14 +144,14 @@ class PrivateSite extends SiteProfileSettings 'plugins' => array( 'core' => self::corePlugins(), 'default' => array_merge(self::defaultPlugins(), array( - 'Directory' => null, - 'ExtendedProfile' => null, - 'EmailRegistration' => null, - 'Geonames' => 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( @@ -194,18 +191,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, - 'Geonames' => 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.) ); } @@ -231,20 +226,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( - 'Geonames' => null, - '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.) ); }