void LLGridManager::updateIsInProductionGrid() { mIsInProductionGrid = false; // *NOTE:Mani This used to compare GRID_INFO_AGNI to gGridChoice, // but it seems that loginURI trumps that. std::vector<std::string> uris; getLoginURIs(uris); if (uris.empty()) { mIsInProductionGrid = true; } else { for ( std::vector<std::string>::iterator uri_it = uris.begin(); ! mIsInProductionGrid && uri_it != uris.end(); uri_it++ ) { if( MAIN_GRID_LOGIN_URI == *uri_it ) { mIsInProductionGrid = true; } } } }
void LLGridManager::updateIsInProductionGrid() { mIsInProductionGrid = false; // *NOTE:Mani This used to compare GRID_INFO_AGNI to gGridChoice, // but it seems that loginURI trumps that. std::vector<std::string> uris; getLoginURIs(uris); if (uris.empty()) { mIsInProductionGrid = true; return; } LLStringUtil::toLower(uris[0]); if((uris[0].find("agni") != std::string::npos)) { mIsInProductionGrid = true; return; } }
void LLGridManager::updateIsInSecondLife() { mIsInSecondLife = false; std::vector<std::string> uris; getLoginURIs(uris); if (uris.empty()) { mIsInSecondLife = true; return; } LLStringUtil::toLower(uris[0]); if((uris[0].find("agni") != std::string::npos)|| (uris[0].find("aditi") != std::string::npos)|| (uris[0].find("://216.82.") != std::string::npos)) { mIsInSecondLife = true; return; } }
// <AW opensim> void LLGridManager::updateIsInProductionGrid() { mIsInSLMain = false; mIsInSLBeta = false; mIsInOpenSim = false; // *NOTE:Mani This used to compare GRID_INFO_AGNI to gGridChoice, // but it seems that loginURI trumps that. std::vector<std::string> uris; getLoginURIs(uris); if(uris.empty()) { LL_DEBUGS("GridManager") << "uri is empty, no grid type set." << LL_ENDL; return; } LLStringUtil::toLower(uris[0]); // LL looks if "agni" is contained in the string for SL main grid detection. // cool for http://agni.nastyfraud.com/steal.php#allyourmoney if( uris[0].find("https://login.agni.lindenlab.com") == 0 ) { LL_DEBUGS("GridManager")<< "uri: "<< uris[0] << "set IsInSLMain" << LL_ENDL; mIsInSLMain = true; return; } else if( uris[0].find("lindenlab.com") != std::string::npos )//here is no real money { LL_DEBUGS("GridManager")<< "uri: "<< uris[0] << "set IsInSLBeta" << LL_ENDL; mIsInSLBeta = true; return; } LL_DEBUGS("GridManager")<< "uri: "<< uris[0] << "set IsInOpenSim" << LL_ENDL; mIsInOpenSim = true; }
void LLGridManager::getLoginURIs(std::vector<std::string>& uris) { getLoginURIs(mGrid, uris); }