Your IP : 172.28.240.42


Current Path : /var/www/html/clients/amz.e-nk.ru/bitrix/modules/socialservices/classes/general/
Upload File :
Current File : /var/www/html/clients/amz.e-nk.ru/bitrix/modules/socialservices/classes/general/descriptions.php

<?
IncludeModuleLangFile(__FILE__);

class CSocServDescription
{
	public function GetDescription()
	{
		$liveid_disabled = !WindowsLiveLogin::IsAvailable();
		$tw_disabled = !function_exists("hash_hmac");

		return array(
			array(
				"ID" => "Facebook",
				"CLASS" => "CSocServFacebook",
				"NAME" => "Facebook",
				"ICON" => "facebook",
			),
			array(
				"ID" => "LiveID",
				"CLASS" => "CSocServLiveID",
				"NAME" => "LiveID",
				"ICON" => "liveid",
				"DISABLED" => $liveid_disabled,
			),
			array(
				"ID" => "MyMailRu",
				"CLASS" => "CSocServMyMailRu",
				"NAME" => GetMessage("socserv_mailru_name"),
				"ICON" => "mymailru",
			),
			array(
				"ID" => "OpenID",
				"CLASS" => "CSocServOpenID",
				"NAME" => "OpenID",
				"ICON" => "openid",
			),
			array(
				"ID" => "YandexOpenID",
				"CLASS" => "CSocServYandex",
				"NAME" => GetMessage("socserv_openid_yandex"),
				"ICON" => "yandex",
			),
			array(
				"ID" => "MailRuOpenID",
				"CLASS" => "CSocServMailRu",
				"NAME" => "Mail.Ru",
				"ICON" => "openid-mail-ru",
			),
			array(
				"ID" => "Livejournal",
				"CLASS" => "CSocServLivejournal",
				"NAME" => "Livejournal",
				"ICON" => "livejournal",
			),
			array(
				"ID" => "Liveinternet",
				"CLASS" => "CSocServLiveinternet",
				"NAME" => "Liveinternet",
				"ICON" => "liveinternet",
			),
			array(
				"ID" => "Blogger",
				"CLASS" => "CSocServBlogger",
				"NAME" => "Blogger",
				"ICON" => "blogger",
			),
			array(
				"ID" => "Rambler",
				"CLASS" => "CSocServRambler",
				"NAME" => "Rambler",
				"ICON" => "rambler",
			),
			array(
				"ID" => "Twitter",
				"CLASS" => "CSocServTwitter",
				"NAME" => "Twitter",
				"ICON" => "twitter",
				"DISABLED" => $tw_disabled,
			),
			array(
				"ID" => "VKontakte",
				"CLASS" => "CSocServVKontakte",
				"NAME" => GetMessage("socserv_vk_name"),
				"ICON" => "vkontakte",
			),
			array(
				"ID" => "GoogleOAuth",
				"CLASS" => "CSocServGoogleOAuth",
				"NAME" => "Google",
				"ICON" => "google",
			),
		);
	}
}

AddEventHandler("socialservices", "OnAuthServicesBuildList", array("CSocServDescription", "GetDescription"));
?>