|
|
@ -235,23 +235,9 @@ if ($group_id != 0) { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
$social_avatar_block.= '<div class="status">'.Display::return_icon('offline.png').get_lang('Chat')." (".get_lang('Offline').')</div>'; |
|
|
|
$social_avatar_block.= '<div class="status">'.Display::return_icon('offline.png').get_lang('Chat')." (".get_lang('Offline').')</div>'; |
|
|
|
} |
|
|
|
} |
|
|
|
$editProfileUrl = api_get_path(WEB_CODE_PATH) . 'auth/profile.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (api_get_setting('sso_authentication') === 'true') { |
|
|
|
$editProfileUrl = Display::getProfileEditionLink($user_id); |
|
|
|
$subSSOClass = api_get_setting('sso_authentication_subclass'); |
|
|
|
|
|
|
|
$objSSO = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($subSSOClass)) { |
|
|
|
|
|
|
|
require_once api_get_path(SYS_CODE_PATH) . 'auth/sso/sso.' . $subSSOClass . '.class.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$subSSOClass = 'sso' . $subSSOClass; |
|
|
|
|
|
|
|
$objSSO = new $subSSOClass(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$objSSO = new sso(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$editProfileUrl = $objSSO->generateProfileEditingURL(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$social_avatar_block .= '<div class="edit-profile"> |
|
|
|
$social_avatar_block .= '<div class="edit-profile"> |
|
|
|
<a class="btn" href="' . $editProfileUrl . '">' . get_lang('EditProfile') . '</a> |
|
|
|
<a class="btn" href="' . $editProfileUrl . '">' . get_lang('EditProfile') . '</a> |
|
|
|
</div>'; |
|
|
|
</div>'; |
|
|
@ -276,23 +262,9 @@ if ($group_id != 0) { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
$social_avatar_block.= '<div class="status">'.Display::return_icon('offline.png').get_lang('Chat')." (".get_lang('Offline').')</div>'; |
|
|
|
$social_avatar_block.= '<div class="status">'.Display::return_icon('offline.png').get_lang('Chat')." (".get_lang('Offline').')</div>'; |
|
|
|
} |
|
|
|
} |
|
|
|
$editProfileUrl = api_get_path(WEB_CODE_PATH) . 'auth/profile.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (api_get_setting('sso_authentication') === 'true') { |
|
|
|
$editProfileUrl = Display::getProfileEditionLink($user_id); |
|
|
|
$subSSOClass = api_get_setting('sso_authentication_subclass'); |
|
|
|
|
|
|
|
$objSSO = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($subSSOClass)) { |
|
|
|
|
|
|
|
require_once api_get_path(SYS_CODE_PATH) . 'auth/sso/sso.' . $subSSOClass . '.class.php'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$subSSOClass = 'sso' . $subSSOClass; |
|
|
|
|
|
|
|
$objSSO = new $subSSOClass(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
$objSSO = new sso(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$editProfileUrl = $objSSO->generateProfileEditingURL(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$social_avatar_block .= '<div class="edit-profile"> |
|
|
|
$social_avatar_block .= '<div class="edit-profile"> |
|
|
|
<a class="btn" href="' . $editProfileUrl . '">' . get_lang('EditProfile') . '</a> |
|
|
|
<a class="btn" href="' . $editProfileUrl . '">' . get_lang('EditProfile') . '</a> |
|
|
|
</div>'; |
|
|
|
</div>'; |
|
|
|