- Модуль: socialservices
- Путь к файлу: ~/bitrix/modules/socialservices/lib/network.php
- Класс: BitrixSocialservicesNetwork
- Вызов: Network::setRegisterSettings
static function setRegisterSettings($settings = array())
{
if(isset($settings["REGISTER"]))
{
Option::set("socialservices", "new_user_registration_network", $settings["REGISTER"] == "Y" ? "Y" : "N");
}
if(isset($settings["REGISTER_CONFIRM"]))
{
Option::set("socialservices", "new_user_registration_confirm", $settings["REGISTER_CONFIRM"] == "Y" ? "Y" : "N");
}
if(isset($settings["REGISTER_WHITELIST"]))
{
$value = preg_split("/[^a-z0-9-.]+/", ToLower($settings["REGISTER_WHITELIST"]));
Option::set("socialservices", "new_user_registration_whitelist", serialize($value));
}
if(isset($settings["REGISTER_TEXT"]))
{
Option::set("socialservices", "new_user_registration_text", trim($settings["REGISTER_TEXT"]));
}
if(isset($settings["REGISTER_SECRET"]))
{
Option::set("socialservices", "new_user_registration_secret", trim($settings["REGISTER_SECRET"]));
}
static::updateRegisterSettings();
}