]> git.mxchange.org Git - friendica.git/blobdiff - mod/settings.php
don't send any private messages over the facebook channel
[friendica.git] / mod / settings.php
index 47743759de701a54c0c8275604c6a080b179c063..a8e02ea4001815b2fb573c5a4e0d6152a2c84f5f 100644 (file)
@@ -3,7 +3,6 @@
 
 function settings_init(&$a) {
        if(local_user()) {
-               require_once("mod/profile.php");
                profile_load($a,$a->user['nickname']);
        }
 }
@@ -196,6 +195,17 @@ function settings_content(&$a) {
                '$page_freelove'  => PAGE_FREELOVE
        ));
 
+       $noid = get_config('system','no_openid');
+
+       if($noid) {
+               $oidhtml = '';
+       }
+       else {
+               $oidhtml = '<label id="settings-openid-label" for="settings-openid" >' . t('OpenID: ') . '</label><input type="text" id="settings-openid" class="openid" name="openid_url" value="$openid" />' . t("&nbsp;\x28Optional\x29 Allow this OpenID to login to this account.");
+       }
+
+
+
 
        $opt_tpl = load_view_file("view/profile-in-directory.tpl");
        $profile_in_dir = replace_macros($opt_tpl,array(
@@ -260,6 +270,7 @@ function settings_content(&$a) {
 
        $o .= replace_macros($stpl,array(
                '$baseurl' => $a->get_baseurl(),
+               '$oidhtml' => $oidhtml,
                '$uid' => local_user(),
                '$username' => $username,
                '$openid' => $openid,