Add LLWebProfile and responders.

Adds finding and using libjsoncpp. Note that the old cmake file
found libjson, not the same thing.

Adds Debug Setting WebProfileNonProductionURL (next to already existing
WebProfileURL) to mimic V3's behavior and use a different URL for aditi.
These Debug Settings are using by (the new) getProfileURL() (copied
from V3 with just a minor fix).

Adds HippoGridInfo::isInProductionGrid() next to the existing
LLViewerLogin::isInProductionGrid that always returned true.
The former should only be called SL grids and then only returns
true for agni (and false for aditi et al). The latter was changed
to now always return true except on SL when the grid isn't agni.
The first is used for SL-only cases, the latter for things like
colors and for godmode decision logic.

V3's llwebprofile.cpp was fixed to compile on singu, with only real
difference that I dropped the Content-Type headers for the GET methods.
This commit is contained in:
Aleric Inglewood
2012-11-16 02:00:06 +01:00
parent fdfe0cae87
commit fce64f8f12
14 changed files with 637 additions and 73 deletions

View File

@@ -77,6 +77,7 @@ bool LLViewerLogin::isSecondLife()
bool LLViewerLogin::isInProductionGrid()
{
return true;
// Return true (as before) on opensim grids, but return the real thing (agni or not) on SL.
return !gHippoGridManager->getConnectedGrid()->isSecondLife() || gHippoGridManager->getConnectedGrid()->isInProductionGrid();
}