* Type of the community page
* @{
*/
-define('CP_NO_COMMUNITY_PAGE', -1);
-define('CP_USERS_ON_SERVER', 0);
-define('CP_GLOBAL_COMMUNITY', 1);
-define('CP_USERS_AND_GLOBAL', 2);
+define('CP_NO_INTERNAL_COMMUNITY', -2);
+define('CP_NO_COMMUNITY_PAGE', -1);
+define('CP_USERS_ON_SERVER', 0);
+define('CP_GLOBAL_COMMUNITY', 1);
+define('CP_USERS_AND_GLOBAL', 2);
/**
* @}
*/
*/
function remote_user()
{
- // You cannot be both local and remote
- if (local_user()) {
- return false;
- }
+ // You cannot be both local and remote.
+ // Unncommented by rabuzarus because remote authentication to local
+ // profiles wasn't possible anymore (2018-04-12).
+// if (local_user()) {
+// return false;
+// }
if (x($_SESSION, 'authenticated') && x($_SESSION, 'visitor_id')) {
return intval($_SESSION['visitor_id']);
}
$server = Config::get("system", "directory");
if ($server == "") {
- $server = "http://dir.friendica.social";
+ $server = "https://dir.friendica.social";
}
return($server);