function SSO_AddGeoIPMapFields(&$info) { global $sso_settings, $sso_ipaddr_info; $geoip_opts = SSO_GetGeoIPOpts(); foreach ($geoip_opts as $opt => $val) { if ($sso_settings[""]["iprestrict"]["geoip_map_" . $opt] != "") { $info[$sso_settings[""]["iprestrict"]["geoip_map_" . $opt]] = isset($sso_ipaddr_info["spaminfo_cache"]) && isset($sso_ipaddr_info["spaminfo_cache"]["geoip"]) && $sso_ipaddr_info["spaminfo_cache"]["geoip"] !== false && isset($sso_ipaddr_info["spaminfo_cache"]["geoip"][$opt]) ? $sso_ipaddr_info["spaminfo_cache"]["geoip"][$opt] : ""; } } }
$tags[$row2->id] = $row2->tag_name; } } $sso_provider = $row->provider_name; $userinfo = SSO_LoadDecryptedUserInfo($row); if ($userinfo === false) { BB_RedirectPage("error", "Unable to load user information."); } if (isset($sso_providers[$sso_provider])) { $protectedfields = $sso_providers[$sso_provider]->GetProtectedFields(); } else { foreach ($sso_fields as $key => $encrypted) { $protectedfields[$key] = true; } } $geoip_opts = SSO_GetGeoIPOpts(); foreach ($geoip_opts as $opt => $val) { if ($sso_settings[""]["iprestrict"]["geoip_map_" . $opt] != "") { $protectedfields[$sso_settings[""]["iprestrict"]["geoip_map_" . $opt]] = true; } } $fields = $sso_fields; foreach ($userinfo as $key => $val) { $fields[$key] = $key; } if (function_exists("AdminHook_EditUser_PreFields")) { AdminHook_EditUser_PreFields(); } if (isset($_REQUEST["version"])) { if ((int) $_REQUEST["version"] < 0) { BB_SetPageMessage("error", "Account Version must 0 or higher.");