__AdmSettingsSaveOption($module_id, $option); } } } $sendTwit = $allowSendActivity = 'N'; if ($_POST["get_message_from_twitter"] == 'Y') { $sendTwit = 'Y'; CAgent::AddAgent("CSocServAuthManager::GetTwitMessages();", "socialservices", "N", 90, "", "Y", ""); } COption::SetOptionString("socialservices", "get_message_from_twitter", $sendTwit); if ($_POST["allow_send_user_activity"] == 'Y') { $allowSendActivity = 'Y'; } COption::SetOptionString("socialservices", "allow_send_user_activity", $allowSendActivity); CSocServAuth::setGroupsDenyAuth($_REQUEST["group_deny_auth"]); CSocServAuth::setGroupsDenySplit($_REQUEST["group_deny_split"]); if (isset($_REQUEST["allow_registration"])) { COption::SetOptionString("socialservices", "allow_registration", $_REQUEST["allow_registration"] == "N" ? "N" : "Y"); } if (strlen($_REQUEST["back_url_settings"]) > 0) { if ($_POST["Apply"] != '' || $_POST["RestoreDefaults"] != '') { LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($module_id) . "&lang=" . urlencode(LANGUAGE_ID) . "&back_url_settings=" . urlencode($_REQUEST["back_url_settings"]) . "&" . $tabControl->ActiveTabParam() . ($_REQUEST["siteTabControl_active_tab"] != '' ? "&siteTabControl_active_tab=" . urlencode($_REQUEST["siteTabControl_active_tab"]) : '')); } else { LocalRedirect($_REQUEST["back_url_settings"]); } } else { LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($module_id) . "&lang=" . urlencode(LANGUAGE_ID) . "&" . $tabControl->ActiveTabParam() . ($_REQUEST["siteTabControl_active_tab"] != '' ? "&siteTabControl_active_tab=" . urlencode($_REQUEST["siteTabControl_active_tab"]) : '')); } } ?> <script type="text/javascript">