aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.txt135
-rw-r--r--linden/indra/linux_crash_logger/llcrashloggerlinux.cpp2
-rw-r--r--linden/indra/llimage/llimagetga.cpp2
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer.cpp2
-rw-r--r--linden/indra/llmedia/llmediamanager.cpp2
-rw-r--r--linden/indra/llmessage/llhttpclient.cpp14
-rw-r--r--linden/indra/llwindow/llwindowsdl.cpp2
-rw-r--r--linden/indra/lscript/lscript_compile/lscript_tree.cpp8
-rw-r--r--linden/indra/newview/llappviewer.cpp5
-rw-r--r--linden/indra/newview/lldrawable.cpp4
-rw-r--r--linden/indra/newview/llfloaterdirectory.cpp4
-rw-r--r--linden/indra/newview/llpanellogin.cpp71
-rw-r--r--linden/indra/newview/llstartup.cpp2
-rw-r--r--linden/indra/newview/llviewernetwork.cpp97
-rw-r--r--linden/indra/newview/llviewernetwork.h31
-rw-r--r--linden/install.xml4
16 files changed, 200 insertions, 185 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt
index 94d335c..0b7585a 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -1,5 +1,39 @@
12008-12-06 Jacek Antonelli <jacek.antonelli@gmail.com> 12008-12-06 Jacek Antonelli <jacek.antonelli@gmail.com>
2 2
3 * ChangeLog:
4 Added banners in ChangeLog to set versions apart.
5
6 Entries should be placed in the section for the
7 version into which they were merged. Entries within
8 a section should be sorted chronologically.
9
10 This is important for keeping track of changes which
11 weren't merged until a later release than they were
12 written. (Mixing them in chronologically would cause
13 confusion about which changes were included in a
14 release.)
15
16
17 * linden/indra/llmessage/llhttpclient.cpp:
18 VWR-9400b (memleak whenever an LSL script is uploaded)
19 Patch by Henri Beauchamp.
20
21
22 * linden/indra/llmessage/llhttpclient.cpp:
23 VWR-9400 (memleak whenever an LSL script is uploaded)
24 Patch by Carjay McGinnis.
25
26
27 * linden/indra/llimage/llimagetga.cpp:
28 VWR-10837 (use delete [] in LLImageTGA)
29 Patch by Aleric Inglewood.
30
31
32 * linden/indra/llmedia/llmediaimplgstreamer.cpp:
33 VWR-10759 (use delete [] in LLMediaImplGStreamer)
34 Patch by Aleric Inglewood.
35
36
3 * linden/indra/llaudio/audioengine.cpp: 37 * linden/indra/llaudio/audioengine.cpp:
4 Updated audio engine to LL's openal branch r1532. 38 Updated audio engine to LL's openal branch r1532.
5 * linden/indra/llaudio/audioengine.h: 39 * linden/indra/llaudio/audioengine.h:
@@ -60,6 +94,102 @@
60 * indra/newview/llstartup.cpp: Ditto. 94 * indra/newview/llstartup.cpp: Ditto.
61 95
62 96
97=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
98=- 1.0.0 RC2 -=
99=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
100
101
1022008-12-04 Jacek Antonelli <jacek.antonelli@gmail.com>
103
104 * Imprudence 1.0.0 RC2 released.
105
106
107 * linden/indra/newview/llviewernetwork.cpp:
108 Use 127.0.0.1 for local opensim, not 0.0.0.0.
109
110
1112008-11-30 Jacek Antonelli <jacek.antonelli@gmail.com>
112
113 * linden/indra/llmedia/llmediamanager.cpp:
114 Disable llmozlib-dependent code when not available.
115 Patch by Stephen Zenith. [#12]
116
117
118 * linden/indra/llwindow/llwindowsdl.cpp:
119 Fixed passing nonliteral strings to *printf functions.
120 gcc 4.3 rejects that as being unsafe.
121 Patch by Stephen Zenith. [#11]
122 * linden/indra/linux_crash_logger/llcrashloggerlinux.cpp:
123 Ditto.
124 * linden/indra/lscript/lscript_compile/lscript_tree.cpp:
125 Ditto.
126
127
1282008-11-29 Jacek Antonelli <jacek.antonelli@gmail.com>
129
130 * linden/indra/newview/llpanellogin.cpp:
131 Remove preprocessor condition for grid selector.
132 The grid selector on the login screen will always show,
133 instead of only showing when the viewer was compiled
134 as LL_RELEASE_FOR_DOWNLOAD.
135
136
137 * linden/indra/newview/llappviewer.cpp:
138 Stop console window from always showing up.
139
140
1412008-11-29 McCabe Maxsted <hakushakukun@gmail.com>
142
143 * linden/indra/newview/llfloaterdirectory.cpp:
144 Fixed search window not refreshing in RelWithDebInfo builds.
145
146
1472008-11-25 Jacek Antonelli <jacek.antonelli@gmail.com>
148
149 * linden/indra/newview/llstartup.cpp:
150 Rearranged grid selectors so main grid is first.
151 * linden/indra/newview/llviewernetwork.cpp:
152 Ditto.
153 * linden/indra/newview/llviewernetwork.cpp:
154 Ditto.
155
156
157 * linden/indra/newview/llpanellogin.cpp:
158 Added "code name" field for grid selections.
159 The code name is used to fetch the proper splash page.
160 This decouples the user-visible label from the name
161 expected by the SL web server.
162 * linden/indra/newview/llviewernetwork.cpp:
163 Ditto.
164 * linden/indra/newview/llviewernetwork.h:
165 Ditto.
166
167
1682008-11-24 Jacek Antonelli <jacek.antonelli@gmail.com>
169
170 * linden/indra/newview/llpanellogin.cpp:
171 Changed the grid selector options at login.
172 Renamed "Agni" to "SL Main Grid", etc. and removed private
173 LL grids from the list. Also added "Local OpenSim" option.
174 * linden/indra/newview/llviewernetwork.cpp:
175 Ditto.
176 * linden/indra/newview/llviewernetwork.h:
177 Ditto.
178
179
1802008-11-21 Jacek Antonelli <jacek.antonelli@gmail.com>
181
182 * linden/indra/newview/lldrawable.cpp:
183 Likely fix for VWR-8920 (disappearing attachments).
184 From http://svn.secondlife.com/trac/linden/changeset/1393
185
186
1872008-11-19 McCabe Maxsted <hakushakukun@gmail.com>
188
189 * linden/install.xml:
190 Fixed inworld browser crash in Windows.
191
192
632008-11-18 Jacek Antonelli <jacek.antonelli@gmail.com> 1932008-11-18 Jacek Antonelli <jacek.antonelli@gmail.com>
64 194
65 * linden/indra/llcrashlogger/llcrashlogger.cpp: 195 * linden/indra/llcrashlogger/llcrashlogger.cpp:
@@ -105,6 +235,11 @@
105 and position. It will now correctly inherit from default skin. 235 and position. It will now correctly inherit from default skin.
106 236
107 237
238=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
239=- 1.0.0 RC1 -=
240=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
241
242
1082008-11-15 Jacek Antonelli <jacek.antonelli@gmail.com> 2432008-11-15 Jacek Antonelli <jacek.antonelli@gmail.com>
109 244
110 * Imprudence 1.0.0 RC1 released. 245 * Imprudence 1.0.0 RC1 released.
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
105LLImageTGA::~LLImageTGA() 105LLImageTGA::~LLImageTGA()
106{ 106{
107 delete mColorMap; 107 delete [] mColorMap;
108} 108}
109 109
110BOOL LLImageTGA::updateData() 110BOOL 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)
151void LLMediaManager::setBrowserUserAgent(std::string user_agent) 151void 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
384void LLFloaterDirectory::toggleFind(void*) 384void 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 @@
38struct LLGridData 38struct 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
46static LLGridData gGridInfo[GRID_INFO_COUNT] = 47static 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
127const EGridInfo DEFAULT_GRID_CHOICE = GRID_INFO_AGNI; 68const 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
164std::string LLViewerLogin::getGridCodeName() const
165{
166 if( gGridInfo[mGridChoice].mCodeName == "" )
167 {
168 return getGridLabel();
169 }
170
171 return gGridInfo[mGridChoice].mCodeName;
172}
173
223std::string LLViewerLogin::getKnownGridLabel(EGridInfo grid_index) const 174std::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;
38enum EGridInfo 38enum 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>