+ if (($ret["network"] == NETWORK_DIASPORA) AND !get_config('system','diaspora_enabled')) {
+ notice( t("Diaspora support isn't enabled. Contact can't be added.") . EOL);
+ $submit = "";
+ //goaway($_SESSION['return_url']);
+ // NOTREACHED
+ }
+
+ if (($ret["network"] == NETWORK_OSTATUS) AND get_config('system','ostatus_disabled')) {
+ notice( t("OStatus support is disabled. Contact can't be added.") . EOL);
+ $submit = "";
+ //goaway($_SESSION['return_url']);
+ // NOTREACHED
+ }
+