diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/linux_crash_logger/llcrashloggerlinux.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llimage/llimagetga.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llmedia/llmediamanager.cpp | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llhttpclient.cpp | 14 | ||||
-rw-r--r-- | linden/indra/llwindow/llwindowsdl.cpp | 2 | ||||
-rw-r--r-- | linden/indra/lscript/lscript_compile/lscript_tree.cpp | 8 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 5 | ||||
-rw-r--r-- | linden/indra/newview/lldrawable.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llfloaterdirectory.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llpanellogin.cpp | 71 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llviewernetwork.cpp | 97 | ||||
-rw-r--r-- | linden/indra/newview/llviewernetwork.h | 31 | ||||
-rw-r--r-- | linden/install.xml | 4 |
15 files changed, 65 insertions, 185 deletions
diff --git a/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp b/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp index 6ac9831..c4294d6 100644 --- a/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp +++ b/linden/indra/linux_crash_logger/llcrashloggerlinux.cpp | |||
@@ -90,7 +90,7 @@ static BOOL do_ask_dialog(void) | |||
90 | 90 | ||
91 | win = gtk_message_dialog_new(NULL, | 91 | win = gtk_message_dialog_new(NULL, |
92 | flags, messagetype, buttons, | 92 | flags, messagetype, buttons, |
93 | dialog_text); | 93 | "%s", dialog_text); |
94 | gtk_window_set_type_hint(GTK_WINDOW(win), | 94 | gtk_window_set_type_hint(GTK_WINDOW(win), |
95 | GDK_WINDOW_TYPE_HINT_DIALOG); | 95 | GDK_WINDOW_TYPE_HINT_DIALOG); |
96 | gtk_window_set_title(GTK_WINDOW(win), dialog_title); | 96 | gtk_window_set_title(GTK_WINDOW(win), dialog_title); |
diff --git a/linden/indra/llimage/llimagetga.cpp b/linden/indra/llimage/llimagetga.cpp index 32c2111..21d0fd1 100644 --- a/linden/indra/llimage/llimagetga.cpp +++ b/linden/indra/llimage/llimagetga.cpp | |||
@@ -104,7 +104,7 @@ LLImageTGA::LLImageTGA(const std::string& file_name) | |||
104 | 104 | ||
105 | LLImageTGA::~LLImageTGA() | 105 | LLImageTGA::~LLImageTGA() |
106 | { | 106 | { |
107 | delete mColorMap; | 107 | delete [] mColorMap; |
108 | } | 108 | } |
109 | 109 | ||
110 | BOOL LLImageTGA::updateData() | 110 | BOOL LLImageTGA::updateData() |
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index 51a5bca..5d6a648 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -428,7 +428,7 @@ unload () | |||
428 | 428 | ||
429 | if (mediaData) | 429 | if (mediaData) |
430 | { | 430 | { |
431 | delete mediaData; | 431 | delete [] mediaData; |
432 | mediaData = NULL; | 432 | mediaData = NULL; |
433 | } | 433 | } |
434 | 434 | ||
diff --git a/linden/indra/llmedia/llmediamanager.cpp b/linden/indra/llmedia/llmediamanager.cpp index f72e63c..16c731f 100644 --- a/linden/indra/llmedia/llmediamanager.cpp +++ b/linden/indra/llmedia/llmediamanager.cpp | |||
@@ -150,8 +150,10 @@ LLMediaManager* LLMediaManager::getInstance() | |||
150 | // (static) | 150 | // (static) |
151 | void LLMediaManager::setBrowserUserAgent(std::string user_agent) | 151 | void LLMediaManager::setBrowserUserAgent(std::string user_agent) |
152 | { | 152 | { |
153 | #if LL_LLMOZLIB_ENABLED | ||
153 | // *HACK: Breaks encapsulation model, as initClass does above. JC | 154 | // *HACK: Breaks encapsulation model, as initClass does above. JC |
154 | LLMediaImplLLMozLib::setBrowserUserAgent(user_agent); | 155 | LLMediaImplLLMozLib::setBrowserUserAgent(user_agent); |
156 | #endif | ||
155 | } | 157 | } |
156 | 158 | ||
157 | //////////////////////////////////////////////////////////////////////////////// | 159 | //////////////////////////////////////////////////////////////////////////////// |
diff --git a/linden/indra/llmessage/llhttpclient.cpp b/linden/indra/llmessage/llhttpclient.cpp index fc2612f..ef163fa 100644 --- a/linden/indra/llmessage/llhttpclient.cpp +++ b/linden/indra/llmessage/llhttpclient.cpp | |||
@@ -160,10 +160,9 @@ namespace | |||
160 | fstream.seekg(0, std::ios::end); | 160 | fstream.seekg(0, std::ios::end); |
161 | U32 fileSize = fstream.tellg(); | 161 | U32 fileSize = fstream.tellg(); |
162 | fstream.seekg(0, std::ios::beg); | 162 | fstream.seekg(0, std::ios::beg); |
163 | char* fileBuffer; | 163 | std::vector<char> fileBuffer(fileSize); |
164 | fileBuffer = new char [fileSize]; | 164 | fstream.read(&fileBuffer[0], fileSize); |
165 | fstream.read(fileBuffer, fileSize); | 165 | ostream.write(&fileBuffer[0], fileSize); |
166 | ostream.write(fileBuffer, fileSize); | ||
167 | fstream.close(); | 166 | fstream.close(); |
168 | eos = true; | 167 | eos = true; |
169 | return STATUS_DONE; | 168 | return STATUS_DONE; |
@@ -190,10 +189,9 @@ namespace | |||
190 | 189 | ||
191 | LLVFile vfile(gVFS, mUUID, mAssetType, LLVFile::READ); | 190 | LLVFile vfile(gVFS, mUUID, mAssetType, LLVFile::READ); |
192 | S32 fileSize = vfile.getSize(); | 191 | S32 fileSize = vfile.getSize(); |
193 | U8* fileBuffer; | 192 | std::vector<U8> fileBuffer(fileSize); |
194 | fileBuffer = new U8 [fileSize]; | 193 | vfile.read(&fileBuffer[0], fileSize); |
195 | vfile.read(fileBuffer, fileSize); | 194 | ostream.write((char*)&fileBuffer[0], fileSize); |
196 | ostream.write((char*)fileBuffer, fileSize); | ||
197 | eos = true; | 195 | eos = true; |
198 | return STATUS_DONE; | 196 | return STATUS_DONE; |
199 | } | 197 | } |
diff --git a/linden/indra/llwindow/llwindowsdl.cpp b/linden/indra/llwindow/llwindowsdl.cpp index c088dd8..f0acee5 100644 --- a/linden/indra/llwindow/llwindowsdl.cpp +++ b/linden/indra/llwindow/llwindowsdl.cpp | |||
@@ -2530,7 +2530,7 @@ S32 OSMessageBoxSDL(const std::string& text, const std::string& caption, U32 typ | |||
2530 | buttons = GTK_BUTTONS_YES_NO; | 2530 | buttons = GTK_BUTTONS_YES_NO; |
2531 | break; | 2531 | break; |
2532 | } | 2532 | } |
2533 | win = gtk_message_dialog_new(NULL,flags, messagetype, buttons, text.c_str()); | 2533 | win = gtk_message_dialog_new(NULL,flags, messagetype, buttons, "%s", text.c_str()); |
2534 | 2534 | ||
2535 | # if LL_X11 | 2535 | # if LL_X11 |
2536 | // Make GTK tell the window manager to associate this | 2536 | // Make GTK tell the window manager to associate this |
diff --git a/linden/indra/lscript/lscript_compile/lscript_tree.cpp b/linden/indra/lscript/lscript_compile/lscript_tree.cpp index 71e7f19..70d8195 100644 --- a/linden/indra/lscript/lscript_compile/lscript_tree.cpp +++ b/linden/indra/lscript/lscript_compile/lscript_tree.cpp | |||
@@ -7885,10 +7885,10 @@ void LLScriptFunctionCall::recurse(LLFILE *fp, S32 tabs, S32 tabsize, LSCRIPTCom | |||
7885 | { | 7885 | { |
7886 | // Prefix function name with g to distinguish from | 7886 | // Prefix function name with g to distinguish from |
7887 | // event handlers. | 7887 | // event handlers. |
7888 | fprintf(fp, gScriptp->getClassName()); | 7888 | fprintf(fp, "%s", gScriptp->getClassName()); |
7889 | fprintf(fp, "::'g"); | 7889 | fprintf(fp, "::'g"); |
7890 | } | 7890 | } |
7891 | fprintf(fp, mIdentifier->mName); | 7891 | fprintf(fp, "%s", mIdentifier->mName); |
7892 | fprintf(fp, "'("); | 7892 | fprintf(fp, "'("); |
7893 | print_cil_arg_list(fp, mIdentifier->mScopeEntry->mFunctionArgs); | 7893 | print_cil_arg_list(fp, mIdentifier->mScopeEntry->mFunctionArgs); |
7894 | fprintf(fp, ")\n"); | 7894 | fprintf(fp, ")\n"); |
@@ -9720,7 +9720,7 @@ void LLScriptEventHandler::recurse(LLFILE *fp, S32 tabs, S32 tabsize, LSCRIPTCom | |||
9720 | // Allows state changing by finding handlers prefixed with new | 9720 | // Allows state changing by finding handlers prefixed with new |
9721 | // state name. Prefix disambiguates functions and event handlers. | 9721 | // state name. Prefix disambiguates functions and event handlers. |
9722 | fprintf(fp, "e"); | 9722 | fprintf(fp, "e"); |
9723 | fprintf(fp, entry->mIdentifier); | 9723 | fprintf(fp, "%s", entry->mIdentifier); |
9724 | 9724 | ||
9725 | // Handler name and arguments. | 9725 | // Handler name and arguments. |
9726 | mEventp->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, entry, entrycount, NULL); | 9726 | mEventp->recurse(fp, tabs, tabsize, pass, ptype, prunearg, scope, type, basetype, count, chunk, heap, stacksize, entry, entrycount, NULL); |
@@ -10152,7 +10152,7 @@ void LLScriptGlobalFunctions::recurse(LLFILE *fp, S32 tabs, S32 tabsize, LSCRIPT | |||
10152 | fprintf(fp, ".method public hidebysig instance default "); | 10152 | fprintf(fp, ".method public hidebysig instance default "); |
10153 | print_cil_type(fp, mType ? mType->mType : LST_NULL); | 10153 | print_cil_type(fp, mType ? mType->mType : LST_NULL); |
10154 | fprintf(fp, " 'g"); | 10154 | fprintf(fp, " 'g"); |
10155 | fprintf(fp, mIdentifier->mName); | 10155 | fprintf(fp, "%s", mIdentifier->mName); |
10156 | fprintf(fp, "'"); | 10156 | fprintf(fp, "'"); |
10157 | if (mParameters) | 10157 | if (mParameters) |
10158 | { | 10158 | { |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index f442f38..4fe387f 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -1605,11 +1605,6 @@ bool LLAppViewer::initConfiguration() | |||
1605 | 1605 | ||
1606 | gSavedSettings.setString("VersionChannelName", IMP_VIEWER_NAME); | 1606 | gSavedSettings.setString("VersionChannelName", IMP_VIEWER_NAME); |
1607 | 1607 | ||
1608 | #ifndef LL_RELEASE_FOR_DOWNLOAD | ||
1609 | gSavedSettings.setBOOL("ShowConsoleWindow", TRUE); | ||
1610 | gSavedSettings.setBOOL("AllowMultipleViewers", TRUE); | ||
1611 | #endif | ||
1612 | |||
1613 | #if !LL_DYNAMIC_FONT_DISCOVERY | 1608 | #if !LL_DYNAMIC_FONT_DISCOVERY |
1614 | // static font discovery - user settings can override. | 1609 | // static font discovery - user settings can override. |
1615 | gSavedSettings.setString("FontSansSerifFallback", | 1610 | gSavedSettings.setString("FontSansSerifFallback", |
diff --git a/linden/indra/newview/lldrawable.cpp b/linden/indra/newview/lldrawable.cpp index 0f89585..5e4aafc 100644 --- a/linden/indra/newview/lldrawable.cpp +++ b/linden/indra/newview/lldrawable.cpp | |||
@@ -951,6 +951,9 @@ BOOL LLDrawable::isVisible() const | |||
951 | return TRUE; | 951 | return TRUE; |
952 | } | 952 | } |
953 | 953 | ||
954 | #if 0 | ||
955 | //disabling this code fixes DEV-20105. Leaving in place in case some other bug pops up as a a result. | ||
956 | //should be safe to just always ask the spatial group for visibility. | ||
954 | if (isActive()) | 957 | if (isActive()) |
955 | { | 958 | { |
956 | if (isRoot()) | 959 | if (isRoot()) |
@@ -973,6 +976,7 @@ BOOL LLDrawable::isVisible() const | |||
973 | } | 976 | } |
974 | } | 977 | } |
975 | else | 978 | else |
979 | #endif | ||
976 | { | 980 | { |
977 | LLSpatialGroup* group = getSpatialGroup(); | 981 | LLSpatialGroup* group = getSpatialGroup(); |
978 | if (group && group->isVisible()) | 982 | if (group && group->isVisible()) |
diff --git a/linden/indra/newview/llfloaterdirectory.cpp b/linden/indra/newview/llfloaterdirectory.cpp index 305a029..9a0c2fc 100644 --- a/linden/indra/newview/llfloaterdirectory.cpp +++ b/linden/indra/newview/llfloaterdirectory.cpp | |||
@@ -383,10 +383,6 @@ void LLFloaterDirectory::showPanel(const std::string& tabname) | |||
383 | // static | 383 | // static |
384 | void LLFloaterDirectory::toggleFind(void*) | 384 | void LLFloaterDirectory::toggleFind(void*) |
385 | { | 385 | { |
386 | #ifndef LL_RELEASE_FOR_DOWNLOAD | ||
387 | delete sInstance; | ||
388 | sInstance = NULL; | ||
389 | #endif | ||
390 | if (!sInstance) | 386 | if (!sInstance) |
391 | { | 387 | { |
392 | std::string panel = gSavedSettings.getString("LastFindPanel"); | 388 | std::string panel = gSavedSettings.getString("LastFindPanel"); |
diff --git a/linden/indra/newview/llpanellogin.cpp b/linden/indra/newview/llpanellogin.cpp index 61bf215..09e2cee 100644 --- a/linden/indra/newview/llpanellogin.cpp +++ b/linden/indra/newview/llpanellogin.cpp | |||
@@ -134,74 +134,14 @@ void LLLoginHandler::parse(const LLSD& queryMap) | |||
134 | mLastName = queryMap["last_name"].asString(); | 134 | mLastName = queryMap["last_name"].asString(); |
135 | 135 | ||
136 | EGridInfo grid_choice = GRID_INFO_NONE; | 136 | EGridInfo grid_choice = GRID_INFO_NONE; |
137 | if (queryMap["grid"].asString() == "aditi") | 137 | if (queryMap["grid"].asString() == "sl beta grid") |
138 | { | 138 | { |
139 | grid_choice = GRID_INFO_ADITI; | 139 | grid_choice = GRID_INFO_ADITI; |
140 | } | 140 | } |
141 | else if (queryMap["grid"].asString() == "agni") | 141 | else if (queryMap["grid"].asString() == "sl main grid") |
142 | { | 142 | { |
143 | grid_choice = GRID_INFO_AGNI; | 143 | grid_choice = GRID_INFO_AGNI; |
144 | } | 144 | } |
145 | else if (queryMap["grid"].asString() == "siva") | ||
146 | { | ||
147 | grid_choice = GRID_INFO_SIVA; | ||
148 | } | ||
149 | else if (queryMap["grid"].asString() == "damballah") | ||
150 | { | ||
151 | grid_choice = GRID_INFO_DAMBALLAH; | ||
152 | } | ||
153 | else if (queryMap["grid"].asString() == "durga") | ||
154 | { | ||
155 | grid_choice = GRID_INFO_DURGA; | ||
156 | } | ||
157 | else if (queryMap["grid"].asString() == "shakti") | ||
158 | { | ||
159 | grid_choice = GRID_INFO_SHAKTI; | ||
160 | } | ||
161 | else if (queryMap["grid"].asString() == "soma") | ||
162 | { | ||
163 | grid_choice = GRID_INFO_SOMA; | ||
164 | } | ||
165 | else if (queryMap["grid"].asString() == "ganga") | ||
166 | { | ||
167 | grid_choice = GRID_INFO_GANGA; | ||
168 | } | ||
169 | else if (queryMap["grid"].asString() == "vaak") | ||
170 | { | ||
171 | grid_choice = GRID_INFO_VAAK; | ||
172 | } | ||
173 | else if (queryMap["grid"].asString() == "uma") | ||
174 | { | ||
175 | grid_choice = GRID_INFO_UMA; | ||
176 | } | ||
177 | else if (queryMap["grid"].asString() == "mohini") | ||
178 | { | ||
179 | grid_choice = GRID_INFO_MOHINI; | ||
180 | } | ||
181 | else if (queryMap["grid"].asString() == "yami") | ||
182 | { | ||
183 | grid_choice = GRID_INFO_YAMI; | ||
184 | } | ||
185 | else if (queryMap["grid"].asString() == "nandi") | ||
186 | { | ||
187 | grid_choice = GRID_INFO_NANDI; | ||
188 | } | ||
189 | else if (queryMap["grid"].asString() == "mitra") | ||
190 | { | ||
191 | grid_choice = GRID_INFO_MITRA; | ||
192 | } | ||
193 | else if (queryMap["grid"].asString() == "radha") | ||
194 | { | ||
195 | grid_choice = GRID_INFO_RADHA; | ||
196 | } | ||
197 | else if (queryMap["grid"].asString() == "ravi") | ||
198 | { | ||
199 | grid_choice = GRID_INFO_RAVI; | ||
200 | } | ||
201 | else if (queryMap["grid"].asString() == "aruna") | ||
202 | { | ||
203 | grid_choice = GRID_INFO_ARUNA; | ||
204 | } | ||
205 | 145 | ||
206 | if(grid_choice != GRID_INFO_NONE) | 146 | if(grid_choice != GRID_INFO_NONE) |
207 | { | 147 | { |
@@ -849,12 +789,7 @@ void LLPanelLogin::refreshLocation( bool force_visible ) | |||
849 | sInstance->childSetVisible("start_location_combo", show_start); | 789 | sInstance->childSetVisible("start_location_combo", show_start); |
850 | sInstance->childSetVisible("start_location_text", show_start); | 790 | sInstance->childSetVisible("start_location_text", show_start); |
851 | 791 | ||
852 | #if LL_RELEASE_FOR_DOWNLOAD | ||
853 | BOOL show_server = gSavedSettings.getBOOL("ForceShowGrid"); | ||
854 | sInstance->childSetVisible("server_combo", show_server); | ||
855 | #else | ||
856 | sInstance->childSetVisible("server_combo", TRUE); | 792 | sInstance->childSetVisible("server_combo", TRUE); |
857 | #endif | ||
858 | 793 | ||
859 | #endif | 794 | #endif |
860 | } | 795 | } |
@@ -937,7 +872,7 @@ void LLPanelLogin::loadLoginPage() | |||
937 | curl_free(curl_version); | 872 | curl_free(curl_version); |
938 | 873 | ||
939 | // Grid | 874 | // Grid |
940 | char* curl_grid = curl_escape(LLViewerLogin::getInstance()->getGridLabel().c_str(), 0); | 875 | char* curl_grid = curl_escape(LLViewerLogin::getInstance()->getGridCodeName().c_str(), 0); |
941 | oStr << "&grid=" << curl_grid; | 876 | oStr << "&grid=" << curl_grid; |
942 | curl_free(curl_grid); | 877 | curl_free(curl_grid); |
943 | 878 | ||
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 11e4ac5..4266d82 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -2496,7 +2496,7 @@ void login_show() | |||
2496 | LLPanelLogin::addServer(LLViewerLogin::getInstance()->getGridLabel(), LLViewerLogin::getInstance()->getGridChoice()); | 2496 | LLPanelLogin::addServer(LLViewerLogin::getInstance()->getGridLabel(), LLViewerLogin::getInstance()->getGridChoice()); |
2497 | 2497 | ||
2498 | LLViewerLogin* vl = LLViewerLogin::getInstance(); | 2498 | LLViewerLogin* vl = LLViewerLogin::getInstance(); |
2499 | for(int grid_index = GRID_INFO_ADITI; grid_index < GRID_INFO_OTHER; ++grid_index) | 2499 | for(int grid_index = GRID_INFO_NONE + 1; grid_index < GRID_INFO_OTHER; ++grid_index) |
2500 | { | 2500 | { |
2501 | LLPanelLogin::addServer(vl->getKnownGridLabel((EGridInfo)grid_index), grid_index); | 2501 | LLPanelLogin::addServer(vl->getKnownGridLabel((EGridInfo)grid_index), grid_index); |
2502 | } | 2502 | } |
diff --git a/linden/indra/newview/llviewernetwork.cpp b/linden/indra/newview/llviewernetwork.cpp index 13d432a..c8cffcf 100644 --- a/linden/indra/newview/llviewernetwork.cpp +++ b/linden/indra/newview/llviewernetwork.cpp | |||
@@ -38,6 +38,7 @@ | |||
38 | struct LLGridData | 38 | struct LLGridData |
39 | { | 39 | { |
40 | const char* mLabel; | 40 | const char* mLabel; |
41 | const char* mCodeName; | ||
41 | const char* mName; | 42 | const char* mName; |
42 | const char* mLoginURI; | 43 | const char* mLoginURI; |
43 | const char* mHelperURI; | 44 | const char* mHelperURI; |
@@ -45,83 +46,23 @@ struct LLGridData | |||
45 | 46 | ||
46 | static LLGridData gGridInfo[GRID_INFO_COUNT] = | 47 | static LLGridData gGridInfo[GRID_INFO_COUNT] = |
47 | { | 48 | { |
48 | { "None", "", "", ""}, | 49 | { "None", "", "", "", "" }, |
49 | { "Aditi", | 50 | { "SL Main Grid", |
50 | "util.aditi.lindenlab.com", | 51 | "Agni", |
51 | "https://login.aditi.lindenlab.com/cgi-bin/login.cgi", | ||
52 | "http://aditi-secondlife.webdev.lindenlab.com/helpers/" }, | ||
53 | { "Agni", | ||
54 | "util.agni.lindenlab.com", | 52 | "util.agni.lindenlab.com", |
55 | "https://login.agni.lindenlab.com/cgi-bin/login.cgi", | 53 | "https://login.agni.lindenlab.com/cgi-bin/login.cgi", |
56 | "https://secondlife.com/helpers/" }, | 54 | "https://secondlife.com/helpers/" }, |
57 | { "Aruna", | 55 | { "SL Beta Grid", |
58 | "util.aruna.lindenlab.com", | 56 | "Aditi", |
59 | "https://login.aruna.lindenlab.com/cgi-bin/login.cgi", | 57 | "util.aditi.lindenlab.com", |
60 | "http://aruna-secondlife.webdev.lindenlab.com/helpers/" }, | 58 | "https://login.aditi.lindenlab.com/cgi-bin/login.cgi", |
61 | { "Damballah", | 59 | "http://aditi-secondlife.webdev.lindenlab.com/helpers/" }, |
62 | "util.damballah.lindenlab.com", | 60 | { "Local OpenSim", |
63 | "https://login.damballah.lindenlab.com/cgi-bin/login.cgi", | 61 | "", |
64 | "http://damballah-secondlife.webdev.lindenlab.com/helpers/" }, | 62 | "localhost", |
65 | { "Durga", | 63 | "http://127.0.0.1:9000", |
66 | "util.durga.lindenlab.com", | ||
67 | "https://login.durga.lindenlab.com/cgi-bin/login.cgi", | ||
68 | "http://durga-secondlife.webdev.lindenlab.com/helpers/" }, | ||
69 | { "Ganga", | ||
70 | "util.ganga.lindenlab.com", | ||
71 | "https://login.ganga.lindenlab.com/cgi-bin/login.cgi", | ||
72 | "http://ganga-secondlife.webdev.lindenlab.com/helpers/" }, | ||
73 | { "Mitra", | ||
74 | "util.mitra.lindenlab.com", | ||
75 | "https://login.mitra.lindenlab.com/cgi-bin/login.cgi", | ||
76 | "http://mitra-secondlife.webdev.lindenlab.com/helpers/" }, | ||
77 | { "Mohini", | ||
78 | "util.mohini.lindenlab.com", | ||
79 | "https://login.mohini.lindenlab.com/cgi-bin/login.cgi", | ||
80 | "http://mohini-secondlife.webdev.lindenlab.com/helpers/" }, | ||
81 | { "Nandi", | ||
82 | "util.nandi.lindenlab.com", | ||
83 | "https://login.nandi.lindenlab.com/cgi-bin/login.cgi", | ||
84 | "http://nandi-secondlife.webdev.lindenlab.com/helpers/" }, | ||
85 | { "Radha", | ||
86 | "util.radha.lindenlab.com", | ||
87 | "https://login.radha.lindenlab.com/cgi-bin/login.cgi", | ||
88 | "http://radha-secondlife.webdev.lindenlab.com/helpers/" }, | ||
89 | { "Ravi", | ||
90 | "util.ravi.lindenlab.com", | ||
91 | "https://login.ravi.lindenlab.com/cgi-bin/login.cgi", | ||
92 | "http://ravi-secondlife.webdev.lindenlab.com/helpers/" }, | ||
93 | { "Siva", | ||
94 | "util.siva.lindenlab.com", | ||
95 | "https://login.siva.lindenlab.com/cgi-bin/login.cgi", | ||
96 | "http://siva-secondlife.webdev.lindenlab.com/helpers/" }, | ||
97 | { "Shakti", | ||
98 | "util.shakti.lindenlab.com", | ||
99 | "https://login.shakti.lindenlab.com/cgi-bin/login.cgi", | ||
100 | "http://shakti-secondlife.webdev.lindenlab.com/helpers/" }, | ||
101 | { "Soma", | ||
102 | "util.soma.lindenlab.com", | ||
103 | "https://login.soma.lindenlab.com/cgi-bin/login.cgi", | ||
104 | "http://soma-secondlife.webdev.lindenlab.com/helpers/" }, | ||
105 | { "Uma", | ||
106 | "util.uma.lindenlab.com", | ||
107 | "https://login.uma.lindenlab.com/cgi-bin/login.cgi", | ||
108 | "http://uma-secondlife.webdev.lindenlab.com/helpers/" }, | ||
109 | { "Vaak", | ||
110 | "util.vaak.lindenlab.com", | ||
111 | "https://login.vaak.lindenlab.com/cgi-bin/login.cgi", | ||
112 | "http://vaak-secondlife.webdev.lindenlab.com/helpers/" }, | ||
113 | { "Yami", | ||
114 | "util.yami.lindenlab.com", | ||
115 | "https://login.yami.lindenlab.com/cgi-bin/login.cgi", | ||
116 | "http://yami-secondlife.webdev.lindenlab.com/helpers/" }, | ||
117 | { "Local", | ||
118 | "localhost", | ||
119 | "https://login.dmz.lindenlab.com/cgi-bin/login.cgi", | ||
120 | "" }, | 64 | "" }, |
121 | { "Other", | 65 | { "Other", "", "", "", "" } |
122 | "", | ||
123 | "https://login.dmz.lindenlab.com/cgi-bin/login.cgi", | ||
124 | "" } | ||
125 | }; | 66 | }; |
126 | 67 | ||
127 | const EGridInfo DEFAULT_GRID_CHOICE = GRID_INFO_AGNI; | 68 | const EGridInfo DEFAULT_GRID_CHOICE = GRID_INFO_AGNI; |
@@ -220,6 +161,16 @@ std::string LLViewerLogin::getGridLabel() const | |||
220 | return mGridName; | 161 | return mGridName; |
221 | } | 162 | } |
222 | 163 | ||
164 | std::string LLViewerLogin::getGridCodeName() const | ||
165 | { | ||
166 | if( gGridInfo[mGridChoice].mCodeName == "" ) | ||
167 | { | ||
168 | return getGridLabel(); | ||
169 | } | ||
170 | |||
171 | return gGridInfo[mGridChoice].mCodeName; | ||
172 | } | ||
173 | |||
223 | std::string LLViewerLogin::getKnownGridLabel(EGridInfo grid_index) const | 174 | std::string LLViewerLogin::getKnownGridLabel(EGridInfo grid_index) const |
224 | { | 175 | { |
225 | if(grid_index > GRID_INFO_NONE && grid_index < GRID_INFO_OTHER) | 176 | if(grid_index > GRID_INFO_NONE && grid_index < GRID_INFO_OTHER) |
diff --git a/linden/indra/newview/llviewernetwork.h b/linden/indra/newview/llviewernetwork.h index 53bb0ab..970e2ce 100644 --- a/linden/indra/newview/llviewernetwork.h +++ b/linden/indra/newview/llviewernetwork.h | |||
@@ -38,23 +38,8 @@ class LLHost; | |||
38 | enum EGridInfo | 38 | enum EGridInfo |
39 | { | 39 | { |
40 | GRID_INFO_NONE, | 40 | GRID_INFO_NONE, |
41 | GRID_INFO_ADITI, | ||
42 | GRID_INFO_AGNI, | 41 | GRID_INFO_AGNI, |
43 | GRID_INFO_ARUNA, | 42 | GRID_INFO_ADITI, |
44 | GRID_INFO_DAMBALLAH, | ||
45 | GRID_INFO_DURGA, | ||
46 | GRID_INFO_GANGA, | ||
47 | GRID_INFO_MITRA, | ||
48 | GRID_INFO_MOHINI, | ||
49 | GRID_INFO_NANDI, | ||
50 | GRID_INFO_RADHA, | ||
51 | GRID_INFO_RAVI, | ||
52 | GRID_INFO_SIVA, | ||
53 | GRID_INFO_SHAKTI, | ||
54 | GRID_INFO_SOMA, | ||
55 | GRID_INFO_UMA, | ||
56 | GRID_INFO_VAAK, | ||
57 | GRID_INFO_YAMI, | ||
58 | GRID_INFO_LOCAL, | 43 | GRID_INFO_LOCAL, |
59 | GRID_INFO_OTHER, // IP address set via command line option | 44 | GRID_INFO_OTHER, // IP address set via command line option |
60 | GRID_INFO_COUNT | 45 | GRID_INFO_COUNT |
@@ -87,6 +72,20 @@ public: | |||
87 | **/ | 72 | **/ |
88 | std::string getGridLabel() const; | 73 | std::string getGridLabel() const; |
89 | 74 | ||
75 | /** | ||
76 | * @brief Get the code name for the grid choice. | ||
77 | * | ||
78 | * Returns the code name for the grid choice, as designated | ||
79 | * by Linden Lab. The SL main grid is Agni, and the beta | ||
80 | * grid is Aditi. There are other LL testing grids with code | ||
81 | * names, but we don't care about those. | ||
82 | * | ||
83 | * This string is used primarily for fetching the proper | ||
84 | * login splash page, since the web server expects "Agni" | ||
85 | * and "Aditi", not "SL Main Grid" and "SL Beta Grid". | ||
86 | */ | ||
87 | std::string getGridCodeName() const; | ||
88 | |||
90 | std::string getKnownGridLabel(EGridInfo grid_index) const; | 89 | std::string getKnownGridLabel(EGridInfo grid_index) const; |
91 | 90 | ||
92 | void getLoginURIs(std::vector<std::string>& uris) const; | 91 | void getLoginURIs(std::vector<std::string>& uris) const; |
diff --git a/linden/install.xml b/linden/install.xml index ce5b93a..7d75b0c 100644 --- a/linden/install.xml +++ b/linden/install.xml | |||
@@ -699,9 +699,9 @@ anguage Infrstructure (CLI) international standard</string> | |||
699 | <key>windows</key> | 699 | <key>windows</key> |
700 | <map> | 700 | <map> |
701 | <key>md5sum</key> | 701 | <key>md5sum</key> |
702 | <string>8c1b8881285631eb32ba541e10d07b07</string> | 702 | <string>42cb780c595d25881b4967292a4a0f40</string> |
703 | <key>url</key> | 703 | <key>url</key> |
704 | <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llmozlib-windows-20080922.tar.bz2</uri> | 704 | <uri>http://s3.amazonaws.com/viewer-source-downloads/install_pkgs/llmozlib-windows-20080828.tar.bz2</uri> |
705 | </map> | 705 | </map> |
706 | </map> | 706 | </map> |
707 | </map> | 707 | </map> |